/* =========================================================
   LightHaven Booking — Styles
   ========================================================= */

/* -- 1. Custom Properties --------------------------------- */
:root {
  --color-bg:           #0d1b2a;
  --color-bg-light:     #132238;
  --color-surface:      rgba(255, 255, 255, 0.06);
  --color-surface-hover: rgba(255, 255, 255, 0.10);
  --color-border:       rgba(255, 255, 255, 0.12);
  --color-text:         #f0f4f8;
  --color-text-muted:   rgba(240, 244, 248, 0.55);
  --color-accent:       #e8a838;
  --color-accent-dark:  #c98c20;
  --color-accent-glow:  rgba(232, 168, 56, 0.15);
  --color-danger:       #e05252;
  --color-success:      #34c759;

  --font:               -apple-system, BlinkMacSystemFont, 'SF Pro Display',
                        'SF Pro Text', system-ui, sans-serif;

  --radius-sm:          8px;
  --radius-md:          14px;
  --radius-lg:          20px;

  --blur:               blur(14px);
  --shadow-card:        0 4px 24px rgba(0, 0, 0, 0.35);
  --shadow-btn:         0 2px 12px rgba(232, 168, 56, 0.25);

  --transition-screen:  opacity 0.28s ease, transform 0.28s ease;
  --transition-fast:    0.15s ease;
}

/* -- 2. Reset & Base -------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
  font-size: inherit;
}

input, textarea {
  font-family: inherit;
  font-size: inherit;
}

ul { list-style: none; }

a { color: var(--color-accent); text-decoration: none; }

/* -- 3. Typography ---------------------------------------- */
h1 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h2 {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

.optional {
  font-weight: 400;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

/* -- 4. Screen System ------------------------------------- */
.screen {
  display: none;
  opacity: 0;
  transform: translateY(12px);
  transition: var(--transition-screen);
  min-height: 100dvh;
  width: 100%;
}

.screen.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.screen.exit {
  opacity: 0;
  transform: translateY(-8px);
}

/* -- 5. Hero ---------------------------------------------- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 24px 140px;
  background:
    url('../images/main-img.jpg') center / cover no-repeat,
    radial-gradient(ellipse at 60% 30%, #1a3a5c 0%, #0d1b2a 55%),
    linear-gradient(160deg, #0d1b2a 0%, #091422 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(232, 168, 56, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--color-accent-glow);
  border: 1px solid rgba(232, 168, 56, 0.3);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.hero h1 {
  margin-bottom: 12px;
}

.hero-sub {
  color: var(--color-text-muted);
  font-size: 1rem;
  margin-bottom: 4px;
}

.hero-sub-detail {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.amenity-chips {
  margin-bottom: 24px;
}

.chip {
  padding: 6px 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--color-text);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}

.chip-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--color-text-muted);
}

.hero-price {
  font-size: 1.1rem;
  color: var(--color-text);
}

.hero-price strong {
  color: var(--color-accent);
  font-size: 1.35rem;
}
.hero-price-monthly {
  font-size: 0.95rem;
  opacity: 0.75;
}

/* -- 6. Booking Bar --------------------------------------- */
.booking-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 24px;
  background: rgba(13, 27, 42, 0.75);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 2;
}

.booking-bar-type {
  display: flex;
  gap: 6px;
}

.type-btn {
  flex: 1;
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.type-btn.active {
  background: var(--color-accent);
  color: #000;
  border-color: var(--color-accent);
  font-weight: 600;
}

.btn-book {
  width: 100%;
}

/* -- 7. Screen Header ------------------------------------- */
.screen-header {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(13, 27, 42, 0.92);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--color-border);
  z-index: 10;
}

.btn-back {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.95rem;
  color: var(--color-accent);
  font-weight: 500;
}

.back-arrow {
  font-size: 1.4rem;
  line-height: 1;
}

.screen-header h2 {
  font-size: 1.1rem;
}

/* -- 8. Screen Body --------------------------------------- */
.screen-body {
  padding: 16px;
  max-width: 640px;
  margin: 0 auto;
}

/* -- 9. Cards --------------------------------------------- */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  box-shadow: var(--shadow-card);
  margin-bottom: 16px;
}

.card-title {
  margin-bottom: 16px;
}

.card-sub {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  margin-top: -8px;
  margin-bottom: 16px;
}

/* -- 10. Calendar ----------------------------------------- */
.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.cal-month-label {
  font-weight: 600;
  font-size: 1rem;
}

.cal-nav {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  font-size: 1.3rem;
  color: var(--color-text);
  transition: background var(--transition-fast);
}

