/* ══════════════════════════════════════════════════════════
   The Landlord — Design System CSS v1
   Brand: TLL GREEN #00B288 (PANTONE 3395C)
   Fonts: Barlow ExtraBold (headings) + Poppins (body)
   ══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,400;0,600;0,700;0,800;1,400&family=Poppins:ital,wght@0,300;0,400;0,500;1,400&display=swap');

/* ── Variables ───────────────────────────────────────────── */
:root {
  --tll-green:       #00B288;
  --tll-green-dark:  #009070;
  --tll-green-light: #E6F7F2;
  --tll-forest:      #1B4D3E;
  --tll-black:       #1A1A1A;
  --tll-dark:        #2C2C2C;
  --tll-gray:        #6B7280;
  --tll-gray-light:  #D1D5DB;
  --tll-bg:          #F8F7F4;
  --tll-white:       #FFFFFF;

  --font-head:  'Barlow', sans-serif;
  --font-body:  'Poppins', sans-serif;

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

  --shadow-sm:  0 1px 4px rgba(0,0,0,.07);
  --shadow:     0 4px 20px rgba(0,0,0,.09);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.12);

  --transition: .22s ease;
  --container:  1200px;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--tll-black);
  background: var(--tll-white);
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
ul { list-style: none; }

/* ── Typography ──────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.15;
  color: var(--tll-black);
  letter-spacing: -.02em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.7rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1rem; font-weight: 700; }

.text-green  { color: var(--tll-green); }
.text-forest { color: var(--tll-forest); }
.text-gray   { color: var(--tll-gray); }
.text-sm     { font-size: .875rem; }
.text-xs     { font-size: .75rem; }
.text-lg     { font-size: 1.125rem; }
.fw-bold     { font-weight: 700; }
.fw-xbold    { font-weight: 800; }
.italic      { font-style: italic; }
.uppercase   { text-transform: uppercase; letter-spacing: .08em; }

/* ── Layout ──────────────────────────────────────────────── */
.container {
  width: min(100%, var(--container));
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}
.container--sm  { max-width: 760px; }
.container--lg  { max-width: 1400px; }
.section        { padding: clamp(3rem, 6vw, 6rem) 0; }
.section--sm    { padding: clamp(2rem, 4vw, 3.5rem) 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.flex   { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  text-align: center;
}
.btn-primary {
  background: var(--tll-green);
  color: var(--tll-white);
  border-color: var(--tll-green);
}
.btn-primary:hover {
  background: var(--tll-green-dark);
  border-color: var(--tll-green-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,178,136,.35);
}
.btn-outline {
  background: transparent;
  color: var(--tll-green);
  border-color: var(--tll-green);
}
.btn-outline:hover {
  background: var(--tll-green);
  color: var(--tll-white);
}
.btn-dark {
  background: var(--tll-black);
  color: var(--tll-white);
  border-color: var(--tll-black);
}
.btn-dark:hover { background: var(--tll-dark); border-color: var(--tll-dark); }
.btn-ghost {
  background: transparent;
  color: var(--tll-gray);
  border-color: transparent;
}
.btn-ghost:hover { color: var(--tll-black); background: var(--tll-bg); }
.btn-white {
  background: var(--tll-white);
  color: var(--tll-black);
  border-color: var(--tll-white);
}
.btn-white:hover { background: var(--tll-green); color: var(--tll-white); border-color: var(--tll-green); }
.btn-sm  { padding: .45rem 1rem; font-size: .85rem; border-radius: var(--radius-sm); }
.btn-lg  { padding: .9rem 2rem; font-size: 1.05rem; border-radius: var(--radius); }
.btn-xl  { padding: 1.1rem 2.5rem; font-size: 1.1rem; border-radius: var(--radius-lg); }
.btn-icon { padding: .6rem; border-radius: 50%; aspect-ratio: 1; }
.btn-full { width: 100%; justify-content: center; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

/* ── Forms ───────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-label {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .85rem;
  color: var(--tll-black);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--tll-gray-light);
  border-radius: var(--radius-sm);
  background: var(--tll-white);
  color: var(--tll-black);
  font-size: .95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--tll-green);
  box-shadow: 0 0 0 3px rgba(0,178,136,.12);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-hint  { font-size: .8rem; color: var(--tll-gray); }
.form-error { font-size: .82rem; color: #E53E3E; }

/* ── Header ──────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--tll-white);
  border-bottom: 1px solid rgba(0,0,0,.07);
  box-shadow: var(--shadow-sm);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 70px;
}
.logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  flex-shrink: 0;
}
a.logo {
  width: 185px;
}
.logo-img {
  height: auto;
  width: 100%;
  display: block;
}
.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--tll-green);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-icon svg { width: 24px; height: 24px; fill: none; stroke: white; stroke-width: 2; }
.logo-text {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--tll-black);
}
.logo-text span { color: var(--tll-green); }
.logo-tagline { font-size: .65rem; color: var(--tll-gray); font-family: var(--font-head); font-weight: 400; text-transform: uppercase; letter-spacing: .1em; }

.main-nav { display: flex; align-items: center; gap: .25rem; flex: 1; }
.main-nav a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .9rem;
  color: var(--tll-gray);
  padding: .4rem .8rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active { color: var(--tll-black); background: var(--tll-bg); }
.main-nav a.active { color: var(--tll-green); }

.header-actions { display: flex; align-items: center; gap: .75rem; margin-left: auto; }

/* ── Hamburger ───────────────────────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  cursor: pointer;
  padding: .4rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
  flex-shrink: 0;
}
.nav-toggle:hover { background: var(--tll-bg); }
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--tll-forest);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile nav drawer ───────────────────────────────────── */
.mobile-nav {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  z-index: 898;
  background: white;
  border-bottom: 2px solid var(--tll-green);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  padding: 1rem 1.25rem 1.5rem;
  flex-direction: column;
  gap: .4rem;
  animation: slideDown .2s ease;
}
.mobile-nav.open { display: flex; }
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.mobile-nav a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  color: var(--tll-gray);
  padding: .75rem 1rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  text-decoration: none;
}
.mobile-nav a:hover, .mobile-nav a.active { background: var(--tll-bg); color: var(--tll-green); }
.mobile-nav-lang {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  margin-top: .75rem;
  padding-top: .75rem;
  border-top: 1px solid var(--tll-gray-light);
}

/* ── Site language switcher ──────────────────────────────── */
.site-lang-switch {
  display: flex;
  gap: .2rem;
  background: var(--tll-bg);
  padding: .2rem;
  border-radius: 50px;
}
.site-lang-switch button {
  padding: .25rem .6rem;
  border: none;
  background: transparent;
  color: var(--tll-gray);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .04em;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition);
}
.site-lang-switch button.active,
.site-lang-switch button:hover {
  background: var(--tll-forest);
  color: white;
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  background: var(--tll-forest);
  color: var(--tll-white);
  overflow: hidden;
  min-height: 560px;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .35;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(27,77,62,.85) 0%, rgba(0,178,136,.3) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 5rem 0 4rem;
}
.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--tll-green);
  background: rgba(0,178,136,.15);
  padding: .35rem .9rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
}
.hero h1 { color: var(--tll-white); margin-bottom: 1rem; }
.hero h1 em { color: var(--tll-green); font-style: normal; }
.hero-sub { font-size: 1.15rem; color: rgba(255,255,255,.8); max-width: 560px; margin-bottom: 2.5rem; }

