/* ============================================================
   RentMine - Main Stylesheet
   Aesthetic: Refined Desert Luxury — warm sand tones, deep
   charcoal, terracotta accents, editorial typography
   ============================================================ */

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

:root {
  --sand: #F5EFE6;
  --sand-dark: #EAE0D0;
  --clay: #C8A882;
  --terra: #B5713A;
  --charcoal: #1E1E1E;
  --ink: #2C2C2C;
  --muted: #7A7268;
  --white: #FDFBF7;
  --border: #DDD5C4;
  --success: #2A9D6E;
  --danger: #C0392B;
  --gold: #C8901A;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.14);
  --radius: 12px;
  --radius-lg: 20px;
}

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

body {
  font-family: 'Nunito Sans', sans-serif;
  background: var(--white);
  color: var(--ink);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  line-height: 1.2;
}

a { color: inherit; text-decoration: none; }

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

/* ── Nav ─────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(253,251,247,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--charcoal);
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.nav-logo span {
  color: var(--terra);
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--terra);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  flex-wrap: wrap;
}

.nav-links a {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  transition: all 0.2s;
}

.nav-links a:hover {
  background: var(--sand);
  color: var(--ink);
}

.nav-links .btn-nav {
  background: var(--terra);
  color: white;
  padding: 8px 14px;
  white-space: nowrap;
}

.nav-links .btn-nav:hover {
  background: #9E5F2A;
  color: white;
}

.nav-links .btn-nav-outline {
  border: 1.5px solid var(--terra);
  color: var(--terra);
  padding: 7px 14px;
  white-space: nowrap;
}

.nav-links .btn-nav-outline:hover {
  background: var(--terra);
  color: white;
}

/* ── Nav dropdown (Host) ─────────────────────────────────── */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 200px;
  padding: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  display: none;
  z-index: 9999;
}

.nav-dropdown-menu.show {
  display: block;
}

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 8px 0;
}

.nav-dropdown-menu a:first-child {
  margin-top: 0;
}

.nav-dropdown-menu a:last-child {
  margin-bottom: 0;
}

/* ── Mobile Hamburger ────────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  flex-shrink: 0;
}

.nav-hamburger span {
  display: block;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #1E1E1E 0%, #3A2A1A 50%, #5A3A20 100%);
  color: white;
  padding: 100px 40px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-eyebrow {
  display: inline-block;
  background: rgba(200,160,130,0.25);
  border: 1px solid rgba(200,160,130,0.4);
  color: var(--clay);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(42px, 6vw, 80px);
  font-weight: 300;
  color: white;
  margin-bottom: 24px;
  line-height: 1.1;
}

.hero h1 em {
  font-style: italic;
  color: var(--clay);
}

.hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.65);
  max-width: 540px;
  margin: 0 auto 48px;
  font-weight: 300;
}

/* ── Search Box ──────────────────────────────────────────── */
.search-box {
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  max-width: 860px;
  margin: 0 auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  position: relative;
  z-index: 1;
}

.search-box h2 {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

.search-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr auto;
  gap: 12px;
  align-items: end;
}

.search-field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 6px;
}

.search-field input,
.search-field select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.2s;
  outline: none;
}

.search-field input:focus,
.search-field select:focus {
  border-color: var(--terra);
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--terra);
  color: white;
}

.btn-primary:hover {
  background: #9E5F2A;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(181,113,58,0.35);
}

.btn-secondary {
  background: var(--sand);
  color: var(--ink);
}

.btn-secondary:hover {
  background: var(--sand-dark);
}

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

.btn-outline:hover {
  border-color: var(--terra);
  color: var(--terra);
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-success {
  background: var(--success);
  color: white;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 16px;
  border-radius: 12px;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: 8px;
}

/* ── Section ─────────────────────────────────────────────── */
.section {
  padding: 80px 40px;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header .eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: clamp(32px, 4vw, 52px);
  color: var(--charcoal);
}

.section-header p {
  font-size: 16px;
  color: var(--muted);
  margin-top: 12px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ── Apartment Cards ─────────────────────────────────────── */
.apt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.apt-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  cursor: pointer;
  border: 1px solid var(--border);
}

.apt-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.apt-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--sand-dark) 0%, var(--clay) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  position: relative;
}

.apt-card-img-placeholder {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, #E8D5BE 0%, #C8A882 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  color: rgba(255,255,255,0.6);
}

