/* ─── GLOBAL OVERFLOW FIX ─────────────────────────── */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Syne:wght@700;800&display=swap');

:root {
  --teal: #1A9B8C;
  --teal-dark: #137A6E;
  --teal-light: #E8F7F5;
  --gold: #E8A020;
  --dark: #0D1F1C;
  --mid: #4A5E5B;
  --light: #F0FAF9;
  --border: #C8E6E3;
  --white: #FFFFFF;
  --danger: #E05252;
  --success: #2ECC71;
  --warning: #F39C12;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { overflow-x: hidden; max-width: 100%; }

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

/* Demo banner */
.demo-banner {
  background: var(--gold);
  color: var(--dark);
  text-align: center;
  padding: 8px 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Nav */
nav {
  background: var(--white);
  border-bottom: 2px solid var(--border);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  position: sticky;
  top: 37px;
  z-index: 999;
  /* Mobile: top reset handled in @media block */
  box-shadow: 0 2px 12px rgba(26,155,140,0.08);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo img { height: 44px; }

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--mid);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.2s;
}

.nav-links a:hover, .nav-links a.active {
  background: var(--teal-light);
  color: var(--teal-dark);
}

.nav-cta {
  background: var(--teal) !important;
  color: var(--white) !important;
  border-radius: 8px !important;
}

.nav-cta:hover {
  background: var(--teal-dark) !important;
  color: var(--white) !important;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
}

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

.btn-primary:hover { background: var(--teal-dark); transform: translateY(-1px); }

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

.btn-outline:hover { background: var(--teal-light); }

.btn-gold {
  background: var(--gold);
  color: var(--dark);
}

.btn-gold:hover { background: #d4911c; }

.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-full { width: 100%; justify-content: center; }

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.2s;
}

.card:hover { box-shadow: 0 8px 30px rgba(26,155,140,0.12); transform: translateY(-2px); }

/* Section */
.section { padding: 80px 40px; }
.section-sm { padding: 48px 40px; }
.container { max-width: 1200px; margin: 0 auto; }

.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}

h1, h2, h3, h4 { font-family: 'Syne', sans-serif; }

h1 { font-size: clamp(36px, 5vw, 60px); line-height: 1.1; }
h2 { font-size: clamp(28px, 3vw, 42px); line-height: 1.2; }
h3 { font-size: 22px; line-height: 1.3; }
h4 { font-size: 17px; }

/* Tags */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
}

.tag-teal { background: var(--teal-light); color: var(--teal-dark); }
.tag-gold { background: #FEF3D7; color: #B07D10; }
.tag-green { background: #E8F8EF; color: #1E8A4A; }
.tag-red { background: #FDEAEA; color: #C03030; }
.tag-grey { background: #F0F0F0; color: #666; }

/* Form elements */
.form-group { margin-bottom: 20px; }

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--mid);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

input, select, textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  background: var(--white);
  transition: border-color 0.2s;
  outline: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(26,155,140,0.1);
}

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

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* Stat block */
.stat-block {
  background: var(--teal-light);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
}

.stat-block .stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: var(--teal-dark);
  display: block;
}

.stat-block .stat-label {
  font-size: 13px;
  color: var(--mid);
  font-weight: 500;
}

/* Alert */
.alert {
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.alert-success { background: #E8F8EF; color: #1E8A4A; border: 1px solid #B2E4C8; }
.alert-warning { background: #FEF3D7; color: #B07D10; border: 1px solid #F5D78E; }
.alert-info { background: var(--teal-light); color: var(--teal-dark); border: 1px solid var(--border); }

/* Table */
.table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--border); }

table { width: 100%; border-collapse: collapse; }

th {
  background: var(--teal);
  color: var(--white);
  padding: 12px 16px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

td {
  padding: 12px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  color: var(--dark);
}

tr:last-child td { border-bottom: none; }
tr:nth-child(even) td { background: var(--light); }

/* Footer */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 48px 40px;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

footer h4 { color: var(--white); margin-bottom: 16px; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; }

footer a { color: rgba(255,255,255,0.6); text-decoration: none; display: block; font-size: 14px; margin-bottom: 8px; }
footer a:hover { color: var(--teal); }

.footer-bottom {
  max-width: 1200px;
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

/* Supporters bar */
.supporters {
  background: var(--light);
  padding: 32px 40px;
  border-top: 1px solid var(--border);
}

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

.supporters p {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 20px;
  text-align: center;
}

.supporters-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.supporter-logo {
  height: 36px;
  opacity: 0.6;
  filter: grayscale(100%);
  transition: all 0.2s;
}

.supporter-logo:hover { opacity: 1; filter: grayscale(0%); }

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background: var(--white);
  border-radius: 20px;
  padding: 40px;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform 0.2s;
}

.modal-overlay.open .modal { transform: translateY(0); }

/* Sidebar layout (admin/portal) */
.app-layout {
  display: flex;
  min-height: 100vh;
  padding-top: 37px;
}

.sidebar {
  width: 240px;
  background: var(--dark);
  padding: 24px 16px;
  position: fixed;
  top: 37px;
  left: 0;
  height: calc(100vh - 37px);
  overflow-y: auto;
  z-index: 100;
}

.sidebar-logo {
  padding: 8px 12px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 16px;
}

.sidebar-logo img { height: 36px; }
.sidebar-logo .demo-tag { font-size: 10px; color: var(--gold); letter-spacing: 2px; font-weight: 700; display: block; margin-top: 4px; }

.sidebar-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  padding: 8px 12px 4px;
  margin-top: 8px;
}

.sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s;
  margin-bottom: 2px;
}

.sidebar a:hover { background: rgba(255,255,255,0.08); color: var(--white); }
.sidebar a.active { background: var(--teal); color: var(--white); }

.sidebar-icon { font-size: 16px; width: 20px; text-align: center; }

.main-content {
  margin-left: 240px;
  flex: 1;
  padding: 32px 40px;
  background: #F8FFFE;
  min-height: calc(100vh - 37px);
}

.page-header {
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.page-header h1 { font-size: 28px; }
.page-header p { color: var(--mid); font-size: 14px; margin-top: 4px; }

/* Room card */
.room-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.2s;
}

.room-card:hover { box-shadow: 0 8px 30px rgba(26,155,140,0.15); transform: translateY(-3px); }

.room-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.room-card-body { padding: 20px; }
.room-card-body h3 { margin-bottom: 6px; font-size: 18px; }

.room-meta {
  display: flex;
  gap: 12px;
  margin: 10px 0;
  flex-wrap: wrap;
}

.room-meta span {
  font-size: 13px;
  color: var(--mid);
  display: flex;
  align-items: center;
  gap: 4px;
}

.room-price {
  font-family: 'Syne', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--teal);
}

