/* ── Base ── */
.rjh-sw-sidebar {
    font-family: 'Gabarito', system-ui, sans-serif;
    width: 100%;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    -webkit-font-smoothing: antialiased;
}

.rjh-sw-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: none;
    padding: 0;
}

.rjh-sw-card-heading {
    font-family: 'Gabarito', system-ui, sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 4px 0;
}

/* ── Things to Know ── */
.rjh-sw-ttk-subtitle {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 18px 0;
    line-height: 1.4;
}

.rjh-sw-ttk-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.rjh-sw-ttk-links li {
    border-top: 1px solid #f0f0f0;
}

.rjh-sw-ttk-links li:last-child {
    border-bottom: 1px solid #f0f0f0;
}

.rjh-sw-ttk-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 0;
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    font-family: inherit;
    font-size: inherit;
    text-align: left;
}

.rjh-sw-ttk-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(254,187,32,0.09);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rjh-sw-ttk-icon i {
    font-size: 14px;
    color: #25314b;
}

.rjh-sw-ttk-label {
    font-size: 14px;
    font-weight: 500;
    color: #25314b;
    flex: 1;
}

.rjh-sw-ttk-arrow {
    color: #9ca3af;
    font-size: 14px;
}

/* ── Hours & Information ── */
.rjh-sw-hours-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.rjh-sw-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.rjh-sw-status--open { color: #22c55e; }
.rjh-sw-status--closed { color: #6b7280; }

.rjh-sw-status__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    animation: rjh-sw-pulse 2s ease-in-out infinite;
}

@keyframes rjh-sw-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
    50% { box-shadow: 0 0 0 5px rgba(34,197,94,0); }
}

.rjh-sw-hours-section { margin-bottom: 16px; }
.rjh-sw-hours-section:last-of-type { margin-bottom: 0; }

.rjh-sw-hours-section__label {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.rjh-sw-hours-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 16px 0;
}

.rjh-sw-hours-table {
    width: 100%;
    border-collapse: collapse;
}

