/* ============================================================
   StayLink – Main Stylesheet
   ============================================================ */

:root {
  /* Brand: warm amber + deep navy accent */
  --primary:        #f59e0b;   /* amber 500 */
  --primary-dark:   #d97706;   /* amber 600 */
  --primary-light:  #fef3c7;   /* amber 100 */
  --primary-soft:   #fde68a;   /* amber 200 */
  --accent:         #0f172a;   /* navy 900 */
  --accent-light:   #1e293b;   /* navy 800 */
  --accent-soft:    #334155;   /* slate 700 */
  --success:        #16a34a;
  --success-light:  #dcfce7;
  --warning:        #ea580c;
  --warning-light:  #ffedd5;
  --danger:         #dc2626;
  --danger-light:   #fee2e2;
  --bg:             #fffbeb;   /* cream / amber 50 */
  --bg-alt:         #fef9e0;
  --card:           #ffffff;
  --border:         #fde68a;   /* amber 200 */
  --border-soft:    #fef3c7;
  --text:           #0f172a;
  --text-muted:     #64748b;
  --radius:         0.85rem;
  --shadow:         0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
  --shadow-md:      0 8px 16px rgba(245,158,11,.10), 0 2px 4px rgba(15,23,42,.04);
  --shadow-lg:      0 18px 40px rgba(15,23,42,.12), 0 6px 12px rgba(245,158,11,.08);
  --shadow-amber:   0 10px 25px rgba(245,158,11,.25);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
}