.cal-nav:hover { background: var(--color-surface-hover); }
.cal-nav.disabled {
  opacity: 0.25;
  pointer-events: none;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-day-header {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
  padding: 4px 0 8px;
}

.cal-day {
  aspect-ratio: 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.cal-day:hover:not(.past):not(.empty):not(.booked) {
  background: var(--color-surface-hover);
}

.cal-day.today {
  border: 1px solid var(--color-accent);
}

.cal-day.selected {
  background: var(--color-accent);
  color: #000;
  font-weight: 600;
}

.cal-day.range-start {
  background: var(--color-accent);
  color: #000;
  font-weight: 600;
  border-radius: 50% 0 0 50%;
}

.cal-day.range-end {
  background: var(--color-accent);
  color: #000;
  font-weight: 600;
  border-radius: 0 50% 50% 0;
}

.cal-day.in-range {
  background: var(--color-accent-glow);
  border-radius: 0;
  color: var(--color-text);
}

.cal-day.past {
  opacity: 0.25;
  pointer-events: none;
}

.cal-day.booked {
  opacity: 0.3;
  pointer-events: none;
  text-decoration: line-through;
}

.cal-day.empty {
  pointer-events: none;
}

.date-summary {
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--color-text-muted);
  min-height: 42px;
}

.date-summary.has-dates {
  color: var(--color-text);
}

.date-summary.error {
  color: var(--color-danger);
  border: 1px solid var(--color-danger);
}

/* -- 11. Price Summary ------------------------------------ */
.price-summary {
  margin-top: 12px;
  padding: 12px 16px;
  background: var(--color-accent-glow);
  border: 1px solid rgba(232, 168, 56, 0.25);
  border-radius: var(--radius-sm);
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price-total {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-accent);
}

.monthly-offer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(232, 168, 56, 0.2);
}

.monthly-note {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.toggle-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  cursor: pointer;
}

.toggle-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-accent);
}

/* -- 12. Forms -------------------------------------------- */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--color-text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition-fast);
  font-family: inherit;
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%23999' stroke-width='2' d='M1 1l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

.form-group input[type="date"] {
  font-family: inherit;
  color-scheme: dark;
}
[data-theme="light"] .form-group input[type="date"] { color-scheme: light; }
.form-group input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.6);
  cursor: pointer;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--color-accent);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-muted);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.uppercase-input {
  text-transform: uppercase;
}

.field-error {
  display: block;
  font-size: 0.8rem;
  color: var(--color-danger);
  margin-top: 4px;
  min-height: 0;
}

.form-group.has-error input,
.form-group.has-error textarea {
  border-color: var(--color-danger);
}

/* -- 13. Stepper ------------------------------------------ */
.stepper {
  display: flex;
  align-items: center;
  gap: 16px;
}

.stepper-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text);
  transition: all var(--transition-fast);
}

.stepper-btn:hover {
  background: var(--color-surface-hover);
}

.stepper-value {
  font-size: 1.1rem;
  font-weight: 600;
  min-width: 24px;
  text-align: center;
}

/* -- 14. Buttons ------------------------------------------ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  background: var(--color-accent);
  color: #000;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-btn);
  transition: all var(--transition-fast);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--color-accent-dark);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  background: transparent;
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-accent);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--color-accent-glow);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  background: transparent;
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  border: none;
  transition: color var(--transition-fast);
  cursor: pointer;
}

.btn-ghost:hover {
  color: var(--color-text);
}

.btn-full {
  width: 100%;
}

/* -- 15. Availability Result ------------------------------ */
.availability-result {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 0.9rem;
  font-weight: 500;
}

.availability-result.available {
  background: rgba(52, 199, 89, 0.12);
  border: 1px solid rgba(52, 199, 89, 0.3);
  color: var(--color-success);
}

.availability-result.unavailable {
  background: rgba(224, 82, 82, 0.12);
  border: 1px solid rgba(224, 82, 82, 0.3);
  color: var(--color-danger);
}

/* -- 16. Payment Methods ---------------------------------- */
.payment-methods {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.payment-option {
  flex: 1;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
}

.payment-option.active {
  background: var(--color-accent);
  color: #000;
  border-color: var(--color-accent);
  font-weight: 600;
}

.qr-wrapper {
  text-align: center;
}

.qr-note {
  margin: 12px 0 8px;
  text-align: center;
  font-size: 12px;
  color: var(--color-text-muted);
}

#qr-image {
  display: block;
  max-width: 320px;
  width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: var(--radius-sm);
}

.qr-fallback {
  width: 240px;
  height: 240px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.06);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.qr-fallback-label {
  font-weight: 600;
  font-size: 0.95rem;
}

.qr-fallback-sub {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.qr-caption {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 10px;
}

/* -- 17. Payment Summary ---------------------------------- */
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.9rem;
}

.summary-label {
  color: var(--color-text-muted);
}

