/*
Theme Name: Shuqaq (Arabic Theme)
Theme URI: https://shuqaq.com
Author: Shuqaq Team
Author URI: https://shuqaq.com
Description: Premium travel affiliate theme for apartment discovery in Arabic. Clean, minimal, image-focused, full RTL support.
Version: 2.3.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GPL v2 or later
Text Domain: shuqaq
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --color-navy: #0D1B2A;
  --color-navy-mid: #1A2E44;
  --color-navy-light: #253C55;
  --color-blue: #1565C0;
  --color-blue-mid: #1976D2;
  --color-blue-light: #42A5F5;
  --color-cyan: #20C4D6;
  --color-cyan-hover: #00A9BD;
  --color-sky: #EEF4FB;
  --color-gold: #C9A84C;
  --color-gold-light: #E2C97E;
  --color-beige: #F5F0E8;
  --color-white: #FFFFFF;
  --color-gray-50: #F9FAFB;
  --color-gray-100: #F3F4F6;
  --color-gray-200: #E5E7EB;
  --color-gray-300: #D1D5DB;
  --color-gray-400: #9CA3AF;
  --color-gray-500: #6B7280;
  --color-gray-600: #4B5563;
  --color-gray-700: #374151;
  --color-gray-800: #1F2937;
  --color-gray-900: #111827;
  --color-text: #1A1A2E;
  --color-text-muted: #6B7280;
  --color-border: #E5E7EB;

  --font-heading: 'Cairo', 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Tajawal', 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.06);
  --shadow-xl: 0 24px 64px rgba(0,0,0,0.12);

  --transition: 0.25s ease;
  --transition-slow: 0.4s ease;

  --container-max: 1280px;
  --container-wide: 1440px;
  --section-gap: 88px;
  --section-gap-sm: 56px;
}

/* ============================================================
   RESET & RTL BASE (STRICT MOBILE OVERFLOW FIX)
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; max-width: 100%; }

html, body {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  direction: rtl;
  text-align: right;
  max-width: 100% !important;
  overflow-x: hidden !important;
  width: 100%;
  position: relative;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, iframe, video { display: block; max-width: 100% !important; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, select, textarea { font: inherit; text-align: right; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text);
}

h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }

p { color: var(--color-gray-600); line-height: 1.8; }

.text-sm  { font-size: 0.875rem; }
.text-xs  { font-size: 0.75rem; }
.text-muted { color: var(--color-text-muted); }
.text-navy  { color: var(--color-navy); }
.text-gold  { color: var(--color-gold); }
.text-center { text-align: center; }
.font-body { font-family: var(--font-body); }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.container-wide {
  width: 100%;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 40px;
}

.section { padding: var(--section-gap) 0; }
.section-sm { padding: var(--section-gap-sm) 0; }
.section-light { background: var(--color-gray-50); }
.section-sky  { background: var(--color-sky); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-gap-sm { gap: 8px; }
.flex-gap { gap: 16px; }
.flex-gap-lg { gap: 32px; }

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  gap: 24px;
}

.section-header .eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-gold);
  margin-bottom: 10px;
}

.section-header h2 { margin-bottom: 12px; }
.section-header p { max-width: 520px; font-size: 1rem; }

.section-header .view-all-link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-blue);
  white-space: nowrap;
  transition: gap var(--transition);
}
.section-header .view-all-link:hover { gap: 10px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 700;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-navy);
  color: var(--color-white);
}
.btn-primary:hover {
  background: var(--color-blue);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(21,101,192,0.25);
}

.btn-outline {
  background: transparent;
  color: var(--color-navy);
  border: 1.5px solid var(--color-border);
}
.btn-outline:hover {
  border-color: var(--color-navy);
  background: var(--color-navy);
  color: white;
}

.btn-gold {
  background: var(--color-gold);
  color: var(--color-navy);
}
.btn-gold:hover {
  background: var(--color-gold-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(201,168,76,0.3);
}

.btn-white {
  background: white;
  color: var(--color-navy);
  box-shadow: var(--shadow-md);
}
.btn-white:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

.btn-lg { padding: 16px 40px; font-size: 1.05rem; border-radius: var(--radius-full); }
.btn-sm { padding: 8px 20px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ============================================================
   BADGES & CHIPS
   ============================================================ */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  background: var(--color-white);
  color: var(--color-gray-700);
  border: 1.5px solid var(--color-border);
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
}
.chip:hover, .chip.active {
  background: var(--color-navy);
  color: white;
  border-color: var(--color-navy);
}

.badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
}
.badge-gold { background: var(--color-gold); color: var(--color-navy); }
.badge-navy { background: var(--color-navy); color: white; }
.badge-white { background: white; color: var(--color-navy); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: all var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.site-header.transparent {
  background: transparent;
  border-bottom-color: transparent;
}

.site-header.transparent .nav-link,
.site-header.transparent .site-title {
  color: white;
}
.site-header.transparent .nav-cta {
  background: rgba(255,255,255,0.15);
  color: white;
  border-color: rgba(255,255,255,0.3);
}
.site-header.transparent .hamburger span { background: white; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  padding: 0 40px;
  max-width: var(--container-wide);
  margin: 0 auto;
}

.site-title {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--color-navy);
}
.site-title span { color: var(--color-gold); }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  display: inline-block;
  padding: 8px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-gray-700);
  border-radius: var(--radius-full);
  transition: all var(--transition);
}

.nav-link:hover {
  color: var(--color-navy);
  background: var(--color-gray-50);
}

.nav-cta {
  margin-right: 8px;
  padding: 10px 24px;
  background: var(--color-navy);
  color: white;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 700;
  transition: all var(--transition);
}

.nav-cta:hover {
  background: var(--color-blue);
  box-shadow: 0 4px 16px rgba(21,101,192,0.3);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  gap: 5px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.hamburger:hover { background: var(--color-gray-100); }
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-navy);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav Drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: 76px;
  left: 0;
  right: 0;
  background: white;
  border-bottom: 1px solid var(--color-border);
  padding: 24px;
  z-index: 999;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  transform: translateY(-10px);
  opacity: 0;
  transition: all var(--transition);
  pointer-events: none;
}
.mobile-nav.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-nav .nav-link {
  padding: 14px 16px;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}
.mobile-nav .nav-cta {
  margin: 8px 0 0;
  text-align: center;
  padding: 14px;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/images/hero.jpg');
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 8s ease;
}
.hero:hover .hero-bg { transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,20,40,0.3) 0%,
    rgba(10,20,40,0.45) 50%,
    rgba(10,20,40,0.75) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 24px;
  padding-top: 90px;
}

.hero-title {
  font-size: clamp(2.8rem, 6.5vw, 5rem);
  font-weight: 800;
  color: white;
  line-height: 1.2;
  margin-bottom: 16px;
  animation: fadeInUp 0.8s ease 0.1s both;
  text-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  color: rgba(255,255,255,0.92);
  margin-bottom: 36px;
  font-family: var(--font-body);
  font-weight: 400;
  animation: fadeInUp 0.8s ease 0.2s both;
}

/* ============================================================
   EXACT MATCH TO REFERENCE SCREENSHOT: SEARCH BAR & CYAN PILLS
   ============================================================ */
.search-hero-container {
  max-width: 760px;
  margin: 0 auto;
  animation: fadeInUp 0.8s ease 0.3s both;
}

/* 1. Rounded White Search Bar Input Box */
.search-pill-bar {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 9999px;
  height: 60px;
  padding: 0 24px;
  gap: 12px;
  box-shadow: 0 16px 50px rgba(0,0,0,0.24);
  transition: all var(--transition);
}

.search-pill-bar:focus-within {
  box-shadow: 0 20px 60px rgba(0,0,0,0.35), 0 0 0 3px rgba(32,196,214,0.4);
}

