/* =========================================
   ALO DOBRY DEN — Redesigned Styles
   ========================================= */

@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600&display=swap");

:root {
  --primary: #00aeef;
  --primary-dark: #0087c0;
  --primary-glow: rgba(0, 174, 239, 0.18);
  --accent: #ff6b35;
  --bg-light: #f0f8fd;
  --bg-white: #ffffff;
  --text-dark: #0d1b2a;
  --text-mid: #4a5568;
  --text-light: #94a3b8;
  --border: #cce8f5;
  --card-shadow: 0 2px 16px rgba(0, 100, 160, 0.08);
  --card-shadow-hover: 0 12px 40px rgba(0, 174, 239, 0.18);
  --radius: 16px;
  --radius-sm: 10px;
  --header-height: 88px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}

/* =========================================
   HEADER
   ========================================= */

.site-header {
  background: #fff;
  border-bottom: 1.5px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: 0 4px 24px rgba(0, 100, 160, 0.07);
}

.header-inner {
  display: flex;
  align-items: center;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 28px;
  height: var(--header-height);
  gap: 20px;
}

/* LEFT: YouTube */
.header-youtube {
  flex-shrink: 0;
  width: 190px;
  height: 70px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--border);
  box-shadow: 0 4px 14px rgba(0, 174, 239, 0.12);
  transition: box-shadow 0.2s;
}

.header-youtube:hover {
  box-shadow: 0 6px 22px rgba(0, 174, 239, 0.22);
}

.header-youtube iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* CENTER: Nav + language */
.header-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-all-btn {
  background: var(--primary);
  border: none;
  color: #fff;
  border-radius: 30px;
  padding: 8px 20px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 14px var(--primary-glow);
  margin-right: 8px;
}

.nav-all-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--primary-glow);
}

.header-nav a {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-mid);
  padding: 8px 14px;
  border-radius: 24px;
  transition: all 0.2s;
  white-space: nowrap;
  position: relative;
}

.header-nav a::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.25s;
}

.header-nav a:hover {
  color: var(--primary);
}
.header-nav a:hover::after,
.header-nav a.active::after {
  width: 60%;
}
.header-nav a.active {
  color: var(--primary);
  font-weight: 700;
}

/* Lang select */
.header-bottom-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-select-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.lang-select-wrap::before {
  content: "🌐";
  position: absolute;
  left: 11px;
  font-size: 13px;
  pointer-events: none;
  z-index: 1;
}

.lang-select {
  appearance: none;
  background: var(--bg-light);
  border: 1.5px solid var(--border);
  border-radius: 30px;
  padding: 5px 30px 5px 32px;
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-dark);
  transition: all 0.2s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2300AEEF' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-color: var(--bg-light);
}

.lang-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  background-color: #fff;
}

.lang-select:hover {
  border-color: var(--primary);
  background-color: #fff;
}

/* RIGHT: Brand */
.header-brand {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.brand-name {
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: 16px;
  color: var(--primary);
  letter-spacing: -0.3px;
  line-height: 1.1;
}

.brand-slogan {
  font-size: 10.5px;
  color: var(--text-light);
  font-weight: 500;
  text-align: right;
  line-height: 1.4;
}

.btn-add-ad {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #ff6b35 0%, #e8552a 100%);
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 8px 18px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.22s;
  box-shadow: 0 4px 14px rgba(255, 107, 53, 0.3);
  white-space: nowrap;
  text-decoration: none;
  margin-top: 2px;
}

.btn-add-ad:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(255, 107, 53, 0.4);
  color: #fff;
}

/* Mobile hamburger - hidden on desktop */
.mobile-menu-btn {
  display: none;
}

/* =========================================
   MOBILE HEADER (≤768px)
   ========================================= */

@media (max-width: 768px) {
  :root {
    --header-height: auto;
  }

  .header-inner {
    flex-direction: column;
    align-items: stretch;
    height: auto;
    padding: 12px 16px 10px;
    gap: 0;
  }

  .header-top-row {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .header-youtube {
    width: 130px;
    height: 58px;
    flex-shrink: 0;
  }

  .header-brand {
    flex: 1;
    align-items: flex-start;
  }

  .brand-name {
    font-size: 14px;
  }
  .brand-slogan {
    text-align: left;
    font-size: 10px;
  }

  .btn-add-ad {
    font-size: 11px;
    padding: 7px 14px;
    margin-top: 4px;
  }

  .header-center {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: var(--bg-light);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    width: 44px;
    height: 44px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s;
  }

  .mobile-menu-btn:hover {
    border-color: var(--primary);
    background: rgba(0, 174, 239, 0.08);
  }

  .hamburger-line {
    width: 20px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s;
    transform-origin: center;
  }

  .mobile-menu-btn.open .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .mobile-menu-btn.open .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .mobile-menu-btn.open .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* =========================================
   MOBILE POPUP MENU
   ========================================= */

.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13, 27, 42, 0.6);
  z-index: 990;
  backdrop-filter: blur(4px);
  animation: fadeOverlay 0.2s ease;
}