h1, h2, h3, .display-font {
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  letter-spacing: -0.02em;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ── Utility ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }
.font-bold { font-weight: 700; }
.text-sm  { font-size: 0.85rem; }
.text-xs  { font-size: 0.75rem; }
.mt-1 { margin-top: .25rem; }
.mt-2 { margin-top: .5rem; }
.mt-4 { margin-top: 1rem; }
.mb-2 { margin-bottom: .5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.gap-2 { gap: .5rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.grid { display: grid; }
.w-full { width: 100%; }
.hidden { display: none !important; }

/* ── Alerts ── */
.alert {
  padding: .75rem 1rem;
  border-radius: var(--radius);
  font-size: .875rem;
  margin-bottom: 1rem;
}
.alert-danger  { background: var(--danger-light);  color: var(--danger); }
.alert-success { background: var(--success-light); color: var(--success); }
.alert-warning { background: var(--warning-light); color: var(--warning); }

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: .2rem .6rem;
  border-radius: 9999px;
  font-size: .72rem;
  font-weight: 600;
  white-space: nowrap;
}
.badge-primary { background: var(--primary-light); color: var(--primary); }
.badge-success { background: var(--success-light); color: var(--success); }
.badge-danger  { background: var(--danger-light);  color: var(--danger); }
.badge-warning { background: var(--warning-light); color: var(--warning); }
.badge-neutral { background: #f1f5f9; color: var(--text-muted); }
.badge-girls   { background: #fce7f3; color: #be185d; }
.badge-boys    { background: #dbeafe; color: #1d4ed8; }
.badge-mixed   { background: #f3e8ff; color: #7c3aed; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .55rem 1.1rem;
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background .15s, color .15s, border-color .15s, box-shadow .15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary-light); }
.btn-danger  { background: var(--danger);  color: #fff; border-color: var(--danger); }
.btn-danger:hover { background: #b91c1c; }
.btn-success { background: var(--success); color: #fff; border-color: var(--success); }
.btn-accent  { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-light); border-color: var(--accent-light); }
.btn-accent-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-accent-outline:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn:active { transform: scale(.97); }
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--primary-light); color: var(--accent); }
.btn-sm { padding: .35rem .75rem; font-size: .8rem; }
.btn-lg { padding: .75rem 1.5rem; font-size: 1rem; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ── Form controls ── */
.form-group { margin-bottom: 1.1rem; }
.form-label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: .35rem;
  color: var(--text);
}
.form-control {
  width: 100%;
  padding: .55rem .8rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .9rem;
  background: var(--card);
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(245,158,11,.18);
}
.form-control[disabled] { background: var(--bg-alt); color: var(--text-muted); cursor: not-allowed; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; padding-right: 2.2rem; }
textarea.form-control { resize: vertical; min-height: 90px; }

/* ── Cards ── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-body { padding: 1.25rem; }
.card-title { font-size: 1.05rem; font-weight: 700; margin-bottom: .4rem; }

/* ── Navbar ── */
.navbar {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 1rem;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
}
.navbar-brand .logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1rem;
  box-shadow: 0 4px 10px rgba(245,158,11,.35);
}
.navbar-brand span.accent { color: var(--primary); }
.navbar-nav {
  display: flex;
  align-items: center;
  gap: .25rem;
  list-style: none;
}
.navbar-nav a {
  padding: .4rem .7rem;
  border-radius: .5rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: background .15s, color .15s;
}
.navbar-nav a:hover,
.navbar-nav a.active { background: var(--primary-light); color: var(--primary-dark); }
.navbar-actions { display: flex; align-items: center; gap: .5rem; }
.navbar-toggle { display: none; background: none; border: none; cursor: pointer; padding: .4rem; color: var(--text); }
@media (max-width: 768px) {
  .navbar-toggle { display: block; }
  .navbar-nav { display: none; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: var(--card); border-bottom: 1px solid var(--border); padding: .75rem 1.25rem; gap: .1rem; }
  .navbar-nav.open { display: flex; }
  .navbar-nav a { width: 100%; display: block; }
  .navbar-actions .btn-label { display: none; }
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #78350f 100%);
  isolation: isolate;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url('https://images.unsplash.com/photo-1555854877-bab0e564b8d5?auto=format&fit=crop&w=1800&q=80');
  background-size: cover; background-position: center;
  opacity: .35;
  z-index: -2;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(245,158,11,.45) 0%, transparent 55%),
              linear-gradient(180deg, rgba(15,23,42,.55) 0%, rgba(15,23,42,.85) 100%);
  z-index: -1;
}
.hero-bg {
  position: absolute; inset: 0;
  object-fit: cover; width: 100%; height: 100%;
  opacity: .25;
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 5rem 0 4.5rem;
  max-width: 640px;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(245,158,11,.18);
  color: #fde68a;
  padding: .35rem .8rem;
  border: 1px solid rgba(253,230,138,.4);
  border-radius: 9999px;
  font-size: .78rem; font-weight: 600;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(6px);
}
.hero-content h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; color: #fff; line-height: 1.1; margin-bottom: 1.1rem; letter-spacing: -.025em; }
.hero-content h1 span { color: var(--primary); background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-content p { color: rgba(255,255,255,.85); font-size: 1.1rem; margin-bottom: 2rem; max-width: 540px; }
.hero-btns { display: flex; gap: .75rem; flex-wrap: wrap; }
.hero-stats-pill {
  display: inline-flex; align-items: center; gap: 1.25rem;
  margin-top: 2rem; padding: .75rem 1.25rem;
  background: rgba(255,255,255,.08); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 9999px;
  color: rgba(255,255,255,.92); font-size: .82rem; font-weight: 600;
}
.hero-stats-pill .dot { width: 5px; height: 5px; background: var(--primary); border-radius: 50%; }
@media (max-width: 600px) {
  .hero { min-height: 480px; }
  .hero-stats-pill { flex-wrap: wrap; gap: .6rem; font-size: .75rem; }
}

/* ── Stats bar ── */
.stats-bar {
  background: var(--card);
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1.25rem;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-soft) 100%);
  border-radius: .7rem;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary-dark);
  font-size: 1.2rem;
  flex-shrink: 0;
}
.stat-value { font-size: 1.25rem; font-weight: 800; color: var(--text); }
.stat-label { font-size: .78rem; color: var(--text-muted); }
@media (max-width: 768px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } .stat-item:nth-child(2) { border-right: none; } }
@media (max-width: 400px) { .stats-grid { grid-template-columns: 1fr; } .stat-item { border-right: none; border-bottom: 1px solid var(--border); } }

/* ── Section headings ── */
.section { padding: 4rem 0; }
.section-title { font-size: 1.6rem; font-weight: 800; margin-bottom: .3rem; }
.section-sub  { color: var(--text-muted); font-size: .95rem; }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 2rem; flex-wrap: wrap; gap: .75rem; }

/* ── Property Cards ── */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px)  { .properties-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .properties-grid { grid-template-columns: 1fr; } }

