/* ─── Sunedaze — single-page hospitality site ─── */
:root {
  --green-900: #0a2e1a;
  --green-800: #0d3b22;
  --green-500: #3CB371;
  --green-400: #5dd498;
  --sky:       #87CEEB;
  --sand:      #f5e9c4;
  --sun:       #f59e0b;
  --ink:       #1a1a1a;
  --ink-2:     #4b5563;
  --gray-100:  #f5f5f4;
  --gray-200:  #e7e5e4;
  --gray-300:  #d6d3d1;
  --gray-400:  #a8a29e;
  --gray-500:  #78716c;
  --gray-700:  #44403c;
  --shadow-lg: 0 20px 60px rgba(10, 46, 26, 0.18);
  --shadow-md: 0 8px 24px rgba(10, 46, 26, 0.12);
  --shadow-sm: 0 2px 8px rgba(10, 46, 26, 0.08);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: #fafaf9;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* ─── Hero ─── */
.hero {
  position: relative;
  min-height: 92vh;
  background:
    radial-gradient(ellipse at top, rgba(245,158,11,0.15) 0%, transparent 50%),
    linear-gradient(135deg, var(--green-900) 0%, var(--green-800) 40%, var(--green-900) 100%);
  color: #fff;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 800px 400px at 80% 20%, rgba(135,206,235,0.12), transparent 60%),
    radial-gradient(ellipse 600px 300px at 20% 80%, rgba(60,179,113,0.18), transparent 60%);
  pointer-events: none;
}
.topnav {
  position: relative; z-index: 5;
  padding: 24px 40px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-family: 'Fraunces', serif;
  font-size: 26px; font-weight: 900;
  color: #fff; text-decoration: none;
  letter-spacing: -0.02em;
}
.logo span { display: inline-block; margin-left: 6px; }
.topnav-links { display: flex; gap: 28px; align-items: center; }
.topnav-links a {
  color: rgba(255,255,255,0.85); text-decoration: none;
  font-size: 14px; font-weight: 500;
  transition: color 0.2s;
}
.topnav-links a:hover { color: #fff; }
.hero-inner {
  position: relative; z-index: 4;
  flex: 1;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 40px 80px;
  max-width: 1100px; margin: 0 auto; width: 100%;
}
.eyebrow {
  font-size: 14px; font-weight: 600;
  color: var(--sky);
  letter-spacing: 0.2em; text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-inner h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}
.hero-inner h1 .hl {
  color: var(--green-400);
  font-style: italic;
}
.hero-inner .sub {
  font-size: clamp(17px, 1.6vw, 22px);
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  max-width: 620px;
  margin-bottom: 40px;
}
.cta {
  display: inline-block;
  background: linear-gradient(135deg, var(--green-500), #2e9c5d);
  color: #fff; text-decoration: none;
  padding: 16px 32px;
  border-radius: 999px;
  font-weight: 700; font-size: 16px;
  box-shadow: 0 8px 28px rgba(60, 179, 113, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  align-self: flex-start;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(60, 179, 113, 0.5); }

/* ─── Why direct ─── */
.why { padding: 100px 40px; background: #fff; }
.why-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.why-card {
  background: var(--gray-100);
  border-radius: 16px;
  padding: 32px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.why-icon { font-size: 36px; margin-bottom: 16px; }
.why-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 22px; font-weight: 600; margin-bottom: 12px;
  color: var(--green-900);
}
.why-card p { color: var(--ink-2); font-size: 15px; }

/* ─── Stays ─── */
.stays { padding: 100px 40px; background: var(--gray-100); }
.stays-head { max-width: 1100px; margin: 0 auto 48px; text-align: center; }
.stays-head h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--green-900);
  margin-bottom: 12px;
}
.stays-head p { font-size: 18px; color: var(--ink-2); }
.unit-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px;
}
.loading {
  grid-column: 1 / -1;
  text-align: center; padding: 80px 0;
  color: var(--gray-500);
}
.unit-card {
  background: #fff; border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex; flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.unit-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.unit-photo {
  height: 280px;
  background:
    linear-gradient(135deg, rgba(10,46,26,0.6) 0%, rgba(13,59,34,0.3) 100%),
    radial-gradient(circle at 30% 40%, var(--sun) 0%, transparent 50%),
    linear-gradient(135deg, #87CEEB 0%, #3CB371 100%);
  position: relative;
  display: flex; align-items: flex-end; padding: 24px;
}
.unit-photo .unit-emoji {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 80px;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.3));
}
.unit-photo .unit-name {
  color: #fff;
  font-family: 'Fraunces', serif;
  font-size: 28px; font-weight: 700;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
  z-index: 2;
}
.unit-body { padding: 24px 28px 28px; flex: 1; display: flex; flex-direction: column; }
.unit-headline {
  font-size: 14px; font-weight: 600;
  color: var(--green-500);
  letter-spacing: 0.04em; text-transform: uppercase;
  margin-bottom: 8px;
}
.unit-desc {
  color: var(--ink-2); font-size: 15px;
  margin-bottom: 16px;
}
.unit-specs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  color: var(--ink-2); font-size: 13px;
  margin-bottom: 14px;
}
.unit-specs > span { white-space: nowrap; }
.unit-specs .dot { opacity: 0.4; }
.unit-amenities {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 20px; flex: 1;
}
.amenity-chip {
  font-size: 11px; font-weight: 500;
  background: var(--gray-100); color: var(--ink-2);
  padding: 4px 9px; border-radius: 999px;
  white-space: nowrap;
}
.amenity-chip.amenity-more {
  background: rgba(60,179,113,0.12); color: var(--green-700, var(--green-500));
  cursor: help; font-weight: 600;
}
/* Booking drawer header specs — inherit but slightly muted */
.booking-head .unit-specs {
  margin-top: 6px; margin-bottom: 0; font-size: 12px; color: var(--gray-500);
}
.unit-pricing {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-top: 20px; border-top: 1px solid var(--gray-200);
}
.unit-price-from {
  font-size: 12px; color: var(--gray-500);
  font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
}
.unit-price-amt {
  font-family: 'Fraunces', serif;
  font-size: 32px; font-weight: 700;
  color: var(--green-900);
}
.unit-price-amt small { font-size: 14px; color: var(--gray-500); font-weight: 500; }
.unit-book-btn {
  background: linear-gradient(135deg, var(--green-500), #2e9c5d);
  color: #fff; border: none;
  padding: 12px 24px; border-radius: 999px;
  font-weight: 700; font-size: 14px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(60, 179, 113, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.unit-book-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(60, 179, 113, 0.45); }

/* ─── Booking drawer ─── */
.booking-drawer[hidden] { display: none !important; }
.status-banner[hidden] { display: none !important; }
.booking-drawer {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(10, 46, 26, 0.55);
  backdrop-filter: blur(6px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 24px 24px 80px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  animation: fadeIn 0.25s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.booking-card {
  background: #fff; border-radius: 24px;
  max-width: 720px; width: 100%;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.3s ease;
}
@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.drawer-close {
  position: absolute; top: 16px; right: 16px; z-index: 10;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--gray-100); border: none;
  font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.drawer-close:hover { background: var(--gray-200); }
.booking-inner-pad { padding: 40px 36px; }
.booking-head {
  display: flex; gap: 16px; align-items: center; margin-bottom: 24px;
}
.booking-head-emoji { font-size: 48px; }
.booking-head h3 {
  font-family: 'Fraunces', serif;
  font-size: 26px; font-weight: 700;
  color: var(--green-900);
  margin-bottom: 2px;
}
.booking-head p { font-size: 13px; color: var(--gray-500); }

/* Calendar */
.cal-section { margin-bottom: 24px; }
.cal-label {
  font-size: 13px; font-weight: 700;
  color: var(--green-900);
  letter-spacing: 0.04em; text-transform: uppercase;
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.cal-label-sub {
  font-size: 10px; font-weight: 500; color: var(--gray-500);
  text-transform: lowercase; letter-spacing: 0;
}

/* Extras / add-ons */
.extras-grid {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.extra-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: var(--gray-100); border-radius: 12px;
  border: 1.5px solid transparent;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.extra-card.selected {
  background: rgba(60,179,113,0.08);
  border-color: var(--green-500);
}
.extra-icon { font-size: 28px; flex-shrink: 0; line-height: 1; }
.extra-body { flex: 1; min-width: 0; }
.extra-label {
  font-size: 14px; font-weight: 700; color: var(--green-900);
  margin-bottom: 1px;
}
.extra-price {
  font-size: 13px; color: var(--ink-2); font-weight: 600;
}
.extra-desc {
  font-size: 11px; color: var(--gray-500); margin-top: 3px; line-height: 1.35;
}
.extra-promo {
  display: inline-block;
  margin-top: 5px;
  font-size: 10px; font-weight: 700;
  color: #0a2e1a;
  background: #ffd866;
  padding: 2px 8px; border-radius: 999px;
  letter-spacing: 0.03em;
}
.extra-qty {
  display: flex; align-items: center; gap: 4px;
  flex-shrink: 0;
}
.extra-qty-btn {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1.5px solid var(--gray-200); background: #fff;
  font-size: 18px; font-weight: 700; line-height: 1;
  cursor: pointer; color: var(--green-900);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.extra-qty-btn:hover {
  background: var(--green-500); border-color: var(--green-500); color: #fff;
}
.extra-qty-num {
  min-width: 22px; text-align: center;
  font-weight: 700; font-size: 14px; color: var(--green-900);
}
.cal-months { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 540px) { .cal-months { grid-template-columns: 1fr; } }
.cal-month {
  background: var(--gray-100); border-radius: 14px; padding: 14px;
}
.cal-month-head {
  text-align: center; font-weight: 700; font-size: 14px;
  color: var(--green-900);
  margin-bottom: 8px;
}
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-dow {
  text-align: center; font-size: 10px; font-weight: 700;
  color: var(--gray-500); padding: 4px 0;
}
.cal-day {
  aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.1s;
  background: #fff;
  position: relative;
}
.cal-day-num { line-height: 1; }
.cal-day-rate {
  font-size: 9px; font-weight: 700; line-height: 1;
  margin-top: 2px; opacity: 0.85;
  letter-spacing: -0.02em;
}
.cal-day:hover:not(.disabled):not(.blocked):not(.past) { background: var(--green-500); color: #fff; transform: scale(1.05); }
.cal-day:hover .cal-day-rate { color: #fff; opacity: 1; }
.cal-day.past { color: var(--gray-300); cursor: not-allowed; background: transparent; }
.cal-day.blocked {
  color: var(--gray-400); background: var(--gray-100);
  text-decoration: line-through;
  cursor: not-allowed;
}
.cal-day.empty { background: transparent; cursor: default; }
.cal-day.selected { background: var(--green-500); color: #fff; font-weight: 700; }
.cal-day.in-range { background: rgba(60,179,113,0.18); color: var(--green-900); }

/* Tier color ramp — applies both to potential-checkout cells AND to the tier-ladder chips above the calendar.
   Goes from neutral (no real discount) to vivid green (best deal). */
.tier-rank-0 { background: #fff; color: var(--green-900); }
.tier-rank-1 { background: #e8f5ec; color: var(--green-900); }
.tier-rank-2 { background: #b8e3c5; color: var(--green-900); }
.tier-rank-3 { background: #6ed18b; color: #0a2e1a; font-weight: 700; }
.cal-day.tier-rank-2 .cal-day-rate,
.cal-day.tier-rank-3 .cal-day-rate { opacity: 1; }

/* Tier ladder strip above the calendar — base style; season class overrides the gradient */
.tier-ladder {
  margin-bottom: 14px;
  padding: 12px 14px;
  background: linear-gradient(90deg, #f7faf8 0%, #eaf6ee 100%);
  border-radius: 12px;
  border: 1px solid rgba(60,179,113,0.18);
  transition: background 0.3s, border-color 0.3s;
}
.tier-ladder.season-high {
  background: linear-gradient(90deg, #fff7e6 0%, #ffeed1 100%);
  border-color: rgba(245,158,11,0.35);
}
.tier-ladder.season-mid {
  background: linear-gradient(90deg, #f7faf8 0%, #eaf6ee 100%);
  border-color: rgba(60,179,113,0.18);
}
.tier-ladder.season-low {
  background: linear-gradient(90deg, #f0f7fa 0%, #e1eef5 100%);
  border-color: rgba(54,128,168,0.18);
}
.tier-ladder-label {
  font-size: 10px; font-weight: 700; color: var(--green-900);
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 8px;
}
.tier-ladder-chips {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.tier-chip {
  display: inline-flex; flex-direction: column; align-items: center;
  padding: 6px 10px; border-radius: 8px;
  font-size: 11px; min-width: 56px;
  border: 1px solid rgba(0,0,0,0.04);
}
.tier-chip-nights { font-weight: 600; opacity: 0.75; font-size: 10px; }
.tier-chip-rate { font-weight: 700; font-size: 14px; font-family: 'Fraunces', serif; }
.tier-chip.tier-best { box-shadow: 0 4px 12px rgba(60,179,113,0.35); position: relative; }
.tier-chip.tier-best::after {
  content: '💰';
  position: absolute; top: -8px; right: -6px;
  font-size: 14px;
}

.cal-hint {
  flex: 1; text-align: center;
  font-size: 12px; font-weight: 600; color: var(--green-500);
  font-style: italic;
}
.cal-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.cal-nav button {
  background: #fff; border: 1px solid var(--gray-200);
  width: 32px; height: 32px; border-radius: 8px;
  cursor: pointer; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.cal-nav button:hover { background: var(--green-500); color: #fff; border-color: var(--green-500); }
.cal-nav button:disabled { opacity: 0.3; cursor: not-allowed; }

.cal-selected-display {
  display: flex; gap: 12px; margin-top: 16px;
  padding: 12px; background: var(--gray-100); border-radius: 10px;
}
.cal-selected-display > div { flex: 1; text-align: center; }
.cal-selected-display .label {
  font-size: 10px; font-weight: 700; color: var(--gray-500);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.cal-selected-display .val {
  font-size: 15px; font-weight: 700; color: var(--green-900);
  font-family: 'Fraunces', serif;
}
.cal-selected-display .val.empty { color: var(--gray-400); font-weight: 500; }

/* Form */
.form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px;
  margin-bottom: 24px;
}
.form-grid label { display: flex; flex-direction: column; gap: 4px; }
.form-grid label.full { grid-column: 1 / -1; }
.form-grid .label-text {
  font-size: 12px; font-weight: 700; color: var(--green-900);
  letter-spacing: 0.04em; text-transform: uppercase;
}
.form-grid input, .form-grid textarea, .form-grid select {
  padding: 10px 12px; border: 1px solid var(--gray-200);
  border-radius: 8px; font-size: 14px;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-grid input:focus, .form-grid textarea:focus, .form-grid select:focus {
  outline: none; border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(60,179,113,0.18);
}
.form-grid textarea { resize: vertical; min-height: 60px; }

/* Price preview */
.price-preview {
  background: linear-gradient(135deg, var(--green-900), var(--green-800));
  color: #fff;
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 24px;
}
.price-line { display: flex; justify-content: space-between; padding: 4px 0; font-size: 14px; gap: 12px; }
.price-line .lbl { color: rgba(255,255,255,0.75); }
.price-line .val { color: #fff; font-weight: 600; white-space: nowrap; }
.price-line.price-discount .lbl { color: #6ed18b; font-weight: 600; }
.price-line.price-discount .val { color: #6ed18b; }
.price-season-tag {
  display: inline-block;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.85);
  padding: 3px 9px; border-radius: 999px;
  margin-bottom: 10px;
}
.price-total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-top: 12px; margin-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.18);
}
.price-total .lbl {
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--sky);
}
.price-total .val {
  font-family: 'Fraunces', serif;
  font-size: 32px; font-weight: 800; color: #fff;
}
.price-savings {
  background: rgba(60,179,113,0.18);
  color: var(--green-400);
  padding: 6px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700;
  display: inline-block;
  margin-top: 8px;
}

.submit-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--green-500), #2e9c5d);
  color: #fff; border: none;
  padding: 16px; border-radius: 12px;
  font-weight: 700; font-size: 16px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(60,179,113,0.4);
  transition: transform 0.15s, box-shadow 0.15s;
}
.submit-btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(60,179,113,0.5); }
.submit-btn:disabled { opacity: 0.5; cursor: wait; transform: none; box-shadow: none; }
.submit-hint { font-size: 11px; color: var(--gray-500); margin-top: 10px; text-align: center; }
.submit-error { background: #fee; color: #c00; padding: 10px 14px; border-radius: 8px; font-size: 13px; margin-top: 10px; }

/* Status banner */
.status-banner {
  padding: 14px 24px; text-align: center;
  font-weight: 600; font-size: 14px;
}
.status-banner.success { background: var(--green-500); color: #fff; }
.status-banner.cancelled { background: #fee; color: #c00; }

/* Footer */
.foot { background: var(--green-900); color: #fff; padding: 60px 40px 40px; }
.foot-inner { max-width: 1100px; margin: 0 auto; }
.foot-brand {
  font-family: 'Fraunces', serif;
  font-size: 24px; font-weight: 900;
  margin-bottom: 16px;
}
.foot-links { display: flex; gap: 24px; margin-bottom: 24px; flex-wrap: wrap; }
.foot-links a {
  color: var(--sky); text-decoration: none;
  font-size: 14px; font-weight: 500;
}
.foot-links a:hover { color: #fff; }
.foot-fine { color: rgba(255,255,255,0.6); font-size: 12px; line-height: 1.6; }

/* ─── Mobile ─── */
@media (max-width: 760px) {
  .topnav { padding: 16px 20px; flex-wrap: wrap; gap: 12px; }
  .topnav-links { gap: 16px; }
  .topnav-links a { font-size: 13px; }
  .hero-inner { padding: 0 20px 60px; }
  .why { padding: 60px 20px; }
  .why-grid { grid-template-columns: 1fr; gap: 20px; }
  .why-card { padding: 24px; }
  .stays { padding: 60px 20px; }
  .unit-grid { grid-template-columns: 1fr; gap: 20px; }
  .booking-drawer { padding: 12px; align-items: flex-start; }
  .booking-card { margin-top: 12px; }
  .booking-inner-pad { padding: 28px 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .foot { padding: 40px 20px; }
}