@keyframes fadeOverlay {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.mobile-nav-overlay.open {
  display: block;
}

.mobile-nav-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  height: 100vh;
  background: #fff;
  z-index: 995;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 8px 0 50px rgba(0, 100, 160, 0.2);
}

.mobile-nav-popup.open {
  transform: translateX(0);
}

.mobile-nav-header {
  padding: 22px 20px 18px;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, var(--primary) 0%, #005a8a 100%);
}

.mobile-nav-brand-name {
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: 16px;
  color: #fff;
}

.mobile-nav-brand-slogan {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 3px;
}

.mobile-nav-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  line-height: 1;
}

.mobile-nav-close:hover {
  background: rgba(255, 255, 255, 0.35);
}

.mobile-nav-lang {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-light);
}

.mobile-nav-lang .lang-select-wrap {
  width: 100%;
}
.mobile-nav-lang .lang-select {
  width: 100%;
}

.mobile-nav-links {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

.mobile-nav-links a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 20px;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-dark);
  border-left: 3px solid transparent;
  transition: all 0.18s;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
  color: var(--primary);
  background: var(--bg-light);
  border-left-color: var(--primary);
}

.mobile-nav-links .nav-icon {
  font-size: 20px;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}

.mobile-nav-footer {
  padding: 16px 20px;
  border-top: 1.5px solid var(--border);
}

.mobile-nav-footer .btn-add-ad {
  width: 100%;
  justify-content: center;
  padding: 13px;
  font-size: 14px;
  border-radius: 14px;
}

/* =========================================
   HERO
   ========================================= */

.hero-section {
  background: linear-gradient(125deg, #00c6ff 0%, #0072ff 100%);
  padding: 64px 28px 76px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
}

.hero-section::after {
  content: "";
  position: absolute;
  left: -60px;
  bottom: -100px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
}

.hero-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 12px;
}

.hero-text h1 {
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: clamp(40px, 5.5vw, 70px);
  color: #fff;
  line-height: 1.05;
  margin-bottom: 16px;
  letter-spacing: -1.5px;
}

.hero-text p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.82);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-cta-primary {
  background: #fff;
  color: var(--primary-dark);
  border: none;
  border-radius: 50px;
  padding: 15px 36px;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.22s;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-cta-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.25);
  color: var(--primary-dark);
}

.hero-cta-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 50px;
  padding: 13px 28px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.22s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(4px);
}

.hero-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: #fff;
  color: #fff;
  transform: translateY(-2px);
}

.hero-image {
  flex-shrink: 0;
  width: 340px;
}

.hero-image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
}

.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 36px;
}

.hero-stat-num {
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: 22px;
  color: #fff;
  line-height: 1;
}

.hero-stat-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 3px;
}

/* =========================================
   CATEGORIES
   ========================================= */

.section {
  max-width: 1320px;
  margin: 0 auto;
  padding: 56px 28px;
}

.section-header {
  text-align: center;
  margin-bottom: 36px;
}

.section-eyebrow {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}

.section-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: 30px;
  color: var(--text-dark);
  letter-spacing: -0.5px;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 16px;
}

.category-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 22px 12px 18px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 2px solid transparent;
  box-shadow: var(--card-shadow);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-glow), transparent);
  opacity: 0;
  transition: opacity 0.25s;
}

.category-card:hover {
  border-color: var(--primary);
  transform: translateY(-6px) scale(1.03);
  box-shadow: var(--card-shadow-hover);
}

.category-card:hover::before {
  opacity: 1;
}

.category-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  background: var(--bg-light);
  transition:
    transform 0.25s,
    background 0.25s;
}

.category-card:hover .category-icon {
  transform: scale(1.1);
  background: #fff;
}

.category-label {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: var(--text-dark);
  position: relative;
}

/* =========================================
   LISTINGS PAGE
   ========================================= */

.listings-layout {
  max-width: 1320px;
  margin: 0 auto;
  padding: 32px 28px;
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.filters-sidebar {
  width: 268px;
  flex-shrink: 0;
  background: #fff;
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--card-shadow);
  position: sticky;
  top: 100px;
  border: 1.5px solid var(--border);
}

.filters-sidebar h2 {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 22px;
}

.filter-select {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 11px 16px;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  color: var(--text-dark);
  margin-bottom: 12px;
  appearance: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' fill='none'%3E%3Cpath d='M1 1l4.5 4.5L10 1' stroke='%2300AEEF' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    no-repeat right 14px center;
  background-color: var(--bg-light);
  transition: all 0.2s;
}