.property-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .18s, box-shadow .18s;
  display: flex;
  flex-direction: column;
}
.property-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary-soft); }
.property-card-img {
  width: 100%; height: 200px; object-fit: cover;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-soft) 100%);
  transition: transform .4s ease;
}
.property-card:hover .property-card-img { transform: scale(1.04); }
.property-card-img-placeholder {
  width: 100%; height: 200px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-soft) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.8rem; color: var(--primary-dark);
}
.property-card-body { padding: 1rem; flex: 1; display: flex; flex-direction: column; }
.property-card-title { font-size: 1rem; font-weight: 700; margin-bottom: .3rem; color: var(--text); }
.property-card-location { font-size: .82rem; color: var(--text-muted); display: flex; align-items: center; gap: .3rem; margin-bottom: .6rem; }
.property-card-badges { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .75rem; }
.property-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: .75rem; border-top: 1px solid var(--border); }
.property-price { font-size: 1.05rem; font-weight: 800; color: var(--primary-dark); font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; }
.property-price span { font-size: .75rem; font-weight: 400; color: var(--text-muted); }
.fav-btn { background: none; border: none; cursor: pointer; font-size: 1.1rem; color: var(--text-muted); transition: color .15s; }
.fav-btn:hover, .fav-btn.active { color: var(--danger); }

/* ── Occupancy bar ── */
.occ-bar { display: flex; align-items: center; gap: .5rem; font-size: .78rem; }
.occ-track { flex: 1; height: 6px; background: #e2e8f0; border-radius: 9999px; overflow: hidden; }
.occ-fill  { height: 100%; border-radius: 9999px; transition: width .3s; }
.occ-fill.full    { background: var(--danger); }
.occ-fill.partial { background: var(--warning); }
.occ-fill.empty   { background: var(--success); }

/* ── How it works ── */
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; text-align: center; }
@media (max-width: 700px) { .how-grid { grid-template-columns: 1fr; gap: 1.25rem; } }
.how-step-num {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem; font-weight: 800;
  margin: 0 auto 1.25rem;
  box-shadow: var(--shadow-amber);
}
.how-step h3 { font-size: 1rem; font-weight: 700; margin-bottom: .4rem; }
.how-step p  { font-size: .88rem; color: var(--text-muted); }

/* ── Browse filters ── */
.filter-bar {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}
.filter-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-bottom: .75rem; }
.filter-row:last-child { margin-bottom: 0; }
.search-wrap { position: relative; flex: 1; min-width: 180px; }
.search-wrap .search-icon { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.search-wrap .form-control { padding-left: 2.3rem; }
.gender-btns { display: flex; flex-wrap: wrap; gap: .4rem; }
.gender-btn {
  padding: .3rem .8rem;
  border-radius: 9999px;
  border: 1.5px solid var(--border);
  background: var(--card);
  font-size: .8rem; font-weight: 600;
  cursor: pointer; transition: all .15s;
  color: var(--text-muted);
}
.gender-btn.active, .gender-btn:hover { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }

/* ── Property Detail ── */
.detail-hero-img { width: 100%; height: 380px; object-fit: cover; border-radius: var(--radius); margin-bottom: 2rem; background: linear-gradient(135deg,var(--primary-light),var(--primary-soft)); box-shadow: var(--shadow-md); }
.detail-grid { display: grid; grid-template-columns: 1fr 320px; gap: 2rem; }
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; } }
.detail-sidebar { position: sticky; top: 76px; align-self: start; display: flex; flex-direction: column; gap: 1rem; }
.detail-section-title { font-size: 1.05rem; font-weight: 700; margin-bottom: .75rem; }
.facilities-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.facility-tag { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .75rem; border: 1px solid var(--border); border-radius: .5rem; font-size: .82rem; background: var(--card); }

/* ── Tables ── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: .875rem; }
thead { background: var(--bg-alt); }
th { padding: .7rem 1rem; text-align: left; font-size: .78rem; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
td { padding: .7rem 1rem; border-top: 1px solid var(--border); vertical-align: middle; }
tr:hover td { background: var(--bg); }

/* ── Auth pages ── */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; background: var(--bg); }
.auth-card { width: 100%; max-width: 440px; background: var(--card); border: 1px solid var(--border); border-radius: calc(var(--radius) * 1.5); box-shadow: var(--shadow-lg); padding: 2rem; }
.auth-logo { display: flex; align-items: center; justify-content: center; gap: .6rem; margin-bottom: 1.5rem; text-decoration: none; color: var(--text); font-size: 1.4rem; font-weight: 800; }
.auth-logo .logo-icon { width: 42px; height: 42px; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); border-radius: 11px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.05rem; flex-shrink: 0; box-shadow: 0 4px 12px rgba(245,158,11,.35); }
.auth-title { text-align: center; font-size: 1.35rem; font-weight: 800; margin-bottom: .25rem; }
.auth-sub   { text-align: center; color: var(--text-muted); font-size: .875rem; margin-bottom: 1.5rem; }
.role-tabs  { display: flex; gap: .35rem; background: var(--bg); border-radius: .6rem; padding: .25rem; margin-bottom: 1.25rem; }
.role-tab   { flex: 1; text-align: center; padding: .5rem; border-radius: .45rem; font-size: .875rem; font-weight: 600; cursor: pointer; border: none; background: transparent; transition: all .15s; color: var(--text-muted); }
.role-tab.active { background: var(--card); color: var(--text); box-shadow: var(--shadow); }
.pw-wrap { position: relative; }
.pw-toggle { position: absolute; right: .75rem; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: var(--text-muted); font-size: .9rem; }