.summary-value {
  font-weight: 500;
  text-align: right;
}

.summary-divider {
  height: 1px;
  background: var(--color-border);
  margin: 10px 0;
}

.total-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0 0;
  margin-top: 8px;
  border-top: 1px solid var(--color-border);
  font-size: 1.05rem;
  font-weight: 600;
}

.total-amount {
  color: var(--color-accent);
}

.payment-note {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 12px;
}

.ref-note {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.booking-error {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: rgba(224, 82, 82, 0.12);
  border: 1px solid rgba(224, 82, 82, 0.3);
  color: var(--color-danger);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

/* -- 18. Loading ------------------------------------------ */
.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(13, 27, 42, 0.85);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.loading-spinner,
.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.spinner {
  width: 18px;
  height: 18px;
  border-width: 2px;
}

.loading-text {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* -- 19. Confirmation / Permit Screen --------------------- */
.confirmation-screen {
  background: #f0f0f0;
  min-height: 100dvh;
  padding: 20px 16px;
}

.confirmation-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 24px;
}

.permit-doc {
  background: #fff;
  color: #111;
  font-family: var(--font);
  border-radius: var(--radius-md);
  padding: 40px 28px;
  max-width: 600px;
  margin: 0 auto 24px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.12);
  line-height: 1.75;
}

.permit-doc + .permit-doc {
  page-break-before: always;
}

.doc-header {
  text-align: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid #e0e0e0;
}

.doc-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.doc-subtitle {
  font-size: 0.85rem;
  color: #666;
  margin-top: 4px;
}

.doc-ref {
  display: inline-block;
  background: #f5f5f5;
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #444;
  margin-top: 10px;
  font-family: 'SF Mono', SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace;
}

.doc-body p {
  margin-bottom: 12px;
  color: #333;
  font-size: 0.92rem;
}

.doc-details {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}

.doc-details td {
  padding: 5px 0;
  font-size: 0.9rem;
  color: #333;
  vertical-align: top;
}

.doc-details td:first-child {
  font-weight: 600;
  color: #555;
  width: 40%;
  padding-right: 12px;
}

.doc-status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: #fff3cd;
  color: #856404;
  margin: 12px 0;
}

.doc-footer {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid #e0e0e0;
}

.doc-signature {
  margin-top: 40px;
}

.sig-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #111;
}

.sig-title {
  font-size: 0.82rem;
  color: #666;
}

.doc-legal {
  font-size: 0.78rem;
  color: #999;
  margin-top: 24px;
  text-align: center;
  font-style: italic;
}

/* -- 20. Map Section -------------------------------------- */
.map-section,
.about-section {
  padding: 40px 24px;
  max-width: 640px;
  margin: 0 auto;
}

.section-title {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.section-sub {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
}

.map-container iframe {
  width: 100%;
  height: 240px;
  border: none;
  display: block;
}

/* -- 21. About Section ------------------------------------ */
.about-text {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 24px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 28px;
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px;
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}

.feature-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
}

.feature-value {
  font-weight: 600;
  font-size: 0.95rem;
}

.rules-title {
  margin-bottom: 12px;
}

.rules-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.rules-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* -- 22. Desktop Overrides -------------------------------- */
@media (min-width: 768px) {
  h1 {
    font-size: 3rem;
  }

  .hero {
    padding: 100px 48px 160px;
  }

  .booking-bar {
    padding: 20px 48px;
    flex-direction: row;
    align-items: center;
  }

  .booking-bar-type {
    flex: 1;
  }

  .btn-book {
    width: auto;
    min-width: 160px;
  }

  .screen-body {
    padding: 24px;
  }

  .map-container iframe {
    height: 320px;
  }

  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .confirmation-actions {
    padding-top: 20px;
  }

  .permit-doc {
    padding: 48px 40px;
  }
}

/* -- 24. Light Theme -------------------------------------- */
[data-theme="light"] {
  --color-bg:           #f5f7fa;
  --color-bg-light:     #ffffff;
  --color-surface:      rgba(255, 255, 255, 0.8);
  --color-surface-hover: rgba(255, 255, 255, 1);
  --color-border:       rgba(26, 35, 50, 0.1);
  --color-text:         #1a2332;
  --color-text-muted:   rgba(26, 35, 50, 0.6);
  --color-accent:       #c9851a;
  --color-accent-dark:  #a86d12;
  --color-accent-glow:  rgba(201, 133, 26, 0.12);
  --shadow-card:        0 4px 24px rgba(15, 35, 60, 0.08);
  --shadow-btn:         0 2px 12px rgba(201, 133, 26, 0.25);
}

[data-theme="light"] body {
  background: var(--color-bg);
}