.filter-select:focus {
  outline: none;
  border-color: var(--primary);
  background-color: #fff;
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.filter-row {
  display: flex;
  gap: 8px;
}
.filter-row .filter-select {
  margin-bottom: 12px;
}

.filter-reset {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  margin-bottom: 22px;
  font-family: "Inter", sans-serif;
  font-weight: 600;
}

.filter-divider {
  height: 1px;
  background: var(--border);
  margin: 16px 0;
}

.filter-stats {
  font-size: 12.5px;
  color: var(--text-mid);
  line-height: 2.1;
}

.filter-stats strong {
  color: var(--text-dark);
  font-weight: 700;
}

.show-more-btn {
  background: none;
  border: 1.5px solid var(--border);
  color: var(--primary);
  font-size: 12px;
  cursor: pointer;
  padding: 7px 14px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  margin-top: 8px;
  transition: all 0.2s;
}

.show-more-btn:hover {
  border-color: var(--primary);
  background: var(--bg-light);
}

.listings-main {
  flex: 1;
  min-width: 0;
}

.breadcrumb {
  font-size: 12.5px;
  color: var(--text-light);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--primary);
  font-weight: 500;
}

.listings-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  padding: 14px 18px;
  background: #fff;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
}

.listings-count {
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-mid);
}

.listings-count strong {
  color: var(--primary);
  font-weight: 800;
}

.sort-btn {
  background: var(--bg-light);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 7px 16px;
  font-family: "Montserrat", sans-serif;
  font-size: 12.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--text-dark);
  transition: all 0.2s;
}

.sort-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.listings-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.listing-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  display: flex;
  transition: all 0.28s cubic-bezier(0.34, 1.2, 0.64, 1);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  border: 1.5px solid transparent;
}

.listing-card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-3px);
  border-color: var(--border);
}

.listing-card-img {
  width: 240px;
  min-height: 185px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.listing-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}

.listing-card:hover .listing-card-img img {
  transform: scale(1.06);
}

.listing-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--accent);
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}

.listing-card-body {
  padding: 20px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}

.listing-card-cat {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.listing-card-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--text-dark);
  line-height: 1.35;
}

.listing-card-price {
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: 24px;
  color: var(--text-dark);
  letter-spacing: -0.5px;
}

.listing-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--text-light);
}

.listing-card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.listing-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag {
  background: var(--bg-light);
  color: var(--primary-dark);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid var(--border);
}

.listing-card-actions {
  display: flex;
  align-items: flex-start;
  padding: 14px 14px 14px 0;
  flex-shrink: 0;
}

.listing-card-fav {
  background: none;
  border: 1.5px solid var(--border);
  color: var(--text-light);
  font-size: 18px;
  cursor: pointer;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.listing-card-fav:hover {
  color: #e74c3c;
  border-color: #e74c3c;
  background: #fff0f0;
}

/* =========================================
   AD DETAIL PAGE
   ========================================= */

.ad-detail-layout {
  max-width: 1320px;
  margin: 0 auto;
  padding: 28px 28px 60px;
}

.ad-breadcrumb {
  font-size: 12.5px;
  color: var(--text-light);
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.ad-breadcrumb a {
  color: var(--primary);
  font-weight: 500;
}

.ad-main-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--card-shadow);
  padding: 32px;
  display: flex;
  gap: 40px;
  margin-bottom: 44px;
  border: 1.5px solid var(--border);
}

.ad-gallery {
  flex-shrink: 0;
  width: 540px;
}

.gallery-main {
  width: 100%;
  height: 360px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 12px;
  background: var(--bg-light);
  cursor: zoom-in;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.gallery-main:hover img {
  transform: scale(1.04);
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.gallery-thumb {
  height: 74px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
  opacity: 0.75;
}

.gallery-thumb:hover {
  opacity: 1;
}
.gallery-thumb.active {
  border-color: var(--primary);
  opacity: 1;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ad-info {
  flex: 1;
  min-width: 0;
}

.ad-info-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.ad-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 24px;
  color: var(--text-dark);
  line-height: 1.3;
}

.ad-fav-btn {
  background: none;
  border: 1.5px solid var(--border);
  color: var(--text-light);
  font-size: 20px;
  cursor: pointer;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.ad-fav-btn:hover {
  color: #e74c3c;
  border-color: #e74c3c;
  background: #fff0f0;
}

.ad-meta {
  display: flex;
  gap: 18px;
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 20px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.ad-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.ad-price {
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: 34px;
  color: var(--text-dark);
  margin-bottom: 22px;
  letter-spacing: -1px;
}

.ad-desc h3 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 12px;
}

.ad-desc p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-mid);
  margin-bottom: 10px;
}

.btn-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 15px 40px;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  margin-top: 22px;
  transition: all 0.22s;
  box-shadow: 0 8px 24px var(--primary-glow);
}

