/* ==========================================================================
   RP Properties — shared stylesheet
   One file for all pages. Organised as: tokens, base, layout, header/footer,
   components (buttons, badges, cards, forms, tables), page patterns, states,
   responsive rules.
   ========================================================================== */

/* ---------------------------------- Tokens -------------------------------- */
:root {
  --navy-900: #0d2338;
  --navy-800: #123152;
  --brand-600: #1b5c8f;
  --brand-700: #154a75;
  --brand-100: #e7f0f8;
  --brand-050: #f3f8fc;
  --brass-600: #a9721c;
  --brass-100: #fbf1dd;
  --violet-600: #5b4b9e;
  --ink-900: #16212b;
  --ink-700: #3c4a57;
  --ink-500: #64748b;
  --ink-400: #8896a6;
  --line: #e2e8f0;
  --surface: #ffffff;
  --surface-alt: #f6f8fb;
  --success: #1b7a4b;
  --success-bg: #e6f5ec;
  --warning: #9a6410;
  --warning-bg: #fdf3e0;
  --danger: #b3261e;
  --danger-bg: #fdecea;

  --radius-btn: 10px;
  --radius-card: 14px;
  --radius-media: 11px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(13, 35, 56, 0.06);
  --shadow-md: 0 8px 24px -12px rgba(13, 35, 56, 0.18);
  --shadow-lg: 0 24px 60px -24px rgba(13, 35, 56, 0.35);

  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;

  --header-h: 74px;
  --maxw: 1240px;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* ----------------------------------- Base -------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink-700);
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 12px;
  color: var(--ink-900);
  font-family: var(--font-display);
  line-height: 1.2;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(30px, 4.2vw, 52px);
  font-weight: 700;
  line-height: 1.07;
}

h2 {
  font-size: clamp(23px, 2.5vw, 33px);
  font-weight: 600;
}

h3 {
  font-size: 19px;
  font-weight: 600;
}

h4 {
  font-size: 16px;
  font-weight: 600;
}

p {
  margin: 0 0 14px;
  max-width: 68ch;
}

a {
  color: var(--brand-600);
  text-decoration: none;
}

a:hover {
  color: var(--brand-700);
  text-decoration: underline;
}

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

ul,
ol {
  margin: 0 0 14px;
  padding-left: 20px;
}

:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--navy-900);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 var(--radius-btn) 0;
}

.skip-link:focus {
  left: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------------------------- Layout ------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 64px 0;
}

