/* Accommodation detail + booking form — scoped page CSS following the
   brand tokens in bookings/static/bookings/css/styles.css. Every other
   booking-style page (booking_form.html, public_reviews.html) keeps its own
   scoped CSS instead of adding to the shared stylesheet; this file follows
   that convention for the accommodations app specifically. */

/* ── Hero ─────────────────────────────────────────────────────────── */

.accom-hero {
    position: relative;
    min-height: 380px;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    background-color: var(--color-navy);
}

.accom-hero-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(3,35,90,0.15) 0%, rgba(3,35,90,0.85) 100%);
}

.accom-hero-content {
    position: relative;
    padding: 3rem 0 2.5rem;
    color: var(--color-white);
}

.accom-hero-tag {
    display: inline-block;
    background: rgba(64,224,208,0.18);
    border: 1px solid rgba(64,224,208,0.4);
    color: var(--color-white);
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.accom-hero-title {
    font-size: 2.4rem;
    font-weight: 800;
    margin: 0 0 0.5rem 0;
}

.accom-hero-location {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.accom-hero-location i {
    color: var(--color-turquoise);
    margin-right: 4px;
}

.accom-hero-price {
    display: inline-block;
    background: rgba(255,255,255,0.95);
    color: var(--color-navy);
    font-weight: 800;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 1rem;
}

/* ── Layout ───────────────────────────────────────────────────────── */

.accom-section {
    padding: 3rem 0;
}

.accom-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 992px) {
    .accom-layout {
        grid-template-columns: 2fr 1fr;
        align-items: start;
    }
}

.accom-block {
    margin-bottom: 2.5rem;
}

.accom-block-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-navy);
    margin-bottom: 1rem;
}

.accom-block-text {
    color: #45556f;
    line-height: 1.8;
}

/* Rendered Markdown inside description/terms (headings, lists, emphasis) —
   mirrors .smd-desc in bookings/static/bookings/css/styles.css, the same
   treatment the excursion/transport service-details modal uses, so
   admin-authored long-form text looks consistent across the site. */
.accom-richtext > :first-child {
    margin-top: 0;
}
.accom-richtext > :last-child {
    margin-bottom: 0;
}
.accom-richtext h2,
.accom-richtext h3,
.accom-richtext h4 {
    color: var(--color-navy);
    font-weight: 800;
    line-height: 1.25;
    margin: 1.5rem 0 0.6rem;
}
.accom-richtext h2 { font-size: 1.18rem; }
.accom-richtext h3 { font-size: 1.05rem; }
.accom-richtext h4 { font-size: 0.98rem; }
.accom-richtext p {
    margin: 0 0 0.9rem;
}
.accom-richtext ul,
.accom-richtext ol {
    margin: 0 0 1rem;
    padding-left: 1.25rem;
}
.accom-richtext li {
    margin-bottom: 0.4rem;
}
.accom-richtext li::marker {
    color: var(--color-turquoise);
}
.accom-richtext strong {
    color: var(--color-navy);
    font-weight: 700;
}
.accom-richtext a {
    color: var(--color-turquoise);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.accom-richtext hr {
    border: none;
    border-top: 1px solid rgba(3, 35, 90, 0.1);
    margin: 1.3rem 0;
}

/* ── Gallery ──────────────────────────────────────────────────────── */

.accom-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 110px;
    gap: 8px;
    margin-bottom: 2.5rem;
    border-radius: 26px;
    overflow: hidden;
}

.accom-gallery-item {
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    overflow: hidden;
    background: var(--color-light);
}

.accom-gallery-item:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

.accom-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.accom-gallery-item:hover img {
    transform: scale(1.05);
}

@media (max-width: 767px) {
    .accom-gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 130px;
    }
}

/* ── Amenities ────────────────────────────────────────────────────── */

.accom-amenities {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.9rem;
}

.accom-amenity {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--color-light);
    border: 1px solid rgba(64,224,208,0.15);
    border-radius: 14px;
    padding: 0.75rem 1rem;
    color: var(--color-navy);
    font-weight: 600;
    font-size: 0.92rem;
}

.accom-amenity i {
    width: 18px;
    height: 18px;
    color: var(--color-turquoise);
    flex-shrink: 0;
}

/* ── Check-in / check-out ────────────────────────────────────────── */

