/* ==========================================================================
   TailorBazar Location Selector Modal Styling
   Matches Client Mockup Design Exactly
   ========================================================================== */

.location-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 1rem;
    box-sizing: border-box;
    animation: locFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes locFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.location-modal-card {
    background: #ffffff;
    border-radius: 1.75rem;
    width: 100%;
    max-width: 420px;
    padding: 1.5rem 1.4rem;
    box-sizing: border-box;
    position: relative;
    box-shadow: 0 20px 50px -10px rgba(5, 62, 153, 0.18), 0 0 0 1px rgba(226, 232, 240, 0.8);
    transform: translateY(20px) scale(0.97);
    animation: locSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    margin: auto;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

@keyframes locSlideUp {
    to { transform: translateY(0) scale(1); }
}

/* Header & Close Icon */
.loc-modal-top {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 0.75rem;
}

.loc-modal-logo {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.03em;
}

.tb-logo-blue { color: #053E99; }
.tb-logo-red { color: #D91B24; }

.loc-modal-close-icon {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #64748b;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.loc-modal-close-icon:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* Indicator Progress Bar Line */
.loc-progress-bar {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 1rem;
}

.loc-progress-bar span {
    width: 36px;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
}

.loc-progress-bar span.loc-bar-active {
    background: #053E99;
}

/* Header Title & Subtext */
.loc-header-text {
    text-align: center;
    margin-bottom: 1.1rem;
}

.loc-header-text h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.3rem 0;
    letter-spacing: -0.02em;
}

.loc-header-text p {
    font-size: 0.88rem;
    color: #64748b;
    margin: 0;
    line-height: 1.35;
}

/* Search Box Input */
.loc-search-box-wrap {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 0.85rem;
}

.loc-search-icon {
    position: absolute;
    left: 1.1rem;
    color: #94a3b8;
    font-size: 1.1rem;
    pointer-events: none;
}

.loc-search-input {
    width: 100%;
    height: 48px;
    padding: 0.75rem 2.8rem 0.75rem 2.9rem !important;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 0.85rem;
    outline: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.loc-search-input:focus {
    border-color: #053E99;
    box-shadow: 0 0 0 3.5px rgba(5, 62, 153, 0.12);
}

.loc-gps-btn {
    position: absolute;
    right: 0.85rem;
    background: none;
    border: none;
    color: #053E99;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.loc-gps-btn:hover {
    transform: scale(1.1);
}

/* Map Card Preview Graphic */
.loc-map-preview-card {
    height: 150px;
    background: #eaf1fb;
    border-radius: 1.1rem;
    margin-bottom: 1.1rem;
    position: relative;
    overflow: hidden;
    border: 1px solid #d5e3f7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loc-map-bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(#bcd2f5 1.5px, transparent 1.5px),
        linear-gradient(90deg, rgba(255,255,255,0.7) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255,255,255,0.7) 1px, transparent 1px);
    background-size: 20px 20px, 40px 40px, 40px 40px;
    opacity: 0.8;
}

.loc-map-label {
    position: absolute;
    font-size: 0.72rem;
    font-weight: 700;
    color: #475569;
    background: rgba(255, 255, 255, 0.85);
    padding: 0.15rem 0.45rem;
    border-radius: 0.35rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.label-kiit { top: 18%; left: 22%; }
.label-master { top: 12%; left: 45%; }
.label-info { top: 24%; right: 14%; }
.label-naya { bottom: 22%; left: 16%; }
.label-jaya { bottom: 35%; left: 38%; }
.label-bbsr { bottom: 18%; right: 20%; font-weight: 800; color: #0f172a; }

/* Pulse Pin Marker */
.loc-map-marker {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loc-pin-icon {
    font-size: 2.2rem;
    color: #053E99;
    filter: drop-shadow(0 4px 6px rgba(5, 62, 153, 0.4));
    animation: pinBounce 2s infinite ease-in-out;
}

@keyframes pinBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.loc-marker-pulse {
    position: absolute;
    bottom: -4px;
    width: 20px;
    height: 8px;
    background: rgba(5, 62, 153, 0.3);
    border-radius: 50%;
    animation: pulseRing 2s infinite ease-in-out;
}

@keyframes pulseRing {
    0% { transform: scale(0.8); opacity: 0.8; }
    50% { transform: scale(1.6); opacity: 0.2; }
    100% { transform: scale(0.8); opacity: 0.8; }
}

/* Popular Areas Grid */
.loc-popular-section {
    margin-bottom: 1.1rem;
}

.loc-popular-title {
    font-size: 0.92rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.65rem;
}

.loc-popular-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}

.loc-area-chip {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.55rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
    text-align: left;
}

.loc-area-chip i {
    color: #94a3b8;
    font-size: 0.85rem;
}

.loc-area-chip:hover {
    border-color: #053E99;
    color: #053E99;
    background: #f0f6ff;
}

.loc-area-chip:hover i {
    color: #053E99;
}

.loc-current-loc-btn {
    width: 100%;
    background: #ffffff;
    border: 1.5px solid #053E99;
    border-radius: 0.75rem;
    padding: 0.65rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: #053E99;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.loc-current-loc-btn:hover {
    background: #053E99;
    color: #ffffff;
}

/* Actions Section */
.loc-actions-wrap {
    text-align: center;
    margin-top: 1rem;
}

.loc-btn-continue {
    width: 100%;
    height: 48px;
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
    background: #053E99;
    border: none;
    border-radius: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    box-shadow: 0 8px 18px -4px rgba(5, 62, 153, 0.35);
    margin-bottom: 0.75rem;
}

.loc-btn-continue:hover:not(:disabled) {
    background: #04327c;
}

.loc-skip-link {
    color: #053E99;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
}

.loc-skip-link:hover {
    text-decoration: underline;
}

.pincode-status-text {
    font-size: 0.82rem;
    font-weight: 600;
    margin-top: 0.3rem;
    margin-bottom: 0.5rem;
}

.pincode-status-text.error { color: #D91B24; }
.pincode-status-text.success { color: #16a34a; }
.pincode-status-text.loading { color: #053E99; }