.section-alt {
  background: var(--surface-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.section-head p {
  margin: 6px 0 0;
  color: var(--ink-500);
  font-size: 14.5px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--brand-600);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stack {
  display: grid;
  gap: 12px;
}

.row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 22px;
}

.card-flat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.muted {
  color: var(--ink-500);
}

.small {
  font-size: 13.5px;
}

.mt-0 {
  margin-top: 0;
}
.mb-0 {
  margin-bottom: 0;
}

/* --------------------------------- Header -------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.brand-mark img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  color: var(--ink-900);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-sub {
  color: var(--ink-500);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 8px;
  flex: 1 1 auto;
  flex-wrap: wrap;
}

.main-nav a {
  position: relative;
  padding: 10px 11px;
  color: var(--ink-700);
  font-size: 14.5px;
  font-weight: 500;
  border-radius: 8px;
  white-space: nowrap;
}

.main-nav a:hover {
  background: var(--brand-050);
  color: var(--brand-700);
  text-decoration: none;
}

.main-nav a.is-active {
  color: var(--ink-900);
  font-weight: 600;
}

.main-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 2px;
  height: 3px;
  border-radius: 3px;
  background: var(--violet-600);
}

.nav-count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  margin-left: 6px;
  padding: 0 5px;
  border-radius: var(--radius-pill);
  background: var(--brand-100);
  color: var(--brand-700);
  font-size: 11.5px;
  font-weight: 700;
}

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

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink-900);
}

.mobile-drawer {
  display: none;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 8px 20px 20px;
}

.mobile-drawer.is-open {
  display: block;
}

.mobile-drawer a {
  display: block;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-900);
  font-size: 16px;
  font-weight: 500;
}

.mobile-drawer a:last-of-type {
  border-bottom: 0;
}

/* -------------------------------- Buttons -------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease,
    transform 140ms ease;
  text-align: center;
}

.btn:hover {
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--brand-600);
  border-color: var(--brand-600);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-700);
  border-color: var(--brand-700);
  color: #fff;
}

.btn-secondary {
  background: var(--navy-800);
  border-color: var(--navy-800);
  color: #fff;
}

.btn-secondary:hover {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: #fff;
}

.btn-outline {
  background: transparent !important;
  border-color: var(--brand-600);
  color: var(--brand-600);
}

.btn-outline:hover {
  background: var(--brand-050) !important;
  color: var(--brand-700);
}

.btn-ghost {
  background: transparent !important;
  border-color: var(--line);
  color: var(--ink-700);
}

.btn-ghost:hover {
  background: var(--surface-alt) !important;
  color: var(--ink-900);
}

.btn-light {
  background: #fff;
  border-color: #fff;
  color: var(--navy-800);
}

.btn-light:hover {
  background: var(--brand-050);
  color: var(--navy-900);
}

.btn-danger-outline {
  background: transparent !important;
  border-color: #e6b6b3;
  color: var(--danger);
}

.btn-danger-outline:hover {
  background: var(--danger-bg) !important;
}

.btn-sm {
  min-height: 36px;
  padding: 0 13px;
  font-size: 13.5px;
}

.btn-lg {
  min-height: 50px;
  padding: 0 24px;
  font-size: 15.5px;
}

.btn-block {
  width: 100%;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  background: var(--surface-alt) !important;
  border-color: var(--line) !important;
  color: var(--ink-400) !important;
  cursor: not-allowed;
  transform: none;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink-700);
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}

.icon-btn:hover {
  background: var(--brand-050);
  color: var(--brand-700);
  border-color: var(--brand-100);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

/* --------------------------------- Badges -------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge-featured {
  background: var(--brass-100);
  color: var(--brass-600);
}

.badge-new {
  background: var(--brand-100);
  color: var(--brand-700);
}

.badge-neutral {
  background: var(--surface-alt);
  color: var(--ink-500);
}

.badge-success {
  background: var(--success-bg);
  color: var(--success);
}

.badge-warning {
  background: var(--warning-bg);
  color: var(--warning);
}

.badge-danger {
  background: var(--danger-bg);
  color: var(--danger);
}

.badge-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* -------------------------------- Hero ----------------------------------- */
.hero {
  position: relative;
  background: var(--navy-900);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(13, 35, 56, 0.93) 0%,
    rgba(13, 35, 56, 0.82) 42%,
    rgba(13, 35, 56, 0.55) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 58% 42%;
  gap: 40px;
  align-items: center;
  padding: 62px 0 66px;
}

.hero-copy {
  max-width: 560px;
}

.hero-copy .eyebrow {
  color: #9fc4e4;
}

.hero h1 {
  color: #fff;
}

.hero-sub {
  margin: 14px 0 22px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
  max-width: 46ch;
}

.hero-points {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-points li {
  position: relative;
  padding-left: 20px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 500;
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--brass-600);
}

/* ---------------------------- Search panel ------------------------------- */
.search-panel {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lg);
  padding: 20px;
}

.segmented {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--surface-alt);
  border-radius: var(--radius-btn);
  margin-bottom: 16px;
}

.segmented button {
  flex: 1 1 0;
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-500);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease;
}

.segmented button[aria-pressed="true"] {
  background: #fff;
  color: var(--brand-700);
  box-shadow: var(--shadow-sm);
}

.field {
  display: block;
  margin-bottom: 12px;
}

.field-label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink-700);
  font-size: 13px;
  font-weight: 600;
}

.field-hint {
  display: block;
  margin-top: 6px;
  color: var(--ink-500);
  font-size: 12.5px;
}

