﻿/* BASE LINK STYLES */
a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-hover);
    text-decoration: underline;
}

a:focus-visible, button:focus-visible {
    outline: 2px solid var(--color-focus);
    outline-offset: 2px;
}

/* Skip Link */
.rs-skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-primary);
    color: var(--color-text-inverse);
    padding: 8px 16px;
    z-index: 10000;
}

    .rs-skip-link:focus {
        top: 0;
    }

/* TAB SWITCHER - SCROLLABLE */
.rs-tab-bar {
    max-width: 1400px;
    margin: 0 auto 24px;
    padding: 16px 20px 0;
    display: flex;
    gap: 8px;
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

    .rs-tab-bar::-webkit-scrollbar {
        height: 6px;
    }

    .rs-tab-bar::-webkit-scrollbar-track {
        background: transparent;
    }

    .rs-tab-bar::-webkit-scrollbar-thumb {
        background: var(--color-border);
        border-radius: 3px;
    }

.rs-tab {
    background: var(--color-surface-alt);
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

    .rs-tab:hover:not(.active) {
        background: var(--color-surface);
        border-color: var(--color-text-muted);
    }

    .rs-tab.active {
        background: var(--color-primary);
        color: var(--color-text-inverse);
        border-color: var(--color-primary);
    }

/* Main Container */
.rs-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    padding-top: 16px;
    margin-bottom: 40px;
}

/* TITLE SECTION - MOVED TO TOP */
.rs-title-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
    background: var(--color-surface);
    padding: 20px 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.rs-title-section {
    flex: 1;
}

/* TOP TOOLBAR ACTIONS */
.rs-top-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.rs-btn-icon-text {
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
    background: var(--color-surface-alt);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

    .rs-btn-icon-text:hover {
        background: var(--color-border);
    }

/* SHARE DROPDOWN */
.rs-share-wrapper {
    position: relative;
}

.rs-share-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    z-index: 100;
    padding: 6px 0;
    animation: fadeIn 0.15s ease;
}

    .rs-share-dropdown.active {
        display: block;
    }

.rs-share-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    font-size: 14px;
    color: var(--color-text);
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-family: var(--font-sans);
    transition: background 0.15s;
}

    .rs-share-item:hover {
        background: var(--color-surface-alt);
    }

    .rs-share-item:focus-visible {
        background: var(--color-surface-alt);
        outline: 2px solid var(--color-focus);
        outline-offset: -2px;
    }

    .rs-share-item i,
    .rs-share-item svg {
        width: 18px;
        text-align: center;
        color: var(--color-text-secondary);
        flex-shrink: 0;
    }

.rs-share-divider {
    height: 1px;
    background: var(--color-border);
    margin: 4px 0;
}

/* FILM OFFICE LOGO BADGE */
.rs-top-actions-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.rs-film-office-logo {
    height: 76px;
    width: auto;
    object-fit: contain;
}

/* PHOTO GRID - REDFIN STYLE FULL WIDTH */
.rs-photo-grid {
    display: grid;
    grid-template-columns: 50% 1fr;
    grid-template-rows: 1fr;
    gap: 4px;
    height: 480px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 40px;
    background: var(--color-surface);
    box-shadow: var(--shadow-md);
}

.rs-photo-grid-left {
    grid-row: 1;
    grid-column: 1;
    position: relative;
    overflow: hidden;
    min-height: 0;
}

    .rs-photo-grid-left img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        cursor: pointer;
        transition: transform 0.3s ease;
    }

        .rs-photo-grid-left img:hover {
            transform: scale(1.05);
        }

.rs-photo-grid-right {
    grid-column: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 4px;
    min-height: 0;
}

.rs-photo-grid-item {
    position: relative;
    overflow: hidden;
    min-height: 0;
}

.rs-photo-grid-right .rs-photo-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

    .rs-photo-grid-right .rs-photo-grid-item img:hover {
        transform: scale(1.05);
    }

.rs-show-all-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    padding: 8px 14px;
    font-size: 13px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
}

    .rs-show-all-btn:hover {
        background: rgba(0, 0, 0, 0.8);
    }

/* Single photo layout */
.rs-photo-grid.single-photo {
    grid-template-columns: 1fr;
    height: 400px;
}

    .rs-photo-grid.single-photo .rs-photo-grid-left {
        grid-column: 1;
    }

    .rs-photo-grid.single-photo .rs-photo-grid-right {
        display: none;
    }