.search-pill-icon {
  font-size: 1.25rem;
  color: #64748b;
  flex-shrink: 0;
}

.search-pill-bar input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-navy);
  padding: 0;
  text-align: right;
}

.search-pill-bar input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

/* 2. Popular Searches Section */
.popular-searches-block {
  margin-top: 24px;
  text-align: right;
}

.popular-searches-title {
  display: block;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.92);
  font-weight: 600;
  margin-bottom: 12px;
}

.popular-tags-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
}

/* 3. Cyan / Turquoise Pill Tags (Matching Screenshot) */
.cyan-pill-tag {
  display: inline-block;
  background: #20C4D6;
  color: white;
  padding: 8px 22px;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 700;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(32,196,214,0.3);
}

.cyan-pill-tag:hover {
  background: #00A9BD;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(32,196,214,0.45);
}

/* ============================================================
   CATEGORY CHIPS
   ============================================================ */
.chips-bar {
  padding: 24px 0;
  border-bottom: 1px solid var(--color-border);
  background: white;
  position: sticky;
  top: 76px;
  z-index: 100;
}

.chips-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.chips-scroll::-webkit-scrollbar { display: none; }

/* ============================================================
   DESTINATIONS SECTION
   ============================================================ */
.destinations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.destination-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  background: var(--color-gray-200);
  aspect-ratio: 4/3;
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

.destination-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.destination-card .card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.destination-card:hover .card-img { transform: scale(1.07); }

.destination-card .card-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,20,40,0.85) 0%,
    rgba(10,20,40,0.2) 50%,
    transparent 100%
  );
  transition: opacity var(--transition);
}

.destination-card .card-body {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  padding: 28px 24px 24px;
}

.destination-card .city-name {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
}

.destination-card .apt-count {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
}

.destination-card .apt-count::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-gold);
}

.destinations-grid .destination-card:first-child {
  grid-column: span 1;
  grid-row: span 2;
  aspect-ratio: unset;
}

/* ============================================================
   APARTMENT CARDS
   ============================================================ */
.apartments-list { display: flex; flex-direction: column; gap: 28px; }

.apartment-card-h {
  display: grid;
  grid-template-columns: 340px 1fr;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: white;
  border: 1px solid var(--color-border);
  transition: all var(--transition);
  cursor: pointer;
}

.apartment-card-h:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.apartment-card-h .card-img-wrap {
  position: relative;
  overflow: hidden;
  height: 260px;
}

.apartment-card-h .card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.apartment-card-h:hover .card-img-wrap img { transform: scale(1.05); }

.apartment-card-h .card-badge {
  position: absolute;
  top: 16px;
  right: 16px;
}

.apartment-card-h .card-wishlist {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gray-500);
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.apartment-card-h .card-wishlist:hover { color: #E53E3E; transform: scale(1.1); }

.apartment-card-h .card-info {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  text-align: right;
}

.apartment-card-h .card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.apartment-card-h .card-location {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

.apartment-card-h .card-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 6px;
  line-height: 1.35;
}

.apartment-card-h .card-desc {
  font-size: 0.9rem;
  color: var(--color-gray-500);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stars {
  display: flex;
  gap: 2px;
  color: #F59E0B;
  font-size: 0.85rem;
}

.rating-number {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-navy);
}

.rating-count {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.card-specs {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--color-gray-600);
}

.facilities-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.facility-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--color-sky);
  font-size: 0.8rem;
  color: var(--color-navy);
  font-weight: 600;
}

.card-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

.card-price .amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-navy);
  font-family: var(--font-heading);
}
.card-price .period {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-right: 2px;
}

