/* =========================================
   CINEMATIC LOCATIONS COMPONENT
   ========================================= */

:root {
    --gold-primary: #e7b65c;
    --bg-dark: #0a0a0a;
    --card-bg: #141414;
    --text-muted: #b0b0b0;
}

/* --- 1. SECTION LAYOUT --- */
.cine-locations-section {
    background-color: var(--bg-dark);
    padding: 100px 0;
    font-family: 'Outfit', sans-serif;
    position: relative;
    overflow: hidden;
}

/* --- 2. HEADER & FILTERS --- */
.loc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 30px;
}

.cine-title {
    font-size: 3rem;
    color: #fff;
    margin: 0;
    line-height: 1;
}

.cine-subtitle {
    color: var(--gold-primary);
    letter-spacing: 3px;
    font-size: 0.85rem;
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

.text-gold {
    color: var(--gold-primary);
}

/* --- 3. CUSTOM DROPDOWNS --- */
.loc-filters {
    display: flex;
    gap: 15px;
    align-items: center;
}

.custom-dropdown {
    position: relative;
    width: 200px;
    z-index: 10;
}

.dropdown-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.3s;
}

    .dropdown-btn:hover, .dropdown-btn.active {
        border-color: var(--gold-primary);
        background: rgba(231, 182, 92, 0.1);
    }
/* New Disabled State for City Dropdown */
.custom-dropdown.disabled .dropdown-btn {
    cursor: not-allowed;
    opacity: 0.5;
    background: rgba(255, 255, 255, 0.02);
}

    .custom-dropdown.disabled .dropdown-btn:hover {
        border-color: rgba(255, 255, 255, 0.1);
    }


.dropdown-list {
    position: absolute;
    top: 110%;
    left: 0;
    width: 100%;
    background: #1a1a1a;
    border: 1px solid var(--gold-primary);
    border-radius: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    display: none;
    max-height: 250px;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    /* 3. HIDE THE SCROLLBAR */
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}
    /* Hide scrollbar for Chrome, Safari and Opera */
    .dropdown-list::-webkit-scrollbar {
        display: none;
    }


.custom-dropdown.open .dropdown-list {
    display: block;
}

.dropdown-list li {
    padding: 10px 15px;
    color: #ccc;
    cursor: pointer;
    transition: 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

    .dropdown-list li:hover {
        background: var(--gold-primary);
        color: #000;
    }

.reset-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    width: 45px;
    height: 45px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .reset-btn:hover {
        color: var(--gold-primary);
        border-color: var(--gold-primary);
        transform: rotate(180deg);
    }

/* --- CARD GRID & STYLES (Unchanged) --- */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.loc-card-container {
    background-color: transparent;
    height: 400px;
    perspective: 1000px;
}

.loc-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-radius: 16px;
}

.loc-card-container:hover .loc-card-inner {
    transform: rotateY(180deg);
}

.loc-front, .loc-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.loc-front {
    background-color: var(--card-bg);
    display: flex;
    flex-direction: column;
    color: #fff;
}

.loc-img-wrap {
    height: 60%;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.loc-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.loc-card-container:hover .loc-img {
    transform: scale(1.1);
}

.loc-front-content {
    flex-grow: 1;
    padding: 20px;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.loc-tag {
    display: inline-block;
    background-color: rgba(231, 182, 92, 0.1);
    color: var(--gold-primary);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.loc-name {
    font-size: 1.5rem;
    color: #fff;
    margin: 0;
    line-height: 1.2;
}

.loc-city-state {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .loc-city-state i {
        font-size: 0.8rem;
    }

.loc-back {
    background-color: #1a1a1a;
    color: white;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    padding: 25px;
    text-align: left;
}

.back-header {
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.back-title {
    font-size: 1.4rem;
    color: var(--gold-primary);
    margin: 0;
    line-height: 1.2;
}

.back-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.back-body {
    flex-grow: 1;
    overflow-y: auto;
}

.loc-address {
    font-size: 0.9rem;
    color: #ccc;
    line-height: 1.6;
    display: flex;
    gap: 10px;
}

    .loc-address i {
        margin-top: 5px;
    }

.back-actions {
    margin-top: auto;
    padding-top: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    transition: all 0.3s ease;
}

.action-btn-primary {
    background-color: var(--gold-primary);
    color: #000;
    border: 1px solid var(--gold-primary);
}

    .action-btn-primary:hover {
        background-color: #fff;
        border-color: #fff;
        transform: translateY(-2px);
    }

.action-btn-secondary {
    background-color: transparent;
    color: var(--gold-primary);
    border: 1px solid var(--gold-primary);
}

    .action-btn-secondary:hover {
        background-color: rgba(231, 182, 92, 0.1);
        color: #fff;
    }

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 768px) {
    .loc-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .loc-filters {
        width: 100%;
        flex-wrap: wrap;
    }

    .custom-dropdown {
        width: 48%;
    }

    .reset-btn {
        width: 100%;
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .back-actions {
        grid-template-columns: 1fr;
    }
}