/* ── Search Bar ──────────────────────────────────────────── */
.search-bar {
  background: var(--tll-white);
  border-radius: var(--radius-xl);
  padding: .75rem 1rem;
  display: flex;
  align-items: stretch;
  gap: .5rem;
  box-shadow: var(--shadow-lg);
  max-width: 760px;
}
.search-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: .4rem .75rem;
  border-right: 1px solid var(--tll-gray-light);
  min-width: 0;
}
.search-field:last-of-type { border-right: none; }
.search-field label {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--tll-black);
}
.search-field input, .search-field select {
  border: none;
  outline: none;
  font-size: .95rem;
  color: var(--tll-gray);
  background: transparent;
  padding: 0;
  width: 100%;
}
.search-bar .btn-primary {
  border-radius: var(--radius-lg);
  padding: .75rem 1.5rem;
  flex-shrink: 0;
}

/* ── Section headers ─────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.section-title { margin-bottom: .35rem; }
.section-sub { color: var(--tll-gray); font-size: 1rem; font-family: var(--font-body); }
.section-link {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .9rem;
  color: var(--tll-green);
  display: flex;
  align-items: center;
  gap: .3rem;
  white-space: nowrap;
}
.section-link:hover { color: var(--tll-green-dark); }
.section-link svg { width: 16px; height: 16px; }

/* ── Property Card ───────────────────────────────────────── */
.property-card {
  background: var(--tll-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,.06);
  transition: transform var(--transition), box-shadow var(--transition);
}
.property-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card-img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--tll-bg);
}
.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.property-card:hover .card-img-wrap img { transform: scale(1.05); }
.card-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--tll-forest) 0%, var(--tll-green) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-img-placeholder svg { width: 48px; height: 48px; stroke: rgba(255,255,255,.4); fill: none; }
.card-badge {
  position: absolute;
  top: .75rem;
  left: .75rem;
  background: var(--tll-white);
  color: var(--tll-black);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .25rem .65rem;
  border-radius: 50px;
}
.card-badge-green { background: var(--tll-green); color: var(--tll-white); }
.card-fav {
  position: absolute;
  top: .75rem;
  right: .75rem;
  width: 34px;
  height: 34px;
  background: var(--tll-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all var(--transition);
}
.card-fav:hover { background: var(--tll-green); color: var(--tll-white); }
.card-fav svg { width: 16px; height: 16px; }

.card-body { padding: 1.1rem 1.25rem 1.25rem; }
.card-type {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--tll-green);
  margin-bottom: .35rem;
}
.card-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--tll-black);
  margin-bottom: .3rem;
  line-height: 1.3;
}
.card-title a:hover { color: var(--tll-green); }
.card-location {
  display: flex;
  align-items: center;
  gap: .3rem;
  font-size: .875rem;
  color: var(--tll-gray);
  margin-bottom: .75rem;
}
.card-location svg { width: 14px; height: 14px; flex-shrink: 0; }
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: .75rem;
  border-top: 1px solid var(--tll-bg);
  gap: .5rem;
}
.card-rating {
  display: flex;
  align-items: center;
  gap: .3rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .875rem;
}
.star { color: #F59E0B; }
.card-rating small { color: var(--tll-gray); font-weight: 400; }
.card-price { font-family: var(--font-head); font-size: .875rem; color: var(--tll-gray); }
.card-price strong { color: var(--tll-black); font-size: 1rem; }

/* ── Guide Card ──────────────────────────────────────────── */
.guide-card {
  background: var(--tll-forest);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  color: var(--tll-white);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}
.guide-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .4;
  transition: opacity var(--transition);
}
.guide-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.guide-card:hover::before { opacity: .55; }
.guide-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(27,77,62,.95) 0%, transparent 60%);
}
.guide-card-content { position: relative; z-index: 2; }
.guide-card-icon {
  width: 44px;
  height: 44px;
  background: var(--tll-green);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .75rem;
}
.guide-card-icon svg { width: 22px; height: 22px; stroke: white; fill: none; }
.guide-card h3 { font-size: 1.3rem; color: white; margin-bottom: .35rem; }
.guide-card p { font-size: .875rem; color: rgba(255,255,255,.75); }