/* Responsive - Tablet 768-1024px */
@media (max-width: 1024px) {
    .rs-photo-grid {
        height: 360px;
    }
}

/* Responsive - Mobile <768px */
@media (max-width: 768px) {
    .rs-photo-grid {
        grid-template-columns: 1fr;
        height: 280px;
    }

    .rs-photo-grid-right {
        display: none;
    }
}

/* LIGHTBOX OVERLAY */
/* ===== MOODBOARD OVERLAY ===== */
.rs-moodboard-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1a1a1a;
    z-index: 9999;
    display: none;
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

    .rs-moodboard-overlay.active {
        display: block;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.rs-moodboard-header {
    position: sticky;
    top: 0;
    z-index: 10000;
    background: #1a1a1a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.rs-moodboard-title {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
}

.rs-moodboard-subtitle {
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    font-weight: 400;
    margin-left: 12px;
}

.rs-moodboard-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

    .rs-moodboard-close:hover {
        color: #fff;
    }

.rs-moodboard-grid {
    padding: 20px 40px 60px;
}

.rs-moodboard-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

    .rs-moodboard-row .rs-moodboard-item {
        flex: 1;
        overflow: hidden;
        border-radius: 4px;
    }

.rs-moodboard-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.3s ease;
}

    .rs-moodboard-item img:hover {
        opacity: 0.85;
        transform: scale(1.02);
    }