.apt-card-zone {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(30,30,30,0.75);
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
}

.apt-card-body {
  padding: 22px;
}

.apt-card-type {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--terra);
  margin-bottom: 6px;
}

.apt-card-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 8px;
}

.apt-card-location {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.apt-card-meta {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  margin-bottom: 16px;
}

.apt-card-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--muted);
}

.apt-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.apt-card-price {
  font-family: 'Cormorant Garamond', serif;
}

.apt-card-price .amount {
  font-size: 26px;
  font-weight: 600;
  color: var(--charcoal);
}

.apt-card-price .per {
  font-size: 13px;
  color: var(--muted);
  margin-left: 4px;
}

/* ── Filters Bar ─────────────────────────────────────────── */
.filters-bar {
  background: var(--sand);
  padding: 20px 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
}

.filter-pill {
  padding: 8px 18px;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: white;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.2s;
}

.filter-pill:hover,
.filter-pill.active {
  background: var(--terra);
  border-color: var(--terra);
  color: white;
}

.filters-bar .filter-info {
  margin-left: auto;
  font-size: 13px;
  color: var(--muted);
}

/* ── Forms ───────────────────────────────────────────────── */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 7px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: white;
  transition: border-color 0.2s;
  outline: none;
}

.form-control:focus {
  border-color: var(--terra);
  box-shadow: 0 0 0 3px rgba(181,113,58,0.12);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
}

.form-error {
  font-size: 12px;
  color: var(--danger);
  margin-top: 5px;
}

/* ── Card / Panel ────────────────────────────────────────── */
.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.card-sm {
  padding: 20px 24px;
}

