/*
Theme Name: Tublejom
Theme URI: https://tublejom.com
Author: Tublejom
Description: Modern marketplace theme for Kosovo with frontend registration, moderated listings, app-style mobile search and realistic demo content.
Version: 1.4.1
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tublejom
*/

:root {
  --tj-primary: #82b440;
  --tj-primary-dark: #6f9a37;
  --tj-primary-soft: #eef8e7;
  --tj-ink: #2f4050;
  --tj-muted: #738396;
  --tj-line: #e8f1f8;
  --tj-blue-soft: #eaf6ff;
  --tj-bg: #f7fbff;
  --tj-white: #ffffff;
  --tj-shadow: 0 20px 55px rgba(47, 64, 80, 0.1);
  --tj-radius: 6px;
  --tj-container: 1380px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--tj-ink);
  background: #fff;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

body.tublejom-modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

.tj-container {
  width: min(var(--tj-container), calc(100% - 48px));
  margin: 0 auto;
}

.tj-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #eef3f8;
  backdrop-filter: blur(14px);
}

.tj-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 112px;
  gap: 36px;
}

.tj-logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: var(--tj-ink);
  font-size: 31px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  text-transform: lowercase;
}

.tj-logo span {
  color: inherit;
}

.tj-logo__mark {
  display: none;
}

.tj-logo__mark path {
  fill: none;
  stroke: var(--tj-primary);
  stroke-width: 7;
  stroke-linecap: round;
}

.tj-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 52px;
  flex: 1;
}

.tj-nav a {
  color: #34485c;
  font-size: 18px;
  font-weight: 500;
}

.tj-nav a::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 10px;
  border-right: 2px solid #d9ebf8;
  border-bottom: 2px solid #d9ebf8;
  transform: rotate(45deg) translateY(-3px);
}

.tj-header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.tj-account-icon {
  width: 62px;
  height: 62px;
  border: 1px solid #e5f0f8;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--tj-ink);
  background: #fff;
}

.tj-auth-link {
  border: 0;
  padding: 0;
  color: #34485c;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  font-weight: 500;
}

.tj-auth-separator {
  width: 1px;
  height: 36px;
  background: #dfeaf3;
}

.tj-submit-ad {
  display: inline-flex;
  align-items: center;
  min-height: 62px;
  color: #fff;
  background: linear-gradient(108deg, var(--tj-primary) 0%, var(--tj-primary) 73%, #93c853 73%, #93c853 100%);
  border-radius: 6px;
  box-shadow: 0 12px 24px rgba(130, 180, 64, 0.24);
  overflow: hidden;
  font-size: 18px;
  font-weight: 700;
}

.tj-submit-ad span {
  padding: 0 30px;
}

.tj-submit-ad strong {
  display: grid;
  place-items: center;
  width: 68px;
  min-height: 62px;
  font-size: 28px;
  font-weight: 500;
}

.tj-mobile-menu {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--tj-line);
  border-radius: 6px;
  background: #fff;
  color: var(--tj-ink);
}

.tj-hero {
  position: relative;
  min-height: 565px;
  overflow: hidden;
  background: linear-gradient(180deg, #f8fcff 0%, #f7fbff 100%);
}

.tj-hero::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 58%;
  height: 210px;
  background-image: url("assets/img/pattern_2.png");
  background-size: cover;
  opacity: 0.55;
}

.tj-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 0.98fr 1.02fr;
  gap: 56px;
  align-items: center;
  padding: 86px 0 78px;
}

.tj-hero-copy {
  min-width: 0;
}

.tj-hero h1 {
  margin: 0 0 38px;
  max-width: 610px;
  color: var(--tj-ink);
  font-size: clamp(46px, 5.1vw, 78px);
  line-height: 1.08;
  font-weight: 800;
}

.tj-hero h1 span {
  color: var(--tj-primary);
}

.tj-hero-arrow {
  position: absolute;
  left: 42%;
  top: 40%;
  width: 90px;
  opacity: 0.95;
  filter: hue-rotate(48deg) saturate(0.8);
}

.tj-search-box {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) minmax(210px, 0.95fr) 112px;
  width: min(980px, 100%);
  min-height: 92px;
  background: #fff;
  border-radius: 0 46px 46px 0;
  box-shadow: var(--tj-shadow);
}

.tj-search-field {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border-right: 1px solid #e5eef6;
}

