/* ── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  font-size: 16.25px;   /* base — all rem values derive from this */
  scroll-behavior: smooth;
}
body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 1rem;
  color: #333;
  background: #fff;
}

/* Fixed full-page ocean background, shown at natural color/exposure. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: url("images/bg-ocean.jpg") center center / cover no-repeat;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ── Colour Tokens ────────────────────────────────────── */
:root {
  --navy-dark: #0b2e4a;
  --navy-mid:  #14507e;
  --teal:      #0e7c86;
  --teal-hover:#0a5e66;
  --grey-bg:   #f7f9fa;
  --text-card: #555;
}

/* ── Top Contact Bar ──────────────────────────────────── */
.top-bar {
  background: #fff;
  padding: 10px 40px;
  display: flex;
  align-items: center;
  gap: 30px;
  border-bottom: 1px solid #eee;
}
.top-bar .logo-area { flex-shrink: 0; margin-right: auto; }
.top-bar .logo-area img { height: 60px; width: auto; }
.top-bar .logo-area .brand-text {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--navy-dark);
  font-family: 'Georgia', 'Times New Roman', serif;
}
.top-bar .logo-area .brand-text span { color: var(--teal); }

.top-bar .tagline-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.top-bar .tagline-block .tagline {
  font-size: 0.862rem;
  color: var(--navy-dark);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.top-bar .tagline-block .accommodation {
  font-size: 0.8rem;
  color: var(--teal);
  font-weight: 500;
}
.top-bar .tagline-block .accommodation a { text-decoration: underline; }

/* ── Navigation ───────────────────────────────────────── */
.navbar {
  background: var(--navy-mid);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 40px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-links {
  display: flex;
  align-items: stretch;
  list-style: none;
  height: 60px;
}
.nav-links li a {
  display: flex;
  align-items: center;
  padding: 0 16px;
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  height: 100%;
  transition: background 0.2s;
  white-space: nowrap;
}
.nav-links li a:hover,
.nav-links li a.active { background: var(--navy-dark); }

.btn-book {
  background: var(--teal) !important;
  color: #fff !important;
  padding: 0 22px !important;
  font-weight: 700 !important;
  letter-spacing: 1px;
  font-size: 1rem !important;
  transition: background 0.2s !important;
}
.btn-book:hover { background: var(--teal-hover) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: 0.3s;
}

/* ── Home Tile Grid ───────────────────────────────────── */
.tiles {
  width: 100%;
  margin-top: 30px;
}
.tiles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1300px;
  margin: 0 auto;
}
.tile {
  position: relative;
  display: block;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
  aspect-ratio: 4/3;
  transition: transform 0.3s, box-shadow 0.3s;
  will-change: transform;
}
.tile:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 16px 32px rgba(0,0,0,0.3);
  z-index: 2;
}
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.tile:hover img { transform: scale(1.05); }
.tile-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 16px 20px;
  background: linear-gradient(to top, rgba(11,46,74,0.85), rgba(11,46,74,0));
  color: #fff;
  font-size: 1.108rem;
  font-weight: 700;
  font-style: italic;
}

/* ── Page Hero ────────────────────────────────────────── */
/* Tall hero band that reveals the fixed ocean background
   (body::before) behind it. */
.page-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: max(40vh, 300px);
  padding: 0 60px;
  color: #fff;
  position: relative;
}
.page-hero--home {
  align-items: stretch;
  justify-content: center;
  min-height: max(80vh, 600px);
  padding: 40px 60px;
}
.page-hero--home h1,
.page-hero--home p {
  align-self: flex-start;
}
.page-hero--home p {
  margin-bottom: 50px;
}
.page-hero h1,
.page-hero p {
  position: relative;
  z-index: 1;
}
.page-hero h1 { font-size: 2.585rem; font-weight: 700; margin-bottom: 10px; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.page-hero p { font-size: 1.108rem; opacity: 0.95; text-shadow: 0 1px 4px rgba(0,0,0,0.3); }

/* ── Content Layout ───────────────────────────────────── */
.content-wrap {
  padding: 20px 40px 50px;
}
.content-layout {
  max-width: 1440px;
  margin: 0 auto;
  padding: 50px 60px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}
.content-body p { font-size: 1rem; line-height: 1.75; color: var(--text-card); margin-bottom: 20px; }
.content-body h2 { font-size: 1.354rem; color: var(--navy-mid); margin: 30px 0 14px; }
.content-body h3 { font-size: 1.108rem; color: var(--navy-dark); margin: 24px 0 10px; }
.content-images { display: flex; flex-direction: column; gap: 20px; }
.content-images img { border-radius: 4px; box-shadow: 0 1px 6px rgba(0,0,0,0.1); }
.content-images figcaption { font-size: 0.8rem; color: #888; margin-top: 6px; text-align: center; }

/* ── Gallery Grid ─────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 1300px;
  margin: 0 auto;
  padding: 50px 0 70px;
}
.gallery-grid img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 3px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.gallery-grid img:hover { opacity: 0.85; }

/* ── Lightbox ─────────────────────────────────────────── */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(11, 46, 74, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}
.lightbox-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.lightbox-overlay img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255,255,255,0.25);
}
.lightbox-close {
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
}
.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 1.8rem;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 0.9rem;
  opacity: 0.85;
}
@media (max-width: 640px) {
  .lightbox-prev, .lightbox-next { width: 42px; height: 42px; font-size: 1.4rem; }
  .lightbox-close { width: 38px; height: 38px; font-size: 1.25rem; }
}