[data-theme="light"] .hero {
  background:
    radial-gradient(ellipse at 60% 30%, #fff5e1 0%, #f5f7fa 55%),
    linear-gradient(160deg, #fff8ed 0%, #f0f4fa 100%);
}

[data-theme="light"] .hero::before {
  background: radial-gradient(circle, rgba(201, 133, 26, 0.10) 0%, transparent 70%);
}

@media (min-width: 1024px) {
  [data-theme="light"] .hero {
    background:
      url('../images/main-img.jpg') center / cover no-repeat,
      linear-gradient(160deg, #fff8ed 0%, #f0f4fa 100%);
  }
  [data-theme="light"] .hero::after {
    background: rgba(255, 255, 255, 0.78);
  }
  [data-theme="light"] .hero-content h1 {
    color: #1a2332;
    text-shadow: 0 1px 4px rgba(255, 255, 255, 0.6);
  }
  [data-theme="light"] .hero-badge {
    color: var(--color-accent);
  }
  [data-theme="light"] .hero-sub,
  [data-theme="light"] .hero-sub-detail {
    color: #2a3a4e;
  }
  [data-theme="light"] .hero-price {
    color: #1a2332;
  }
  [data-theme="light"] .hero-content .chip {
    background: rgba(26, 35, 50, 0.10);
    color: #1a2332;
    border: 1px solid rgba(26, 35, 50, 0.15);
  }
  [data-theme="light"] .hero-content .chip-outline {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(26, 35, 50, 0.25);
    color: #2a3a4e;
  }
}

[data-theme="light"] .booking-bar {
  background: rgba(255, 255, 255, 0.85);
  border-top: 1px solid var(--color-border);
}

[data-theme="light"] .screen-header {
  background: rgba(245, 247, 250, 0.92);
}

[data-theme="light"] .card {
  background: #ffffff;
  border: 1px solid var(--color-border);
}

[data-theme="light"] .feature-card {
  background: #ffffff;
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea,
[data-theme="light"] .form-group select {
  background: #ffffff;
}
[data-theme="light"] .form-group input[type="date"]::-webkit-calendar-picker-indicator {
  filter: none;
}

[data-theme="light"] .type-btn,
[data-theme="light"] .payment-option,
[data-theme="light"] .stepper-btn,
[data-theme="light"] .cal-nav {
  background: #ffffff;
}

[data-theme="light"] .qr-fallback {
  background: #f5f7fa;
}

[data-theme="light"] .chip {
  background: #ffffff;
}

[data-theme="light"] .chip-outline {
  background: transparent;
  border-color: rgba(26, 35, 50, 0.2);
}

[data-theme="light"] .gallery-fallback {
  background: #f0f3f8;
  color: var(--color-text-muted);
}

[data-theme="light"] .date-summary,
[data-theme="light"] .price-summary {
  background: #fff;
  border: 1px solid var(--color-border);
}

[data-theme="light"] .price-summary {
  background: var(--color-accent-glow);
}

[data-theme="light"] .confirmation-screen {
  background: #e8eaf0;
}

[data-theme="light"] .btn-primary {
  color: #ffffff;
}

[data-theme="light"] .type-btn.active,
[data-theme="light"] .payment-option.active {
  color: #1a2332;
}

[data-theme="light"] .cal-day.selected,
[data-theme="light"] .cal-day.range-start,
[data-theme="light"] .cal-day.range-end {
  color: #ffffff;
}

/* -- 25. Theme Toggle ------------------------------------- */
.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(13, 27, 42, 0.65);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 50;
  color: var(--color-text);
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.theme-toggle:hover {
  transform: scale(1.05);
}

[data-theme="light"] .theme-toggle {
  background: rgba(255, 255, 255, 0.85);
  color: var(--color-text);
  border-color: var(--color-border);
  box-shadow: 0 2px 12px rgba(15, 35, 60, 0.08);
}

.theme-toggle .icon-sun {
  display: none;
}
.theme-toggle .icon-moon {
  display: block;
}
[data-theme="light"] .theme-toggle .icon-sun {
  display: block;
}
[data-theme="light"] .theme-toggle .icon-moon {
  display: none;
}

/* -- 26. Hero Gallery ------------------------------------- */
.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

/* Old gallery — replaced by mobile-banner + photo-strip */
.hero-gallery { display: none; }

.old-hero-gallery-hidden {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 24px 0 8px;
  margin: 0 -24px;
  padding-left: 24px;
  padding-right: 24px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.hero-gallery::-webkit-scrollbar {
  display: none;
}

.gallery-item {
  flex: 0 0 280px;
  height: 180px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  scroll-snap-align: start;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-weight: 500;
}

/* -- 27. Desktop (1024px+) Layout ------------------------- */
@media (min-width: 1024px) {
  .hero {
    padding: 100px 48px 200px;
  }

  .hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 60px;
    align-items: center;
  }

  .hero-content {
    max-width: none;
  }

  .hero-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    overflow: visible;
    padding: 0;
    margin: 0;
  }

  .gallery-item {
    flex: none;
    width: 100%;
    height: 180px;
  }
  .gallery-item.gallery-main {
    grid-column: 1 / -1;
    height: 260px;
  }

  .booking-bar {
    padding: 22px 48px;
  }

  .booking-bar > * {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }

  .screen-body {
    max-width: 1100px;
    padding: 28px 48px;
  }

  .screen-body.two-col {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
  }

  .screen-body.two-col > .card:first-child {
    position: sticky;
    top: 84px;
  }

  .map-section,
  .about-section {
    max-width: 1100px;
    padding: 56px 48px;
  }

  .map-container iframe {
    height: 400px;
  }

  .features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }

  .confirmation-screen {
    padding: 40px 24px;
  }

  .permit-doc {
    max-width: 700px;
  }
}

/* Booking screens get two-column layout via JS-applied class */
@media (min-width: 1024px) {
  #screen-room .screen-body,
  #screen-parking .screen-body,
  #screen-payment .screen-body {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
  }

  #screen-room .screen-body > .card:first-child,
  #screen-parking .screen-body > .card:first-child {
    position: sticky;
    top: 84px;
  }
  /* Payment screen: booking summary becomes a sticky right sidebar */
  #screen-payment .screen-body {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    align-items: start;
  }
  #screen-payment .screen-body > #payment-summary-card {
    position: sticky;
    top: 84px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    align-self: start;
  }
  #screen-payment .screen-body > #payment-left-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  #screen-payment .screen-body > #booking-error,
  #screen-payment .screen-body > #btn-confirm-booking {
    grid-column: 1 / -1;
  }
}

