/* ═══════════════════════════════════════════════
   Location Screen — Market + Filming Location
   Silver card frames, custom dropdowns with search
   ═══════════════════════════════════════════════ */

/* ─── LAYOUT ─── */
.loc-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 88px);
    padding: 88px 2.5rem 40px;
    gap: 1.5rem;
}

/* ─── HEADER ─── */
.loc-header {
    text-align: center;
    margin-bottom: 0.5rem;
}
.loc-title {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: #fff;
    margin: 0 0 0.5rem 0;
}
.loc-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin: 0;
}

/* ─── CARDS CONTAINER ─── */
.loc-cards {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    justify-content: center;
    align-items: stretch;
}

/* ─── CARD ─── */
.loc-card {
    position: relative;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(192,192,192,0.3);
    border-radius: 1.25rem;
    padding: 1.75rem 1.5rem;
    width: 320px;
    display: flex;
    flex-direction: column;
}

/* Silver glow line */
.loc-card-glow {
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(192,192,192,0.5), transparent);
    border-radius: 1px;
}

.loc-card-desc {
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    margin: 0 0 0.25rem 0;
}

.loc-card-note {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 8px;
    font-weight: 400;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.35);
    margin: 0 0 0.75rem 0;
    font-style: italic;
}

.loc-card-explain {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 8px;
    font-weight: 400;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.35);
    margin: 0 0 0.75rem 0;
}

.loc-card-section-label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(192,192,192,0.6);
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(192,192,192,0.1);
}

/* ─── FIELD ─── */
.loc-field {
    margin-bottom: 1rem;
}
.loc-field:last-child {
    margin-bottom: 0;
    margin-top: auto;
}
.loc-label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-bottom: 0.4rem;
}

/* ─── DROPDOWN (reuses subcat pattern) ─── */
.loc-dropdown {
    position: relative;
}
.loc-dropdown-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(192,192,192,0.2);
    border-radius: 10px;
    color: rgba(255,255,255,0.7);
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    text-align: left;
}
.loc-dropdown-trigger:hover:not(:disabled) {
    border-color: rgba(192,192,192,0.4);
    background: rgba(255,255,255,0.06);
}
.loc-dropdown-trigger:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.loc-dropdown-trigger.has-value {
    color: #fff;
    border-color: rgba(192,192,192,0.35);
}

/* ─── DROPDOWN LIST ─── */
.loc-dropdown-list {
    display: none;
    position: absolute;
    left: 0; right: 0;
    background: rgba(10,10,10,0.97);
    border: 1px solid rgba(192,192,192,0.35);
    border-radius: 10px;
    z-index: 100;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
/* Default: opens downward */
.loc-dropdown.open .loc-dropdown-list {
    display: block;
    top: calc(100% + 4px);
    bottom: auto;
}
/* Flip: opens upward when near bottom */
.loc-dropdown.open.flip-up .loc-dropdown-list {
    top: auto;
    bottom: calc(100% + 4px);
}

/* ─── SEARCH INPUT ─── */
.loc-search {
    width: 100%;
    padding: 0.6rem 1rem;
    background: rgba(255,255,255,0.04);
    border: none;
    border-bottom: 1px solid rgba(192,192,192,0.15);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    outline: none;
    box-sizing: border-box;
}
.loc-search::placeholder {
    color: rgba(255,255,255,0.3);
    text-transform: uppercase;
}

/* ─── ITEMS CONTAINER ─── */
.loc-items {
    max-height: 200px;
    overflow-y: auto;
    padding: 4px 0;
}
.loc-items::-webkit-scrollbar { width: 6px; }
.loc-items::-webkit-scrollbar-track { background: transparent; }
.loc-items::-webkit-scrollbar-thumb {
    background: rgba(192,192,192,0.4);
    border-radius: 3px;
}
.loc-items::-webkit-scrollbar-thumb:hover {
    background: rgba(192,192,192,0.6);
}

/* ─── ITEM ─── */
.loc-item {
    padding: 0.5rem 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.loc-item:hover {
    background: rgba(255,255,255,0.06);
    color: #fff;
}
.loc-item.selected {
    color: #fff;
    background: rgba(192,192,192,0.1);
}
.loc-item.hidden {
    display: none;
}

/* ─── SUBMIT BUTTON — matches format-submit / style-submit ─── */
.loc-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 0.5rem;
    gap: 0.75rem;
}

/* Fast Track checkbox */
.loc-ft-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
}
.loc-ft-check input { display: none; }
.loc-ft-box {
    width: 18px; height: 18px;
    border: 1.5px solid rgba(192,192,192,0.35);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}