/* Vertical Apartment Card Grid */
.apartments-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.apartment-card-v {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: white;
  border: 1px solid var(--color-border);
  transition: all var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.apartment-card-v:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.apartment-card-v .card-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.apartment-card-v .card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.apartment-card-v:hover .card-img-wrap img { transform: scale(1.06); }

.apartment-card-v .card-body {
  padding: 20px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  text-align: right;
}

.apartment-card-v .card-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ============================================================
   INTRO SECTION (2-Col)
   ============================================================ */
.intro-section { background: white; }

.intro-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.intro-text { text-align: right; }
.intro-text .eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-gold);
  margin-bottom: 16px;
}

.intro-text h2 { margin-bottom: 20px; }

.intro-text .lead {
  font-size: 1.1rem;
  color: var(--color-gray-600);
  margin-bottom: 32px;
  line-height: 1.85;
}

.intro-features { display: flex; flex-direction: column; gap: 20px; margin-bottom: 40px; }

.intro-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.intro-feature .feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-sky);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.intro-feature h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 4px;
  font-family: var(--font-body);
}
.intro-feature p { font-size: 0.9rem; margin: 0; }

.intro-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.intro-images .img-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  grid-row: span 2;
  aspect-ratio: 3/4;
}

.intro-images .img-main img { width: 100%; height: 100%; object-fit: cover; }

.intro-images .img-sm {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.intro-images .img-sm img { width: 100%; height: 100%; object-fit: cover; }

.intro-images .img-badge {
  background: var(--color-navy);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 20px;
  aspect-ratio: 4/3;
}
.intro-images .img-badge .big-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-gold);
}
.intro-images .img-badge .label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  margin-top: 4px;
}

/* ============================================================
   EXPERIENCE CARDS
   ============================================================ */
.experience-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.experience-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 2/3;
  cursor: pointer;
  background: var(--color-gray-200);
  transition: transform var(--transition-slow);
}

.experience-card:hover { transform: translateY(-6px); }

.experience-card .card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.experience-card:hover .card-img { transform: scale(1.08); }

.experience-card .card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,20,40,0.85) 0%, rgba(10,20,40,0.1) 60%, transparent 100%);
}

.experience-card .card-body {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  padding: 20px 18px;
  text-align: right;
}

.experience-card .exp-name {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
}

.experience-card .exp-count {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.8);
}

