:root {
  /* Palette matched to the Waterfront flyer */
  --deep-blue: #102a41;
  --mid-blue: #2f6690;
  --teal: #2f6690;
  --gold: #c9a875;
  --gold-dark: #b3934f;
  --sand: #f5efe2;
  --sand-dark: #e8dcc4;
  --white: #ffffff;
  --ink: #17293a;
  --muted: #5c7180;
  --danger: #c0392b;
  --success: #1f8a4c;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(16, 42, 65, 0.12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--sand);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hidden { display: none !important; }

/* ===== Topbar ===== */
.topbar {
  background: var(--deep-blue);
  color: var(--white);
}
.topbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.15rem; }
.brand-mark { height: 1.3rem; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 14px; font-size: 0.95rem; }
.nav-links .nav-user { opacity: 0.85; }
.nav-links button {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  color: var(--white);
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
}
.nav-links button:hover { background: rgba(255,255,255,0.12); }

/* ===== Alert bar ===== */
.alert-bar {
  background: var(--gold);
  color: var(--deep-blue);
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 9px 20px;
}
.alert-bar:empty { display: none; }

/* ===== Landing ===== */
.landing { max-width: 1100px; margin: 0 auto; padding: 0 20px 60px; flex: 1; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  background: var(--deep-blue);
  border-bottom: 3px solid var(--gold);
  margin: 0 -20px 0;
  padding: 0 20px;
}
.site-nav a {
  color: var(--white);
  text-decoration: none;
  padding: 14px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.85;
}
.site-nav a:hover { opacity: 1; background: rgba(255,255,255,0.1); }
.site-nav a.active { opacity: 1; background: rgba(255,255,255,0.16); }
.site-nav a.site-nav-cta { margin-left: auto; background: var(--gold); color: var(--deep-blue); opacity: 1; border-radius: 4px; padding: 9px 18px; align-self: center; }
.site-nav a.site-nav-cta:hover { background: var(--gold-dark); }

.eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid-blue);
  margin-bottom: 6px;
}

.info-section { padding: 10px 0 34px; scroll-margin-top: 20px; }
.info-section h2, .intro-text h2 {
  color: var(--deep-blue);
  margin-top: 0;
  padding-bottom: 12px;
  position: relative;
}
.info-section h2::after, .intro-text h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  background: var(--gold);
  margin-top: 12px;
}
.info-section h3 { color: var(--mid-blue); margin: 22px 0 8px; font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 700; }
.info-section h3:first-of-type { margin-top: 10px; }
.info-section p { color: var(--ink); line-height: 1.6; }
.info-section .announcement-list { margin-top: 0; }

.hero-photo {
  display: block;
  width: calc(100% + 40px);
  margin: 0 -20px;
  height: auto;
}
.hero-band {
  margin: 0 -20px 40px;
  --pad-top: 26px;
  padding: var(--pad-top) 40px 22px;
  background: var(--deep-blue);
  border-bottom: 4px solid var(--gold);
  color: var(--white);
}
.hero-band .eyebrow { color: rgba(255,255,255,0.75); }
/* Pull the title up so it starts 3mm below the shoreline (water starts at y=132.4 of 175 in the skyline SVG => water is 5.325% of image width tall). */
.hero-title-row { display: flex; align-items: flex-end; flex-wrap: wrap; column-gap: 18px; margin-top: calc(-5.325% + 3mm - var(--pad-top)); }
.hero-band h1 { margin: 0; line-height: 1.15; }
.hero-band h1 .title-light { display: block; font-size: 1.7rem; font-weight: 400; color: var(--white); }
.hero-band h1 .title-bold { display: block; font-size: 2rem; font-weight: 800; color: var(--white); }
.hero-band .hero-sub { margin: 0 0 4px; font-size: 1.1rem; color: var(--gold); font-weight: 500; letter-spacing: 0.02em; }
.hero-welcome { max-width: 720px; margin: 0 0 36px; }
.hero-welcome p { color: var(--ink); line-height: 1.65; margin: 0 0 16px; }