.rjh-sw-hours-table tr { border-bottom: 1px solid #f0f0f0; }
.rjh-sw-hours-table tr:last-child { border-bottom: none; }

.rjh-sw-hours-table td {
    padding: 7px 0;
    font-size: 13.5px;
    color: #4a4a4a;
}

.rjh-sw-hours-table__day { font-weight: 500; }
.rjh-sw-hours-table__time { text-align: right; white-space: nowrap; }

.rjh-sw-today-row {
    background: rgba(254,187,32,0.09);
}

.rjh-sw-today-row td { padding-left: 8px; padding-right: 8px; }
.rjh-sw-today-row td:first-child { border-radius: 6px 0 0 6px; }
.rjh-sw-today-row td:last-child { border-radius: 0 6px 6px 0; }

.rjh-sw-today-pill {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    color: #b8860b;
    background: rgba(254,187,32,0.18);
    padding: 1px 6px;
    border-radius: 9999px;
    margin-left: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    vertical-align: middle;
}

.rjh-sw-closed-text { color: #9ca3af; font-style: italic; }

/* ── Check-in / Check-out bar ── */
.rjh-sw-checkin-bar {
    background: #25314b;
    border-radius: 8px;
    display: flex;
    margin-top: 20px;
}

.rjh-sw-checkin-col {
    flex: 1;
    text-align: center;
    padding: 14px 12px;
}

.rjh-sw-checkin-col + .rjh-sw-checkin-col {
    border-left: 1px solid rgba(255,255,255,0.12);
}

.rjh-sw-checkin-label {
    font-size: 11px;
    font-weight: 600;
    color: #febb20;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 4px;
}

.rjh-sw-checkin-value {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
}

/* ── Season ── */
.rjh-sw-season-text {
    text-align: center;
    font-size: 13px;
    color: #6b7280;
    margin-top: 14px;
}

/* ── Weather ── */
.rjh-sw-weather-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.rjh-sw-weather-location {
    font-size: 13px;
    color: #6b7280;
    margin: 2px 0 0 0;
}

.rjh-sw-weather-temp {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1;
}

.rjh-sw-weather-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rjh-sw-weather-forecast {
    display: flex;
    gap: 0;
    border-top: 1px solid #f0f0f0;
    padding-top: 14px;
}

.rjh-sw-forecast-day {
    flex: 1;
    text-align: center;
}

.rjh-sw-forecast-day__label {
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.rjh-sw-forecast-day__icon {
    font-size: 16px;
    margin-bottom: 4px;
}

.rjh-sw-forecast-day__temp {
    font-size: 12px;
    color: #4a4a4a;
    font-weight: 500;
}

/* ── TTK Modal (matches amenities-activities modal) ── */
.rjh-ttk-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.rjh-ttk-modal-overlay.rj-modal-open {
    opacity: 1;
    visibility: visible;
}

.rjh-ttk-modal-overlay .rj-modal {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
}

.rjh-ttk-modal-overlay.rj-modal-open .rj-modal {
    transform: translateY(0) scale(1);
}

.rjh-ttk-modal-overlay .rj-modal-header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px 24px;
    border-bottom: 1px solid #ebebeb;
    flex-shrink: 0;
}

.rjh-ttk-modal-overlay .rj-modal-header-title {
    font-size: 1rem;
    font-weight: 700;
    color: #25314b;
}

.rjh-ttk-modal-overlay .rj-modal-close {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    background: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: #25314b;
    transition: background 0.15s;
}

.rjh-ttk-modal-overlay .rj-modal-close:hover {
    background: #f7f7f7;
}

.rjh-ttk-modal-overlay .rj-modal-body {
    overflow-y: auto;
    padding: 24px;
    flex: 1;
}

.rjh-ttk-modal-content {
    font-size: 15px;
    line-height: 1.7;
    color: #25314b;
}

.rjh-ttk-modal-content p { margin: 0 0 12px; }
.rjh-ttk-modal-content p:last-child { margin-bottom: 0; }

body.rjh-ttk-body-locked {
    overflow: hidden;
}

/* ── Park Map Lightbox ── */

.rjh-map-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.rjh-map-lightbox.rj-modal-open {
    opacity: 1;
    visibility: visible;
}

.rjh-map-lightbox-topbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    z-index: 2;
}

.rjh-map-lightbox-title {
    font-size: 15px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 8px;
}

.rjh-map-lightbox-title i {
    font-size: 14px;
    opacity: 0.7;
}

.rjh-map-lightbox-close {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    transition: background 0.15s;
    padding: 0;
}

.rjh-map-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.rjh-map-lightbox-image {
    max-width: 95vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rjh-map-lightbox-image img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    user-select: none;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.rjh-map-lightbox.rj-modal-open .rjh-map-lightbox-image img {
    opacity: 1;
    transform: scale(1);
}

/* ── Regular modal mobile bottom sheet ── */

@media (max-width: 767px) {
    .rjh-ttk-modal-overlay:not(.rjh-map-lightbox) {
        align-items: flex-end;
    }

    .rjh-ttk-modal-overlay:not(.rjh-map-lightbox) .rj-modal {
        width: 100%;
        max-width: 100%;
        max-height: 92vh;
        border-radius: 16px 16px 0 0;
        transform: translateY(100%);
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .rjh-ttk-modal-overlay:not(.rjh-map-lightbox).rj-modal-open .rj-modal {
        transform: translateY(0);
    }

    .rjh-ttk-modal-overlay:not(.rjh-map-lightbox) .rj-modal-body {
        padding-bottom: calc(32px + env(safe-area-inset-bottom));
    }

    .rjh-map-lightbox {
        padding: 16px;
    }

    .rjh-map-lightbox-topbar {
        padding: 12px 16px;
    }

    .rjh-map-lightbox-title {
        font-size: 14px;
    }

    .rjh-map-lightbox-close {
        width: 36px;
        height: 36px;
    }
}
