/**
 * Weller Hire - Contact Page Layout
 * Filename: contact-page.css
 * Version: 1.2.3
 * Description: Clean rollback version. Restores crisp theme icons while maintaining 
 * the vertical divider, side-by-side map buttons, and non-wrapping layouts.
 */

/* ==========================================================================
   1. VERTICAL DIVIDER
   Creates the line between the form and the sidebar on desktop.
   ========================================================================== */

/* Only apply the divider when the screen is 782px or wider (Desktop/Tablet) */
@media (min-width: 782px) {
    .weller-contact-row {
        position: relative;
        /* Forced gap to give the vertical line room to sit in the middle */
        column-gap: 50px !important; 
    }

    /* This creates the "virtual" line centered in the row */
    .weller-contact-row::before {
        content: "";
        position: absolute;
        left: 50%;         /* Move to exact middle */
        top: 5%;           /* 5% gap at the top */
        bottom: 5%;        /* 5% gap at the bottom */
        width: 1px;        /* Line thickness */
        background-color: #ddd; 
        transform: translateX(-50%);
        z-index: 1;
    }
}

/* Hide the divider when columns stack on mobile (781px and below) */
@media (max-width: 781px) {
    .weller-contact-row::before { 
        display: none; 
    }
}

/* ==========================================================================
   2. MAP CARD & ACTIONS
   The container for the Map and the two side-by-side Action Buttons.
   ========================================================================== */
.weller-location-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.weller-map-wrapper {
    position: relative;
    padding-bottom: 100%; 
    height: 0;
    overflow: hidden;
}

.weller-map-wrapper iframe {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border: none !important;
}

.weller-map-actions {
    padding: 15px;
    display: flex;
    flex-wrap: wrap;      
    gap: 10px;            
    background-color: #fff;
    align-items: stretch;
}

/* Updated Button to include a Blue Border */
.weller-btn-primary {
    flex: 1;              
    min-width: 150px;     
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
    /* Colors & Border */
    background-color: #1C62AA;
    color: #F9DE2B !important;
    border: 2px solid #1C62AA; /* Solid blue border */
    
    padding: 8px 10px;    
    min-height: 54px;     
    text-align: center;
    text-decoration: none !important;
    font-weight: 800;
    font-size: 13px;      
    line-height: 1.2;     
    text-transform: uppercase;
    border-radius: 4px;
    transition: all 0.3s ease;
}

/* Hover State: Yellow background with Blue border */
.weller-btn-primary:hover {
    background-color: #F9DE2B;
    color: #1C62AA !important;
    border: 2px solid #1C62AA; /* Keeps the border blue on hover */
}

.weller-btn-line-1 {
    font-size: 11px;
    opacity: 0.9;
    display: block;
    margin-bottom: 2px;
}

/* ==========================================================================
   3. SUB-COLUMNS (Address & Opening Times)
   ========================================================================== */

.weller-sub-row {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
    margin-top: 20px;
}

/* Shared properties for both columns */
.weller-sub-column {
    white-space: nowrap !important;
}

/* INDIVIDUAL TRIGGERS:
   Address is narrower, so it only needs 235px.
   Hours are wider, so they need 280px to prevent bleeding.
*/
.weller-col-address {
    flex: 1 0 235px !important; 
}

.weller-col-hours {
    flex: 1 0 280px !important; 
}

/* ICON BLOCK PROTECTION:
   Keeps the icon perfectly vertically aligned with your text lines.
*/
.weller-sub-column .wp-block-contact-info, 
.weller-sub-column .ct-contact-info-block li,
.weller-sub-column p {
    white-space: nowrap !important;
    display: flex !important;
    align-items: center; /* Vertically centered icons */
    gap: 12px;
    line-height: 1.8;
    margin: 0;
}

.weller-sub-column h4 {
    color: #1C62AA;
    font-size: 16px;
    text-transform: uppercase;
    margin-bottom: 12px;
    border-bottom: 2px solid #F9DE2B;
    display: inline-block;
    white-space: normal;
}

.weller-sub-column .weller-day {
    display: inline-block;
    font-weight: 800;
    color: #333;
    margin-right: 5px;
}

.weller-sub-column .wp-block-contact-info {
    line-height: 2.2 !important; 
}