/* ── Stats bar ───────────────────────────────────────────── */
.stats-bar {
  background: var(--tll-green);
  color: var(--tll-white);
  padding: 2.5rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  margin-bottom: .4rem;
}
.stat-label {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  opacity: .8;
}

/* ── Feature section ─────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.feature-item {
  padding: 2rem;
  background: var(--tll-bg);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}
.feature-item:hover { background: var(--tll-green-light); transform: translateY(-2px); }
.feature-icon {
  width: 52px;
  height: 52px;
  background: var(--tll-green);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.feature-icon svg { width: 26px; height: 26px; stroke: white; fill: none; stroke-width: 1.8; }
.feature-item h4 { margin-bottom: .5rem; }
.feature-item p { color: var(--tll-gray); font-size: .925rem; line-height: 1.65; }

/* ── Badges ──────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .25rem .7rem;
  border-radius: 50px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.badge-green  { background: var(--tll-green-light); color: var(--tll-green); }
.badge-dark   { background: var(--tll-black); color: var(--tll-white); }
.badge-gray   { background: var(--tll-bg); color: var(--tll-gray); }
.badge-forest { background: var(--tll-forest); color: var(--tll-white); }

/* ── Alerts ──────────────────────────────────────────────── */
.alert {
  padding: .9rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: .92rem;
  display: flex;
  align-items: flex-start;
  gap: .6rem;
}
.alert-success { background: #F0FDF4; color: #166534; border: 1px solid #BBF7D0; }
.alert-error   { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.alert-info    { background: var(--tll-green-light); color: var(--tll-forest); border: 1px solid rgba(0,178,136,.25); }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: var(--tll-black);
  color: rgba(255,255,255,.7);
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1rem;
  color: white;
}
.footer-logo .logo-icon { background: var(--tll-green); }
.footer-brand p { font-size: .9rem; line-height: 1.65; max-width: 280px; margin-bottom: 1.5rem; }
.footer-social { display: flex; gap: .75rem; }
.social-link {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.social-link:hover { background: var(--tll-green); }
.social-link svg { width: 16px; height: 16px; stroke: white; fill: none; }
.footer-col h5 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: white;
  margin-bottom: 1.25rem;
}
.footer-links { display: flex; flex-direction: column; gap: .6rem; }
.footer-links a { color: rgba(255,255,255,.6); font-size: .9rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--tll-green); }
.footer-bottom {
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .83rem;
}
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { color: rgba(255,255,255,.5); transition: color var(--transition); }
.footer-bottom-links a:hover { color: white; }