.tj-search-field:first-child {
  border-radius: 4px 0 0 4px;
}

.tj-search-field__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  color: var(--tj-ink);
  background: #e5f3ff;
  border-radius: 7px;
}

.tj-search-field input,
.tj-search-field select {
  min-width: 0;
  width: 100%;
  color: var(--tj-ink);
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 19px;
}

.tj-search-field input::placeholder {
  color: #6d7c8e;
}

.tj-search-button {
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 0 46px 46px 0;
  color: #fff;
  background: var(--tj-primary);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.tj-search-button:hover {
  background: var(--tj-primary-dark);
}

.tj-hero-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.tj-hero-photo {
  min-height: 420px;
  overflow: hidden;
  border-radius: 5px;
  box-shadow: 0 22px 60px rgba(47, 64, 80, 0.12);
  background: #dfe8ef;
}

.tj-hero-photo img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.tj-hero-photo:nth-child(2) {
  margin-top: 0;
}

.tj-category-band {
  padding: 72px 0 92px;
  background: #fff;
}

.tj-categories {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 34px;
  align-items: start;
}

.tj-category-card {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 148px;
  padding: 34px 20px 52px;
  border: 1px solid #eef4f8;
  border-radius: 6px;
  background: #fff;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.tj-category-card:hover {
  transform: translateY(-5px);
  border-color: #dcecd0;
  box-shadow: 0 20px 40px rgba(47, 64, 80, 0.08);
}

.tj-category-icon {
  width: 76px;
  height: 76px;
  color: var(--tj-ink);
  margin-top: -72px;
  margin-bottom: 14px;
}

.tj-category-card h3 {
  margin: 0;
  color: var(--tj-ink);
  font-size: 21px;
  line-height: 1.2;
}

.tj-category-arrow {
  position: absolute;
  left: 50%;
  bottom: -35px;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  color: var(--tj-ink);
  background: #e5f3ff;
  border-radius: 50%;
  transform: translateX(-50%);
}

.tj-category-caption {
  position: relative;
  margin: 76px auto 0;
  color: var(--tj-primary);
  text-align: center;
  font-size: 20px;
}

.tj-category-caption img {
  position: absolute;
  right: 29%;
  top: -18px;
  width: 76px;
  opacity: 0.9;
}

.tj-section-head {
  text-align: center;
  margin-bottom: 46px;
}

.tj-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  color: #78889a;
  background: #f3f6fa;
  border-radius: 6px;
  font-size: 18px;
}

.tj-section-head h2 {
  margin: 24px 0 0;
  color: var(--tj-ink);
  font-size: clamp(34px, 3.4vw, 50px);
  line-height: 1.1;
}

.tj-listings-section {
  padding: 8px 0 92px;
  background: #fff;
}

.tj-listing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.tj-listing-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #edf3f8;
  border-radius: 6px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.tj-listing-card:hover,
.tj-listing-card--featured {
  border-color: var(--tj-primary);
  box-shadow: 0 22px 42px rgba(47, 64, 80, 0.1);
}

.tj-listing-card:hover {
  transform: translateY(-3px);
}

.tj-listing-card__image {
  position: relative;
  aspect-ratio: 1.55 / 1;
  overflow: hidden;
  background: #dde7ef;
}

.tj-listing-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tj-label {
  position: absolute;
  left: 28px;
  top: 24px;
  z-index: 1;
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 13px;
  color: #fff;
  background: var(--tj-primary);
  border-radius: 5px;
  font-size: 15px;
  font-weight: 700;
}

.tj-listing-card__body {
  padding: 26px 28px 24px;
}

.tj-listing-card h3 {
  margin: 0 0 16px;
  color: var(--tj-ink);
  font-size: 23px;
  line-height: 1.18;
}

.tj-location {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #718195;
  font-size: 16px;
}

.tj-location svg {
  flex: 0 0 auto;
  color: var(--tj-primary);
}

.tj-price {
  margin-top: 22px;
  color: var(--tj-ink);
  font-size: 24px;
  font-weight: 800;
}

.tj-card-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 20px;
  color: #7d8c9d;
}

.tj-card-actions span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid #e6eef5;
  border-radius: 50%;
}

.tj-results-hero {
  background: #fff;
  border-top: 1px solid #f0f5fa;
}

.tj-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 118px;
  color: #7b8999;
  font-size: 19px;
}