/* -- 28. Print Styles ------------------------------------- */
@media print {
  body {
    background: #fff;
    color: #111;
  }

  .no-print {
    display: none !important;
  }

  .screen {
    display: none !important;
  }

  #screen-confirmation {
    display: block !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* =====================================================
   Reference input mode toggle (text vs upload screenshot)
   ===================================================== */
.ref-mode-toggle {
  display: flex;
  gap: 4px;
  background: var(--color-surface);
  padding: 4px;
  border-radius: 10px;
  margin-bottom: 16px;
}
.ref-mode-btn {
  flex: 1;
  padding: 9px 12px;
  background: transparent;
  border: 0;
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 600;
  border-radius: 7px;
  cursor: pointer;
  transition: background .15s, color .15s;
  font-family: inherit;
}
.ref-mode-btn.active {
  background: var(--color-bg);
  color: var(--color-text);
}
.ocr-status {
  padding: 10px 12px;
  background: var(--color-surface);
  border-radius: 8px;
  font-size: 13px;
  color: var(--color-text-muted);
  margin: -4px 0 14px;
}
input[type="file"] {
  padding: 10px 12px !important;
  cursor: pointer;
}

/* =====================================================
   Admin dashboard
   ===================================================== */
.admin-tabs {
  display: flex;
  gap: 4px;
  background: var(--color-surface);
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 24px;
}
.admin-tab {
  flex: 1;
  padding: 10px 14px;
  background: transparent;
  border: 0;
  color: var(--color-text-muted);
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.admin-tab.active {
  background: var(--color-bg);
  color: var(--color-text);
}
.admin-tab:hover:not(.active) { color: var(--color-text); }

.admin-pane { display: block; }
.admin-pane[hidden] { display: none; }

.admin-card .admin-row {
  font-size: 14px;
  color: var(--color-text);
  margin-top: 6px;
}
.admin-card .admin-row code {
  background: var(--color-surface);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
}
.admin-row-muted {
  color: var(--color-text-muted) !important;
  font-size: 13px !important;
  font-style: italic;
}
.admin-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
}
.admin-block-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 600px) {
  .admin-block-form .form-row { grid-template-columns: 1fr; }
}
.admin-proof-link {
  color: var(--color-accent);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}
.admin-proof-link:hover { text-decoration: underline; }
#block-error {
  color: #dc3545;
  font-size: 13px;
  margin-top: 10px;
}
.form-success {
  color: #198754;
  font-size: 13px;
  margin-top: 10px;
}
.admin-settings-form .form-group label {
  font-size: 13px;
  color: var(--color-muted);
  margin-bottom: 4px;
  display: block;
}
.admin-settings-form input,
.admin-settings-form select {
  width: 100%;
}

