/* ═══════════════════════════════════════════════════════
   Melvin's Landing — Main Stylesheet
   Aesthetic: Refined coastal / lakefront lodge
   Fonts: Playfair Display (headings) · Source Sans 3 (body)
   ═══════════════════════════════════════════════════════ */

:root {
  /* Palette */
  --navy:       #0f2a45;
  --navy-mid:   #1a4068;
  --blue:       #2563a8;
  --blue-light: #dbeafe;
  --gold:       #b8913a;
  --gold-light: #f5e9cc;
  --sand:       #f7f3ec;
  --sand-dark:  #ede6d8;
  --water:      #c8dff0;
  --white:      #ffffff;
  --text:       #1e2a35;
  --text-mid:   #4a5a68;
  --text-light: #7a8a98;
  --border:     #d4cabb;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Source Sans 3', 'Segoe UI', sans-serif;

  /* Spacing */
  --gap:    clamp(1rem, 3vw, 2rem);
  --radius: 8px;
  --radius-lg: 16px;

  /* Shadows */
  --shadow-sm: 0 1px 4px rgba(15,42,69,.08);
  --shadow-md: 0 4px 16px rgba(15,42,69,.12);
  --shadow-lg: 0 8px 32px rgba(15,42,69,.16);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}
img { max-width: 100%; display: block; }
a  { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout ── */
.container {
  width: min(1120px, 100% - 2 * var(--gap));
  margin-inline: auto;
}
.section { padding: clamp(3rem, 7vw, 6rem) 0; }
.section-alt { background: var(--sand); }

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.25;
  color: var(--navy);
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 600; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 400; }
h4 { font-size: 1rem; font-weight: 600; letter-spacing: .06em;
     text-transform: uppercase; color: var(--gold); }
p  { margin-bottom: 1rem; color: var(--text-mid); }
.lead { font-size: 1.15rem; color: var(--text-mid); max-width: 62ch; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: .75rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .04em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .2s;
  text-decoration: none;
}
.btn-primary {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: #9e7a2e;
  border-color: #9e7a2e;
  text-decoration: none;
  color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
}
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.7);
}
.btn-outline-white:hover {
  background: var(--white);
  color: var(--navy);
  text-decoration: none;
}