.field-error {
  display: block;
  margin-top: 6px;
  color: var(--danger);
  font-size: 12.5px;
  font-weight: 600;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="search"],
input[type="time"],
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  background: #fff;
  color: var(--ink-900);
  font-family: var(--font-body);
  font-size: 14.5px;
}

textarea {
  min-height: 104px;
  resize: vertical;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748B' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--brand-600);
  box-shadow: 0 0 0 3px rgba(27, 92, 143, 0.14);
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--danger);
}

input::placeholder,
textarea::placeholder {
  color: var(--ink-400);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 12px;
}

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

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 14px;
}

.check input {
  width: 18px;
  height: 18px;
  min-height: 0;
  margin: 2px 0 0;
  flex: 0 0 auto;
  accent-color: var(--brand-600);
}

.autocomplete {
  position: relative;
}

.suggestions {
  position: absolute;
  z-index: 40;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 248px;
  overflow-y: auto;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  box-shadow: var(--shadow-md);
}

.suggestions li {
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}

.suggestions li:hover,
.suggestions li.is-active {
  background: var(--brand-050);
}

.suggestions .sug-meta {
  display: block;
  color: var(--ink-500);
  font-size: 12px;
}

/* ------------------------------ Property card ---------------------------- */
.property-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.property-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 220ms var(--ease), transform 220ms var(--ease);
}

.property-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--surface-alt);
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms var(--ease);
}

.property-card:hover .card-media img {
  transform: scale(1.03);
}

.card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  z-index: 2;
}

.card-save {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.94);
  border-color: transparent;
  box-shadow: var(--shadow-sm);
}

.card-save.is-saved {
  background: var(--danger-bg);
  color: var(--danger);
}

.card-save.is-saved svg {
  fill: currentColor;
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 16px;
}

.card-price {
  color: var(--brand-600);
  font-family: var(--font-body);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.card-title {
  margin: 6px 0 4px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink-900);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-loc {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  color: var(--ink-500);
  font-size: 13.5px;
}

.card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.spec-chip {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-alt);
  color: var(--ink-700);
  font-size: 12.5px;
  font-weight: 500;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.card-status {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-500);
}

/* --------------------------------- Chips --------------------------------- */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--ink-700);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.chip:hover {
  border-color: var(--brand-100);
  background: var(--brand-050);
  color: var(--brand-700);
  text-decoration: none;
}

.chip.is-active {
  background: var(--brand-600);
  border-color: var(--brand-600);
  color: #fff;
}

/* ------------------------------ Locality card ---------------------------- */
.locality-card {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--navy-800);
}

.locality-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms var(--ease);
}

.locality-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(13, 35, 56, 0.85) 0%,
    rgba(13, 35, 56, 0.15) 62%
  );
}

.locality-card:hover img {
  transform: scale(1.04);
}

.locality-card:hover {
  text-decoration: none;
}

.locality-meta {
  position: absolute;
  z-index: 2;
  left: 16px;
  right: 16px;
  bottom: 14px;
  color: #fff;
}

.locality-meta strong {
  display: block;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
}

.locality-meta span {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.78);
}

/* --------------------------------- Steps --------------------------------- */
.step-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 18px;
  border-top: 2px solid var(--line);
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  margin-bottom: 8px;
  color: var(--brass-600);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.step h3 {
  font-size: 17px;
}

.step p {
  margin: 0;
  color: var(--ink-500);
  font-size: 14.5px;
}

/* ---------------------------------- CTA ---------------------------------- */
.cta-band {
  background: var(--navy-800);
  border-radius: var(--radius-card);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-band h2 {
  color: #fff;
  margin-bottom: 6px;
}

.cta-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
}