/* ── Zone Badges ─────────────────────────────────────────── */
.zone-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.zone-1 { background: #E8F4FD; color: #1A73A7; }
.zone-2 { background: #FEF3E2; color: #B5711A; }
.zone-3 { background: #E8F6EE; color: #1A7A4A; }

/* ── Status Badges ───────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}

.badge-pending { background: #FEF3E2; color: #B5711A; }
.badge-confirmed { background: #E8F6EE; color: #1A7A4A; }
.badge-cancelled { background: #FDECEA; color: #C0392B; }
.badge-completed { background: #E8EDF9; color: #2851A3; }
.badge-active { background: #E8F6EE; color: #1A7A4A; }
.badge-inactive { background: #F5F5F5; color: #888; }

/* ── Modal ───────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30,30,30,0.6);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.modal {
  background: white;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px;
  position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,0.25);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--sand);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: all 0.2s;
}

.modal-close:hover {
  background: var(--sand-dark);
  color: var(--ink);
}

.modal h2 {
  font-size: 28px;
  margin-bottom: 8px;
}

.modal .modal-sub {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 28px;
}

/* ── Feature Blocks ──────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--sand);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
}

.feature-icon {
  font-size: 40px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--charcoal);
}

.feature-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* ── Zone Cards ──────────────────────────────────────────── */
.zones-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.zone-card {
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  border: 2px solid transparent;
}

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

.zone-card.z1 { background: linear-gradient(135deg, #E8F4FD, #C6DFF5); border-color: #A0C8EE; }
.zone-card.z2 { background: linear-gradient(135deg, #FEF3E2, #FADED9); border-color: #F0C98A; }
.zone-card.z3 { background: linear-gradient(135deg, #E8F6EE, #C6EADB); border-color: #8ECFB0; }

.zone-card h3 {
  font-size: 26px;
  margin-bottom: 8px;
}

.zone-card p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}

/* ── Breadcrumb ──────────────────────────────────────────── */
.breadcrumb {
  padding: 16px 40px;
  font-size: 13px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  background: var(--sand);
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb a:hover {
  color: var(--terra);
}

/* ── Unit Detail Page ────────────────────────────────────── */
.unit-hero {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 4px;
  height: 440px;
}

.unit-hero-main {
  background: var(--sand-dark);
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
}

.unit-hero-main img,
.unit-hero-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.unit-hero-side {
  background: var(--sand-dark);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  overflow: hidden;
}

.unit-detail-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  margin-top: 36px;
}

.unit-detail-body h1 {
  font-size: 40px;
  color: var(--charcoal);
  margin-bottom: 8px;
}

.unit-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px 0;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.unit-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}

.unit-meta-item strong {
  color: var(--ink);
  font-weight: 700;
}

.unit-section-title {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin: 28px 0 14px;
}

.amenities-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.amenity-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--sand);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}

.beds-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.bed-item {
  background: var(--sand);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px;
}

.bed-item .room-name {
  font-weight: 700;
  color: var(--ink);
}

.bed-item .bed-size {
  color: var(--muted);
  margin-top: 2px;
}

/* ── Booking Sidebar ─────────────────────────────────────── */
.booking-sidebar {
  position: sticky;
  top: 90px;
}

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

.booking-price {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.booking-price .amount {
  font-family: 'Cormorant Garamond', serif;
  font-size: 38px;
  font-weight: 600;
  color: var(--charcoal);
}

.booking-price .per {
  font-size: 14px;
  color: var(--muted);
}

.booking-date-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.booking-field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 6px;
}

.booking-field input,
.booking-field select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s;
}

.booking-field input:focus,
.booking-field select:focus {
  border-color: var(--terra);
}

.booking-summary {
  margin: 16px 0;
  padding: 16px;
  background: var(--sand);
  border-radius: 10px;
}

.booking-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--muted);
}

.booking-summary-row.total {
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  padding-top: 10px;
  border-top: 1px solid var(--border);
  margin-top: 10px;
  margin-bottom: 0;
}

/* ── Calendar ────────────────────────────────────────────── */
.mini-calendar {
  margin-top: 20px;
}

.mini-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.mini-calendar-title {
  font-weight: 700;
  font-size: 14px;
}

.mini-calendar-nav {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: var(--muted);
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s;
}

.mini-calendar-nav:hover {
  background: var(--sand);
  color: var(--ink);
}

.mini-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.cal-day-label {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  padding: 4px 0;
}

.cal-day {
  text-align: center;
  padding: 6px 4px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s;
}

.cal-day:hover:not(.blocked):not(.past) {
  background: var(--sand);
}

.cal-day.blocked {
  background: #FDECEA;
  color: #E57373;
  cursor: not-allowed;
  text-decoration: line-through;
}

.cal-day.past {
  color: #CCC;
  cursor: default;
}

.cal-day.selected-start,
.cal-day.selected-end {
  background: var(--terra);
  color: white;
}

.cal-day.in-range {
  background: rgba(181,113,58,0.15);
  color: var(--terra);
  border-radius: 0;
}

.cal-day.today {
  font-weight: 800;
  color: var(--terra);
}

/* ── Check-in Info ───────────────────────────────────────── */
.checkin-info {
  display: flex;
  gap: 16px;
  margin-top: 20px;
  padding: 16px;
  background: var(--sand);
  border-radius: 10px;
}

.checkin-block {
  flex: 1;
  text-align: center;
}

.checkin-block .time {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--terra);
}

.checkin-block .label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.65);
  padding: 60px 40px 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px;
  color: white;
  margin-bottom: 12px;
}

.footer-logo span { color: var(--clay); }

.footer h4 {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 20px;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 10px;
}

.footer ul li a {
  color: rgba(255,255,255,0.65);
  font-size: 14px;
  transition: color 0.2s;
}

.footer ul li a:hover {
  color: var(--clay);
}

.footer-bottom {
  max-width: 1200px;
  margin: 28px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}

/* ── WhatsApp Float ──────────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  transition: all 0.3s;
  cursor: pointer;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37,211,102,0.6);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: white;
}

/* ── Auth Pages ──────────────────────────────────────────── */
.auth-page {
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sand);
  padding: 40px 20px;
}

.auth-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 48px;
  width: 100%;
  max-width: 520px;
  box-shadow: var(--shadow-lg);
}

.auth-card h1 {
  font-size: 36px;
  margin-bottom: 8px;
}

.auth-card .sub {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 32px;
}

/* ── Dashboard ───────────────────────────────────────────── */
.dashboard-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 70px);
}

.dashboard-sidebar {
  background: var(--charcoal);
  padding: 28px 0;
  position: sticky;
  top: 70px;
  height: calc(100vh - 70px);
  overflow-y: auto;
}

.dash-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 24px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}

.dash-nav-item:hover,
.dash-nav-item.active {
  color: white;
  background: rgba(255,255,255,0.06);
  border-left-color: var(--clay);
}

.dashboard-main {
  padding: 36px 40px;
  background: var(--sand);
}

