/* =========================================================
   🚂 STATION DOSSIER MODAL (Airbnb Style - 4 Column)
   File: station-modal.css
   ========================================================= */

   #station-sheet {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    width: 95vw;
    max-width: 600px;
    background: rgba(26, 32, 44, 0.98);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.8);
    z-index: 5500; /* Ensure it stays above the map and compass */
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    overflow: hidden;
    color: #f1f5f9;
}

#station-sheet.station-sheet-active {
    transform: translateX(-50%) translateY(0);
}

/* Tactile Handle Decor */
#station-sheet::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    z-index: 10;
}

/* 1. PHOTO CAROUSEL SECTION */
.station-carousel {
    position: relative;
    height: 220px;
    background: #000;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    flex-direction: row;
    height: 100%;
    width: 100%;
    transition: transform 0.45s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.carousel-track img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

/* Photo Navigation Arrows Overlay */
.photo-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    transition: all 0.2s ease;
}

.photo-nav-btn:hover { 
    background: rgba(255, 215, 0, 0.8); 
    color: #1a202c; 
}

#photo-prev { left: 15px; }
#photo-next { right: 15px; }

/* 2. THE 4-COLUMN INTERACTION GRID */
.station-details {
    display: grid;
    /* Fractions: Identity | Logo | Message | Navigation */
    grid-template-columns: 1.2fr 0.8fr 1fr 0.7fr; 
    gap: 10px;
    padding: 24px 15px;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Column 1: Identity */
.col-main h2 {
    margin: 0;
    font-size: 1.1rem;
    color: #ffd700;
    line-height: 1.2;
}

.line-tag {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: #94a3b8;
    margin: 4px 0;
    letter-spacing: 0.5px;
}

.expand-btn {
    background: none;
    border: 1px solid rgba(255, 215, 0, 0.4);
    color: #ffd700;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.65rem;
    cursor: pointer;
    transition: background 0.2s;
}

.expand-btn:hover { background: rgba(255, 215, 0, 0.1); }

/* Column 2: Sponsor Logo */
.col-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.sponsor-logo {
    max-height: auto;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.1));
}

/* Column 3: Sponsor Message */
.col-message {
    padding: 0 5px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

#station-sponsor-text {
    font-size: 0.9rem;
    line-height: 1.2;
    color: #cbd5e1;
    margin: 0;
    font-style: italic;
    text-align: center;
}

/* Column 4: Navigation */
.col-nav {
    text-align: center;
}

.label {
    display: block;
    font-size: 0.6rem;
    color: #ffd700;
    text-transform: uppercase;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.line-nav-buttons {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.nav-arrow {
    background: #ffd700;
    color: #1a202c;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.nav-arrow:hover { transform: scale(1.1); }

/* 3. DESCRIPTION DRAWER (Expandable Area) */
.description-drawer {
    max-height: 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(0, 0, 0, 0.2);
    /* background-color: #94a3b8; */
    overflow: hidden;
}

.description-drawer.is-expanded {
    max-height: 450px; /* Adjust based on expected text length */
}

.drawer-content {
    padding: 20px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #e2e8f0;
}

.collapse-btn {
    display: block;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: #ffd700;
    padding: 12px;
    cursor: pointer;
    font-size: 0.75rem;
    margin-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Global Close Button (X in top right) */
.close-sheet-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    z-index: 100;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.close-sheet-btn:hover {
    background: rgba(239, 68, 68, 0.8); /* Turns red on hover */
}