/*
 * Hotel detail / booking page — localtable v2. Consumes tokens.css. No raw hex.
 */

.hotel-header { display: flex; align-items: center; gap: var(--s5); margin-bottom: var(--s5); }
.hotel-logo img { max-width: 100px; max-height: 70px; object-fit: contain; }
.hotel-header h1 { margin: 0; font-size: var(--fs-h1); font-variation-settings: 'opsz' var(--opsz-display); }

/* Date selector */
.date-selector {
    background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-lg);
    padding: var(--s4) var(--s5); margin-bottom: var(--s5);
    display: flex; align-items: center; gap: var(--s4); flex-wrap: wrap;
    box-shadow: var(--sh-1);
}
.date-selector label { font-weight: 600; color: var(--ink); margin: 0; white-space: nowrap; }
.date-selector input[type="date"] { max-width: 230px; }

/* Pricing */
.pricing-section {
    background: var(--dining-tint); border: 1px solid var(--line);
    color: var(--ink); padding: var(--s4) var(--s5); border-radius: var(--r-lg);
    margin-bottom: var(--s5);
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3);
}
.pricing-main { display: flex; align-items: baseline; gap: var(--s2); }
.pricing-label { font-size: 0.95rem; color: var(--ink-soft); }
.pricing-amount { font-size: 1.75rem; font-weight: 700; color: var(--dining); font-variant-numeric: tabular-nums; }
.pricing-unit { font-size: 0.9rem; color: var(--ink-soft); }
.pricing-details { display: flex; gap: var(--s3); flex-wrap: wrap; }
.pricing-detail {
    font-size: 0.85rem; color: var(--ink);
    background: var(--surface); border: 1px solid var(--line);
    padding: 4px 10px; border-radius: var(--r-sm); font-variant-numeric: tabular-nums;
}
@media (max-width: 600px) {
    .pricing-section { flex-direction: column; align-items: flex-start; }
    .pricing-amount { font-size: 1.5rem; }
}

/* No-availability panel */
.no-availability {
    background: var(--surface); border: 1px solid var(--line-strong); border-left: 4px solid var(--dining);
    border-radius: var(--r-lg); padding: var(--s6); margin-bottom: var(--s6); text-align: center;
    box-shadow: var(--sh-1);
}
.no-availability h2 { margin-top: 0; color: var(--ink); }
.req { color: var(--error); }

/* Special event banner */
.special-event-banner {
    background: var(--surface-sunk); border: 1px solid var(--line); border-left: 4px solid var(--dining);
    color: var(--ink); padding: var(--s4) var(--s5); border-radius: var(--r-md); margin-bottom: var(--s5);
}
.special-event-banner h3 { margin: 0; font-size: 1.1rem; color: var(--ink); font-weight: 600; }

/* Main content */
.main-content { display: flex; flex-direction: column; gap: var(--s6); margin-bottom: var(--s8); }
.menu-section h2 { margin-top: 0; margin-bottom: var(--s4); }

.menu-info-bar {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r-md) var(--r-md) 0 0; padding: 10px var(--s4);
    display: flex; justify-content: space-between; align-items: center; gap: var(--s3);
}
.menu-date-info { color: var(--ink-soft); font-size: 0.9rem; font-weight: 500; }

.no-menu-message {
    background: var(--warning-bg); border: 1px solid var(--warning);
    border-radius: var(--r-md); padding: var(--s5); text-align: center; color: var(--ink);
}

.pdf-canvas-container {
    background-color: var(--surface-sunk); padding: 15px; text-align: center;
    overflow: auto; border-radius: 0 0 var(--r-md) var(--r-md); max-height: 75vh;
    border: 1px solid var(--line); border-top: 0;
}
.pdf-canvas-container canvas { max-width: 100%; height: auto; box-shadow: var(--sh-2); background: #fff; }

.pdf-controls {
    background-color: var(--surface); padding: 8px; text-align: center;
    border-left: 1px solid var(--line); border-right: 1px solid var(--line); font-size: 0.9rem;
    display: flex; align-items: center; justify-content: center; gap: var(--s3);
}
.pdf-controls button { padding: 6px 14px; }

.menu-loading {
    background: var(--surface-sunk); border: 1px solid var(--line);
    border-radius: var(--r-md); padding: var(--s7); text-align: center; color: var(--ink-soft);
}
.menu-loading .spinner {
    display: inline-block; width: 20px; height: 20px;
    border: 3px solid var(--line-strong); border-top-color: var(--dining); border-radius: 50%;
    animation: spin 1s linear infinite; margin-right: 8px; vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .menu-loading .spinner { animation: none; } }

/* Booking section */
.booking-section {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: var(--s5) var(--s6); max-width: 800px; box-shadow: var(--sh-1);
}
.booking-section h2 { margin-top: 0; margin-bottom: var(--s4); font-size: var(--fs-h2); }
.booking-section h3 { font-size: 1rem; margin: var(--s4) 0 var(--s3); color: var(--ink); }
.booking-section .form-group { margin-bottom: var(--s4); }
.booking-section label { font-size: 0.95rem; }
.booking-section textarea { min-height: 80px; }
.booking-section .form-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
@media (max-width: 600px) { .booking-section .form-row { gap: var(--s2); } }

/* Divider */
.section-divider { border: none; border-top: 1px solid var(--line); margin: var(--s6) 0; }

/* Info section */
.hotel-info-section { background: var(--surface-sunk); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s5); }
.hotel-info-section h2 { margin-top: 0; font-size: var(--fs-h2); color: var(--ink); }
.info-grid { display: grid; grid-template-columns: 1fr; gap: var(--s5); }
@media (min-width: 768px) { .info-grid { grid-template-columns: 1fr 1fr; } }
.info-block h3 { font-size: 1rem; margin: 0 0 var(--s3); color: var(--ink); }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: var(--s2) 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: none; }
.contact-list a { color: var(--dining); }

/* Map */
#map { height: 260px; border-radius: var(--r-md); z-index: 1; border: 1px solid var(--line); }
.detail-pin span {
    display: block; width: 18px; height: 18px; border-radius: 50%;
    background: var(--dining); border: 3px solid var(--surface); box-shadow: var(--sh-2);
}
.leaflet-container { font-family: var(--font-serif); background: var(--surface-sunk); }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--surface); color: var(--ink); box-shadow: var(--sh-3); }
.leaflet-popup-content-wrapper { border-radius: var(--r-md); }
.leaflet-bar a { color: var(--ink); background: var(--surface); border-bottom-color: var(--line); }
.leaflet-bar a:hover { background: var(--surface-sunk); }

@media (max-width: 768px) {
    .date-selector { flex-direction: column; align-items: stretch; }
    .date-selector input[type="date"] { width: 100%; max-width: none; }
    .menu-info-bar { flex-direction: column; text-align: center; }
    .booking-section { padding: var(--s5); }
}