.dashboard-main h1 {
  font-size: 36px;
  margin-bottom: 8px;
  color: var(--charcoal);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 28px 0;
}

.stat-card {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
}

.stat-card .value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 40px;
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1;
}

.stat-card .label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-top: 8px;
}

/* ── Tables ──────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

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

thead {
  background: var(--sand);
}

th {
  padding: 14px 18px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: var(--sand);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav { padding: 0 20px; }
  .search-grid { grid-template-columns: 1fr 1fr; }
  .search-grid > *:last-child { grid-column: 1 / -1; }
  .apt-grid { grid-template-columns: 1fr 1fr; }
  .features-grid,
  .zones-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .section { padding: 60px 20px; }
  .unit-hero { grid-template-columns: 1fr; height: 280px; }
  .unit-hero-side { display: none; }
  .unit-hero-main { border-radius: var(--radius-lg); }
  .unit-detail-grid { grid-template-columns: 1fr; }
  .booking-sidebar { position: static; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .dashboard-sidebar { height: auto; position: static; }
}

@media (max-width: 600px) {
  /* Nav: compact single line */
  .nav {
    height: 54px;
    min-height: 54px;
    padding: 0 10px;
    flex-wrap: nowrap;
    gap: 4px;
    overflow: visible;
  }

  /* Logo: shrink text — moved to right */
  .nav-logo {
    font-size: 18px;
    gap: 6px;
    flex-shrink: 0;
    order: 2;
    margin-left: auto;
  }

  .nav-logo-icon {
    width: 28px;
    height: 28px;
    font-size: 15px;
    flex-shrink: 0;
  }

  /* Nav links: single row, no wrap, tiny — on the left */
  .nav-links {
    display: flex;
    flex-wrap: nowrap;
    gap: 3px;
    overflow: visible;
    order: 1;
  }

  .nav-links a {
    font-size: 11px;
    padding: 5px 7px;
    white-space: nowrap;
  }

  .nav-links .btn-nav {
    font-size: 11px;
    padding: 5px 7px;
  }

  .nav-links .btn-nav-outline {
    font-size: 11px;
    padding: 4px 7px;
  }

  /* Hide hamburger — not needed */
  .nav-hamburger { display: none; }

  .apt-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .auth-card { padding: 28px 22px; }
  .section { padding: 40px 16px; }
  .filters-bar { padding: 14px 16px; }
  .breadcrumb { padding: 12px 16px; }
}

/* ── Page Transitions ────────────────────────────────────── */
.page-content {
  animation: fadeUp 0.4s ease;
}

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

/* ── Upload Input ────────────────────────────────────────── */
.file-upload {
  border: 2px dashed var(--border);
  border-radius: 10px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.file-upload:hover {
  border-color: var(--terra);
  background: rgba(181,113,58,0.04);
}

.file-upload input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.file-upload .upload-icon { font-size: 32px; margin-bottom: 8px; }
.file-upload p { font-size: 14px; color: var(--muted); }
.file-upload strong { color: var(--terra); }

/* ── Gallery Modal ───────────────────────────────────────── */
.gallery-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-modal-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 8px;
  object-fit: contain;
}

/* ── Map placeholder ─────────────────────────────────────── */
.map-placeholder {
  background: var(--sand-dark);
  border-radius: var(--radius);
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

/* ── Divider ─────────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 28px 0;
}

/* ── Empty State ─────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

.empty-state .icon { font-size: 56px; margin-bottom: 16px; }
.empty-state h3 { font-size: 24px; color: var(--ink); margin-bottom: 8px; }
.empty-state p { font-size: 15px; }

/* ── Tab system ──────────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 28px;
}

.tab {
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  color: var(--muted);
  transition: all 0.2s;
}

.tab.active {
  border-bottom-color: var(--terra);
  color: var(--terra);
}

.tab:hover:not(.active) {
  color: var(--ink);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Print hidden ────────────────────────────────────────── */
@media print {
  .nav, .footer, .whatsapp-float, .no-print { display: none !important; }
}

/* ── Gallery Thumb Grid ──────────────────────────────────── */
.gallery-thumb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.gallery-thumb {
  aspect-ratio: 1;
  background: var(--sand-dark);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

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

.gallery-thumb .remove-img {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(192,57,43,0.85);
  color: white;
  border: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