/* --------------------------------- Footer -------------------------------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.72);
  padding: 52px 0 24px;
  margin-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 32px;
}

.site-footer h4 {
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.site-footer a:hover {
  color: #fff;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 9px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 14px;
}

.footer-brand .brand-mark {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.96);
}

.footer-brand .brand-name {
  color: #fff;
}

.footer-brand .brand-sub {
  color: rgba(255, 255, 255, 0.55);
}

.footer-note {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.6);
  max-width: 40ch;
  margin: 0;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 13px;
}

.footer-bottom a {
  font-size: 13px;
}

.footer-legal {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

/* --------------------------------- Page head ----------------------------- */
.page-head {
  padding: 30px 0 26px;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--line);
}

.page-head h1 {
  font-size: clamp(26px, 3vw, 38px);
  margin-bottom: 6px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 13.5px;
  color: var(--ink-500);
  flex-wrap: wrap;
}

.breadcrumbs span {
  color: var(--ink-400);
}

.page-head-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--ink-500);
}

/* ------------------------------- Results bar ----------------------------- */
.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.results-count {
  font-size: 14.5px;
  color: var(--ink-500);
}

.results-count strong {
  color: var(--ink-900);
}

.results-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.results-tools select {
  min-width: 190px;
  width: auto;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 0 0;
}

.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 8px 6px 12px;
  border: 1px solid var(--brand-100);
  border-radius: var(--radius-pill);
  background: var(--brand-050);
  color: var(--brand-700);
  font-size: 13px;
  font-weight: 600;
}

.filter-tag button {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  background: rgba(27, 92, 143, 0.12);
  color: var(--brand-700);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

/* -------------------------------- Listings ------------------------------- */
.listings-layout {
  display: grid;
  grid-template-columns: 296px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 26px 0 0;
}

.filter-panel {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 20px;
  max-height: calc(100vh - var(--header-h) - 32px);
  overflow-y: auto;
}

.filter-panel h2 {
  font-size: 17px;
  margin-bottom: 16px;
}

.filter-group {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.filter-group:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.filter-group h3 {
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-500);
}

.filter-actions {
  display: grid;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.filter-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 120;
}

.filter-drawer.is-open {
  display: block;
}

.filter-drawer-scrim {
  position: absolute;
  inset: 0;
  background: rgba(13, 35, 56, 0.55);
  border: 0;
  padding: 0;
  cursor: pointer;
}

.filter-drawer-panel {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(420px, 92vw);
  background: #fff;
  padding: 20px;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.drawer-head h2 {
  font-size: 18px;
  margin: 0;
}

/* ------------------------------- Detail page ----------------------------- */
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(300px, 4fr);
  gap: 32px;
  align-items: start;
  padding: 26px 0 0;
}

.detail-rail {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  display: grid;
  gap: 16px;
}

.gallery {
  display: grid;
  gap: 10px;
}

.gallery-main {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--surface-alt);
}

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

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(255, 255, 255, 0.94);
  border-color: transparent;
}

.gallery-nav.prev {
  left: 12px;
}

.gallery-nav.next {
  right: 12px;
}

.gallery-counter {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: rgba(13, 35, 56, 0.72);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
}

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

.thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius-media);
  overflow: hidden;
  background: var(--surface-alt);
  cursor: pointer;
}

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

.thumb[aria-current="true"] {
  border-color: var(--brand-600);
}

.detail-head {
  padding: 22px 0 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}

.detail-head h1 {
  font-size: clamp(24px, 2.6vw, 34px);
  margin-bottom: 8px;
}

.detail-price {
  font-family: var(--font-body);
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 700;
  color: var(--brand-600);
  letter-spacing: -0.01em;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  margin-bottom: 26px;
}

.stat {
  padding: 14px 16px;
  background: #fff;
}

.stat dt {
  color: var(--ink-500);
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat dd {
  margin: 4px 0 0;
  color: var(--ink-900);
  font-size: 16px;
  font-weight: 600;
}

.detail-section {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.detail-section h2 {
  font-size: 20px;
  margin-bottom: 14px;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.spec-grid div {
  padding: 12px 14px;
  background: #fff;
}

.spec-grid dt {
  color: var(--ink-500);
  font-size: 12.5px;
  font-weight: 600;
}

.spec-grid dd {
  margin: 3px 0 0;
  color: var(--ink-900);
  font-size: 14.5px;
  font-weight: 600;
}

.amenity-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.amenity-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  background: var(--brand-050);
  color: var(--ink-700);
  font-size: 14px;
}

.amenity-list svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--brand-600);
}