.room-price span { font-size: 14px; font-weight: 400; color: var(--mid); font-family: 'Inter', sans-serif; }

/* Notification dot */
.notif-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  margin-left: 6px;
}

/* Steps */
.steps {
  display: flex;
  gap: 0;
  margin-bottom: 32px;
}

.step {
  flex: 1;
  text-align: center;
  padding: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--mid);
  border-bottom: 3px solid var(--border);
  transition: all 0.2s;
}

.step.active {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

.step.done {
  color: var(--teal-dark);
  border-bottom-color: var(--teal-dark);
}

/* Amenity chips */
.amenities { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }

.amenity {
  background: var(--teal-light);
  color: var(--teal-dark);
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
}

/* Slot picker */
.slot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0; }

.slot {
  padding: 8px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  background: var(--white);
}

.slot:hover { border-color: var(--teal); color: var(--teal); }
.slot.selected { background: var(--teal); color: var(--white); border-color: var(--teal); }
.slot.unavailable { background: #F5F5F5; color: #CCC; cursor: not-allowed; text-decoration: line-through; }

/* Checkbox room select */
.room-select-card {
  border: 1.5px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
}

.room-select-card.selected { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(26,155,140,0.15); }

/* Notification item */
.notif-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}

.notif-item:last-child { border-bottom: none; }

.notif-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.notif-content p { font-size: 14px; color: var(--dark); margin-bottom: 2px; }
.notif-content span { font-size: 12px; color: var(--mid); }

/* Community post */
.community-post {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 16px;
}

.post-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }

.post-avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.post-meta h4 { font-size: 15px; margin-bottom: 2px; }
.post-meta span { font-size: 12px; color: var(--mid); }
.post-body { font-size: 14px; color: var(--dark); line-height: 1.6; }
.post-actions { margin-top: 12px; display: flex; gap: 12px; }
.post-actions button { background: none; border: none; cursor: pointer; font-size: 13px; color: var(--mid); font-family: 'Inter', sans-serif; padding: 4px 8px; border-radius: 6px; transition: all 0.15s; }
.post-actions button:hover { background: var(--teal-light); color: var(--teal); }

/* Pinned */
.pinned-badge { font-size: 11px; font-weight: 700; color: var(--gold); letter-spacing: 1px; text-transform: uppercase; margin-left: auto; display: flex; align-items: center; gap: 4px; }