/* Single image expanded view within moodboard */
.rs-moodboard-expanded {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 10001;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    .rs-moodboard-expanded.active {
        display: flex;
    }

    .rs-moodboard-expanded img {
        max-width: 90%;
        max-height: 90vh;
        object-fit: contain;
        border-radius: 4px;
    }

.rs-moodboard-expanded-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

    .rs-moodboard-expanded-nav:hover {
        background: rgba(255,255,255,0.3);
    }

    .rs-moodboard-expanded-nav.prev {
        left: 20px;
    }

    .rs-moodboard-expanded-nav.next {
        right: 20px;
    }

.rs-moodboard-expanded-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rs-moodboard-expanded-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

/* TWO-COLUMN LAYOUT */
.rs-content-wrapper {
    display: grid;
    grid-template-columns: 65% 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 1024px) {
    .rs-content-wrapper {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.rs-main-content {
    background: var(--color-surface);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.rs-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rs-sidebar-card {
    background: var(--color-surface);
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

@media (max-width: 1024px) {
    .rs-sidebar {
        grid-column: 1;
    }

    .rs-sidebar-card {
        max-width: none;
    }
}

.rs-sticky-sidebar {
    position: sticky;
    top: 20px;
}

/* TITLE SECTION - NOTE: flex: 1 defined in .rs-title-toolbar above */

.rs-location-name {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--color-text);
}

.rs-location-aka {
    font-size: 13px;
    font-style: italic;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.rs-location-meta {
    font-size: 16px;
    color: var(--color-text-secondary);
    margin-bottom: 12px;
}

.rs-location-id-badge {
    display: inline-block;
    background: var(--color-surface-alt);
    color: var(--color-text-muted);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
}

/* DESIGNATION BADGES */
.rs-designation-badges {
    display: flex;
    gap: 8px;
    margin: 16px 0 24px 0;
    flex-wrap: wrap;
}

.rs-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
}

    .rs-badge i {
        font-size: 14px;
    }

/* DESCRIPTION */
.rs-description {
    margin-bottom: 24px;
}

.rs-description-text {
    color: var(--color-text-secondary);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 12px;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

/* Arabic description */
.rs-description-ar {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
}

.rs-description-ar-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.rs-description-ar-text {
    color: var(--color-text-secondary);
    font-size: 15px;
    line-height: 1.9;
    margin-bottom: 12px;
    overflow: hidden;
    transition: max-height 0.4s ease;
    direction: rtl;
    text-align: right;
    font-family: 'Inter', 'Segoe UI', Tahoma, Arial, sans-serif;
}

.rs-show-more-btn {
    background: none;
    border: none;
    color: var(--color-primary);
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    padding: 4px 0;
    margin-top: 4px;
}

    .rs-show-more-btn:hover {
        color: var(--color-primary-hover);
    }

/* SITE CONDITION SECTION */
.rs-site-condition {
    margin-bottom: 24px;
    padding: 24px;
    background: var(--color-surface-alt);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.rs-site-condition-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.rs-site-condition-text {
    color: var(--color-text-secondary);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 12px;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

/* GENERAL NOTES SECTION */
.rs-general-notes {
    margin-bottom: 24px;
    padding: 24px;
    background: var(--color-surface-alt);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.rs-general-notes-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.rs-general-notes-text {
    color: var(--color-text-secondary);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 12px;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

/* USAGE RESTRICTION SECTION */
.rs-usage-restriction {
    margin-bottom: 24px;
    padding: 24px;
    background: var(--color-surface-alt);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.rs-usage-restriction-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.rs-usage-restriction-text {
    color: var(--color-text-secondary);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 12px;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

/* max-height is managed via inline styles by JS */

/* LOCATION CATEGORY */
.rs-category-section {
    margin-bottom: 24px;
}

.rs-section-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.rs-category-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rs-pill {
    background: var(--color-surface-alt);
    color: var(--color-text);
    padding: 6px 12px;
    border-radius: var(--radius-md);
    font-size: 13px;
    border: 1px solid var(--color-border);
}

/* STYLES */
.rs-styles-section {
    margin-bottom: 24px;
}

.rs-styles-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* KEYWORDS */
.rs-keywords-section {
    margin-bottom: 24px;
}

.rs-keywords-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* DETAILS GRID */
.rs-details-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.rs-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.rs-detail-item {
    display: flex;
    flex-direction: column;
}

.rs-detail-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.rs-detail-value {
    font-size: 14px;
    color: var(--color-text);
    font-weight: 500;
}

/* LOCATION CONTACTS GRID - FULL WIDTH SECTION */
.rs-location-contacts-section {
    background: var(--color-surface);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 40px;
}

.rs-location-contacts-inner {
}

.rs-location-contacts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 16px;
}

@media (max-width: 1024px) {
    .rs-location-contacts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .rs-location-contacts-grid {
        grid-template-columns: 1fr;
    }
}

.rs-contact-card {
    background: var(--color-surface);
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.rs-contact-card-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 4px;
}

.rs-contact-card-title {
    font-size: 12px;
    color: var(--color-text-secondary);
    margin-bottom: 12px;
    line-height: 1.4;
}

.rs-contact-card-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 13px;
}

.rs-contact-card-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

    .rs-contact-card-item i {
        /* color: var(--color-primary); */
        margin-top: 2px;
        flex-shrink: 0;
        font-size: 12px;
    }

    .rs-contact-card-item a {
        color: var(--color-primary);
        text-decoration: none;
    }

        .rs-contact-card-item a:hover {
            color: var(--color-primary-hover);
            text-decoration: underline;
        }

/* SIDEBAR FILM OFFICE CARD */
.rs-contact-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.rs-contact-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 4px;
}

.rs-contact-title-text {
    font-size: 13px;
    color: var(--color-text-secondary);
    margin-bottom: 16px;
    line-height: 1.4;
}

.rs-contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 13px;
}

.rs-contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

    .rs-contact-info-item i {
        color: var(--color-primary);
        margin-top: 2px;
        flex-shrink: 0;
    }

    .rs-contact-info-item a {
        color: var(--color-primary);
        text-decoration: none;
    }

        .rs-contact-info-item a:hover {
            color: var(--color-primary-hover);
            text-decoration: underline;
        }

/* FILM OFFICE CARD (SIDEBAR ONLY - FULL FILM OFFICE) */
.rs-film-office-card {
    margin-top: 0;
}

.rs-film-office-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.rs-film-office-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 12px;
}

.rs-film-office-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 13px;
}

.rs-film-office-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--color-text-secondary);
}

    .rs-film-office-item i {
        color: var(--color-primary);
        margin-top: 2px;
        flex-shrink: 0;
    }

    .rs-film-office-item a {
        color: var(--color-primary);
        text-decoration: none;
    }

        .rs-film-office-item a:hover {
            color: var(--color-primary-hover);
            text-decoration: underline;
        }

/* MAP CARD - RIGHT SIDE (ARCHIVE) */
/*
.rs-map-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    min-height: 320px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--color-border, #e5e7eb);
    background: #f1f3f5;
}
*/

.rs-map-contact i {
    /* color: var(--color-primary); */
    margin-top: 2px;
    flex-shrink: 0;
    font-size: 12px;
}

.rs-map-contact a {
    color: var(--color-primary);
    text-decoration: none;
}

    .rs-map-contact a:hover {
        color: var(--color-primary-hover);
        text-decoration: underline;
    }

#rs-map {
    width: 100%;
    height: 100%;
}

/* WEATHER WIDGET */
.rs-weather-widget {
    text-align: center;
}

.rs-weather-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.rs-weather-info {
    font-size: 48px;
    margin-bottom: 8px;
}

.rs-weather-city {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 4px;
}

.rs-weather-desc {
    font-size: 13px;
    color: var(--color-text-secondary);
}


.rs-btn {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.rs-btn-primary {
    background: var(--color-primary);
    color: var(--color-text-inverse);
}

    .rs-btn-primary:hover {
        background: var(--color-primary-hover);
    }

.rs-btn-secondary {
    background: var(--color-surface-alt);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

    .rs-btn-secondary:hover {
        background: var(--color-border);
    }

/* FOOTER */
.rs-footer {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: 32px 0;
    margin-top: 60px;
}

.rs-footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.rs-footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--color-text-secondary);
}

    .rs-footer-brand strong {
        color: var(--color-primary);
    }

.rs-footer-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}

    .rs-footer-link:hover {
        color: var(--color-primary-hover);
    }

/* RESPONSIVE */
@media (max-width: 768px) {
    .rs-location-name {
        font-size: 24px;
    }

    .rs-main-content {
        padding: 20px;
    }

    .rs-details-grid {
        grid-template-columns: 1fr;
    }

    .rs-footer-content {
        flex-direction: column;
        text-align: center;
    }

    .rs-tab-bar {
        margin-bottom: 20px;
    }
}

/* CONTACT FORM MODAL */
.rs-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

    .rs-modal-overlay.active {
        display: flex;
    }

.rs-modal {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-hover);
    width: 90%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
    position: relative;
}