.loc-ft-box svg {
    width: 10px; height: 10px;
    color: transparent;
    transition: color 0.2s;
}
.loc-ft-check input:checked ~ .loc-ft-box {
    border-color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.1);
}
.loc-ft-check input:checked ~ .loc-ft-box svg {
    color: #fff;
}
.loc-ft-text {
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    transition: color 0.2s;
}
.loc-ft-check:hover .loc-ft-text {
    color: rgba(255,255,255,0.7);
}
.loc-ft-check input:checked ~ .loc-ft-text {
    color: rgba(255,255,255,0.8);
}
.loc-submit {
    border-radius: 1rem;
    padding: 0.85rem 3.5rem;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #FFF 0%, #A0A0A0 100%);
    color: #000;
    font-weight: 800;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.3;
    pointer-events: none;
    white-space: nowrap;
}
.loc-submit.enabled {
    opacity: 1;
    pointer-events: auto;
}
.loc-submit.enabled:hover {
    transform: scale(1.03);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

/* ─── RESPONSIVE ─── */

/* Tablet */
@media (max-width: 768px) {
    .loc-layout {
        padding: 88px 1.5rem 40px;
    }
    .loc-cards {
        gap: 1.5rem;
    }
    .loc-card {
        width: 280px;
        padding: 1.5rem 1.25rem;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .loc-layout {
        padding: 80px 1rem 30px;
        justify-content: flex-start;
        padding-top: 100px;
    }
    .loc-cards {
        flex-direction: column;
        align-items: center;
        gap: 1.25rem;
    }
    .loc-card {
        width: 100%;
        max-width: 340px;
        padding: 1.25rem 1rem;
    }
    .loc-submit {
        width: 100%;
        max-width: 340px;
    }
}

/* ═══════════════════════════════════════════════
   Decision Modal — Fast Track vs Director Mode
   ═══════════════════════════════════════════════ */

/* Overlay */
.loc-decision-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}



/* Card */
.loc-decision-card {
    width: 100%;
    max-width: 520px;
    background: rgba(12, 12, 12, 0.95);
    border: 1px solid rgba(192, 192, 192, 0.25);
    border-radius: 1.5rem;
    padding: 2.5rem 2rem 1.5rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    transform: scale(0.92);
    animation: locDecisionScaleIn 0.35s ease forwards;
    position: relative;
    overflow: hidden;
}

/* Silver gradient glow at top */
.loc-decision-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(192, 192, 192, 0.6), transparent);
}

@keyframes locDecisionScaleIn {
    to { transform: scale(1); }
}

/* Title */
.loc-decision-title {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: #fff;
    text-align: center;
    margin: 0 0 0.5rem 0;
}

.loc-decision-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    margin: 0 0 2rem 0;
}

/* Options container */
.loc-decision-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* Option card (button) */
.loc-decision-option {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(192, 192, 192, 0.2);
    border-radius: 1rem;
    padding: 1.25rem 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.loc-decision-option:hover {
    border-color: rgba(192, 192, 192, 0.5);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 24px rgba(192, 192, 192, 0.08);
    transform: translateY(-1px);
}

.loc-decision-option:active {
    transform: translateY(0);
}

/* Option title */
.loc-decision-option-title {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #fff;
}

/* Option description */
.loc-decision-option-desc {
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
}

/* Credit pill */
.loc-decision-credits {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(192, 192, 192, 0.08);
    border: 1px solid rgba(192, 192, 192, 0.15);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    width: fit-content;
    margin-top: 0.25rem;
}

/* Back button */
.loc-decision-back {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.35);
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    padding: 6px 0;
    transition: color 0.2s;
    align-self: flex-start;
}

.loc-decision-back:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* Loading state on option */
.loc-decision-option.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Mobile */
@media (max-width: 600px) {
    .loc-decision-card {
        padding: 2rem 1.25rem 1.25rem;
        max-width: 100%;
    }
    .loc-decision-title {
        font-size: 16px;
    }
}