/* ── Admin ───────────────────────────────────────────────── */
.admin-wrap { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--tll-black);
  color: white;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.admin-sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.admin-nav { padding: 1rem 0; flex: 1; }
.admin-nav-section {
  font-size: .7rem;
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255,255,255,.35);
  padding: 1rem 1.5rem .5rem;
}
.admin-nav a {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .65rem 1.5rem;
  color: rgba(255,255,255,.65);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .9rem;
  transition: all var(--transition);
  border-left: 3px solid transparent;
}
.admin-nav a:hover, .admin-nav a.active {
  color: white;
  background: rgba(255,255,255,.06);
  border-left-color: var(--tll-green);
}
.admin-nav a svg { width: 18px; height: 18px; flex-shrink: 0; stroke: currentColor; fill: none; }

.admin-main { flex: 1; background: #F4F5F7; min-width: 0; }
.admin-topbar {
  background: white;
  border-bottom: 1px solid var(--tll-gray-light);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.admin-topbar h1 { font-size: 1.4rem; }
.admin-content { padding: 2rem; }

/* ── Guide section editor (accordion) ─────────────────────── */
.guide-section-editor {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--tll-gray-light);
  overflow: hidden;
  transition: box-shadow .15s;
}
.guide-section-editor:hover { box-shadow: 0 2px 8px rgba(0,0,0,.07); }

.guide-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  cursor: pointer;
  user-select: none;
  gap: 1rem;
}
.guide-section-header:hover { background: var(--tll-bg); }

.guide-section-body {
  padding: 0 1.25rem 1.25rem;
  border-top: 1px solid var(--tll-gray-light);
}

.section-arrow { flex-shrink: 0; color: var(--tll-gray); transition: transform .2s; }

/* ── Admin card ─────────────────────────────────────────────── */
.admin-card {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--tll-gray-light);
  overflow: hidden;
}
.admin-card-header {
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--tll-gray-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.admin-card-header h3 { font-size: 1rem; }
.admin-card-body { padding: 1.5rem; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-bottom: 2rem; }
.kpi-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--tll-gray-light);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.kpi-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.kpi-icon svg { width: 24px; height: 24px; stroke: white; fill: none; }
.kpi-icon-green  { background: var(--tll-green); }
.kpi-icon-forest { background: var(--tll-forest); }
.kpi-icon-black  { background: var(--tll-black); }
.kpi-icon-amber  { background: #F59E0B; }
.kpi-num { font-family: var(--font-head); font-weight: 800; font-size: 1.8rem; line-height: 1; }
.kpi-label { font-size: .8rem; color: var(--tll-gray); font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }

/* ── Table ───────────────────────────────────────────────── */
.tll-table { width: 100%; border-collapse: collapse; }
.tll-table th {
  text-align: left;
  padding: .75rem 1rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--tll-gray);
  background: var(--tll-bg);
  border-bottom: 1px solid var(--tll-gray-light);
}
.tll-table td {
  padding: .9rem 1rem;
  border-bottom: 1px solid rgba(0,0,0,.05);
  font-size: .92rem;
  vertical-align: middle;
}
.tll-table tr:hover td { background: var(--tll-bg); }
.tll-table tr:last-child td { border-bottom: none; }