.experience-card .exp-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.exp-beach   { background: linear-gradient(135deg, #0EA5E9, #0369A1); }
.exp-luxury  { background: linear-gradient(135deg, #78350F, #C9A84C); }
.exp-family  { background: linear-gradient(135deg, #16A34A, #166534); }
.exp-city    { background: linear-gradient(135deg, #4338CA, #1D1C45); }
.exp-mountain{ background: linear-gradient(135deg, #374151, #64748B); }

/* ============================================================
   BLOG SECTION
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 28px;
}

.blog-card-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: white;
  border: 1px solid var(--color-border);
  transition: all var(--transition);
  text-align: right;
}

.blog-card-main:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.blog-card-main .card-img-wrap {
  position: relative;
  height: 280px;
  overflow: hidden;
}

.blog-card-main .card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.blog-card-main:hover .card-img-wrap img { transform: scale(1.04); }

.blog-card-main .card-body { padding: 28px; }
.blog-card-main .card-tag {
  display: inline-block;
  padding: 4px 14px;
  background: var(--color-sky);
  color: var(--color-blue);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.blog-card-main .card-title {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  color: var(--color-navy);
  margin-bottom: 12px;
  line-height: 1.35;
}
.blog-card-main .card-excerpt {
  font-size: 0.95rem;
  color: var(--color-gray-500);
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-main .card-footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.blog-card-main .post-meta {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.blog-sidebar { display: flex; flex-direction: column; gap: 20px; }

.blog-card-sm {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: white;
  border: 1px solid var(--color-border);
  padding: 16px;
  transition: all var(--transition);
  cursor: pointer;
  text-align: right;
}
.blog-card-sm:hover {
  border-color: transparent;
  box-shadow: var(--shadow-md);
}
.blog-card-sm .card-img-wrap {
  border-radius: var(--radius-sm);
  overflow: hidden;
  height: 90px;
}
.blog-card-sm .card-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-sm .card-body { display: flex; flex-direction: column; justify-content: center; }
.blog-card-sm .card-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-blue);
  margin-bottom: 6px;
}
.blog-card-sm .card-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--color-navy);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-sm .post-meta {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-top: 8px;
}

/* ============================================================
   SEO CONTENT BLOCK
   ============================================================ */
.seo-content-section { background: var(--color-sky); }

.seo-block {
  background: white;
  border-radius: var(--radius-lg);
  padding: 48px;
  margin-bottom: 24px;
  text-align: right;
}

.seo-block:last-child { margin-bottom: 0; }

.seo-block h3 {
  font-size: 1.55rem;
  margin-bottom: 16px;
  color: var(--color-navy);
}

.seo-block .seo-desc {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--color-gray-600);
  margin-bottom: 24px;
}

.seo-block .seo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.seo-block .seo-links a {
  color: var(--color-blue);
  font-size: 0.9rem;
  font-weight: 600;
  transition: color var(--transition);
}

.seo-block .seo-links a:hover { color: var(--color-navy); }

/* ============================================================
   TRUST SECTION
   ============================================================ */
.trust-section { background: var(--color-navy); }

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.trust-box {
  text-align: center;
  padding: 40px 24px;
}

.trust-box .trust-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 20px;
}

.trust-box h4 {
  font-size: 1.05rem;
  color: white;
  font-family: var(--font-body);
  font-weight: 700;
  margin-bottom: 10px;
}

.trust-box p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin: 0;
}

/* ============================================================
   ARCHIVE PAGE & FILTER SIDEBAR FIX
   ============================================================ */
.archive-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  padding-top: 48px;
  padding-bottom: 80px;
  align-items: start;
}

.filter-sidebar {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: sticky;
  top: 140px;
  text-align: right;
  z-index: 10;
}

.filter-group {
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}
.filter-group:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }

.filter-group-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-gray-500);
  margin-bottom: 16px;
}

.filter-select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-size: 0.95rem;
  background: white;
  cursor: pointer;
  outline: none;
  text-align: right;
}

.filter-checkboxes { display: flex; flex-direction: column; gap: 12px; }

.filter-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--color-gray-700);
  cursor: pointer;
}

.filter-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-navy);
  border-radius: 4px;
}

.archive-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.results-count {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.sort-select {
  padding: 8px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  color: var(--color-gray-700);
  cursor: pointer;
  outline: none;
  text-align: right;
}

/* ============================================================
   SINGLE APARTMENT PAGE
   ============================================================ */
.single-apartment-header {
  padding-top: 108px;
  padding-bottom: 32px;
  background: white;
  border-bottom: 1px solid var(--color-border);
  text-align: right;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}
.breadcrumb a { transition: color var(--transition); }
.breadcrumb a:hover { color: var(--color-blue); }
.breadcrumb .sep { color: var(--color-gray-300); }

.single-apt-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  padding: 48px 0 80px;
  align-items: start;
}

/* Gallery */
.apt-gallery { margin-bottom: 40px; }
.gallery-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--color-gray-200);
  margin-bottom: 12px;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--color-navy);
  transition: all var(--transition);
  z-index: 2;
}
.gallery-nav-btn:hover { background: white; box-shadow: var(--shadow-lg); }
.gallery-prev { right: 16px; }
.gallery-next { left: 16px; }
.gallery-counter {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(0,0,0,0.5);
  color: white;
  font-size: 0.82rem;
  padding: 4px 14px;
  border-radius: var(--radius-full);
}

.gallery-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.gallery-thumbs::-webkit-scrollbar { display: none; }

.gallery-thumb {
  flex-shrink: 0;
  width: 90px;
  height: 65px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--transition);
}
.gallery-thumb.active { border-color: var(--color-navy); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Apt content sections */
.apt-section { margin-bottom: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--color-border); text-align: right; }
.apt-section:last-child { border-bottom: none; }