.thank-you-card {
  max-width: 560px;
  margin: 60px auto;
  padding: 48px 32px;
  text-align: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
}
.thank-you-card h1 { margin: 0 0 16px; font-size: 28px; color: var(--color-text); }
.thank-you-card p { color: var(--color-text-muted); line-height: 1.6; margin: 0 0 14px; }
.thank-you-ref { font-size: 15px; color: var(--color-text) !important; }
.thank-you-help { font-size: 13px; margin-bottom: 24px !important; }
.thank-you-card .btn-primary { margin-top: 8px; }

@media print {
  .no-print, .booking-bar, .nav-rail, .theme-toggle { display: none !important; }

  .confirmation-screen {
    background: #fff;
    padding: 0;
    min-height: auto;
  }

  .permit-doc {
    box-shadow: none;
    border-radius: 0;
    padding: 15mm 12mm;
    max-width: 100%;
    margin: 0;
    page-break-inside: avoid;
  }

  .doc-ref {
    background: none;
    padding: 0;
    border: 1px solid #ccc;
  }

  .doc-status {
    border: 1px solid #856404;
  }
}

/* =====================================================
   29. Distance list + cancellation policy
   ===================================================== */
.distance-title {
  margin: 32px 0 12px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}
.distance-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--color-border);
  border-radius: 12px;
  overflow: hidden;
}
.distance-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: var(--color-surface);
  font-size: 15px;
  color: var(--color-text);
}
.distance-list .distance-value {
  font-variant-numeric: tabular-nums;
  color: var(--color-text-muted);
  font-size: 14px;
  white-space: nowrap;
  margin-left: 16px;
}

.cancellation-policy {
  margin-top: 24px;
}

/* =====================================================
   30. Top bar (account link + capsule theme toggle)
   ===================================================== */
/* =====================================================
   Main navigation bar
   ===================================================== */
.main-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px clamp(16px, 3vw, 32px);
  background: rgba(13, 27, 42, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
}
[data-theme="light"] .main-nav {
  background: rgba(245, 247, 250, 0.88);
}
.nav-brand {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.02em;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.account-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  transition: background 0.18s ease;
}
.account-link:hover { background: var(--color-bg-light); }
.account-link-secondary {
  background: transparent;
  border-color: transparent;
  color: var(--color-text-muted);
  font-weight: 500;
}
.account-link-secondary:hover { background: transparent; color: var(--color-text); }

/* Capsule theme toggle */
.theme-capsule {
  position: relative;
  width: 64px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.theme-capsule .capsule-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  color: var(--color-text-muted);
  z-index: 2;
}
.theme-capsule .capsule-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
[data-theme="light"] .theme-capsule .capsule-thumb {
  transform: translateX(32px);
}
.theme-capsule .capsule-sun  { color: #f5a524; }
.theme-capsule .capsule-moon { color: #8b8fa3; }
[data-theme="light"] .theme-capsule .capsule-sun  { color: #6b7280; }
[data-theme="light"] .theme-capsule .capsule-moon { color: #c9851a; }

/* Hide the legacy round toggle styles if any leak through */
.theme-toggle:not(.theme-capsule) { display: none; }

/* =====================================================
   31. Hero booking widget (overlapping card)
   ===================================================== */
.hero-widget {
  position: relative;
  z-index: 5;
  margin: -56px 16px 24px;
  background: var(--color-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}
.hw-head { margin-bottom: 16px; }
.hw-type {
  display: flex;
  gap: 6px;
  background: var(--color-bg);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 10px;
}
.hw-type-btn {
  flex: 1;
  padding: 10px 8px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.hw-type-btn.active {
  background: var(--color-accent);
  color: #1a1a1a;
}
.hw-hint {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 0;
}

.hw-cal {
  min-height: 280px;
}
.hw-cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  padding: 0 4px;
}
.hw-cal-nav-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}
.hw-cal-nav-btn:hover { background: var(--color-bg-light); }
.hw-cal-nav-btn.disabled { opacity: 0.3; cursor: not-allowed; }
.hw-cal-nav-spacer { flex: 1; }
.hw-cal-loading {
  padding: 40px 16px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 14px;
}
.hw-cal-month {
  display: inline-block;
  vertical-align: top;
  padding: 8px;
  width: calc(50% - 1px);
  box-sizing: border-box;
}
/* Single month (mobile): fill the full width */
.hw-cal-single .hw-cal-month {
  width: 100%;
}
.hw-cal-month + .hw-cal-month {
  border-left: 1px solid var(--color-border);
}
.hw-cal-month-label {
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--color-text);
}
.hw-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.hw-cal-dow {
  font-size: 10px;
  color: var(--color-text-muted);
  text-align: center;
  padding: 4px 0;
  font-weight: 600;
  text-transform: uppercase;
}
.hw-cal-day {
  width: 100%;
  aspect-ratio: 1;
  max-width: 42px;
  max-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  color: var(--color-text);
  transition: background 0.12s ease;
}
.hw-cal-day.empty { cursor: default; }
.hw-cal-day.disabled {
  color: var(--color-text-muted);
  opacity: 0.35;
  cursor: not-allowed;
}
.hw-cal-day:not(.disabled):not(.empty):hover {
  background: var(--color-bg-light);
}
.hw-cal-day.in-range { background: rgba(232, 168, 56, 0.18); border-radius: 0; }
.hw-cal-day.selected {
  background: var(--color-accent);
  color: #1a1a1a;
  font-weight: 700;
}
.hw-cal-day.booked-room {
  background: repeating-linear-gradient(45deg, transparent 0 4px, rgba(220,80,80,0.35) 4px 6px);
}
.hw-cal-day.booked-parking {
  background: repeating-linear-gradient(45deg, transparent 0 4px, rgba(80,140,220,0.35) 4px 6px);
}
.hw-cal-day.booked-full {
  background: repeating-linear-gradient(45deg, rgba(220,80,80,0.35) 0 4px, rgba(80,140,220,0.35) 4px 8px);
  cursor: not-allowed;
}
.hw-cal-day.booked-full.disabled { opacity: 0.5; }
/* Booked dates are still clickable as a check-out target only */
.hw-cal-day.booked-clickable { cursor: pointer; }

.hw-foot {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}
.hw-summary {
  font-size: 14px;
  color: var(--color-text);
}
.hw-summary-label { color: var(--color-text-muted); }
.hw-summary strong { color: var(--color-accent); font-weight: 700; }
.hw-continue {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
}
.hw-continue:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.hw-legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--color-text-muted);
  margin: 12px 0 0;
  align-items: center;
}
.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-right: 4px;
  vertical-align: middle;
}
.legend-booked  { background: repeating-linear-gradient(45deg, transparent 0 2px, rgba(220,80,80,0.6) 2px 4px); }
.legend-partial { background: repeating-linear-gradient(45deg, transparent 0 2px, rgba(80,140,220,0.6) 2px 4px); }
.legend-free    { background: var(--color-accent); }