.tj-breadcrumbs a,
.tj-breadcrumbs span:nth-child(2) {
  color: var(--tj-ink);
}

.tj-search-strip {
  padding: 22px 0;
  background: #dff0fb;
}

.tj-search-strip .tj-search-box {
  grid-template-columns: 1fr 1fr 88px;
  min-height: 82px;
  border-radius: 6px;
  box-shadow: none;
}

.tj-search-strip .tj-search-button {
  border-radius: 0 6px 6px 0;
}

.tj-results {
  padding: 84px 0 96px;
  background: #f8fbff;
}

.tj-results-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 42px;
  align-items: start;
}

.tj-sidebar {
  border: 1px solid #edf3f8;
  border-radius: 6px;
  background: #fff;
  padding: 36px 40px;
}

.tj-filter-block + .tj-filter-block {
  margin-top: 44px;
}

.tj-filter-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 32px;
  color: var(--tj-ink);
  font-size: 22px;
  font-weight: 800;
}

.tj-filter-title::after {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--tj-primary);
}

.tj-filter-list {
  display: grid;
  gap: 14px;
}

.tj-filter-list a,
.tj-radio-row {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #607185;
  font-size: 17px;
}

.tj-filter-list a.tj-active {
  color: var(--tj-primary);
  font-weight: 700;
}

.tj-radio {
  width: 22px;
  height: 22px;
  border: 1px solid #dcecf8;
  border-radius: 50%;
  background: #fff;
}

.tj-radio--active {
  border: 6px solid var(--tj-primary);
}

.tj-results-main {
  min-width: 0;
}

.tj-results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 38px;
}

.tj-results-title {
  display: flex;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
}

.tj-results-title h1 {
  margin: 0;
  color: var(--tj-ink);
  font-size: 31px;
  line-height: 1.1;
}

.tj-results-title span {
  color: var(--tj-primary);
  font-size: 20px;
}

.tj-sort {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #111;
  font-size: 18px;
}

.tj-sort select {
  width: 350px;
  height: 84px;
  padding: 0 24px;
  color: #5c6d81;
  border: 1px solid #dcecf8;
  border-radius: 6px;
  background: #fff;
}

.tj-view-buttons {
  display: flex;
  gap: 14px;
}

.tj-view-buttons button {
  width: 84px;
  height: 84px;
  border: 1px solid #dcecf8;
  border-radius: 6px;
  color: #607185;
  background: #fff;
  cursor: pointer;
}

.tj-view-buttons button.tj-active {
  color: #fff;
  border-color: var(--tj-primary);
  background: var(--tj-primary);
}

.tj-active-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-bottom: 40px;
  padding: 0 17px;
  color: #fff;
  background: var(--tj-primary);
  border-radius: 22px;
  font-size: 17px;
}

.tj-active-chip span {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  color: var(--tj-primary);
  background: #fff;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 800;
}

.tj-results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.tj-results-grid.tj-results-grid--list {
  grid-template-columns: 1fr;
}

.tj-results-grid--list .tj-listing-card {
  display: grid;
  grid-template-columns: 360px 1fr;
}

.tj-results-grid--list .tj-listing-card__image {
  aspect-ratio: auto;
  min-height: 260px;
}

.tj-single {
  padding: 70px 0 96px;
  background: #f8fbff;
}

.tj-single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 36px;
}

.tj-single-card,
.tj-contact-card {
  border: 1px solid #edf3f8;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(47, 64, 80, 0.06);
}

.tj-single-image {
  aspect-ratio: 1.72 / 1;
  overflow: hidden;
  border-radius: 6px 6px 0 0;
}

.tj-single-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tj-single-body {
  padding: 36px;
}

.tj-single-body h1 {
  margin: 0 0 18px;
  font-size: 39px;
  line-height: 1.12;
}

.tj-single-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin: 24px 0 34px;
}

.tj-single-description {
  color: #607185;
  font-size: 18px;
}

.tj-contact-card {
  padding: 30px;
}

.tj-contact-card h2 {
  margin: 0 0 22px;
  font-size: 25px;
}

.tj-contact-card input,
.tj-contact-card textarea,
.tj-modal input {
  width: 100%;
  margin-bottom: 14px;
  padding: 17px 18px;
  color: var(--tj-ink);
  border: 1px solid #dfeaf3;
  border-radius: 6px;
  outline: 0;
  background: #fff;
}