.apt-section h3 {
  font-size: 1.3rem;
  color: var(--color-navy);
  margin-bottom: 20px;
}

.apt-specs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.apt-spec-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 12px;
  background: var(--color-sky);
  border-radius: var(--radius-md);
  text-align: center;
}
.apt-spec-item .spec-icon { font-size: 1.5rem; margin-bottom: 8px; }
.apt-spec-item .spec-label { font-size: 0.78rem; color: var(--color-text-muted); margin-bottom: 2px; }
.apt-spec-item .spec-val { font-size: 1.05rem; font-weight: 700; color: var(--color-navy); }

.apt-facilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.apt-facility {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--color-gray-700);
  padding: 10px 14px;
  background: var(--color-gray-50);
  border-radius: var(--radius-md);
}

.map-embed { border-radius: var(--radius-lg); overflow: hidden; }
.map-embed iframe { display: block; width: 100%; height: 320px; border: none; }

/* Booking Sidebar */
.booking-sidebar {
  position: sticky;
  top: 100px;
  text-align: right;
}

.booking-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
}

.booking-card .price-main {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 4px;
}
.booking-card .price-note {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.booking-divider { border: none; border-top: 1px solid var(--color-border); margin: 20px 0; }

.booking-features { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.booking-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--color-gray-600);
}
.booking-feature .bf-icon { font-size: 1rem; color: var(--color-gold); }

.booking-cta {
  display: block;
  width: 100%;
  padding: 18px;
  background: var(--color-navy);
  color: white;
  border-radius: var(--radius-full);
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
  transition: all var(--transition);
  margin-bottom: 12px;
}
.booking-cta:hover {
  background: var(--color-blue);
  box-shadow: 0 8px 28px rgba(21,101,192,0.3);
  transform: translateY(-1px);
}

.booking-affiliate-note {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  text-align: center;
  line-height: 1.6;
}

/* ============================================================
   CITY / TAXONOMY PAGE
   ============================================================ */
.city-hero {
  position: relative;
  height: 480px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 64px;
  overflow: hidden;
  text-align: right;
}

.city-hero .hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.city-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,20,40,0.88) 0%, rgba(10,20,40,0.2) 60%, transparent 100%);
}

.city-hero .hero-content {
  position: relative;
  z-index: 2;
  padding-top: 0;
}

.city-hero .city-name-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  padding: 6px 18px;
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  margin-bottom: 16px;
}

.city-hero h1 { color: white; margin-bottom: 12px; }
.city-hero .city-subtitle {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  max-width: 580px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--color-navy);
  color: rgba(255,255,255,0.7);
  text-align: right;
}

.footer-top {
  padding: 80px 0 56px;
  display: grid;
  grid-template-columns: 280px repeat(4, 1fr);
  gap: 48px;
}

.footer-brand .brand-logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
}
.footer-brand .brand-logo span { color: var(--color-gold); }

.footer-brand p {
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 24px;
}

.social-links { display: flex; gap: 10px; }

.social-link {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
  transition: all var(--transition);
}
.social-link:hover { background: var(--color-gold); color: var(--color-navy); }

.footer-col h5 {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
}

.footer-links { display: flex; flex-direction: column; gap: 12px; }

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.footer-links a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  margin: 0;
}

.footer-affiliate {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  max-width: 520px;
  text-align: right;
  line-height: 1.6;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 48px 0 0;
}

.page-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-gray-700);
  background: white;
  border: 1.5px solid var(--color-border);
  transition: all var(--transition);
  cursor: pointer;
}
.page-btn:hover { border-color: var(--color-navy); color: var(--color-navy); }
.page-btn.active { background: var(--color-navy); color: white; border-color: var(--color-navy); }
.page-btn.disabled { opacity: 0.4; cursor: default; pointer-events: none; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

.w-full { width: 100%; }