.enquiry-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.enquiry-card h2 {
  font-size: 18px;
  margin-bottom: 4px;
}

.action-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
  overflow-x: auto;
}

.tabs button {
  padding: 11px 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--ink-500);
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.tabs button[aria-selected="true"] {
  color: var(--brand-700);
  border-bottom-color: var(--brand-600);
}

/* --------------------------------- Tables -------------------------------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 860px;
}

thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 12px 14px;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--line);
  color: var(--ink-500);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
}

tbody td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-700);
  vertical-align: middle;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover {
  background: var(--brand-050);
}

.tbl-property {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
}

.tbl-property img {
  width: 62px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  flex: 0 0 auto;
  background: var(--surface-alt);
}

.tbl-property strong {
  display: block;
  color: var(--ink-900);
  font-weight: 600;
}

.tbl-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* ---------------------------------- Forms -------------------------------- */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.form-section {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.form-section:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.form-section > h3 {
  font-size: 16px;
  margin-bottom: 14px;
}

.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

/* ------------------------------ Dashboard -------------------------------- */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 18px;
}

.stat-card span {
  display: block;
  color: var(--ink-500);
  font-size: 13px;
  font-weight: 600;
}

.stat-card strong {
  display: block;
  margin: 6px 0 2px;
  color: var(--ink-900);
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
}

.stat-card em {
  display: block;
  color: var(--ink-500);
  font-size: 12.5px;
  font-style: normal;
}

.stat-card.is-accent {
  background: var(--navy-800);
  border-color: var(--navy-800);
}

.stat-card.is-accent span,
.stat-card.is-accent em {
  color: rgba(255, 255, 255, 0.72);
}

.stat-card.is-accent strong {
  color: #fff;
}

/* -------------------------------- Admin shell ---------------------------- */
.admin-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
  background: var(--surface-alt);
}

.admin-sidebar {
  background: var(--navy-900);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-sidebar .brand-name {
  color: #fff;
}

.admin-sidebar .brand-sub {
  color: rgba(255, 255, 255, 0.55);
}

.admin-sidebar .brand-mark {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(255, 255, 255, 0.16);
}

.admin-role {
  margin: 14px 0 6px;
  padding: 0 12px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-nav {
  display: grid;
  gap: 4px;
}

.admin-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14.5px;
  font-weight: 500;
}

.admin-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  text-decoration: none;
}

.admin-nav a.is-active {
  background: var(--brand-600);
  color: #fff;
}

.admin-nav svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.admin-sidebar-foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.admin-main {
  min-width: 0;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 24px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
}

.admin-topbar h1 {
  font-size: 20px;
  margin: 0;
}

.admin-content {
  padding: 24px;
}

.admin-tabs {
  display: none;
  gap: 6px;
  overflow-x: auto;
  padding: 12px 16px;
  background: var(--navy-900);
}

.admin-tabs a {
  padding: 8px 12px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}

.admin-tabs a.is-active {
  background: var(--brand-600);
  color: #fff;
}

.demo-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #d9e6f2;
  border-radius: var(--radius-btn);
  background: var(--brand-050);
  color: var(--brand-700);
  font-size: 13.5px;
}

.demo-notice svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  margin-top: 2px;
}

/* ---------------------------------- Auth --------------------------------- */
.auth-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: var(--surface-alt);
}

.auth-aside {
  position: relative;
  background: var(--navy-900);
  padding: 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.auth-aside img.auth-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
}

.auth-aside-inner {
  position: relative;
  z-index: 2;
}

.auth-aside h2 {
  color: #fff;
  font-size: 28px;
  margin-bottom: 10px;
}

.auth-aside p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  max-width: 42ch;
}