.rs-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--color-text-muted);
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

    .rs-modal-close:hover {
        background: var(--color-surface-alt);
        color: var(--color-text);
    }

.rs-modal-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 4px;
}

.rs-modal-subtitle {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-bottom: 24px;
}

.rs-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 480px) {
    .rs-form-row {
        grid-template-columns: 1fr;
    }

    .rs-modal {
        padding: 20px;
        width: 95%;
    }
}

.rs-form-group {
    margin-bottom: 16px;
}

    .rs-form-group label {
        display: block;
        font-size: 13px;
        font-weight: 500;
        color: var(--color-text);
        margin-bottom: 6px;
    }

.rs-form-input,
.rs-form-select,
.rs-form-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--color-text);
    background: var(--color-surface);
    transition: border-color 0.2s ease;
}

    .rs-form-input:focus,
    .rs-form-select:focus,
    .rs-form-textarea:focus {
        outline: 2px solid var(--color-focus);
        outline-offset: 1px;
        border-color: var(--color-primary);
        box-shadow: 0 0 0 3px rgba(192, 9, 0, 0.1);
    }

.rs-form-textarea {
    resize: vertical;
    min-height: 100px;
}

.rs-recaptcha-mock {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 12px;
    background: var(--color-surface-alt);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--color-text-secondary);
    margin-bottom: 16px;
}

    .rs-recaptcha-mock input[type="checkbox"] {
        width: 20px;
        height: 20px;
        cursor: pointer;
    }

/* GOOGLE reCAPTCHA WIDGET */
.rs-recaptcha {
    margin-bottom: 16px;
}

/* CONTACT FORM SUBMIT RESULT MESSAGE */
.rs-form-result {
    display: block; /* asp:Label renders a <span> (inline); block makes padding/margin push the form down instead of overlapping it */
    border-radius: var(--radius-md);
    padding: 12px 16px;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 16px;
}

/* CONTACT FORM SUBMIT PROGRESS SPINNER */
.rs-form-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 16px;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--color-text-secondary);
}

.rs-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(0, 0, 0, 0.15);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: rs-spin 0.7s linear infinite;
    flex-shrink: 0;
}

@keyframes rs-spin {
    to { transform: rotate(360deg); }
}