/* ── Tag pills ───────────────────────────────────────────── */
.tag {
  display: inline-block;
  padding: .2rem .55rem;
  border-radius: 4px;
  font-size: .72rem;
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.tag-green  { background: var(--tll-green-light); color: var(--tll-green); }
.tag-red    { background: #FEF2F2; color: #DC2626; }
.tag-amber  { background: #FFFBEB; color: #D97706; }
.tag-gray   { background: var(--tll-bg); color: var(--tll-gray); }
.tag-forest { background: rgba(27,77,62,.1); color: var(--tll-forest); }

/* ── Amenity chip ────────────────────────────────────────── */
.amenity-chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .8rem;
  background: var(--tll-bg);
  border-radius: 50px;
  font-size: .83rem;
  color: var(--tll-dark);
  font-family: var(--font-head);
  font-weight: 600;
}
.amenity-chip svg { width: 14px; height: 14px; stroke: var(--tll-green); fill: none; }

/* ── Guide Page (QR) ─────────────────────────────────────── */
.guide-page { background: var(--tll-white); }
.guide-header {
  background: var(--tll-forest);
  color: white;
  position: sticky;
  top: 0;
  z-index: 100;
}
.guide-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.guide-lang-switch {
  display: flex;
  gap: .35rem;
  background: rgba(255,255,255,.1);
  padding: .3rem;
  border-radius: 50px;
}
.guide-lang-switch button {
  padding: .3rem .7rem;
  border: none;
  background: transparent;
  color: rgba(255,255,255,.7);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .8rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition);
}
.guide-lang-switch button.active,
.guide-lang-switch button:hover {
  background: var(--tll-green);
  color: white;
}

.guide-hero {
  min-height: 260px;
  background: var(--tll-forest);
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.guide-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .4;
}
.guide-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(27,77,62,.95) 0%, transparent 60%);
}
.guide-hero-content { position: relative; z-index: 2; padding: 2rem; color: white; width: 100%; }
.guide-hero h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); color: white; margin-bottom: .3rem; }
.guide-hero-meta { display: flex; align-items: center; gap: 1rem; font-size: .875rem; color: rgba(255,255,255,.75); }

.guide-nav {
  background: white;
  border-bottom: 2px solid var(--tll-bg);
  position: sticky;
  top: 64px;
  z-index: 90;
  overflow-x: auto;
}
.guide-nav .container {
  display: flex;
  gap: 0;
}
.guide-nav-item {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: 1rem 1.2rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .85rem;
  color: var(--tll-gray);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--transition);
}
.guide-nav-item svg { width: 16px; height: 16px; stroke: currentColor; fill: none; }
.guide-nav-item:hover, .guide-nav-item.active {
  color: var(--tll-green);
  border-bottom-color: var(--tll-green);
}

.guide-section {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--tll-bg);
}
.guide-section-title {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.5rem;
}
.guide-section-icon {
  width: 42px;
  height: 42px;
  background: var(--tll-green-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.guide-section-icon svg { width: 20px; height: 20px; stroke: var(--tll-green); fill: none; }

.place-card {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: var(--tll-bg);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.place-card:hover { background: var(--tll-green-light); }
.place-card-img {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--tll-gray-light);
}
.place-card-body { flex: 1; min-width: 0; }
.place-card-name { font-family: var(--font-head); font-weight: 700; font-size: .95rem; margin-bottom: .2rem; }
.place-card-meta { font-size: .8rem; color: var(--tll-gray); display: flex; gap: .75rem; flex-wrap: wrap; }
.place-card-actions { display: flex; gap: .5rem; margin-top: .5rem; }

.rule-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 0;
  border-bottom: 1px solid var(--tll-bg);
}
.rule-item:last-child { border-bottom: none; }
.rule-icon { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rule-allowed  { background: var(--tll-green-light); color: var(--tll-green); }
.rule-denied   { background: #FEF2F2; color: #DC2626; }
.rule-icon svg { width: 16px; height: 16px; }
.rule-text { font-size: .93rem; }

/* ── Property Page ───────────────────────────────────────── */
.property-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: repeat(2, 240px);
  gap: .5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.gallery-main { grid-row: 1 / 3; }
.gallery-main img, .property-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-more {
  position: relative;
  cursor: pointer;
}
.gallery-more-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.3rem;
  transition: background var(--transition);
}
.gallery-more:hover .gallery-more-overlay { background: rgba(0,0,0,.6); }

.property-info-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--tll-gray-light);
  padding: 1.75rem;
  position: sticky;
  top: 90px;
}
.price-display { margin-bottom: 1.5rem; }
.price-big {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2rem;
  color: var(--tll-black);
}
.price-big span { font-size: 1rem; font-weight: 600; color: var(--tll-gray); }
.price-from { font-size: .85rem; color: var(--tll-gray); }
.rating-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.5rem;
}
.rating-score {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
}
.rating-count { font-size: .875rem; color: var(--tll-gray); }