.tj-contact-card textarea {
  min-height: 130px;
  resize: vertical;
}

.tj-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 26px;
  color: #fff;
  border: 0;
  border-radius: 6px;
  background: var(--tj-primary);
  cursor: pointer;
  font-weight: 800;
}

.tj-button:hover {
  background: var(--tj-primary-dark);
}

.tj-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
}

.tj-modal.tj-open {
  display: block;
}

.tj-modal__mask {
  position: absolute;
  inset: 0;
  background: rgba(35, 48, 61, 0.52);
}

.tj-modal__panel {
  position: relative;
  width: min(520px, calc(100% - 32px));
  margin: 7vh auto;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22);
}

.tj-modal__close {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: var(--tj-ink);
  background: #edf6ff;
  cursor: pointer;
  font-size: 24px;
}

.tj-login-form__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
}

.tj-login-form__tab {
  min-height: 76px;
  border: 0;
  color: var(--tj-ink);
  background: #eef6fc;
  cursor: pointer;
  font-size: 20px;
  font-weight: 800;
}

.tj-login-form__tab.tj-active {
  color: #fff;
  background: var(--tj-primary);
}

.tj-login-form__inner {
  padding: 36px;
}

.tj-login-pane {
  display: none;
}

.tj-login-pane.tj-active {
  display: block;
}

.tj-login-pane h2 {
  margin: 0 0 22px;
  color: var(--tj-ink);
  font-size: 28px;
}

.tj-login-note {
  margin: 16px 0 0;
  color: #7a8b9d;
  font-size: 14px;
}

.tj-footer {
  padding: 48px 0;
  color: #dce8f3;
  background: #293846;
}

.tj-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.tj-footer .tj-logo {
  color: #fff;
  font-size: 26px;
}

.tj-footer p {
  margin: 0;
  color: #afbfce;
}

@media (max-width: 1180px) {
  .tj-nav {
    gap: 24px;
  }

  .tj-header-actions {
    gap: 14px;
  }

  .tj-hero-inner,
  .tj-results-layout,
  .tj-single-layout {
    grid-template-columns: 1fr;
  }

  .tj-sidebar {
    order: 2;
  }
}

@media (max-width: 940px) {
  .tj-header-inner {
    min-height: 82px;
  }

  .tj-nav,
  .tj-header-actions {
    display: none;
  }

  .tj-mobile-menu {
    display: grid;
    place-items: center;
  }

  .tj-header-inner.tj-menu-open .tj-nav,
  .tj-header-inner.tj-menu-open .tj-header-actions {
    position: absolute;
    left: 0;
    right: 0;
    display: grid;
    justify-content: stretch;
    padding: 22px 24px;
    background: #fff;
    border-bottom: 1px solid var(--tj-line);
  }

  .tj-header-inner.tj-menu-open .tj-nav {
    top: 82px;
  }

  .tj-header-inner.tj-menu-open .tj-header-actions {
    top: 280px;
  }

  .tj-categories,
  .tj-listing-grid,
  .tj-results-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tj-search-box,
  .tj-search-strip .tj-search-box {
    grid-template-columns: 1fr;
    border-radius: 6px;
  }

  .tj-search-field {
    border-right: 0;
    border-bottom: 1px solid #e5eef6;
  }

  .tj-search-button,
  .tj-search-strip .tj-search-button {
    min-height: 72px;
    border-radius: 0 0 6px 6px;
  }

  .tj-results-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .tj-sort {
    width: 100%;
    flex-wrap: wrap;
  }

  .tj-sort select {
    width: min(100%, 350px);
  }
}

@media (max-width: 640px) {
  .tj-container {
    width: min(100% - 28px, var(--tj-container));
  }

  .tj-hero-inner {
    padding: 48px 0 56px;
  }

  .tj-hero-media,
  .tj-categories,
  .tj-listing-grid,
  .tj-results-grid,
  .tj-results-grid--list .tj-listing-card {
    grid-template-columns: 1fr;
  }

  .tj-hero-photo,
  .tj-hero-photo img {
    min-height: 310px;
  }

  .tj-category-card {
    margin-top: 54px;
  }

  .tj-results {
    padding-top: 46px;
  }

  .tj-sidebar {
    padding: 28px 24px;
  }

  .tj-view-buttons button,
  .tj-sort select {
    height: 64px;
  }

  .tj-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