.accom-checkinfo {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.accom-checkinfo > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.accom-checkinfo strong {
    color: var(--color-navy);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.accom-checkinfo span {
    color: #45556f;
}

/* ── Room cards ───────────────────────────────────────────────────── */

.accom-rooms {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 576px) {
    .accom-rooms {
        grid-template-columns: repeat(2, 1fr);
    }
}

.room-card {
    background: var(--color-white);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(3,35,90,0.06), 0 2px 10px rgba(3,35,90,0.04);
    display: flex;
    flex-direction: column;
}

.room-card-image-wrapper {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.room-gallery-trigger {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    border: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
    background: var(--color-light);
}

.room-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.room-gallery-trigger:hover .room-card-image {
    transform: scale(1.05);
}

.room-gallery-badge {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(3,35,90,0.72);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
}

.room-gallery-badge i {
    width: 14px;
    height: 14px;
}

.room-card-body {
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.room-card-name {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--color-navy);
    margin: 0 0 0.35rem 0;
}

.room-card-price {
    font-weight: 800;
    color: var(--color-navy);
    font-size: 1.05rem;
    margin-bottom: 0.6rem;
}

.room-card-price span {
    font-weight: 500;
    color: #6c8aad;
    font-size: 0.85rem;
}

.room-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-size: 0.85rem;
    color: #45556f;
    margin-bottom: 0.6rem;
}

.room-card-meta i {
    color: var(--color-turquoise);
    margin-right: 4px;
}

.room-card-desc {
    color: #45556f;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

.room-card-children-note {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #dc3545;
    font-size: 0.82rem;
    font-weight: 600;
    margin: 0 0 0.6rem;
}

.room-card-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 0.4rem;
}

.room-amenity-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(64,224,208,0.12);
    color: var(--color-navy);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
}

.room-amenity-pill i {
    width: 13px;
    height: 13px;
}

/* ── Sidebar ──────────────────────────────────────────────────────── */

.accom-aside-card {
    background: var(--color-light);
    border-radius: 22px;
    padding: 1.75rem;
    position: sticky;
    top: 1.5rem;
}

.accom-aside-card h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--color-navy);
    margin-bottom: 1rem;
}

.accom-aside-trust {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.accom-aside-trust li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #45556f;
    font-size: 0.88rem;
}

.accom-aside-trust i {
    color: var(--color-turquoise);
    font-size: 1rem;
    flex-shrink: 0;
}

/* ── Booking form ─────────────────────────────────────────────────── */

.acc-booking-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 992px) {
    .acc-booking-layout {
        grid-template-columns: 1.6fr 1fr;
        align-items: start;
    }
}

.acc-booking-card {
    background: var(--color-white);
    border-radius: 28px;
    box-shadow: 0 20px 50px rgba(3,35,90,0.08);
    padding: 2rem;
}

.acc-booking-notice {
    background: rgba(230,168,23,0.10);
    border: 1px solid rgba(230,168,23,0.30);
    color: #8a6413;
    border-radius: 16px;
    padding: 0.9rem 1.2rem;
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.acc-form-section {
    margin-bottom: 1.75rem;
}

.acc-form-section-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--color-navy);
    margin-bottom: 1rem;
}

.acc-booking-card label {
    display: block;
    font-weight: 600;
    color: var(--color-navy);
    font-size: 0.88rem;
    margin-bottom: 0.35rem;
}

.acc-booking-card input[type="text"],
.acc-booking-card input[type="email"],
.acc-booking-card input[type="tel"],
.acc-booking-card input[type="date"],
.acc-booking-card input[type="number"],
.acc-booking-card textarea {
    width: 100%;
    border: 1px solid rgba(3,35,90,0.15);
    border-radius: 14px;
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--color-navy);
    background: var(--color-white);
}

.acc-booking-card input:focus,
.acc-booking-card textarea:focus {
    outline: none;
    border-color: var(--color-turquoise);
    box-shadow: 0 0 0 3px rgba(64,224,208,0.2);
}

.acc-field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.acc-field-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

@media (max-width: 575px) {
    .acc-field-grid,
    .acc-field-grid-3 {
        grid-template-columns: 1fr;
    }
}

/* ── Rate calendar ────────────────────────────────────────────────── */

.acc-date-field {
    position: relative;
}

.acc-date-input {
    cursor: pointer;
    background: var(--color-white);
}

.acc-calendar-pop {
    position: absolute;
    z-index: 20;
    top: calc(100% + 8px);
    left: 0;
    width: 300px;
    max-width: 90vw;
    background: var(--color-white);
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(3,35,90,0.18);
    border: 1px solid rgba(3,35,90,0.08);
    padding: 1rem;
}