/* ── QR Code section ─────────────────────────────────────── */
.qr-section {
  text-align: center;
  padding: 2rem;
  background: var(--tll-green-light);
  border-radius: var(--radius-lg);
  border: 2px dashed rgba(0,178,136,.3);
}
.qr-section img { width: 160px; height: 160px; margin: 0 auto 1rem; border-radius: var(--radius-sm); }
.qr-section p { font-size: .85rem; color: var(--tll-forest); font-family: var(--font-head); font-weight: 600; }

/* ── Map placeholder ─────────────────────────────────────── */
.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--tll-bg);
  aspect-ratio: 16/7;
}
.map-embed iframe { width: 100%; height: 100%; border: none; }

/* ── Pagination ──────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  margin-top: 2.5rem;
}
.pagination a, .pagination span {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .9rem;
  transition: all var(--transition);
  border: 1.5px solid var(--tll-gray-light);
  color: var(--tll-gray);
}
.pagination a:hover { border-color: var(--tll-green); color: var(--tll-green); }
.pagination .active { background: var(--tll-green); border-color: var(--tll-green); color: white; }

/* ── Toast ───────────────────────────────────────────────── */
.toast-container { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999; display: flex; flex-direction: column; gap: .5rem; }
.toast {
  background: var(--tll-black);
  color: white;
  padding: .85rem 1.25rem;
  border-radius: var(--radius);
  font-size: .9rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: .6rem;
  animation: toastIn .3s ease;
  max-width: 360px;
}
.toast-success { border-left: 4px solid var(--tll-green); }
.toast-error   { border-left: 4px solid #EF4444; }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4  { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .search-bar { flex-direction: column; border-radius: var(--radius-lg); }
  .search-field { border-right: none; border-bottom: 1px solid var(--tll-gray-light); }
  .search-field:last-of-type { border-bottom: none; }
  .search-bar .btn-primary { width: 100%; }
  .main-nav { display: none; }
  .nav-toggle { display: none; }
  .site-header .container { flex-direction: column; align-items: center; gap: .4rem; padding: .6rem 1rem; }
  .header-actions { margin-left: 0; justify-content: center; width: 100%; }
  .site-lang-switch { display: flex; justify-content: center; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .site-lang-switch::-webkit-scrollbar { display: none; }
  .site-lang-switch button { padding: .22rem .5rem; font-size: .72rem; }
  .property-gallery { grid-template-columns: 1fr; grid-template-rows: auto; }
  .gallery-main { grid-row: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .section-header { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .kpi-grid { grid-template-columns: 1fr; }
}

/* ── Utils ───────────────────────────────────────────────── */
.mt-1 { margin-top: .5rem; }  .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }   .mt-6 { margin-top: 3rem; }
.mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; } .mb-6 { margin-bottom: 3rem; }
.p-1 { padding: .5rem; } .p-2 { padding: 1rem; } .p-3 { padding: 1.5rem; }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.hidden      { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.w-full { width: 100%; }
.rounded    { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.overflow-hidden { overflow: hidden; }
.relative { position: relative; }
.divider { height: 1px; background: var(--tll-bg); margin: 1.5rem 0; }

/* ── RTL support (Arabic) ────────────────────────────────── */
[dir="rtl"] body { font-family: 'Poppins', 'Arabic UI Text', sans-serif; }
[dir="rtl"] .main-nav { flex-direction: row-reverse; }
[dir="rtl"] .site-header .container { flex-direction: row-reverse; }