.rs-form-result-success {
    color: #15803d;
    background: #f0fdf4;
    border: 1px solid #15803d;
    /* border-left: 4px solid #15803d; */
}

.rs-form-result-error {
    color: var(--color-danger);
    background: var(--color-primary-subtle);
    border: 1px solid var(--color-danger);
    /* border-left: 4px solid var(--color-danger); */
}

/* CONTACT FORM VALIDATION SUMMARY */
.rs-validation-summary {
    border: 1px solid var(--color-primary);
    /* border-left: 4px solid var(--color-primary); */
    border-radius: var(--radius-md);
    background: var(--color-primary-subtle);
    color: var(--color-primary);
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 13px;
    line-height: 1.5;
}

    .rs-validation-summary ul {
        margin: 4px 0 0;
        padding-left: 18px;
    }

    .rs-validation-summary li {
        margin: 2px 0;
    }

/* SIMILAR LOCATIONS CAROUSEL */
.rs-similar-locations-section {
    background: var(--color-surface);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 40px;
}

.rs-carousel-container {
    position: relative;
    overflow: hidden;
}

.rs-carousel {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 10px;
}

    .rs-carousel::-webkit-scrollbar {
        height: 8px;
    }

    .rs-carousel::-webkit-scrollbar-track {
        background: var(--color-surface-alt);
        border-radius: var(--radius-md);
    }

    .rs-carousel::-webkit-scrollbar-thumb {
        background: var(--color-border);
        border-radius: var(--radius-md);
    }

        .rs-carousel::-webkit-scrollbar-thumb:hover {
            background: var(--color-text-muted);
        }

.rs-carousel-card {
    flex: 0 0 calc((100% - 48px) / 4);
    scroll-snap-align: start;
    background: var(--color-surface-alt);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    overflow: hidden;
    transition: all 0.2s ease;
}

    .rs-carousel-card:hover {
        box-shadow: var(--shadow-md);
    }

.rs-carousel-photo {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.rs-carousel-content {
    padding: 12px;
}

.rs-carousel-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    display: block;
    margin-bottom: 4px;
}

    .rs-carousel-name:hover {
        color: var(--color-primary-hover);
        text-decoration: underline;
    }

.rs-carousel-city {
    font-size: 12px;
    color: var(--color-text-secondary);
    margin-bottom: 4px;
}