.acc-cal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.acc-cal-title {
    font-weight: 800;
    color: var(--color-navy);
    font-size: 0.95rem;
}

.acc-cal-nav {
    display: flex;
    gap: 4px;
}

.acc-cal-nav button {
    border: none;
    background: var(--color-light);
    color: var(--color-navy);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1;
}

.acc-cal-nav button:hover {
    background: rgba(64,224,208,0.25);
}

.acc-cal-nav button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.acc-cal-weekdays,
.acc-cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.acc-cal-weekdays {
    margin-bottom: 4px;
}

.acc-cal-weekdays span {
    text-align: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: #6c8aad;
    text-transform: uppercase;
}

.acc-cal-day {
    border: none;
    background: none;
    border-radius: 10px;
    padding: 4px 0 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    cursor: pointer;
    color: var(--color-navy);
    min-height: 44px;
}

.acc-cal-day:hover:not(:disabled) {
    background: rgba(64,224,208,0.15);
}

.acc-cal-day-num {
    font-size: 0.85rem;
    font-weight: 600;
}

.acc-cal-day-rate {
    font-size: 0.62rem;
    color: #6c8aad;
    font-weight: 600;
}

.acc-cal-day.acc-cal-outside {
    color: #b9c6da;
}

.acc-cal-day.acc-cal-outside .acc-cal-day-rate {
    color: #d7e0ec;
}

.acc-cal-day:disabled {
    cursor: not-allowed;
    color: #d7e0ec;
}

.acc-cal-day:disabled .acc-cal-day-rate {
    color: #e8edf5;
}

.acc-cal-day.acc-cal-selected {
    background: var(--color-navy);
    color: var(--color-white);
}

.acc-cal-day.acc-cal-selected .acc-cal-day-rate {
    color: rgba(255,255,255,0.75);
}

.acc-cal-day.acc-cal-today:not(.acc-cal-selected) {
    box-shadow: inset 0 0 0 1.5px var(--color-turquoise);
}

.acc-cal-foot {
    display: flex;
    justify-content: space-between;
    margin-top: 0.75rem;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(3,35,90,0.08);
}

.acc-cal-foot button {
    border: none;
    background: none;
    color: var(--color-turquoise);
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    padding: 2px 4px;
}

.acc-cal-foot button:hover {
    text-decoration: underline;
}

.acc-availability-note {
    font-size: 0.85rem;
    margin-top: 0.5rem;
    font-weight: 600;
}

.acc-availability-note.acc-available { color: #198754; }
.acc-availability-note.acc-unavailable { color: #dc3545; }

.acc-field-disabled {
    background-color: #f1f3f5;
    color: #6c757d;
    cursor: not-allowed;
}

.acc-terms-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.88rem;
    color: #45556f;
    margin-bottom: 0.75rem;
    cursor: pointer;
}

.acc-terms-consent-label input {
    margin-top: 3px;
}

.acc-terms-consent-label a {
    color: var(--color-navy);
    font-weight: 700;
}

.acc-terms-error {
    color: #dc3545;
    font-size: 0.85rem;
    margin: 0.3rem 0 0.75rem 0;
}

/* ── Booking summary aside ───────────────────────────────────────── */

.acc-summary {
    background: var(--color-white);
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(3,35,90,0.06);
    overflow: hidden;
    position: sticky;
    top: 1.5rem;
}

.acc-summary-media {
    height: 160px;
    background-size: cover;
    background-position: center;
    background-color: var(--color-navy);
}

.acc-summary-body {
    padding: 1.5rem;
}

.acc-summary-cat {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-turquoise);
    font-weight: 700;
}

.acc-summary-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--color-navy);
    margin: 0.3rem 0 1rem 0;
}

.acc-summary-price-wrap {
    background: var(--color-light);
    border-radius: 16px;
    padding: 1rem;
    margin-bottom: 1.25rem;
}

.acc-summary-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--color-navy);
}

.acc-summary-price-note {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: #6c8aad;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.acc-summary-calc {
    font-size: 0.85rem;
    color: #45556f;
    margin-top: 0.25rem;
}

.acc-summary-trust {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.acc-summary-trust li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #45556f;
    font-size: 0.85rem;
}

.acc-summary-trust svg {
    color: var(--color-turquoise);
    flex-shrink: 0;
}
