/* ==========================================================================
   Location & Expansion (Universal Dark Grey Theme) - BEM CSS
   ========================================================================== */

.location-expansion {
    /* Universal Dark Theme Variables */
    --le-bg: #1A1C1D;
    /* Main Section Background (Dark Grey) */
    --le-surface: #26282A;
    /* Main Cards Background (Lighter Dark Grey) */
    --le-card-inner: #323437;
    /* Inner Location Cards Background */
    --le-border: #414347;
    --le-text-primary: #F5F5F7;
    --le-text-secondary: #A1A1A6;
    --le-accent: #0A84FF;
    --le-accent-bg: rgba(10, 132, 255, 0.15);
    --le-card-hover: rgba(10, 132, 255, 0.2);
    --le-icon-bg: #414347;
    --le-divider: rgba(255, 255, 255, 0.08);
    --le-badge-bg: rgba(26, 28, 29, 0.8);

    width: 100%;
    background-color: var(--le-bg);
    color: var(--le-text-primary);
}

/* --- Layout & Typography --- */
.location-expansion__container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 96px 24px;
}

.location-expansion__main-title {
    font-size: 32px;
    font-weight: 600;
    color: var(--le-text-primary);
    margin-bottom: 48px;
    letter-spacing: -0.025em;
}

@media (min-width: 768px) {
    .location-expansion__main-title {
        font-size: 40px;
    }
}

.location-expansion__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 1024px) {
    .location-expansion__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 64px;
        align-items: stretch;
        /* CRITICAL: Forces equal height tracks */
    }
}

/* --- Left Column: Media Anchor --- */
.location-expansion__media-col {
    /* Removed flex properties. Let the grid track dictate height. */
    width: 100%;
    height: 100%;
}

.location-expansion__media-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    /* CRITICAL: Fills the stretched grid track */
    min-height: 400px;
    background-color: var(--le-surface);
    border-radius: 24px;
    border: 1px solid var(--le-border);
    overflow: hidden;
}

.location-expansion__image {
    position: absolute;
    /* CRITICAL: Decouples image ratio from dictating wrapper height */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease-out;
}

.location-expansion__media-wrapper:hover .location-expansion__image {
    transform: scale(1.02);
}

/* --- Right Column: Content --- */
.location-expansion__content-col {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    background-color: var(--le-surface);
    border-radius: 24px;
    padding: 32px;
    border: 1px solid var(--le-border);
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .location-expansion__content-col {
        padding: 40px;
    }
}

/* 1. Flagship Block */
.location-expansion__flagship-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.location-expansion__flagship-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--le-text-primary);
    letter-spacing: -0.025em;
    margin: 0;
}

.location-expansion__status-tag {
    background-color: var(--le-accent-bg);
    color: var(--le-accent);
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.location-expansion__status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--le-accent);
}

.location-expansion__flagship-desc {
    font-size: 16px;
    color: var(--le-text-secondary);
    margin-top: 12px;
    line-height: 1.5;
}

.location-expansion__flagship-footer {
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: var(--le-text-secondary);
}

.location-expansion__footer-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.location-expansion__icon-accent {
    color: var(--le-accent);
    font-size: 14px;
}

.location-expansion__footer-time {
    font-weight: 500;
    color: var(--le-text-primary);
}

/* Divider */
.location-expansion__divider {
    width: 100%;
    height: 1px;
    background-color: var(--le-divider);
    margin-top: 32px;
    margin-bottom: 10px;
}

/* 2. Coming Soon Block */
.location-expansion__coming-soon {
    display: flex;
    flex-direction: column;
}

.location-expansion__coming-soon-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--le-text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.025em;
}

.location-expansion__coming-soon-desc {
    font-size: 16px;
    color: var(--le-text-secondary);
    margin-bottom: 24px;
    line-height: 1.5;
}

.location-expansion__locations-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.location-expansion__location-card {
    background-color: var(--le-card-inner);
    border: 1px solid var(--le-border);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
    cursor: default;
}

.location-expansion__location-card:hover {
    border-color: var(--le-accent);
    box-shadow: 0 4px 16px var(--le-card-hover);
}

.location-expansion__location-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.location-expansion__location-icon-wrapper {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--le-icon-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--le-text-primary);
    font-size: 14px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.location-expansion__location-card:hover .location-expansion__location-icon-wrapper {
    background-color: var(--le-accent-bg);
    color: var(--le-accent);
}

.location-expansion__location-text {
    display: flex;
    flex-direction: column;
}

.location-expansion__location-name {
    font-size: 18px;
    font-weight: 500;
    color: var(--le-text-primary);
}

.location-expansion__location-sub {
    font-size: 12px;
    color: var(--le-text-secondary);
}

.location-expansion__location-eta {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Staggered Ping Animations */
.location-expansion__eta-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--le-accent);
    opacity: 0.75;
    animation: location-expansion-ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.location-expansion__eta-dot--delay-0 {
    animation-delay: 0s;
}

.location-expansion__eta-dot--delay-1 {
    animation-delay: 0.3s;
}

.location-expansion__eta-dot--delay-2 {
    animation-delay: 0.6s;
}

.location-expansion__eta-text {
    font-size: 14px;
    color: var(--le-text-secondary);
    font-weight: 500;
}

.location-expansion__note {
    font-size: 13px;
    color: var(--le-text-secondary);
    margin-top: 30px;
    font-style: italic;
    display: flex;
    gap: 1rem;
}

.location-expansion__note-icon-wrapper {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    /* background-color: var(--le-icon-bg); */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--apple-success);
    font-size: 20px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* --- Keyframes --- */
@keyframes location-expansion-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes location-expansion-ping {

    75%,
    100% {
        transform: scale(2);
        opacity: 0;
    }
}