.rs-carousel-id {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.rs-carousel-btn {
    width: 100%;
    padding: 6px 8px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .rs-carousel-btn:hover {
        background: var(--color-primary-light);
        border-color: var(--color-primary);
        color: var(--color-primary);
    }

.rs-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

    .rs-carousel-nav:hover {
        background: var(--color-border);
    }

    .rs-carousel-nav.prev {
        left: 10px;
    }

    .rs-carousel-nav.next {
        right: 10px;
    }

@media (max-width: 1024px) {
    .rs-carousel-card {
        flex: 0 0 calc((100% - 32px) / 2);
    }
}

@media (max-width: 768px) {
    .rs-carousel-card {
        flex: 0 0 100%;
    }

    .rs-title-toolbar {
        flex-direction: column;
        padding: 20px;
    }

    .rs-top-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

.rs-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Hide page until branded header is rendered — prevents flash on postback.
           The bc-ready class is added by branded-components.js after the header
           is restored from cache or rendered fresh.  Fallback: CSS animation
           reveals the page after 800ms even if JS fails. */
body:not(.bc-ready) {
    opacity: 0;
}

body.bc-ready {
    opacity: 1;
    transition: opacity 0.05s ease-in;
}

@keyframes bc-fallback-reveal {
    to {
        opacity: 1;
    }
}

body:not(.bc-ready) {
    animation: bc-fallback-reveal 0s 0.8s forwards;
}

/* MAP - LEFT SIDE */
.rs-map-section {
    margin-top: 20px;
}

.rs-map-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    min-height: 320px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--color-border, #e5e7eb);
    background: #f1f3f5;
}

.rs-map-attribution {
    font-size: 12px;
    line-height: 18px;
    color: var(--color-text-muted, #6b7280);
    margin-top: 8px;
}

    .rs-map-attribution a {
        color: inherit;
        text-decoration: underline;
    }

/* HISTORICAL WEATHER - RIGHT SIDE */
.rs-histweather-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.rs-histweather-toggle {
    display: inline-flex;
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 8px;
    overflow: hidden;
}

.rs-histweather-tab {
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    padding: 5px 10px;
    border: 0;
    background: #fff;
    color: var(--color-text-secondary, #6b7280);
    cursor: pointer;
}

    .rs-histweather-tab.is-active {
        background: var(--color-primary, #6c63ff);
        color: #fff;
    }

.rs-histweather-caption {
    font-size: 12px;
    color: var(--color-text-muted, #6b7280);
    margin-bottom: 12px;
}

.rs-histweather-chart {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    min-height: 150px;
}

.rs-histweather-state {
    font-size: 13px;
    color: var(--color-text-muted, #6b7280);
    margin: 0 auto;
    align-self: center;
    text-align: center;
}

    .rs-histweather-state.is-error {
        color: #b91c1c;
    }

.rs-hw-col {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rs-hw-val {
    font-size: 9px;
    font-weight: 700;
    color: var(--color-text-primary, #111827);
    margin-bottom: 2px;
}

.rs-hw-track {
    position: relative;
    width: 100%;
    height: 110px;
}

.rs-hw-bar {
    position: absolute;
    left: 12%;
    right: 12%;
    border-radius: 4px;
    min-height: 3px;
}

.rs-hw-bar--temp {
    background: #BCDDF7;
}

.rs-hw-bar--precip {
    background: #BCDDF7;
    bottom: 0;
}

.rs-hw-bar--sun {
    background: #FFF2D6;
    bottom: 0;
}

.rs-histweather-attr {
    font-size: 9px;
    line-height: 13px;
    color: var(--color-text-muted, #9ca3af);
    margin-top: 10px;
}

    .rs-histweather-attr a {
        color: inherit;
        text-decoration: underline;
    }

/* SUN EXPOSURE - RIGHT SIDE */
.rs-sunexp-summary {
    font-size: 13px;
    line-height: 20px;
    color: var(--color-text-secondary, #374151);
    margin: 6px 0 12px;
}

.rs-sunexp-link {
    display: inline-block;
    margin-top: 12px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: var(--color-primary, #6c63ff);
}

    .rs-sunexp-link:hover {
        text-decoration: underline;
    }

.rs-sunexp-attr {
    font-size: 9px;
    line-height: 13px;
    color: var(--color-text-muted, #9ca3af);
    margin-top: 12px;
}

    .rs-sunexp-attr a {
        color: inherit;
        text-decoration: underline;
    }

/* SUN SIMULATION (SHADOWMAP) - MODAL (wide variant of .rs-modal) */
.rs-sunmodal {
    width: 92%;
    max-width: 1000px;
    height: 82vh;
    max-height: 82vh;
    padding: 0;
    overflow: hidden;
    display: flex;            /* header bar stacked above the iframe */
    flex-direction: column;
}

/* Header bar: location name + meta on the left, close button on the right.
   Shadowmap renders its own time/date control panel in the TOP-RIGHT corner
   INSIDE the iframe (cross-origin, so we can't move it).  Putting our close
   button in this bar — above the map rather than floating over it — keeps the X
   in its conventional top-right spot without covering Shadowmap's controls. */
.rs-sunmodal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-border, #e5e7eb);
    flex: 0 0 auto;
}

.rs-sunmodal-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-text, #111827);
}

.rs-sunmodal-meta {
    margin-top: 2px;
    font-size: 14px;
    line-height: 1.4;
    color: var(--color-text-muted, #6b7280);
}

.rs-sunmodal-body {
    flex: 1 1 auto;   /* fill the space beneath the header bar */
    min-height: 0;    /* let the iframe shrink inside the flex column */
    width: 100%;
}

    .rs-sunmodal-body iframe {
        width: 100%;
        height: 100%;
        border: 0;
        display: block;
    }

/* The close button now sits in the header bar (normal flow), not floating over
   the map — so drop the absolute positioning and the white "pill" treatment. */
.rs-sunmodal .rs-modal-close {
    position: static;
    flex: 0 0 auto;
    background: none;
    box-shadow: none;
    z-index: auto;
}

.rs-hw-month {
    font-size: 9px;
    color: var(--color-text-muted, #6b7280);
    margin-top: 5px;
    text-transform: uppercase;
}