/* Note: This file extends classic_base.css and should be loaded after it */

/* ========================================
   BODY OVERRIDES
   ======================================== */
body {
    display: flex;
    position: relative;
    align-items: flex-start;
    padding: 120px var(--viewport-margin-h) var(--viewport-margin-v) var(--viewport-margin-h);
    min-height: 100vh;
}

/* ========================================
   CONTAINER
   ======================================== */
.container {
    max-width: 1600px;
    width: 100%;
    color: var(--clr-text-white);
    padding: 50px 60px 60px 60px;
    border-radius: 16px;
    margin: 0 auto;
    z-index: 10;
}

/* ========================================
   PAGE TITLE
   ======================================== */
.page-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 50px;
    background-image: linear-gradient(0deg, var(--clr-primary), var(--clr-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

/* ========================================
   LOCATION GRID - MORE HORIZONTAL
   ======================================== */
.location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 22px;
}

/* ========================================
   LOCATION CARDS - HORIZONTAL THUMBNAIL DESIGN
   ======================================== */
.location-card {
    position: relative;
    background: var(--clr-cards);
    border: 2px solid rgba(255, 107, 53, 0.15);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 280px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--box-shadow);
}

/* Card Image */
.card-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.3s ease;
}

/* Dark overlay for text readability */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.5) 60%,
        rgba(0, 0, 0, 0.8) 100%
    );
    transition: background 0.3s ease;
    z-index: 1;
}

/* Area name - positioned at bottom left initially */
.area-name {
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-size: 2rem;
    color: var(--clr-text-white);
    margin: 0;
    letter-spacing: 1.5px;
    z-index: 2;
    transition: all 0.3s ease;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

/* Card details - hidden by default */
.card-details {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0 24px 24px 24px;
    z-index: 2;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Details row - horizontal layout */
.details-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 0;
}

/* Detail columns */
.detail-column {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    text-align: center;
}

.detail-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--clr-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--clr-text-white);
}

/* Area description */
.area-description {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    flex: 1;
    margin: 0;
}

/* ========================================
   HOVER EFFECTS
   ======================================== */
.location-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 20px rgba(255, 107, 53, 0.3);
}

.location-card:hover .card-image {
    transform: scale(1.05);
}

.location-card:hover .card-overlay {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.75) 30%,
        rgba(0, 0, 0, 0.95) 100%
    );
}

/* Move area name to top on hover */
.location-card:hover .area-name {
    top: 20px;
    bottom: auto;
    left: 24px;
    font-size: 1.8rem;
    color: var(--clr-primary);
}

/* Show details on hover */
.location-card:hover .card-details {
    opacity: 1;
    transform: translateY(0);
}

/* Active/click state */
.location-card:active {
    transform: translateY(-6px);
}

/* ========================================
   SELECTED STATE
   ======================================== */
.location-card.selected {
    border-color: var(--clr-primary);
    box-shadow: 0 16px 24px rgba(255, 107, 53, 0.25);
}

.location-card.selected .area-name {
    color: var(--clr-primary);
}

/* ========================================
   SELECT BUTTON STYLING
   ======================================== */
.select-button {
    display: block;
    margin: 0 auto;
    padding: 10px 24px;
    min-width: 100px;
    max-width: 100%;
    background: linear-gradient(135deg, var(--clr-primary), var(--clr-accent));
    color: var(--clr-text-white);
    border: none;
    border-radius: 25px;
    font-size: clamp(0.75rem, 2.5vw, 0.95rem);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex-shrink: 0;
    white-space: nowrap;
    box-sizing: border-box;
}

.select-button:hover {
    background: linear-gradient(135deg, var(--clr-accent), var(--clr-accent-bright));
    transform: scale(1.02);
}

/* Unselect button style (when card is selected) */
.location-card.selected .select-button {
    background: rgba(128, 128, 128, 0.6);
    color: rgba(255, 255, 255, 0.9);
}

.location-card.selected .select-button:hover {
    background: rgba(128, 128, 128, 0.8);
}

/* ========================================
   PLAY BUTTON (Fixed bottom right)
   ======================================== */
.play-button-container {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 100;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all 0.3s ease;
}

.play-button-container.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.play-button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--clr-primary), var(--clr-accent));
    color: var(--clr-text-white);
    border: none;
    border-radius: 40px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 8px 32px rgba(255, 107, 53, 0.4);
}

.play-button:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(255, 107, 53, 0.5);
}

.play-button .selection-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 0.9rem;
}

/* ========================================
   RESPONSIVE - LARGE TABLET (1024px and below)
   ======================================== */
@media (max-width: 1024px) {
    .location-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 20px;
    }
}

/* ========================================
   RESPONSIVE - TABLET (768px and below)
   ======================================== */
@media (max-width: 768px) {
    body {
        padding: 100px var(--viewport-margin-h) var(--viewport-margin-v) var(--viewport-margin-h);
    }

    .container {
        padding: 40px 30px;
    }

    .page-title {
        font-size: 2.5rem;
        margin-bottom: 40px;
    }

    .location-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .location-card {
        height: 260px;
    }

    .area-name {
        font-size: 1.8rem;
    }

    .location-card:hover .area-name {
        font-size: 1.6rem;
    }

    .card-details {
        top: 50px;
        padding: 0 20px 20px 20px;
    }

    .details-row {
        gap: 12px;
    }

    .detail-label {
        font-size: 0.7rem;
    }

    .detail-value {
        font-size: 0.9rem;
    }

    .area-description {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .select-button {
        padding: 8px 20px;
        letter-spacing: 0.5px;
    }

    .play-button-container {
        bottom: 20px;
        right: 20px;
        left: 20px;
    }

    .play-button {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
        font-size: 1rem;
    }
}

/* ========================================
   RESPONSIVE - MOBILE (480px and below)
   ======================================== */
@media (max-width: 480px) {
    body {
        padding: 90px 15px var(--viewport-margin-v) 15px;
    }

    .container {
        padding: 30px 20px;
    }

    .page-title {
        font-size: 2rem;
        margin-bottom: 30px;
        letter-spacing: 1px;
    }

    .location-grid {
        gap: 16px;
    }

    .location-card {
        height: 240px;
    }

    .area-name {
        font-size: 1.6rem;
        bottom: 16px;
        left: 16px;
    }

    .location-card:hover .area-name {
        font-size: 1.4rem;
        top: 16px;
        left: 16px;
    }

    .card-details {
        top: 45px;
        padding: 0 16px 16px 16px;
        gap: 12px;
    }

    .details-row {
        gap: 8px;
    }

    .detail-column {
        gap: 4px;
    }

    .detail-label {
        font-size: 0.65rem;
    }

    .detail-value {
        font-size: 0.85rem;
    }

    .area-description {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    .select-button {
        padding: 8px 16px;
        letter-spacing: 0;
    }
}

/* ========================================
   FOCUS VISIBLE (Accessibility)
   ======================================== */
.location-card:focus-visible {
    outline: 3px solid var(--clr-primary);
    outline-offset: 2px;
}