/* ── Header / Navigation ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: .9rem;
  gap: 1rem;
}
.logo { text-decoration: none; line-height: 1.2; }
.logo-main {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--gold);
  letter-spacing: .01em;
}
.logo-sub {
  display: block;
  font-size: .72rem;
  color: rgba(255,255,255,.55);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: .25rem;
}
.site-nav a {
  color: rgba(255,255,255,.82);
  font-size: .88rem;
  font-weight: 400;
  letter-spacing: .03em;
  padding: .45rem .7rem;
  border-radius: var(--radius);
  transition: color .15s, background .15s;
  text-decoration: none;
}
.site-nav a:hover, .site-nav a.active {
  color: var(--white);
  background: rgba(255,255,255,.1);
}
.site-nav .nav-cta {
  background: var(--gold);
  color: var(--white);
  padding: .45rem 1.1rem;
  margin-left: .5rem;
  font-weight: 600;
}
.site-nav .nav-cta:hover {
  background: #9e7a2e;
  color: var(--white);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: .2s;
}

/* ── Flash messages ── */
.flash {
  padding: .75rem 0;
  font-size: .92rem;
  font-weight: 600;
  text-align: center;
}
.flash-success { background: #d1fae5; color: #065f46; }
.flash-error   { background: #fee2e2; color: #991b1b; }
.flash-info    { background: #dbeafe; color: #1e40af; }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 55%, #1e6091 100%);
  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-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}
.hero-eyebrow {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}
.hero h1 { color: var(--white); margin-bottom: 1.2rem; }
.hero .lead { color: rgba(255,255,255,.78); margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── Wave divider ── */
.wave-divider {
  display: block;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}
.wave-divider svg { display: block; }

/* ── Section headings ── */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { margin-bottom: .75rem; }
.section-header .lead { margin-inline: auto; }

/* ── Service cards (home) ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.service-card-img {
  aspect-ratio: 16/9;
  background: var(--water);
  overflow: hidden;
}
.service-card-img img { width: 100%; height: 100%; object-fit: cover; }
.service-card-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.service-card-body h3 { margin-bottom: .5rem; }
.service-card-body p  { font-size: .9rem; margin-bottom: 1.2rem; }
.service-card-body .btn { margin-top: auto; }

/* ── Page hero (inner pages) ── */
.page-hero {
  background: var(--navy);
  padding: 4rem 0 3rem;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: .5rem; }
.page-hero .lead { color: rgba(255,255,255,.7); margin-inline: auto; }

/* ── Info strips ── */
.info-strip {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 1.5rem 2rem;
  background: var(--gold-light);
  border-radius: var(--radius-lg);
  border: 1px solid #dbc88a;
  margin-bottom: 2rem;
}
.info-strip-item strong { display: block; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.info-strip-item span  { font-size: 1rem; color: var(--text); font-weight: 600; }

/* ── Booking form ── */
.booking-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
  align-items: start;
}
.booking-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.booking-form h2 { margin-bottom: 1.5rem; font-size: 1.5rem; }
.form-group  { margin-bottom: 1.25rem; }
.form-row    { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label        { display: block; font-size: .85rem; font-weight: 600; color: var(--text); margin-bottom: .35rem; }
input, select, textarea {
  width: 100%;
  padding: .65rem .9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,168,.15);
}
textarea { resize: vertical; min-height: 90px; }
.form-submit { margin-top: 1.5rem; }
.form-submit .btn { width: 100%; text-align: center; font-size: 1rem; padding: .9rem; }

/* ── Slot grid ── */
.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: .75rem;
  margin-top: 1rem;
}
.slot-btn {
  padding: .65rem .5rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  font-family: var(--font-body);
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  text-align: center;
  transition: all .15s;
}
.slot-btn:hover:not(:disabled) {
  border-color: var(--blue);
  background: var(--blue-light);
  color: var(--blue);
}
.slot-btn.selected {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.slot-btn:disabled {
  background: var(--sand-dark);
  color: var(--text-light);
  cursor: not-allowed;
  text-decoration: line-through;
}

/* ── Sidebar info panel ── */
.info-panel {
  background: var(--sand);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  position: sticky;
  top: 100px;
}
.info-panel h3 { font-size: 1.2rem; margin-bottom: 1rem; }
.info-panel ul { list-style: none; }
.info-panel ul li {
  padding: .4rem 0;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
  color: var(--text-mid);
  display: flex;
  gap: .6rem;
}
.info-panel ul li:last-child { border-bottom: none; }
.info-panel ul li::before { content: '✓'; color: var(--gold); font-weight: 700; flex-shrink: 0; }

/* ── Payment panel ── */
.payment-panel {
  margin-top: 1.5rem;
  background: var(--gold-light);
  border: 1px solid #dbc88a;
  border-radius: var(--radius);
  padding: 1.25rem;
}
.payment-panel h4 { margin-bottom: .5rem; }
.payment-option {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .6rem 0;
  font-size: .9rem;
}
.payment-badge {
  background: var(--navy);
  color: var(--white);
  font-size: .75rem;
  font-weight: 700;
  padding: .2rem .6rem;
  border-radius: 100px;
  flex-shrink: 0;
}

/* ── Events list ── */
.events-list { display: flex; flex-direction: column; gap: 1.25rem; }
.event-card {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  align-items: center;
}
.event-date-badge {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  text-align: center;
  padding: .75rem .5rem;
}
.event-date-badge .month { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; opacity: .7; }
.event-date-badge .day   { font-size: 2rem; font-family: var(--font-display); line-height: 1; }
.event-card.private { background: var(--sand); }
.event-card.private .event-info h3 { color: var(--text-mid); font-style: italic; }
.event-info h3     { font-size: 1.1rem; margin-bottom: .25rem; }
.event-info .meta  { font-size: .85rem; color: var(--text-light); }

/* ── Photo gallery ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: var(--sand-dark);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.gallery-item:hover img { transform: scale(1.04); }

/* ── Album cards ── */
.albums-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.album-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: box-shadow .2s, transform .2s;
}
.album-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); text-decoration: none; }
.album-card-cover { aspect-ratio: 16/10; background: var(--navy); overflow: hidden; }
.album-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.album-card-info { padding: 1rem 1.25rem; }
.album-card-info h3 { font-size: 1.05rem; margin-bottom: .2rem; }
.album-card-info .meta { font-size: .82rem; color: var(--text-light); }