.auth-points {
  position: relative;
  z-index: 2;
  list-style: none;
  margin: 0;
  padding: 0;
}

.auth-points li {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14.5px;
}

.auth-points svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: #9fc4e4;
  margin-top: 3px;
}

.auth-main {
  display: grid;
  place-items: center;
  padding: 40px 24px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.otp-inputs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 6px;
}

.otp-inputs input {
  text-align: center;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  padding: 8px 4px;
}

.demo-credentials {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px dashed #cdd9e5;
  border-radius: var(--radius-btn);
  background: var(--surface-alt);
  font-size: 13.5px;
  color: var(--ink-700);
}

.demo-credentials code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  color: var(--navy-800);
  background: #fff;
  padding: 1px 6px;
  border-radius: 5px;
  border: 1px solid var(--line);
}

/* --------------------------------- Profile ------------------------------- */
.profile-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 28px 0 0;
}

.profile-aside {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 22px;
  text-align: center;
}

.avatar {
  width: 76px;
  height: 76px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand-100);
  color: var(--brand-700);
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
}

.profile-nav {
  display: grid;
  gap: 4px;
  margin-top: 18px;
  text-align: left;
}

.profile-nav a,
.profile-nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-700);
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.profile-nav a:hover,
.profile-nav button:hover {
  background: var(--brand-050);
  color: var(--brand-700);
  text-decoration: none;
}

.profile-nav a.is-active {
  background: var(--brand-100);
  color: var(--brand-700);
  font-weight: 600;
}

/* ---------------------------------- FAQ ---------------------------------- */
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: #fff;
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  cursor: pointer;
  color: var(--ink-900);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--ink-500);
  border-bottom: 2px solid var(--ink-500);
  transform: rotate(45deg);
  transition: transform 220ms var(--ease);
}

.faq-item[open] summary::after {
  transform: rotate(-135deg);
}

.faq-body {
  padding: 0 18px 18px;
  color: var(--ink-700);
}

.faq-body p:last-child {
  margin-bottom: 0;
}

/* --------------------------------- Legal --------------------------------- */
.prose {
  max-width: 780px;
}

.prose h2 {
  font-size: 20px;
  margin: 30px 0 10px;
}

.prose h3 {
  font-size: 16.5px;
  margin: 20px 0 8px;
}

.prose li {
  margin-bottom: 6px;
}

.note-box {
  padding: 14px 16px;
  border-left: 3px solid var(--brass-600);
  border-radius: 0 var(--radius-btn) var(--radius-btn) 0;
  background: var(--brass-100);
  color: #6d4a12;
  font-size: 14px;
}

.note-box p:last-child {
  margin-bottom: 0;
}

/* --------------------------------- States -------------------------------- */
.empty-state {
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 56px 24px;
  border: 1px dashed #cdd9e5;
  border-radius: var(--radius-card);
  background: var(--surface-alt);
  text-align: center;
}

.empty-state svg {
  width: 46px;
  height: 46px;
  color: var(--ink-400);
}

.empty-state h3 {
  margin: 4px 0 0;
  font-size: 18px;
}

.empty-state p {
  margin: 0;
  max-width: 46ch;
  color: var(--ink-500);
  font-size: 14.5px;
}

.skeleton {
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
  background: linear-gradient(
    90deg,
    var(--surface-alt) 25%,
    #eef2f7 37%,
    var(--surface-alt) 63%
  );
  background-size: 400% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  aspect-ratio: 4 / 3.6;
}

@keyframes shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: 0 0;
  }
}

.img-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: var(--surface-alt);
  color: var(--ink-400);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.confirm-panel {
  display: flex;
  gap: 14px;
  padding: 18px;
  border: 1px solid #bfe0cd;
  border-radius: var(--radius-card);
  background: var(--success-bg);
}

.confirm-panel svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  color: var(--success);
  margin-top: 2px;
}

.confirm-panel h3 {
  margin: 0 0 4px;
  color: var(--success);
  font-size: 16px;
}

