:root {
  --ink: #18212f;
  --muted: #617084;
  --line: #dde5ef;
  --soft: #f5f7fa;
  --brand: #0f766e;
  --brand-2: #b45309;
  --accent: #2563eb;
  --danger: #b91c1c;
  --ok: #166534;
  --card: #ffffff;
  --shadow: 0 14px 32px rgba(24, 33, 47, .10);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fff;
  letter-spacing: 0;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, .post-btn {
  border: 0;
  background: var(--brand);
  color: #fff;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
}
button:disabled { opacity: .55; cursor: not-allowed; background: #64748b; }
.warning-button { background: #b45309; }
input, select, textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
}
textarea { min-height: 110px; resize: vertical; }
table { width: 100%; min-width: 760px; border-collapse: collapse; }
th, td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table-wrap { overflow-x: auto; }
.pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 14px 0; }
.pagination a, .pagination span, .press-link {
  min-width: 38px;
  min-height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: linear-gradient(180deg, #fff, #eef3f8);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.95), inset 0 -3px 0 rgba(15,23,42,.08), 0 8px 16px rgba(15,23,42,.08);
  font-weight: 900;
  padding: 0 11px;
}
.pagination a:hover, .press-link:hover { border-color: var(--brand); box-shadow: inset 0 2px 0 #fff, 0 0 0 3px rgba(15,118,110,.12), 0 10px 18px rgba(15,23,42,.12); }
.pagination a:active, .press-link:active { transform: translateY(1px); box-shadow: inset 0 4px 10px rgba(15,23,42,.14); }
.pagination a.active { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: inset 0 4px 10px rgba(0,0,0,.16); }
.pagination a.disabled { pointer-events: none; opacity: .45; }
.pagination .pager-arrow { font-size: 18px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 72px;
  padding: 12px clamp(16px, 4vw, 52px);
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 900; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; background: var(--ink); color: #fff; }
.desktop-search { flex: 1; display: grid; grid-template-columns: 150px 1fr 110px; gap: 8px; max-width: 760px; }
.desktop-nav { display: flex; align-items: center; gap: 16px; font-weight: 700; }
.nav-dropdown { position: relative; display: inline-flex; align-items: center; }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 210px;
  display: none;
  z-index: 20;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 35px rgba(15, 23, 42, .14);
}
.nav-dropdown:hover .nav-dropdown-menu, .nav-dropdown:focus-within .nav-dropdown-menu { display: grid; gap: 4px; }
.nav-dropdown-menu a { padding: 9px 10px; border-radius: 6px; white-space: nowrap; }
.nav-dropdown-menu a:hover { background: var(--soft); }
.submenu-link { padding-left: 20px; font-size: 14px; color: var(--muted); }
.hamburger { display: none; width: 44px; padding: 0; background: #eef3f8; color: var(--ink); }

.offcanvas {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(86vw, 340px);
  z-index: 80;
  padding: 20px;
  background: #fff;
  box-shadow: var(--shadow);
  transform: translateX(-105%);
  transition: transform .22s ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.offcanvas.open { transform: translateX(0); }
.offcanvas a { padding: 14px 10px; border-bottom: 1px solid var(--line); font-weight: 700; }
.close-menu { align-self: flex-end; width: 44px; background: #eef3f8; color: var(--ink); padding: 0; }

.hero {
  min-height: 430px;
  display: grid;
  align-items: end;
  padding: 44px clamp(16px, 5vw, 72px);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, .86), rgba(15, 118, 110, .42)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1400' height='720' viewBox='0 0 1400 720'%3E%3Crect width='1400' height='720' fill='%2388a6b8'/%3E%3Cpath d='M0 520L180 430L360 470L540 340L720 390L900 260L1080 310L1260 190L1400 240V720H0Z' fill='%23444f5d'/%3E%3Cpath d='M90 390h180v210H90zM330 330h130v270H330zM560 280h190v320H560zM820 350h160v250H820zM1080 250h210v350h-210z' fill='%23eef3f8' opacity='.9'/%3E%3Cpath d='M115 420h36v36h-36zM175 420h36v36h-36zM355 365h28v28h-28zM405 365h28v28h-28zM595 320h36v36h-36zM660 320h36v36h-36zM855 385h32v32h-32zM910 385h32v32h-32zM1125 290h42v42h-42zM1200 290h42v42h-42z' fill='%232563eb'/%3E%3C/svg%3E") center/cover;
}
.hero-copy { width: min(920px, 100%); }
.eyebrow { margin: 0 0 8px; color: var(--brand-2); font-weight: 900; text-transform: uppercase; font-size: 12px; }
.hero .eyebrow { color: #fbbf24; }
.hero h1 { margin: 0 0 22px; max-width: 860px; font-size: clamp(34px, 6vw, 68px); line-height: 1.02; }
.hero-search { display: grid; grid-template-columns: 170px 1fr 170px; gap: 10px; max-width: 900px; padding: 10px; border-radius: 8px; background: rgba(255, 255, 255, .96); }
.city-hero { min-height: 430px; }
.city-hero p:not(.eyebrow) { max-width: 780px; font-size: 20px; color: #e6f3f1; }
.city-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.city-hero-actions a { min-height: 44px; display: inline-flex; align-items: center; border-radius: 8px; padding: 10px 14px; background: #fff; color: var(--brand); font-weight: 900; box-shadow: inset 0 -3px 0 rgba(15,118,110,.18); }

.quick-cats, .property-grid, .plan-grid, .section-head, .search-layout, .dashboard, .form-page, .auth-card, .property-detail, .profile-layout, .empty-state, .city-layout {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto;
}
.city-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.city-property-grid { width: auto; margin: 18px 0 0; }
.city-highlights { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.city-highlights span { border: 1px solid #d8e2ef; border-radius: 6px; background: #f8fbff; color: #24364f; font-weight: 900; padding: 8px 10px; }
.city-enquiry { top: 92px; }
.content-page { width: min(920px, calc(100% - 32px)); margin: 32px auto; line-height: 1.75; }
.content-page h1 { font-size: 40px; margin-bottom: 12px; }
.content-page h2 { margin-top: 28px; }
.quick-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 14px; }
.quick-cats a {
  min-height: 112px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 16px;
  border: 2px solid #cbd5e1;
  border-radius: 6px;
  background: linear-gradient(180deg, #fff, #eef6f4);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.95), inset 0 -4px 0 rgba(15,118,110,.10), 0 10px 20px rgba(15,23,42,.10);
  font-weight: 900;
  text-align: center;
  outline: 2px solid rgba(37,99,235,.08);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.quick-cats a:hover { border-color: var(--brand); box-shadow: inset 0 2px 0 #fff, 0 0 0 4px rgba(15,118,110,.12), 0 14px 28px rgba(15,23,42,.16); transform: translateY(-2px); }
.quick-cats a:active { transform: translateY(2px); box-shadow: inset 0 4px 10px rgba(15,23,42,.20); }
.quick-cats span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 18px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.section-head h1, .section-head h2 { margin: 0; font-size: 30px; }
.section-head.compact { width: auto; margin: 0 0 16px; align-items: center; }
.property-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: start; }
.property-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #cdd8e6;
  border-radius: 7px;
  background: var(--card);
  overflow: hidden;
  box-shadow: 0 16px 32px rgba(24,33,47,.14), inset 0 1px 0 rgba(255,255,255,.8);
  transition: transform .16s ease, box-shadow .16s ease;
  cursor: pointer;
}
.property-card:hover { transform: translateY(-3px); box-shadow: 0 22px 38px rgba(24,33,47,.18), 0 0 0 4px rgba(37,99,235,.08); }
.property-card:active { transform: translateY(1px); box-shadow: inset 0 6px 18px rgba(24,33,47,.14); }
.premium-card { border-color: #f59e0b; box-shadow: 0 18px 34px rgba(180,83,9,.18); }
.property-media {
  position: relative;
  height: 210px;
  min-height: 0;
  padding: 14px;
  display: flex;
  align-items: start;
  justify-content: space-between;
  color: #fff;
  background: linear-gradient(135deg, #1f2937, #0f766e 55%, #2563eb);
  background-position: center;
  background-size: cover;
}
.card-property-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.property-media-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,23,42,.48), rgba(15,23,42,.10) 45%, rgba(15,23,42,.62)); }
.property-media span, .property-media b { position: relative; z-index: 1; }
.property-media b { background: #f59e0b; color: #111827; padding: 5px 8px; border-radius: 6px; font-size: 12px; margin-left: 6px; }
.property-body { padding: 16px; }
.listing-meta-row { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 9px; }
.listing-meta-row span { border: 1px solid #d8e2ef; border-radius: 6px; background: #f8fbff; color: #24364f; font-size: 12px; font-weight: 800; padding: 4px 7px; }
.property-body h3 { margin: 0 0 8px; font-size: 19px; }
.property-body p { color: var(--muted); }
.price-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price-row strong { font-size: 21px; color: var(--brand); }
.price-row span { display: inline-flex; min-height: 32px; align-items: center; padding: 5px 10px; border-radius: 6px; background: #eef6f4; color: var(--brand); font-weight: 900; box-shadow: inset 0 -2px 0 rgba(15,118,110,.14); }
.price-row.big { justify-content: flex-start; flex-wrap: wrap; }
.price-row.big strong { font-size: 32px; }
.owner-line { font-size: 13px; }

.search-layout { display: grid; grid-template-columns: 280px 1fr; gap: 22px; align-items: start; }
.filter-panel, .panel, .auth-card, .enquiry-box, .plan-card, .mini-card { border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 18px; }
.enquiry-card { box-shadow: 0 12px 28px rgba(15, 23, 42, .08); }
.activity-strip { display: flex; flex-wrap: wrap; gap: 7px; margin: 10px 0; }
.activity-strip span { border: 1px solid #d8e2ef; border-radius: 6px; background: #f8fbff; color: #24364f; font-size: 12px; padding: 4px 7px; }
.activity-strip.stacked { display: grid; gap: 6px; }
.status-pill { display: inline-flex; align-items: center; min-height: 30px; border-radius: 999px; padding: 5px 10px; font-size: 12px; font-weight: 900; border: 1px solid #d8e2ef; background: #f8fbff; color: #24364f; }
.status-open { border-color: #93c5fd; background: #eff6ff; color: #1d4ed8; }
.status-replied { border-color: #86efac; background: #f0fdf4; color: #166534; }
.status-flagged { border-color: #fca5a5; background: #fef2f2; color: #b91c1c; }
.status-deleted { border-color: #cbd5e1; background: #f1f5f9; color: #475569; }
.trail-item::before { display: inline-block; width: 18px; font-weight: 900; }
.trail-created::before { content: "i"; color: var(--accent); }
.trail-ok::before { content: "✓"; color: var(--ok); }
.trail-wait::before { content: "…"; color: #64748b; }
.trail-priority::before { content: "!"; color: #b45309; }
.trail-flag::before { content: "!"; color: var(--danger); }
.reply-trail { display: grid; gap: 8px; margin: 12px 0; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fbfdff; }
.reply-trail p { margin: 0; display: grid; gap: 3px; color: var(--ink); }
.reply-trail span { font-weight: 900; color: var(--brand); }
.reply-trail small { color: var(--muted); }
.state-button.ok { background: var(--ok); opacity: 1; }
.state-button.flagged { background: var(--danger); opacity: 1; }
.filter-panel { position: sticky; top: 92px; display: grid; gap: 10px; }
.check-line { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--ink); }
.check-line input { width: auto; }
.filter-reset { text-align: center; font-weight: 900; color: var(--brand); }
.results-panel .property-grid { width: auto; margin: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }

.dashboard { display: grid; grid-template-columns: 240px 1fr; gap: 22px; align-items: start; }
.dash-nav { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 7px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); max-height: calc(100vh - 112px); overflow: auto; }
.dash-nav a { padding: 10px; border-radius: 7px; font-weight: 800; border: 1px solid #d8e2ef; background: linear-gradient(180deg, #fff, #eef3f8); box-shadow: inset 0 2px 0 rgba(255,255,255,.95), inset 0 -2px 0 rgba(15,23,42,.06); }
.dash-nav a:hover { border-color: var(--brand); }
.dash-nav a:active { transform: translateY(1px); box-shadow: inset 0 4px 10px rgba(15,23,42,.14); }
.dash-nav a.active { color: #fff; border-color: var(--brand); background: var(--brand); box-shadow: inset 0 4px 12px rgba(0,0,0,.16); }
.nav-count { display: inline-grid; place-items: center; min-width: 22px; min-height: 22px; margin-left: 6px; padding: 0 6px; border-radius: 999px; background: #b45309; color: #fff; font-size: 12px; }
.dash-content { display: grid; gap: 18px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat-grid div { padding: 16px; border-radius: 8px; background: var(--soft); }
.stat-grid b { display: block; font-size: 28px; }
.stat-grid span { color: var(--muted); }
.stat-grid .urgent-stat { border: 1px solid #f59e0b; background: #fffbeb; }
.stat-grid .urgent-stat b { color: #b45309; }

.form-page, .auth-card { max-width: 920px; }
.form-grid, .property-form, .settings-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.form-grid textarea, .property-form textarea, fieldset, .settings-grid button { grid-column: 1 / -1; }
.full-span { grid-column: 1 / -1; }
.open-map-field, .open-map-box { position: relative; }
.open-map-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 8px 0; }
.open-map-tools button, .open-map-button {
  width: auto;
  min-height: 40px;
  padding: 8px 14px;
  position: relative;
  z-index: 5;
  cursor: pointer;
  pointer-events: auto;
}
.open-map-tools a { font-weight: 900; color: var(--brand); }
.open-map-tools span { color: var(--muted); font-size: 13px; font-weight: 800; }
.open-map-preview {
  min-height: 190px;
  margin: 10px 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #d8e2ef;
  border-radius: 8px;
  background: #f8fbff;
}
.open-map-preview iframe { width: 100%; height: 260px; border: 0; display: block; }
.open-map-preview p { margin: 0; padding: 18px; color: var(--muted); text-align: center; font-weight: 800; }
.open-map-preview small { width: 100%; display: block; padding: 8px 10px; color: var(--muted); background: #fff; font-weight: 800; overflow-wrap: anywhere; }
.open-map-suggestions {
  position: static;
  display: grid;
  gap: 6px;
  margin-top: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .16);
}
.open-map-suggestion {
  width: 100%;
  display: grid;
  gap: 2px;
  min-height: 0;
  padding: 9px 10px;
  text-align: left;
  color: var(--ink);
  background: #f8fbff;
  border: 1px solid #d8e2ef;
  border-radius: 7px;
  box-shadow: inset 0 -2px 0 rgba(15,23,42,.06);
}
.open-map-suggestion span { color: var(--muted); font-size: 12px; font-weight: 700; line-height: 1.35; }
.map-icon-link { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; font-weight: 900; color: var(--brand); }
.map-pin { width: 14px; height: 14px; display: inline-block; border: 3px solid currentColor; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); position: relative; }
.map-pin::after { content: ''; position: absolute; width: 4px; height: 4px; border-radius: 50%; background: currentColor; left: 2px; top: 2px; }
.property-share-box { margin: 14px 0; padding: 14px; border: 1px solid #d8e2ef; border-radius: 8px; background: #f8fbff; }
.property-share-box h2 { margin: 0 0 10px; font-size: 18px; }
.property-share-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.property-share-buttons a, .property-share-buttons button {
  width: auto;
  min-height: 36px;
  padding: 8px 11px;
  border-radius: 7px;
  border: 1px solid #d8e2ef;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
  box-shadow: inset 0 -2px 0 rgba(15,23,42,.06);
}
.property-share-buttons .share-whatsapp { color: #047857; }
.property-share-buttons .share-facebook { color: #1d4ed8; }
.property-share-buttons .share-twitter { color: #111827; }
.property-share-buttons .share-linkedin { color: #0f5f9f; }
.property-share-buttons .share-telegram { color: #0284c7; }
.property-share-box p { margin: 8px 0 0; color: var(--muted); font-size: 13px; font-weight: 800; }
.permission-package { display: grid; gap: 12px; margin: 18px 0; padding: 14px; border: 1px solid #d8e2ef; border-radius: 8px; background: #fbfdff; }
.permission-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.permission-check { align-items: flex-start; padding: 10px; border: 1px solid #d8e2ef; border-radius: 7px; background: #fff; }
.permission-check span { display: grid; gap: 3px; }
.permission-check small { color: var(--muted); font-size: 12px; }
.settings-group { grid-column: 1 / -1; display: grid; gap: 12px; padding: 14px; border: 1px solid #d8e2ef; border-radius: 8px; background: #fbfdff; }
.settings-group h3 { margin: 0; font-size: 18px; color: var(--ink); }
.settings-group-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.settings-group-grid label { display: grid; gap: 6px; font-weight: 900; }
.settings-group-grid small { color: var(--muted); font-size: 12px; font-weight: 800; }
.vertical-plan-tabs { display: grid; gap: 14px; }
.plan-edit-card { border-left: 5px solid var(--brand); }
.daily-bars { display: grid; gap: 10px; }
.daily-bars div { display: grid; grid-template-columns: 110px 1fr auto; gap: 8px; align-items: center; }
.daily-bars b { display: block; height: 18px; min-width: 6px; border-radius: 4px; background: var(--brand); }
.daily-bars em { font-style: normal; color: var(--muted); font-weight: 800; font-size: 13px; }
.compact-admin-form { grid-template-columns: repeat(6, minmax(120px, 1fr)); align-items: end; }
.compact-admin-form button { grid-column: auto; margin-right: 6px; }
fieldset { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; border: 1px dashed var(--line); border-radius: 8px; padding: 14px; }
fieldset label { display: grid; gap: 6px; font-weight: 800; color: var(--ink); }
fieldset label input, fieldset label select, fieldset label textarea { font-weight: 400; }
fieldset label small, .field-hint { color: var(--muted); font-size: 13px; font-weight: 700; line-height: 1.35; }
.form-step { position: relative; border-style: solid; background: #fbfdff; }
.form-step legend { display: inline-flex; align-items: center; gap: 10px; padding: 0 8px 6px 0; border-bottom: 3px solid currentColor; font-size: 18px; }
.form-step legend span { display: inline-grid; place-items: center; min-width: 82px; min-height: 34px; padding: 0 10px; border-radius: 7px; background: var(--brand); color: #fff; font-weight: 900; box-shadow: inset 0 -3px 0 rgba(0,0,0,.14); }
.form-step:nth-of-type(1) legend { color: #0f766e; }
.form-step:nth-of-type(2) legend { color: #2563eb; }
.form-step:nth-of-type(3) legend { color: #b45309; }
.form-step:nth-of-type(4) legend { color: #7c3aed; }
.form-step:nth-of-type(5) legend { color: #be123c; }
.form-step:nth-of-type(6) legend { color: #047857; }
.form-step:nth-of-type(7) legend { color: #1d4ed8; }
.form-step:nth-of-type(8) legend { color: #92400e; }
.form-step:nth-of-type(1) legend span { background: #0f766e; }
.form-step:nth-of-type(2) legend span { background: #2563eb; }
.form-step:nth-of-type(3) legend span { background: #b45309; }
.form-step:nth-of-type(4) legend span { background: #7c3aed; }
.form-step:nth-of-type(5) legend span { background: #be123c; }
.form-step:nth-of-type(6) legend span { background: #047857; }
.form-step:nth-of-type(7) legend span { background: #1d4ed8; }
.form-step:nth-of-type(8) legend span { background: #92400e; }
.required-star { color: var(--danger); font-weight: 900; }
.property-specific-section { transition: opacity .16s ease, border-color .16s ease, background .16s ease; }
.property-specific-section.inactive-specific-section { opacity: .48; background: #f8fafc; border-color: #e2e8f0; }
.property-specific-section.active-specific-section { border-color: var(--brand); background: #f7fcfb; box-shadow: 0 0 0 3px rgba(15,118,110,.08); }
.submit-property-button { justify-self: start; min-width: 220px; }
.gateway-form { display: grid; gap: 16px; }
.gateway-form > button { justify-self: start; }
.gateway-card { grid-template-columns: repeat(2, 1fr); }
.admin-search-form { display: grid; grid-template-columns: minmax(180px, 1fr) auto auto; gap: 8px; align-items: center; margin: 12px 0; }
.admin-search-form .press-link { color: var(--ink); }
.delete-menu-form { margin-top: 10px; }
.menu-help-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 12px 0; }
.menu-help-grid article { padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fbfdff; }
.menu-help-grid strong, .menu-help-grid span { display: block; }
.menu-help-grid span { color: var(--muted); margin-top: 4px; font-size: 13px; }
.menu-current-row { display: flex; justify-content: space-between; gap: 12px; align-items: start; margin-bottom: 10px; }
.menu-current-row p { margin: 6px 0 0; color: var(--muted); }
.menu-current-row code { color: var(--brand); font-weight: 900; }
.menu-actions-note { color: var(--muted); font-size: 13px; font-weight: 800; }
.priority-alert { padding: 12px; border: 1px solid #f59e0b; border-radius: 8px; background: #fffbeb; color: #92400e; font-weight: 900; }
.admin-steps { display: grid; gap: 8px; padding-left: 22px; line-height: 1.55; }
.custom-page-copy { width: auto; margin: 0 0 22px; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.ready-url-panel { margin: 12px 0; border: 1px solid var(--line); border-radius: 8px; padding: 12px; background: #fbfdff; }
.ready-url-panel summary { cursor: pointer; font-weight: 900; color: var(--brand); }
.ready-url-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; margin-top: 12px; }
.ready-url-grid button { display: grid; gap: 3px; justify-items: start; min-height: 54px; background: #fff; color: var(--ink); border: 1px solid #d8e2ef; box-shadow: inset 0 -2px 0 rgba(15,23,42,.06); }
.ready-url-grid small { color: var(--muted); font-weight: 800; }
.current-plan-card { margin: 12px 0 18px; border-color: rgba(15,118,110,.28); background: #f7fcfb; }
.dashboard-plan-grid { width: auto; margin: 16px 0 0; }
.help-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.help-grid article { padding: 14px; background: var(--soft); border-radius: 8px; }
.help-grid h3 { margin: 0 0 8px; }
legend { font-weight: 900; color: var(--brand); }
.property-detail, .profile-layout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
.gallery-placeholder { min-height: 340px; display: grid; place-items: center; border-radius: 8px; color: #fff; font-size: 28px; font-weight: 900; background: linear-gradient(135deg, #0f766e, #1f2937 50%, #b45309); }
.property-gallery { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 12px; }
.gallery-image-button { display: none; border: 0; padding: 0; background: transparent; border-radius: 8px; overflow: hidden; min-height: 0; }
.gallery-image-button:first-child { display: block; }
.gallery-image-button img { width: 100%; height: min(72vh, 680px); object-fit: cover; display: block; background: var(--soft); }
.video-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 18px; }
.video-buttons button { min-height: 34px; padding: 7px 11px; border-radius: 6px; background: #111827; color: #fff; font-size: 13px; box-shadow: inset 0 -2px 0 rgba(255,255,255,.14), 0 8px 18px rgba(24,33,47,.16); }
.media-lightbox[hidden] { display: none; }
.media-lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 18px; background: rgba(2,6,23,.92); }
.media-lightbox-content { width: min(96vw, 1400px); max-height: 92vh; display: grid; place-items: center; }
.media-lightbox-content img { max-width: 100%; max-height: 92vh; object-fit: contain; border-radius: 8px; box-shadow: 0 24px 80px rgba(0,0,0,.45); }
.media-lightbox-content iframe { width: min(96vw, 1200px); aspect-ratio: 16 / 9; border: 0; border-radius: 8px; background: #000; }
.media-lightbox-close { position: fixed; right: 18px; top: 18px; background: #fff; color: var(--ink); }
.existing-media { display: flex; gap: 10px; flex-wrap: wrap; }
.existing-media img { width: 120px; height: 90px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.detail-grid div { padding: 12px; background: var(--soft); border-radius: 8px; }
.detail-grid b, .detail-grid span { display: block; }
.detail-grid span { color: var(--muted); margin-top: 4px; }
.enquiry-box { position: sticky; top: 92px; }
.enquiry-box form { display: grid; gap: 10px; }
.property-tools { display: grid; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.property-tools h3, .property-tools h4 { margin: 0; }
.tool-box { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); }
.tool-box output { display: block; min-height: 38px; border-radius: 6px; background: #fff; padding: 9px 10px; font-weight: 900; color: var(--brand); }
.profile-hero { min-height: 430px; display: flex; align-items: end; padding: 44px clamp(16px, 5vw, 72px); color: #fff; background: linear-gradient(90deg, rgba(8, 20, 36, .9), rgba(15, 118, 110, .55)); background-size: cover; background-position: center; }
.profile-hero > div { max-width: 820px; }
.profile-hero h1 { margin: 8px 0 12px; font-size: clamp(36px, 6vw, 68px); line-height: 1.02; }
.profile-hero p:not(.eyebrow) { max-width: 780px; color: #e6f3f1; font-size: 19px; }
.avatar { display: grid; place-items: center; width: 82px; height: 82px; border-radius: 50%; background: #fff; color: var(--ink); font-size: 34px; font-weight: 900; }
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.plan-card { display: flex; flex-direction: column; gap: 12px; }
.plan-card strong { font-size: 30px; color: var(--brand); }
.plan-card ul { padding-left: 20px; color: var(--muted); }
.pricing-tabs { width: min(1180px, calc(100% - 32px)); margin: 0 auto 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.pricing-tabs a { min-height: 42px; display: inline-grid; place-items: center; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-weight: 900; box-shadow: inset 0 2px 0 #fff, 0 8px 18px rgba(15,23,42,.08); }
.pricing-section { margin-bottom: 18px; }
.plan-media { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: var(--soft); }
.inline { display: flex; gap: 8px; flex-wrap: wrap; }
.mini-message-form { display: grid; gap: 8px; min-width: 220px; }
.mini-message-form textarea { min-height: 72px; }
.danger-button { background: var(--danger); }
.flash, .notice, .warning, .form-error { width: min(1180px, calc(100% - 32px)); margin: 12px auto; padding: 12px; border-radius: 8px; }
.success { background: #dcfce7; color: var(--ok); }
.error, .form-error { background: #fee2e2; color: var(--danger); }
.notice { background: #eff6ff; color: #1d4ed8; }
.warning { background: #fff7ed; color: #9a3412; font-size: 13px; }
.input-warning { border-color: var(--danger); background: #fff1f2; }
.promo-unit, .ad-box {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  min-height: 0;
  display: grid;
  place-items: stretch;
  gap: 8px;
  padding: 18px;
  border: 1px dashed #a7b7ca;
  border-radius: 8px;
  background: #f8fafc;
  text-align: center;
  color: var(--muted);
}
.promo-unit strong, .promo-unit span, .ad-box strong, .ad-box span { color: var(--ink); font-weight: 900; }
.promo-unit small, .ad-box small { display: block; }
.sponsor-promo, .self-ad { border-color: #f59e0b; background: #fffbeb; box-shadow: 0 18px 34px rgba(180,83,9,.14); }
.sponsor-promo-head { display: flex; justify-content: space-between; gap: 14px; align-items: center; margin-bottom: 12px; text-align: left; }
.sponsor-promo-head strong { font-size: 18px; }
.sponsor-promo-body { display: grid; place-items: center; width: 100%; max-width: 100%; min-width: 0; overflow: hidden; }
.sponsor-promo img, .self-ad img { max-width: 100%; max-height: 260px; border-radius: 8px; object-fit: cover; }
.sponsor-promo iframe, .self-ad iframe { display: block; width: 100%; max-width: 100%; min-height: 0; aspect-ratio: 16 / 9; border: 0; border-radius: 8px; background: #111827; }
.sponsor-video-body { aspect-ratio: 16 / 9; min-height: 0; }
.promo-video-wrap { display: grid; justify-items: center; gap: 10px; width: 100%; max-width: 100%; min-width: 0; overflow: hidden; }
.google-promo, .adsense-ad { border-color: #93c5fd; background: #eff6ff; }
.simulated-google-promo, .simulated-google-ad { background: linear-gradient(135deg, #eff6ff, #ffffff); border-style: solid; }
.ad-preview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 12px 0 22px; }
.ad-preview-grid > div { border: 1px solid var(--line); border-radius: 8px; padding: 12px; background: #fff; }
.ad-preview-grid .promo-unit, .ad-preview-grid .ad-box { margin-top: 10px; }
.preview-actions { margin: 8px 0 12px; gap: 10px; }
.state-good, .state-bad { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 9px; border-radius: 999px; font-weight: 900; font-size: 12px; }
.state-good { background: #dcfce7; color: #166534; }
.state-bad { background: #fee2e2; color: #991b1b; }
.import-form { gap: 8px; align-items: center; flex-wrap: wrap; }
.import-form input[type="file"] { max-width: 240px; padding: 8px; background: #fff; }
.footer { display: flex; justify-content: space-between; gap: 22px; padding: 34px clamp(16px, 5vw, 72px) 96px; background: #111827; color: #e5e7eb; }
.footer nav { display: flex; gap: 18px; flex-wrap: wrap; align-content: start; }
.whatsapp-float { position: fixed; right: 18px; bottom: 90px; z-index: 60; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #16a34a; color: #fff; font-weight: 900; box-shadow: var(--shadow); }
.bottom-dock { display: none; }
.sticky-enquiry { display: none; }
.empty-state { min-height: 420px; display: grid; place-items: center; text-align: center; align-content: center; }

@media (max-width: 980px) {
  .desktop-search, .desktop-nav { display: none; }
  .hamburger { display: inline-grid; place-items: center; margin-left: auto; }
  .hero { min-height: 520px; padding-bottom: 28px; }
  .hero-search, .search-layout, .dashboard, .property-detail, .profile-layout, .city-layout { grid-template-columns: 1fr; }
  .property-grid, .results-panel .property-grid, .plan-grid { grid-template-columns: 1fr 1fr; }
  .promo-unit, .ad-box { padding: 14px; }
  .property-media { height: 190px; }
  .property-gallery, .video-grid { grid-template-columns: 1fr; }
  .property-gallery img:first-child, .property-gallery img { height: 240px; grid-row: auto; }
  .filter-panel, .dash-nav, .enquiry-box { position: static; }
  .dash-nav { max-height: none; flex-direction: row; overflow-x: auto; }
  .dash-nav strong { min-width: max-content; align-self: center; }
  .dash-nav a { min-width: max-content; }
  .stat-grid, .detail-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  body { background: var(--soft); padding-bottom: 70px; }
  .topbar { min-height: 62px; padding: 10px 14px; }
  .brand { font-size: 18px; }
  .brand-mark { width: 34px; height: 34px; }
  .hero { min-height: 500px; align-items: center; }
  .hero h1 { font-size: 38px; }
  .hero-search, .form-grid, .property-form, .settings-grid, fieldset, .property-grid, .results-panel .property-grid, .plan-grid, .stat-grid, .detail-grid, .ad-preview-grid { grid-template-columns: 1fr; }
  .menu-help-grid { grid-template-columns: 1fr; }
  .menu-current-row { display: grid; }
  .admin-search-form { grid-template-columns: 1fr; }
  .property-media { height: 215px; }
  .quick-cats { grid-template-columns: repeat(2, 1fr); }
  .section-head { align-items: start; flex-direction: column; }
  .property-card, .panel, .filter-panel, .auth-card, .enquiry-box, .plan-card { box-shadow: none; }
  .promo-unit, .ad-box { padding: 10px; border-radius: 7px; box-shadow: none; }
  .sponsor-promo-head strong { font-size: 15px; overflow-wrap: anywhere; }
  .sponsor-promo-head small { overflow-wrap: anywhere; }
  .sponsor-promo-head { display: grid; gap: 4px; }
  .sponsor-promo iframe, .self-ad iframe, .sponsor-video-body { width: 100%; max-width: 100%; min-height: 0; aspect-ratio: 16 / 9; }
  .footer { display: block; padding-bottom: 110px; }
  .bottom-dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    padding: 8px 8px 10px;
    background: rgba(255,255,255,.97);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(14px);
  }
  .bottom-dock a { text-align: center; padding: 8px 2px; border-radius: 8px; font-size: 12px; font-weight: 800; color: var(--muted); }
  .bottom-dock a span { display: block; font-size: 15px; line-height: 1; margin-bottom: 3px; color: inherit; }
  .bottom-dock .dock-primary { background: var(--brand); color: #fff; }
  .sticky-enquiry { position: fixed; left: 12px; right: 82px; bottom: 88px; z-index: 65; display: block; text-align: center; padding: 14px; border-radius: 8px; background: var(--brand-2); color: #fff; font-weight: 900; }
}