/* ── Dashboards ── */
.dashboard-tabs { display: flex; gap: .35rem; flex-wrap: wrap; border-bottom: 2px solid var(--border); margin-bottom: 1.75rem; padding-bottom: 0; }
.dashboard-tab { padding: .6rem 1rem; font-size: .875rem; font-weight: 600; border: none; background: none; cursor: pointer; color: var(--text-muted); border-bottom: 2.5px solid transparent; margin-bottom: -2px; transition: color .15s, border-color .15s; }
.dashboard-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.dashboard-tab:hover { color: var(--primary); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ── Modal ── */
.modal-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.45);
  align-items: center; justify-content: center;
  padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--card);
  border-radius: calc(var(--radius) * 1.5);
  width: 100%; max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  padding: 1.75rem;
}
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.modal-title { font-size: 1.1rem; font-weight: 700; }
.modal-close { background: none; border: none; font-size: 1.25rem; cursor: pointer; color: var(--text-muted); line-height: 1; padding: .2rem; }
.modal-close:hover { color: var(--danger); }

/* ── Profile ── */
.profile-avatar {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem; font-weight: 800;
  flex-shrink: 0;
  box-shadow: var(--shadow-amber);
}
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .profile-grid { grid-template-columns: 1fr; } }

/* ── Reviews ── */
.star { font-size: 1rem; color: #d1d5db; }
.star.filled { color: #f59e0b; }
.star-input label { cursor: pointer; font-size: 1.4rem; color: #d1d5db; transition: color .1s; }
.star-input input { display: none; }
.star-input input:checked ~ label,
.star-input label:hover,
.star-input label:hover ~ label { color: #f59e0b; }
.star-input { display: flex; flex-direction: row-reverse; width: fit-content; }

/* ── Empty state ── */
.empty-state { text-align: center; padding: 4rem 1rem; color: var(--text-muted); }
.empty-state .icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-state h3 { font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: .4rem; }

/* ── Footer ── */
footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  text-align: center;
  font-size: .82rem;
  color: var(--text-muted);
  margin-top: auto;
}

/* ── Page wrapper ── */
.page-wrapper { min-height: 100vh; display: flex; flex-direction: column; }
.main-content { flex: 1; }

/* ── Responsive bottom nav (mobile) ── */
.bottom-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--card);
  border-top: 1px solid var(--border);
  z-index: 100;
  padding: .4rem 0;
}
.bottom-nav-inner { display: flex; justify-content: space-around; }
.bottom-nav a {
  display: flex; flex-direction: column; align-items: center;
  font-size: .65rem; font-weight: 600;
  color: var(--text-muted);
  padding: .35rem .5rem;
  text-decoration: none;
  gap: .15rem;
}
.bottom-nav a span.icon { font-size: 1.2rem; }
.bottom-nav a.active { color: var(--primary); }
@media (max-width: 768px) { .bottom-nav { display: block; } body { padding-bottom: 58px; } }

/* ── Animations ── */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn .35s ease both; }

/* ── Misc ── */
.divider { height: 1px; background: var(--border); margin: 1.25rem 0; }
.page-header { margin-bottom: 1.75rem; }
.page-header h1 { font-size: 1.6rem; font-weight: 800; }
.page-header p  { color: var(--text-muted); margin-top: .2rem; }
.owner-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); margin-bottom: 1.5rem; }
.owner-card-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 1rem; flex-wrap: wrap; gap: .5rem; }