/* ===== Intro section (text + embedded photo) ===== */
.intro-section {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.intro-text { flex: 1 1 380px; }
.intro-text p { color: var(--ink); line-height: 1.6; }
.intro-photo { flex: 1 1 320px; }
.intro-photo img {
  width: 100%;
  max-width: 420px;
  display: block;
  margin: 0 auto;
  border: 8px solid var(--white);
  box-shadow: var(--shadow);
  border-radius: 2px;
}
@media (max-width: 700px) {
  .hero-band { --pad-top: 20px; padding: var(--pad-top) 20px 18px; }
  .hero-band h1 .title-light { font-size: 1.4rem; }
  .hero-band h1 .title-bold { font-size: 1.7rem; }
}

.auth-card {
  background: var(--white);
  max-width: 420px;
  margin: 0 auto 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.auth-tabs { display: flex; }
.auth-tab {
  flex: 1;
  padding: 14px;
  border: none;
  background: var(--sand-dark);
  cursor: pointer;
  font-weight: 600;
  color: var(--muted);
}
.auth-tab.active { background: var(--white); color: var(--deep-blue); }
.auth-form { padding: 20px 22px 26px; display: flex; flex-direction: column; gap: 12px; }
.auth-form label { font-size: 0.85rem; font-weight: 600; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.auth-form input, .auth-form textarea, select, .booking-controls input {
  font-size: 0.95rem;
  padding: 9px 10px;
  border: 1px solid #cfd8de;
  border-radius: 6px;
  font-family: inherit;
}
.auth-form textarea { resize: vertical; min-height: 70px; }
.hint { font-size: 0.78rem; color: var(--muted); background: var(--sand); padding: 8px 10px; border-radius: 6px; }
.form-error { color: var(--danger); font-size: 0.85rem; margin: 0; min-height: 1em; }
.form-success { color: var(--success); font-size: 0.85rem; margin: 0; }

.landing-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 20px; margin-bottom: 20px; }
.feature-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.feature-card img { width: 100%; height: 170px; object-fit: cover; display: block; }
.feature-card-body { padding: 16px 18px 20px; }
.feature-card h3 { margin: 0 0 8px; color: var(--deep-blue); }
.feature-card p { margin: 0 0 14px; color: var(--muted); font-size: 0.92rem; }

/* ===== Buttons ===== */
.btn { border: none; padding: 10px 16px; border-radius: 6px; cursor: pointer; font-weight: 600; font-size: 0.92rem; display: inline-block; text-decoration: none; }
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: #17706f; }
.btn-secondary { background: var(--sand-dark); color: var(--ink); margin-top: 20px; }
.btn-small { padding: 6px 10px; font-size: 0.82rem; border-radius: 5px; }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-outline { background: transparent; border: 1px solid var(--teal); color: var(--teal); }

/* ===== App shell ===== */
.app { max-width: 1100px; margin: 0 auto; padding: 24px 20px 60px; flex: 1; width: 100%; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; border-bottom: 2px solid var(--sand-dark); }
.tab-btn {
  background: transparent; border: none; padding: 10px 14px; cursor: pointer;
  font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent;
}
.tab-btn.active { color: var(--deep-blue); border-bottom-color: var(--teal); }
.tab-panel h2 { color: var(--deep-blue); margin-top: 0; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 14px; margin: 18px 0 26px; }
.stat-card { background: var(--white); border-radius: var(--radius); padding: 18px; text-align: center; box-shadow: var(--shadow); }
.stat-card span { display: block; font-size: 1.8rem; font-weight: 700; color: var(--teal); }
.stat-card label { font-size: 0.82rem; color: var(--muted); }

.announcement-list { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 22px; }
.announcement-list li { margin-bottom: 8px; color: var(--ink); }

/* ===== Booking ===== */
.facility-hero { margin-bottom: 18px; }
.facility-hero img { width: 100%; max-height: 260px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 10px; }
.booking-controls { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.booking-controls label { display: flex; flex-direction: column; gap: 4px; font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 10px; }
.slot-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.slot-card .slot-time { font-weight: 600; }
.slot-card .slot-status { font-size: 0.8rem; color: var(--muted); }
.slot-card.booked-by-me { border: 2px solid var(--teal); }
.slot-card.booked-by-other { opacity: 0.6; }

/* ===== Lists (bookings / suggestions / directory) ===== */
.list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.list-item {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
}
.list-item .li-main { flex: 1; min-width: 200px; }
.list-item .li-title { font-weight: 700; color: var(--deep-blue); }
.list-item .li-sub { font-size: 0.85rem; color: var(--muted); margin-top: 2px; }
.list-item .li-body { font-size: 0.9rem; margin-top: 6px; color: var(--ink); }
.li-actions { display: flex; gap: 8px; align-items: center; }

.badge { font-size: 0.72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.03em; }
.badge-open { background: #fdecd2; color: #a5670e; }
.badge-review { background: #dcecfb; color: #1a5fa8; }
.badge-completed { background: #dff3e3; color: var(--success); }

.upvote-btn { display: flex; flex-direction: column; align-items: center; gap: 2px; background: var(--sand); border: 1px solid var(--sand-dark); border-radius: 8px; padding: 6px 10px; cursor: pointer; font-weight: 700; color: var(--teal); }
.upvote-btn.active { background: var(--teal); color: var(--white); border-color: var(--teal); }

.inline-form { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; margin-bottom: 6px; }
.inline-form input, .inline-form textarea { padding: 9px 10px; border: 1px solid #cfd8de; border-radius: 6px; font-family: inherit; font-size: 0.92rem; }
.inline-form button { align-self: flex-start; }

.profile-form { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; max-width: 420px; }

/* ===== Amenities ===== */
.amenities-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 16px; margin-top: 16px; }
.amenity-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.amenity-card img { width: 100%; height: 160px; object-fit: cover; display: block; }
.amenity-card-body { padding: 12px 14px; }

/* ===== Contact boxes (General Enquiries / Everyday Support) ===== */
.contact-boxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 16px; margin-top: 16px; }
.contact-box { padding: 20px 22px; border-radius: var(--radius); color: var(--white); }
.contact-box.navy { background: var(--deep-blue); }
.contact-box.blue { background: var(--mid-blue); }
.contact-box .eyebrow { color: rgba(255,255,255,0.75); }
.contact-box a { color: var(--white); font-size: 1.05rem; font-weight: 700; text-decoration: none; }
.contact-box a:hover { text-decoration: underline; }
.contact-box p { color: rgba(255,255,255,0.9); font-size: 0.88rem; margin: 8px 0 0; line-height: 1.5; }

.footer {
  text-align: center;
  padding: 14px 20px;
  font-size: 0.78rem;
  color: var(--white);
  background: var(--deep-blue);
  border-top: 3px solid var(--gold);
}

@media (max-width: 600px) {
  .topbar-inner { flex-direction: column; align-items: flex-start; }
  .tabs { overflow-x: auto; flex-wrap: nowrap; }
}

/* ===== Placeholders + emergency numbers ===== */
.tbc { background: #fff3c4; border-radius: 3px; padding: 0 4px; font-size: 0.9em; }
.emerg { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 10px 0; }
.emerg div { background: var(--deep-blue); color: var(--white); border-radius: var(--radius); padding: 12px; font-size: 0.85rem; }
.emerg b { display: block; color: var(--gold); font-size: 1.5rem; }

.emerg b .tbc { color: var(--deep-blue); font-size: 1rem; }