/* ── Airbnb listing cards ── */
.airbnb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.75rem;
}
.airbnb-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}
.airbnb-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.airbnb-card-img { aspect-ratio: 4/3; background: var(--water); overflow: hidden; }
.airbnb-card-img img { width: 100%; height: 100%; object-fit: cover; }
.airbnb-card-body { padding: 1.25rem; }
.airbnb-card-body h3 { font-size: 1.1rem; margin-bottom: .2rem; }
.airbnb-card-body .subtitle { font-size: .85rem; color: var(--text-light); margin-bottom: .75rem; }
.amenities-list { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: 1rem; }
.amenity-tag {
  background: var(--sand);
  color: var(--text-mid);
  font-size: .75rem;
  padding: .2rem .6rem;
  border-radius: 100px;
  border: 1px solid var(--border);
}
.btn-airbnb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  padding: .65rem;
  background: #ff5a5f;
  color: var(--white);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  transition: background .2s;
}
.btn-airbnb:hover { background: #e04a4f; color: var(--white); text-decoration: none; }

/* ── Confirmation page ── */
.confirmation-box {
  max-width: 580px;
  margin: 4rem auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.confirmation-header {
  background: var(--navy);
  color: var(--white);
  padding: 2rem;
  text-align: center;
}
.confirmation-header .check { font-size: 2.5rem; margin-bottom: .5rem; }
.confirmation-header h2 { color: var(--white); margin-bottom: .25rem; font-size: 1.5rem; }
.confirmation-body { padding: 2rem; }
.booking-detail { display: flex; justify-content: space-between; padding: .6rem 0; border-bottom: 1px solid var(--sand-dark); font-size: .9rem; }
.booking-detail:last-child { border-bottom: none; }
.booking-detail strong { color: var(--text); }
.booking-detail span   { color: var(--text-mid); }
.booking-ref { font-family: monospace; font-size: 1.2rem; font-weight: 700; color: var(--navy); letter-spacing: .1em; }

/* ── Admin styles ── */
.admin-layout { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.admin-sidebar {
  background: var(--navy);
  padding: 0;
  display: flex;
  flex-direction: column;
}
.admin-sidebar .sidebar-logo {
  padding: 1.5rem 1.25rem;
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1.1rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.admin-sidebar a {
  display: block;
  padding: .75rem 1.25rem;
  color: rgba(255,255,255,.75);
  font-size: .9rem;
  transition: all .15s;
  border-left: 3px solid transparent;
  text-decoration: none;
}
.admin-sidebar a:hover, .admin-sidebar a.active {
  color: var(--white);
  background: rgba(255,255,255,.08);
  border-left-color: var(--gold);
}
.admin-main { background: var(--sand); padding: 2rem; }
.admin-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.admin-card h2 { font-size: 1.25rem; margin-bottom: 1.25rem; padding-bottom: .75rem; border-bottom: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th { text-align: left; padding: .6rem .9rem; background: var(--sand); font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-mid); border-bottom: 2px solid var(--border); }
td { padding: .65rem .9rem; border-bottom: 1px solid var(--sand-dark); vertical-align: top; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--sand); }

.badge { display: inline-block; font-size: .72rem; font-weight: 700; padding: .2rem .6rem; border-radius: 100px; }
.badge-pending    { background: #fef9c3; color: #854d0e; }
.badge-confirmed  { background: #d1fae5; color: #065f46; }
.badge-cancelled  { background: #fee2e2; color: #991b1b; }
.badge-unpaid     { background: #ffedd5; color: #9a3412; }
.badge-paid       { background: #d1fae5; color: #065f46; }

/* ── Lightbox ── */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
#lightbox.open { display: flex; }
#lightbox img { max-width: 90vw; max-height: 85vh; border-radius: 4px; }
#lightbox-close {
  position: absolute;
  top: 1rem; right: 1.25rem;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}
.lightbox-nav {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
}
.lightbox-nav button {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: var(--white);
  padding: .4rem 1.2rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: .9rem;
  transition: background .15s;
}
.lightbox-nav button:hover { background: rgba(255,255,255,.3); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .booking-layout { grid-template-columns: 1fr; }
  .info-panel { position: static; }
  .form-row { grid-template-columns: 1fr; }
  .event-card { grid-template-columns: 70px 1fr; gap: 1rem; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { flex-direction: row; flex-wrap: wrap; }
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
    padding: .5rem;
    gap: .1rem;
    box-shadow: var(--shadow-lg);
  }
  .site-nav.open { display: flex; }
  .site-nav .nav-cta { margin: .25rem 0 0; }
  .header-inner { position: relative; }
}

@media (max-width: 520px) {
  .hero-actions { flex-wrap: wrap !important; gap: .5rem !important; }
  .hero-actions .btn { flex: 1 1 calc(50% - .25rem); text-align:center; padding:.6rem .5rem !important; font-size:.8rem !important; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