.confirm-panel p {
  margin: 0;
  color: #14532d;
  font-size: 14px;
}

/* --------------------------------- Toast --------------------------------- */
.toast-stack {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  display: grid;
  gap: 10px;
  width: min(340px, calc(100vw - 40px));
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand-600);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-md);
  animation: toast-in 220ms var(--ease);
}

.toast.is-success {
  border-left-color: var(--success);
}

.toast.is-error {
  border-left-color: var(--danger);
}

.toast.is-warning {
  border-left-color: var(--warning);
}

.toast p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-900);
}

.toast button {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--ink-500);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------- Modal --------------------------------- */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 150;
  padding: 20px;
  overflow-y: auto;
}

.modal.is-open {
  display: grid;
  place-items: center;
}

.modal-scrim {
  position: fixed;
  inset: 0;
  background: rgba(13, 35, 56, 0.55);
  border: 0;
  padding: 0;
  cursor: pointer;
}

.modal-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 460px;
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
}

/* -------------------------------- Utilities ------------------------------ */
.utility-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.alert {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-btn);
  font-size: 13.5px;
  margin-bottom: 16px;
}

.alert-warning {
  background: var(--warning-bg);
  color: #6d4a12;
}

.alert-info {
  background: var(--brand-050);
  color: var(--brand-700);
}

.alert svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  margin-top: 2px;
}

.hidden {
  display: none !important;
}

.utils-hide-desktop {
  display: inline-flex;
}

@media (min-width: 1001px) {
  /* The filter trigger only opens the mobile drawer; hide it on desktop. */
  #open-filters {
    display: none;
  }
}

/* Visibility helpers for the filter panel title/close control */
.mob-only {
  display: none;
}

@media (max-width: 1000px) {
  .mob-only {
    display: flex;
  }

  .desk-only {
    display: none;
  }
}

/* ------------------------------- Responsive ------------------------------ */
@media (max-width: 1200px) {
  .property-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-inner {
    grid-template-columns: 52% 48%;
    gap: 28px;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .stat-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .amenity-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1000px) {
  .main-nav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    order: 3;
  }

  .header-actions {
    order: 2;
    gap: 8px;
  }

  .listings-layout,
  .detail-layout,
  .profile-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .filter-panel {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(440px, 94vw);
    max-height: none;
    border-radius: 0;
    border: 0;
    z-index: 130;
    display: none;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
  }

  .filter-panel.is-open {
    display: block;
    box-shadow: 0 0 0 100vmax rgba(13, 35, 56, 0.55), var(--shadow-lg);
  }

  .detail-rail {
    position: static;
  }

  .auth-wrap {
    grid-template-columns: minmax(0, 1fr);
  }

  .auth-aside {
    display: none;
  }

  .admin-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-sidebar {
    display: none;
  }

  .admin-tabs {
    display: flex;
  }

  .gallery-thumbs {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .section {
    padding: 48px 0;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    padding: 40px 0 44px;
  }

  .hero-media img {
    object-position: 70% 40%;
  }

  .hero-sub {
    font-size: 16px;
  }

  .grid-3,
  .grid-4,
  .step-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
  }

  .detail-layout {
    gap: 24px;
  }

  .stat-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .spec-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cta-band {
    padding: 24px;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  .section {
    padding: 40px 0;
  }

  .property-grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .step-list,
  .field-grid,
  .field-grid-3,
  .footer-grid,
  .stat-cards,
  .amenity-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .search-panel {
    padding: 16px;
  }

  .card-price {
    font-size: 19px;
  }

  .gallery-thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .stat-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toast-stack {
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: auto;
  }

  .admin-content,
  .admin-topbar {
    padding: 16px;
  }

  .otp-inputs {
    gap: 6px;
  }

  .hero-points {
    gap: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .property-card:hover {
    transform: none;
  }

  .property-card:hover .card-media img,
  .locality-card:hover img {
    transform: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .enquiry-card,
  .toast-stack {
    display: none;
  }
}