/* ─── RESPONSIVE ───────────────────────────────────── */

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  color: var(--dark);
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  margin: 5px 0;
  transition: all 0.25s;
  border-radius: 2px;
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.sidebar-toggle {
  display: none;
  position: fixed;
  bottom: 80px;
  left: 16px;
  z-index: 600;
  background: var(--teal);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(26,155,140,0.4);
}
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 499;
}
.sidebar-overlay.open { display: block; }

@media (max-width: 768px) {
  nav {
    padding: 0 16px;
    height: 60px;
    position: sticky;
    top: 0;
  }
  .demo-banner { font-size: 10px; padding: 6px 12px; }
  .nav-hamburger { display: block; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    border-bottom: 2px solid var(--border);
    padding: 12px 16px;
    gap: 4px;
    z-index: 998;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 10px 14px; font-size: 15px; }
  .login-dropdown { position: static; }
  .login-dropdown-menu { position: static; box-shadow: none; }

  .section { padding: 40px 16px; }
  .section-sm { padding: 28px 16px; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }

  footer { padding: 32px 20px 0; }
  .footer-grid { display: block; }
  .footer-grid > div:not(:first-child) { display: none; } /* Hide nav cols — hamburger covers it */
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; margin-top: 20px; }

  .slot-grid { grid-template-columns: repeat(3, 1fr); }
  .modal { padding: 24px 18px; }
  .supporters { padding: 24px 16px; }
}

@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    z-index: 500;
    top: 0;
    height: 100vh;
  }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; padding: 20px 16px; }
  .page-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .sidebar-toggle { display: flex; }
}

@media (max-width: 480px) {
  h1 { font-size: 30px; }
  h2 { font-size: 22px; }
  .grid-4 { grid-template-columns: 1fr; }
  .slot-grid { grid-template-columns: repeat(2, 1fr); }
  .btn-lg { padding: 14px 22px; font-size: 15px; }
}

/* ─── INLINE STYLE MOBILE OVERRIDES ────────────────── */
@media (max-width: 768px) {
  /* Fix pages with inline padding:80px 40px sections */
  [style*="padding:80px 40px"],
  [style*="padding: 80px 40px"] {
    padding: 48px 20px !important;
  }
  [style*="padding:80px"],
  [style*="padding: 80px"] {
    padding: 48px 20px !important;
  }
  [style*="padding:60px"],
  [style*="padding: 60px"] {
    padding: 40px 20px !important;
  }

  /* Fix inline 2-col grids */
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:2fr 1fr"],
  [style*="grid-template-columns: 2fr 1fr"],
  [style*="grid-template-columns:1fr 2fr"],
  [style*="grid-template-columns: 1fr 2fr"] {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  /* Fix inline 3-col+ grids */
  [style*="grid-template-columns:repeat(3"],
  [style*="grid-template-columns: repeat(3"],
  [style*="grid-template-columns:repeat(4"],
  [style*="grid-template-columns: repeat(4"] {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Fix inline flex rows that should stack */
  [style*="display:flex"][style*="gap:40px"],
  [style*="display:flex"][style*="gap: 40px"],
  [style*="display:flex"][style*="gap:60px"],
  [style*="display:flex"][style*="gap: 60px"],
  [style*="display:flex"][style*="gap:80px"],
  [style*="display:flex"][style*="gap: 80px"] {
    flex-direction: column !important;
    gap: 20px !important;
  }

  /* Fix max-width constraints that cause overflow */
  [style*="max-width:720px"],
  [style*="max-width: 720px"],
  [style*="max-width:700px"],
  [style*="max-width: 700px"] {
    max-width: 100% !important;
  }

  /* Page hero sections across all pages */
  .page-hero {
    padding: 60px 20px 40px !important;
  }
  .page-hero h1 { font-size: 26px !important; line-height: 1.2 !important; }
  .page-hero p { font-size: 14px !important; }

  /* Supporters strip */
  .supporters-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 16px !important;
  }

  /* Nav sticky position on pages with demo banner */
  nav {
    top: 0 !important;
  }

  /* Forms */
  .form-row {
    flex-direction: column !important;
  }

  /* Buttons in groups */
  .btn-group {
    flex-direction: column !important;
    gap: 10px !important;
  }
  .btn-group .btn {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
  }

  /* Modal */
  .modal-overlay { padding: 12px !important; }
  .modal { 
    padding: 24px 18px !important;
    max-height: 85vh !important;
    overflow-y: auto !important;
  }

  /* Table wraps */
  .table-wrap { overflow-x: auto !important; }
  table { min-width: 500px; }
}

@media (max-width: 480px) {
  .supporters-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .stat-row { grid-template-columns: 1fr 1fr !important; }
}