/* ── Distance badge ── */
.distance-badge { font-size: .72rem; color: var(--text-muted); display: flex; align-items: center; gap: .2rem; }

/* ── Image gallery (owner dashboard) ── */
.image-gallery { display: flex; flex-wrap: wrap; gap: .5rem; }
.gallery-thumb {
  position: relative;
  width: 100px; height: 75px;
  border-radius: .5rem;
  overflow: hidden;
  border: 1px solid var(--border);
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-primary-badge {
  position: absolute; bottom: 2px; left: 2px;
  background: var(--primary); color: #fff;
  font-size: .55rem; font-weight: 700;
  padding: .1rem .35rem; border-radius: .25rem;
}
.gallery-delete-btn {
  position: absolute; top: 2px; right: 2px;
  width: 18px; height: 18px;
  background: rgba(0,0,0,.6); color: #fff;
  border: none; border-radius: 50%;
  font-size: .7rem; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .15s;
}
.gallery-thumb:hover .gallery-delete-btn { opacity: 1; }

/* ── Property detail image gallery ── */
.detail-gallery { display: flex; gap: .5rem; margin-bottom: 2rem; overflow: hidden; border-radius: var(--radius); max-height: 400px; }
.detail-gallery-main { flex: 2; min-width: 0; }
.detail-gallery-main img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; border-radius: var(--radius) 0 0 var(--radius); }
.detail-gallery-side { flex: 1; display: flex; flex-direction: column; gap: .5rem; min-width: 0; }
.detail-gallery-side img {
  width: 100%; flex: 1; object-fit: cover; cursor: pointer;
  border-radius: 0;
}
.detail-gallery-side img:first-child { border-radius: 0 var(--radius) 0 0; }
.detail-gallery-side img:last-child  { border-radius: 0 0 var(--radius) 0; }
@media (max-width: 600px) {
  .detail-gallery { flex-direction: column; max-height: none; }
  .detail-gallery-main img { border-radius: var(--radius) var(--radius) 0 0; height: 220px; }
  .detail-gallery-side { flex-direction: row; }
  .detail-gallery-side img { height: 80px; border-radius: 0; }
  .detail-gallery-side img:last-child { border-radius: 0 0 var(--radius) var(--radius); }
}

/* ── Lightbox ── */
.lightbox-overlay {
  display: none; position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,.85);
  align-items: center; justify-content: center;
  padding: 1rem;
}
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: .5rem; }
.lightbox-close {
  position: absolute; top: 1rem; right: 1.5rem;
  background: none; border: none; color: #fff;
  font-size: 2rem; cursor: pointer; line-height: 1;
}
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.15); border: none; color: #fff;
  font-size: 1.5rem; padding: .5rem .75rem; border-radius: .5rem;
  cursor: pointer; backdrop-filter: blur(4px);
}
.lightbox-nav:hover { background: rgba(255,255,255,.3); }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

/* ── Facility filter (browse) ── */
.facility-filters { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.facility-check {
  display: flex; align-items: center; gap: .3rem;
  padding: .25rem .6rem; border-radius: 9999px;
  border: 1.5px solid var(--border); background: var(--card);
  font-size: .78rem; font-weight: 600; cursor: pointer;
  color: var(--text-muted); transition: all .15s; user-select: none;
}
.facility-check input { display: none; }
.facility-check.checked,
.facility-check:hover { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }

/* ── University marker icon ── */
.uni-marker-icon {
  background: var(--accent); color: var(--primary);
  width: 30px; height: 30px;
  border-radius: 50%; border: 2.5px solid var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 700;
  box-shadow: 0 4px 10px rgba(15,23,42,.4);
}

/* ── New redesign components ── */

/* Feature cards (Why StayLink) */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 800px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-card {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: calc(var(--radius) * 1.2);
  padding: 1.75rem;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  transform: scaleX(0); transform-origin: left; transition: transform .35s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary-soft); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-soft));
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; color: var(--primary-dark);
  margin-bottom: 1rem;
}
.feature-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .5rem; color: var(--accent); }
.feature-card p  { font-size: .9rem; color: var(--text-muted); line-height: 1.6; }

/* Location tiles */
.location-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 900px) { .location-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .location-grid { grid-template-columns: 1fr; } }
.location-tile {
  position: relative;
  height: 220px;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  display: block; text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform .3s, box-shadow .3s;
}
.location-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.location-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.location-tile:hover img { transform: scale(1.08); }
.location-tile::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,0) 40%, rgba(15,23,42,.85) 100%);
}
.location-tile-label {
  position: absolute; bottom: 1rem; left: 1rem; right: 1rem;
  z-index: 1; color: #fff;
}
.location-tile-label h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: .15rem; }
.location-tile-label span { font-size: .78rem; opacity: .85; }

