/**
 * Components — Location View & Selector
 * The location / welcome first step: two-column welcome + hero layout, the
 * location address selector widget, and their responsive rules.
 * Migrated from pb-sections.css (scope-first decomposition).
 */

#wppb_wrapper .wppb_location_wrapper .container_content {
    max-width: 1000px;
}

/* =====================================================================
   LOCATION VIEW - Two Column Layout
   ===================================================================== */

#wppb_wrapper #wppb_location_container {
    width: 100%;
    margin: 0 auto;
    padding: var(--wppb-spacing-xl) 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50vh;
}

#wppb_wrapper #wppb_location_container .container_content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: var(--wppb-max-width);
    margin: 0 auto;
    padding: 0 var(--wppb-spacing-md);
    align-items: center;
}

#wppb_wrapper .left_column {
    display: flex;
    flex-direction: column;
    gap: var(--wppb-spacing-lg);
}

#wppb_wrapper .left_column .title_section h1,
#wppb_wrapper .wppb-location-view .welcome-section h1 {
    font-size: var(--wppb-font-size-lg);
    color: var(--wppb-muted);
    margin-bottom: var(--wppb-spacing-sm);
}

#wppb_wrapper .left_column .title_section h2,
#wppb_wrapper .wppb-location-view .welcome-section h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: var(--wppb-spacing-sm);
}

#wppb_wrapper .left_column .title_section .text-primary,
#wppb_wrapper .wppb-location-view .welcome-section .text-primary {
    color: var(--wppb-primary);
    font-size: var(--wppb-font-size-lg);
    margin-bottom: var(--wppb-spacing-xl);
}

#wppb_wrapper .left_column .location-section h3,
#wppb_wrapper .wppb-location-view .location-section h3 {
    font-size: 1.5rem;
    margin-bottom: var(--wppb-spacing-md);
}

#wppb_wrapper .right_column {
    display: flex;
    justify-content: center;
    align-items: center;
}

#wppb_wrapper .pool-hero-image-container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
}

#wppb_wrapper .pool-hero-image-container img {
    width: 100%;
    height: auto;
    border-radius: var(--wppb-radius-md);
}

#wppb_wrapper .wppb-location-view .welcome-section {
    text-align: left;
    margin-bottom: var(--wppb-spacing-xl);
}

#wppb_wrapper .wppb-location-view .location-section {
    margin-bottom: var(--wppb-spacing-xl);
}


#wppb_wrapper .wppb_location_next_btn {
    margin-top: 20px;
}

/* =====================================================================
   RESPONSIVE DESIGN - Mobile First
   ===================================================================== */

@media (max-width: 768px) {
    #wppb_wrapper #wppb_location_container .container_content {
        grid-template-columns: 1fr;
        gap: var(--wppb-spacing-lg);
        padding: 0 var(--wppb-spacing-md);
    }
    
    #wppb_wrapper .right_column {
        order: -1;
    }
    
    #wppb_wrapper .left_column .title_section h1 {
        font-size: var(--wppb-font-size-base);
    }
    
    #wppb_wrapper .left_column .title_section h2 {
        font-size: 2rem;
    }
    
    #wppb_wrapper .left_column .title_section .text-primary {
        font-size: var(--wppb-font-size-base);
    }
    
    #wppb_wrapper .left_column .location-section h3 {
        font-size: var(--wppb-font-size-lg);
    }
    
}

/* ========================================================================== */

/* WPPB LOCATION SELECTOR (UIBuilder Component)                              */

/* ========================================================================== */

#wppb_wrapper .wppb_location_wrapper {
    max-width: var(--wppb-max-width) !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

#wppb_wrapper .wppb-location-selector {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

#wppb_wrapper .wppb-location-select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--wppb-border);
    border-radius: 6px;
    background-color: var(--wppb-white);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

#wppb_wrapper .wppb-location-select:focus {
    border-color: var(--wppb-primary);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

#wppb_wrapper .wppb-location-select:hover {
    border-color: #adb5bd;
}

/* Old location container margins removed */

/* Mobile responsive */
@media (max-width: 768px) {
    #wppb_wrapper .wppb-location-selector {
        margin: 0.5rem 0;
        padding: 0.75rem;
    }
    
    #wppb_wrapper .wppb-location-select {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
}