.btn-call:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0, 174, 239, 0.35);
}

.similar-section {
  margin-top: 44px;
}

.similar-section h2 {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 22px;
  margin-bottom: 20px;
}

.similar-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.similar-scroll::-webkit-scrollbar {
  height: 5px;
}
.similar-scroll::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 10px;
}

.similar-card {
  flex-shrink: 0;
  width: 186px;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.22s;
  text-decoration: none;
  color: inherit;
  border: 1.5px solid transparent;
}

.similar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--border);
}

.similar-card-img {
  height: 122px;
  overflow: hidden;
}
.similar-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.similar-card:hover .similar-card-img img {
  transform: scale(1.06);
}

.similar-card-body {
  padding: 10px 12px 12px;
}

.similar-card-title {
  font-size: 11.5px;
  color: var(--text-mid);
  margin-bottom: 5px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.similar-card-price {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 14px;
  color: var(--text-dark);
}

.similar-card-meta {
  font-size: 10px;
  color: var(--text-light);
  margin-top: 4px;
}

/* =========================================
   FOOTER
   ========================================= */

.site-footer {
  background: #0d1b2a;
  color: rgba(255, 255, 255, 0.7);
  padding: 50px 28px 28px;
  margin-top: 20px;
}

.footer-grid {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}

.footer-brand-name {
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: 17px;
  color: var(--primary);
  margin-bottom: 6px;
}

.footer-brand-slogan {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 20px;
  line-height: 1.6;
}

.footer-col h4 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col ul {
  list-style: none;
}
.footer-col ul li {
  margin-bottom: 9px;
}

.footer-col ul li a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: var(--primary);
}

.footer-bottom {
  max-width: 1320px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.35);
  transition: color 0.2s;
}
.footer-bottom a:hover {
  color: rgba(255, 255, 255, 0.6);
}

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 1024px) {
  .listing-card-img {
    width: 210px;
  }
  .ad-gallery {
    width: 420px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .listings-layout {
    flex-direction: column;
  }
  .filters-sidebar {
    width: 100%;
    position: static;
  }
  .ad-main-card {
    flex-direction: column;
  }
  .ad-gallery {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .listing-card {
    flex-direction: column;
  }
  .listing-card-img {
    width: 100%;
    height: 220px;
  }
  .listing-card-actions {
    padding: 0 14px 14px;
    justify-content: flex-end;
  }
  .hero-section {
    padding: 44px 20px 54px;
  }
  .hero-image {
    display: none;
  }
  .hero-text p {
    font-size: 14px;
  }
  .hero-stats {
    gap: 20px;
  }
  .categories-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
  .category-icon {
    width: 50px;
    height: 50px;
    font-size: 22px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .section {
    padding: 36px 20px;
  }
  .listings-layout {
    padding: 20px 16px;
  }
  .ad-detail-layout {
    padding: 16px 16px 40px;
  }
}

@media (max-width: 480px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .gallery-thumbs {
    grid-template-columns: repeat(4, 1fr);
  }
  .hero-text h1 {
    font-size: 32px;
  }
  .hero-actions {
    flex-direction: column;
    gap: 10px;
  }
  .hero-cta-primary,
  .hero-cta-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* =========================================
   HEADER-TOP-ROW fix
   ========================================= */

/* Desktop: top row is transparent / flex */
.header-top-row {
  display: contents; /* On desktop let children flow into header-inner flex */
}

/* On mobile, header-inner is column; header-top-row becomes a real flex row */
@media (max-width: 768px) {
  .header-top-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
  }
}

/* =========================================
   WordPress-specific styles
   ========================================= */

/* Pagination */
.page-numbers {
  display: flex;
  gap: 8px;
  list-style: none;
  padding: 0;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}

.page-numbers li a,
.page-numbers li span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--text-dark);
  background: #fff;
  transition: all 0.2s;
  text-decoration: none;
}

.page-numbers li .current,
.page-numbers li a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.page-numbers li .prev,
.page-numbers li .next {
  width: auto;
  padding: 0 16px;
}

/* Entry content */
.entry-content p {
  margin-bottom: 1em;
  line-height: 1.8;
  color: var(--text-mid);
}
.entry-content h2,
.entry-content h3 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  margin: 1.5em 0 0.5em;
}
.entry-content ul,
.entry-content ol {
  padding-left: 1.5em;
  margin-bottom: 1em;
}
.entry-content a {
  color: var(--primary);
}

/* WP menu items in header-nav */
.header-nav .menu {
  display: contents;
}
.header-nav .menu-item a {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-mid);
  padding: 8px 14px;
  border-radius: 24px;
  transition: all 0.2s;
  white-space: nowrap;
  position: relative;
  display: block;
}
.header-nav .menu-item a:hover,
.header-nav .current-menu-item > a {
  color: var(--primary);
}