/* Testimonials */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 900px) { .testimonial-grid { grid-template-columns: 1fr; } }
.testimonial-card {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
  box-shadow: var(--shadow);
}
.testimonial-card::before {
  content: '"';
  position: absolute; top: -8px; left: 1.25rem;
  font-size: 4rem; color: var(--primary);
  font-family: Georgia, serif; line-height: 1;
  font-weight: 700;
}
.testimonial-card p { font-size: .92rem; color: var(--accent-soft); line-height: 1.65; margin-bottom: 1rem; padding-top: .75rem; }
.testimonial-author { display: flex; align-items: center; gap: .75rem; }
.testimonial-avatar {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1rem;
}
.testimonial-author strong { font-size: .9rem; font-weight: 700; color: var(--accent); display: block; }
.testimonial-author span { font-size: .78rem; color: var(--text-muted); }

/* Section variants */
.section-cream { background: var(--bg-alt); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.section-navy {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.section-navy::before {
  content: ''; position: absolute; right: -100px; top: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(245,158,11,.2), transparent 70%);
  border-radius: 50%;
}
.section-navy h2 { color: #fff; }
.section-navy p  { color: rgba(255,255,255,.8); }

/* CTA Banner */
.cta-banner {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1.5rem;
  padding: 1rem 0;
}
.cta-banner h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin-bottom: .35rem; }
.cta-banner p  { font-size: .95rem; }

/* Auth split layout */
.auth-split {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 900px) { .auth-split { grid-template-columns: 1fr; } }
.auth-split-image {
  position: relative;
  background-image: url('https://images.unsplash.com/photo-1522708323590-d24dbb6b0267?auto=format&fit=crop&w=1400&q=80');
  background-size: cover; background-position: center;
  display: flex; align-items: flex-end; padding: 3rem;
  color: #fff;
}
.auth-split-image::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(15,23,42,.85) 0%, rgba(245,158,11,.55) 100%);
}
.auth-split-image-content { position: relative; z-index: 1; max-width: 420px; }
.auth-split-image-content h2 { font-size: 2rem; font-weight: 800; line-height: 1.15; margin-bottom: .75rem; color: #fff; }
.auth-split-image-content p { font-size: 1rem; opacity: .9; }
.auth-split-form { display: flex; align-items: center; justify-content: center; padding: 2.5rem 1.5rem; background: var(--bg); }
.auth-split-form .auth-card { box-shadow: none; border: none; background: transparent; padding: 0; max-width: 420px; }
@media (max-width: 900px) { .auth-split-image { display: none; } }

/* Decorative section accents */
.section-eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--primary-dark);
  margin-bottom: .5rem;
}
.section-title-centered { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }
.section-title-centered h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: .5rem; color: var(--accent); }
.section-title-centered p { color: var(--text-muted); font-size: 1rem; }

/* Sticky-section divider wave */
.section-divider-wave {
  height: 60px; background: var(--bg);
  -webkit-mask-image: radial-gradient(ellipse 50% 60px at 50% 0, transparent 95%, #000 100%);
          mask-image: radial-gradient(ellipse 50% 60px at 50% 0, transparent 95%, #000 100%);
}

/* Auth page overrides */
body.auth-page { display: block; min-height: 100vh; }
.auth-footer { text-align: center; margin-top: 1.25rem; font-size: .875rem; color: var(--text-muted); }
.auth-footer a { font-weight: 600; }

/* ── Admin Dashboard Metrics Cards ── */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 900px) { .metrics-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .metrics-grid { grid-template-columns: 1fr; } }

.metric-card {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.metric-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-soft));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.metric-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: .25rem;
}

.metric-label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: .25rem;
}

.metric-sub {
  font-size: .75rem;
  color: var(--text-muted);
  display: flex;
  gap: .35rem;
  align-items: center;
  flex-wrap: wrap;
}

/* ── Card Components ── */
.card {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.card-body {
  padding: 1.25rem;
}

/* ── Star Rating ── */
.star {
  color: var(--border-soft);
  font-size: 1.1rem;
  letter-spacing: .05em;
}
.star.filled {
  color: var(--primary);
}