/* =====================================================
   Mobile banner slider (< 1024px)
   ===================================================== */
.mobile-banner {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
}
.banner-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease;
}
.banner-track img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.banner-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.banner-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s;
}
.banner-dot.active { background: #fff; }

/* Hide on desktop */
@media (min-width: 1024px) { .mobile-banner { display: none; } }

/* =====================================================
   Desktop photo strip (looping marquee, >= 1024px)
   ===================================================== */
.photo-strip-wrap {
  display: none;
}
@media (min-width: 1024px) {
  .photo-strip-wrap {
    display: block;
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: -100px auto 40px;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 80px, black calc(100% - 80px), transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 80px, black calc(100% - 80px), transparent);
  }
  .photo-strip {
    display: flex;
    gap: 12px;
    width: max-content;
    animation: strip-scroll 40s linear infinite;
  }
  .photo-strip img {
    height: 200px;
    width: auto;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
  }
}
@keyframes strip-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Desktop: float widget to the right of the hero with overlap.
   Width fixed, height auto-sized to content (no full-page stretch). */
@media (min-width: 1024px) {
  .hero-widget {
    position: absolute;
    right: 48px;
    top: 88px;
    bottom: auto;
    width: 460px;
    max-height: 600px;
    margin: 0;
    overflow-y: auto;
  }
  .hero {
    position: relative;
    min-height: 720px;
    padding-bottom: 280px;
  }
  .hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(13, 27, 42, 0.75);
    z-index: 0;
  }
  .hero-inner {
    position: relative;
    z-index: 1;
    grid-template-columns: minmax(0, 1fr) 460px !important;
  }
}
@media (min-width: 1280px) {
  .hero-widget { width: 520px; right: 64px; }
  .hero-inner { grid-template-columns: minmax(0, 1fr) 520px !important; }
}

/* =====================================================
   32. Account note + admin link
   ===================================================== */
.account-note {
  margin-top: 32px;
  padding: 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
}
.account-text {
  font-size: 14px;
  color: var(--color-text-muted);
  margin: 8px 0 16px;
  line-height: 1.5;
}
.account-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.btn-account { flex: 1; min-width: 140px; }
.admin-note {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
}
.admin-note a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
}
.admin-note a:hover { text-decoration: underline; }