.gallery-empty {
  max-width: 700px;
  margin: 0 auto;
  padding: 60px 40px;
  text-align: center;
  color: var(--text-card);
  font-size: 1.108rem;
  line-height: 1.7;
  min-height: max(40vh, 280px);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Bookings Layout ──────────────────────────────────── */
.contact-info h2 { font-size: 1.477rem; color: var(--navy-mid); margin-bottom: 24px; }
.location-card {
  background: var(--grey-bg);
  border-radius: 4px;
  padding: 24px;
  margin-bottom: 20px;
}
.location-card h3 { font-size: 0.985rem; font-weight: 700; color: var(--navy-dark); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1px; }
.location-card p { font-size: 1rem; color: #555; line-height: 1.7; margin-bottom: 4px; }
.location-card a { color: var(--navy-mid); }
.location-card ul { margin: 8px 0 0 18px; }
.location-card li { font-size: 1rem; color: #555; line-height: 1.7; }
.hours-card {
  background: var(--navy-dark);
  color: #fff;
  border-radius: 4px;
  padding: 24px;
  margin-bottom: 20px;
}
.hours-card h3 { font-size: 0.985rem; font-weight: 700; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1px; opacity: 0.85; }
.hours-card p { font-size: 1rem; line-height: 1.7; opacity: 0.9; }
.contact-form h2 { font-size: 1.477rem; color: var(--navy-mid); margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { display: flex; flex-direction: column; margin-bottom: 16px; }
.form-group label { font-size: 0.8rem; font-weight: 600; color: var(--navy-dark); margin-bottom: 6px; letter-spacing: 0.5px; text-transform: uppercase; }
.form-group input,
.form-group select,
.form-group textarea {
  border: 1px solid #ddd;
  border-radius: 3px;
  padding: 10px 14px;
  font-size: 0.923rem;
  color: #333;
  background: #fff;
  transition: border-color 0.2s;
  font-family: inherit;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--teal); }
.form-group textarea { resize: vertical; min-height: 120px; }
.btn-submit {
  background: var(--teal);
  color: #fff;
  border: none;
  padding: 13px 32px;
  font-size: 0.862rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-submit:hover { background: var(--teal-hover); }

/* Form feedback (success / error) — toggled by contact.js */
.form-feedback {
  margin-top: 16px;
  display: block;
  padding: 14px 18px;
  border-radius: 3px;
  font-size: 0.985rem;
  font-weight: 600;
}
.form-feedback--success { background: #e6f4ea; color: #2d6a4f; border: 1px solid #b7dfca; }
.form-feedback--error   { background: #fdecea; color: #c0392b; border: 1px solid #f5c6cb; }

/* ── Footer ───────────────────────────────────────────── */
footer {
  background: var(--navy-mid);
  padding: 55px 60px;
  color: #fff;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.footer-nav h3,
.footer-contact h3 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
  opacity: 0.85;
}
.footer-nav ul { list-style: none; }
.footer-nav ul li { margin-bottom: 10px; }
.footer-nav ul li a { color: #fff; font-size: 1rem; opacity: 0.9; transition: opacity 0.2s; }
.footer-nav ul li a:hover { opacity: 1; text-decoration: underline; }
.footer-contact p { font-size: 1rem; line-height: 1.7; opacity: 0.9; margin-bottom: 6px; }
.footer-contact a { color: #fff; }
.footer-social { display: flex; align-items: center; gap: 16px; margin-top: 14px; }
.footer-social img { height: 36px; width: auto; opacity: 0.95; transition: opacity 0.2s; }
.footer-social img:hover { opacity: 1; }
.footer-social .tripadvisor-link { display: flex; align-items: center; gap: 8px; font-size: 0.923rem; }
.footer-social .tripadvisor-link img { height: 30px; }

.copyright {
  background: #fff;
  padding: 14px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.copyright p { font-size: 1rem; color: var(--navy-mid); }
.copyright a { color: var(--navy-mid); opacity: 0.7; }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 1100px) {
  .tiles-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr; }
  .content-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .navbar { padding: 0 20px; justify-content: flex-end; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0; right: 0;
    background: var(--navy-mid);
    height: auto;
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links li a { padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .top-bar { padding: 8px 20px; gap: 12px; flex-wrap: wrap; }
  .top-bar .logo-area img { height: 46px; }
  .top-bar .tagline-block { align-items: flex-start; }
  footer { padding: 40px 24px; }
  .page-hero { padding: 0 24px; min-height: max(35vh, 260px); }
  .page-hero--home { padding: 30px 24px; min-height: max(70vh, 480px); }
  .page-hero h1 { font-size: 1.8rem; }
  .tiles-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); padding: 30px 20px 50px; }
  .content-layout { padding: 40px 24px; }
  .form-row { grid-template-columns: 1fr; }
}