/* =====================================================
   33. Auth modal
   ===================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: modalFade 0.2s ease;
}
.modal-backdrop[hidden] { display: none; }
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }

.modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 28px 24px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalRise 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes modalRise { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover { background: var(--color-border); }

.modal-title {
  margin: 0 0 6px;
  font-size: 22px;
  color: var(--color-text);
}
.modal-sub {
  margin: 0 0 20px;
  color: var(--color-text-muted);
  font-size: 14px;
}
.modal-tabs {
  display: flex;
  background: var(--color-bg);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 18px;
}
.modal-tab {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  color: var(--color-text-muted);
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}
.modal-tab.active {
  background: var(--color-accent);
  color: #1a1a1a;
}

.auth-form .form-group { margin-bottom: 14px; }
.auth-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}
.auth-form input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 15px;
  font-family: inherit;
  box-sizing: border-box;
}
.auth-form input:focus {
  outline: none;
  border-color: var(--color-accent);
}
.form-hint {
  display: block;
  font-size: 11px;
  color: var(--color-text-muted);
  margin-top: 4px;
}
.auth-error {
  background: rgba(220, 80, 80, 0.12);
  border: 1px solid rgba(220, 80, 80, 0.35);
  color: #d65555;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 12px;
}
.auth-success {
  background: rgba(80, 180, 100, 0.12);
  border: 1px solid rgba(80, 180, 100, 0.35);
  color: #5cb46a;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 12px;
}
.auth-form .btn-full + .btn-full { margin-top: 10px; }

/* Bookings screen */
.btn-signout { margin-left: auto; }
.bookings-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.bookings-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--color-text-muted);
}
.booking-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 18px;
}
.booking-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}
.booking-card-type {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent);
}
.booking-card-status {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}
.status-pending_payment      { background: rgba(180,180,180,0.18); color: var(--color-text-muted); }
.status-pending_verification { background: rgba(232, 168, 56, 0.18); color: var(--color-accent); }
.status-confirmed            { background: rgba(80, 180, 100, 0.18); color: #5cb46a; }
.status-cancelled            { background: rgba(220, 80, 80, 0.18); color: #d65555; }
.status-completed            { background: rgba(120, 140, 220, 0.18); color: #8aa0e3; }
.booking-card-dates {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  margin: 6px 0;
}
.booking-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: var(--color-text-muted);
}
.booking-card-meta strong { color: var(--color-text); font-weight: 600; }
.booking-card-ref {
  font-size: 12px;
  color: var(--color-muted);
  letter-spacing: 0.03em;
  margin-bottom: 2px;
}
.booking-card-ref strong {
  color: var(--color-text);
  font-family: monospace;
}
.booking-card-times {
  font-size: 12px;
  color: var(--color-muted);
  margin-bottom: 6px;
}

/* Checkbox label for house rules acceptance */
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--color-text);
  line-height: 1.4;
  cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--color-accent);
  flex-shrink: 0;
}


/* =====================================================
   34. Terms modal (house rules/cancellation gate)
   ===================================================== */
#terms-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
#terms-modal.is-open { display: flex; }
#terms-modal .terms-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.78);
  z-index: 1;
}
#terms-modal .terms-panel {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 600px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
#terms-modal .terms-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-light);
}
#terms-modal .terms-header h3 { margin: 0; font-size: 18px; color: var(--color-text); }
#terms-modal .terms-close {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
#terms-modal .terms-close:hover { background: var(--color-border); }
#terms-modal .terms-body {
  padding: 20px 24px;
  overflow-y: auto;
  color: var(--color-text);
  font-size: 14px;
  line-height: 1.6;
  background: var(--color-bg-light);
}
#terms-modal .terms-body h4 {
  margin: 18px 0 6px;
  font-size: 14px;
  color: var(--color-accent);
}
#terms-modal .terms-body h4:first-child { margin-top: 0; }
#terms-modal .terms-body ul { margin: 0 0 6px 18px; padding: 0; }
#terms-modal .terms-body li { margin-bottom: 6px; }
#terms-modal .terms-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 16px 24px;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-light);
}
body.terms-open { overflow: hidden; }

.checkbox-wrap {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin-top: 12px;
  font-size: 13px;
}
.checkbox-wrap .checkbox-label { display: inline-flex; margin-right: 0; }
.terms-link {
  color: var(--color-accent);
  text-decoration: none;
  cursor: pointer;
  font: inherit;
}
.terms-link:hover { opacity: 0.85; }
.terms-tooltip {
  display: none;
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  padding: 8px 12px;
  background: var(--color-text);
  color: var(--color-bg);
  border-radius: 8px;
  font-size: 12px;
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  pointer-events: none;
}
.terms-tooltip.is-visible { display: block; }

.summary-note { margin-top: -6px; }

.date-summary:empty { display: none; }

.extra-guest-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: 0.95rem;
}
[data-theme="light"] .extra-guest-input { background: #ffffff; }

#payment-summary-card #btn-confirm-booking { margin-top: 16px; }

