/* ================================================
   PREMIUM 3-STEP BOOKING WIZARD STYLES
   Theme: Green + Yellow (India Tour Hire)
   File: booking-wizard.css
   ================================================ */

/* --- THEME TOKENS --- */
:root {
    --bw-green: #1e7e34;
    --bw-green-dark: #155724;
    --bw-green-light: #d4edda;
    --bw-yellow: #f5b800;
    --bw-yellow-dark: #d4a000;
    --bw-dark: #1a2640;
    --bw-grey: #6b7a90;
    --bw-border: #e2e8f0;
    --bw-bg: #f8fbf9;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ---------- WRAPPER — full bleed ---------- */
.bwiz-wrapper {
    font-family: 'Inter', sans-serif;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* ---------- INNER CONTAINER — content max-width, bg stays full ---------- */
.bwiz-inner {
    position: relative;
    z-index: 10;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- SCENE — full width green background ---------- */

.bwiz-scene {
    position: relative;
    overflow: hidden;
    width: 100%;
    /* Rich green gradient matching site theme */
    background: linear-gradient(165deg,
            #1e7e34 0%,
            #23913c 25%,
            #2aa048 50%,
            #1b7030 75%,
            #155724 100%);
    min-height: 580px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
}

/* --- floating bokeh decorations --- */
.bwiz-scene::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 184, 0, 0.18) 0%, transparent 70%);
    pointer-events: none;
    z-index: 2;
}

.bwiz-scene::after {
    content: '';
    position: absolute;
    bottom: 60px;
    left: -60px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 184, 0, 0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 2;
}

/* ---------- HEADER INSIDE SCENE ---------- */
.bwiz-header {
    text-align: center;
    padding: 36px 20px 16px;
}

.bwiz-headline {
    font-size: 34px;
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 8px;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.bwiz-accent {
    color: #f5b800;
}

.bwiz-subline {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 500;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin: 0;
}

/* ---------- STEP PROGRESS (inside scene) ---------- */
.bwiz-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 12px 40px 20px;
}

.bwiz-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: default;
}

.bwiz-step-bubble {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.35s ease;
    backdrop-filter: blur(4px);
}

.bwiz-step.active .bwiz-step-bubble {
    background: #f5b800;
    color: #1a2640;
    border-color: #f5b800;
    box-shadow: 0 0 0 5px rgba(245, 184, 0, 0.28), 0 4px 16px rgba(245, 184, 0, 0.4);
}

.bwiz-step.completed .bwiz-step-bubble {
    background: rgba(255, 255, 255, 0.95);
    color: #1e7e34;
    border-color: #fff;
}

.bwiz-step-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    transition: color 0.3s;
}

.bwiz-step.active .bwiz-step-label {
    color: #f5b800;
}

.bwiz-step.completed .bwiz-step-label {
    color: rgba(255, 255, 255, 0.9);
}

.bwiz-connector {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    margin: 0 10px;
    margin-bottom: 24px;
    max-width: 200px;
    transition: background 0.4s ease;
}

.bwiz-connector.filled {
    background: #f5b800;
}

/* ---------- SKYLINE SVG ---------- */
.bwiz-skyline-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    pointer-events: none;
    z-index: 1;
    line-height: 0;
}

.bwiz-skyline-bg svg {
    width: 100%;
    height: auto;
    display: block;
    min-height: 140px;
}

/* ---------- FORM CARD ---------- */
.bwiz-card {
    position: relative;
    z-index: 5;
    margin: 0 28px 32px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 18px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.22),
        0 0 0 1px rgba(255, 255, 255, 0.8);
    padding: 28px 28px 20px;
    backdrop-filter: blur(8px);
}

/* ---------- TAB GROUP ---------- */
.bwiz-tab-group {
    display: flex;
    gap: 8px;
    margin-bottom: 22px;
    border-bottom: 2px solid #eef5f0;
    padding-bottom: 14px;
    flex-wrap: wrap;
}

.bwiz-tab {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    border: 2px solid #d4edda;
    border-radius: 50px;
    background: #f4fbf6;
    color: var(--bw-grey);
    cursor: pointer;
    transition: all 0.22s ease;
    font-family: 'Inter', sans-serif;
}

.bwiz-tab:hover {
    border-color: var(--bw-green);
    color: var(--bw-green);
    background: #eaf7ee;
}

.bwiz-tab.active {
    background: var(--bw-green);
    border-color: var(--bw-green);
    color: #fff;
    box-shadow: 0 4px 14px rgba(30, 126, 52, 0.35);
}

.bwiz-tab i {
    font-size: 13px;
}

/* ---------- FIELD ROWS ---------- */
.bwiz-field-row {
    display: flex;
    gap: 16px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.bwiz-field-wrap {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.bwiz-field-grow {
    flex: 1 1 200px;
}

/* ---------- LABEL ---------- */
.bwiz-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: var(--bw-grey);
    display: flex;
    align-items: center;
    gap: 5px;
}

.bwiz-label i {
    color: var(--bw-green);
    font-size: 11px;
}

/* ---------- INPUT GROUP ---------- */
.bwiz-input-group {
    display: flex;
    align-items: center;
    border: 2px solid #e2ebe4;
    border-radius: 10px;
    background: #f8fbf9;
    transition: border-color 0.2s, box-shadow 0.2s;
    overflow: visible;
    position: relative;
}

.bwiz-input-group:focus-within {
    border-color: var(--bw-green);
    box-shadow: 0 0 0 3px rgba(30, 126, 52, 0.12);
    background: #fff;
}

.bwiz-input-group .bwiz-input {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    flex: 1;
    min-width: 0;
}

/* ---------- INPUTS ---------- */
.bwiz-input {
    padding: 11px 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--bw-dark);
    border: 2px solid #e2ebe4;
    border-radius: 10px;
    background: #f8fbf9;
    width: 100%;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    box-sizing: border-box;
}

.bwiz-input:focus {
    border-color: var(--bw-green);
    box-shadow: 0 0 0 3px rgba(30, 126, 52, 0.12);
    background: #fff;
}

.bwiz-input::placeholder {
    color: #b0bed0;
    font-weight: 500;
}

/* Styling native datetime-local inputs to look consistent, be fully responsive, and fit perfectly */
input[type="datetime-local"].bwiz-input {
    position: relative !important;
    /* Forces absolute webkit-calendar-picker-indicator to span inside this input container */
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    /* Removes browser-enforced min-widths */
    box-sizing: border-box !important;
    cursor: pointer;
    min-height: 44px;
    /* Standard premium mobile touch height */
}

/* Ensure no native border or padding overrides our premium layout style when nested inside an input group */
.bwiz-input-group input[type="datetime-local"].bwiz-input {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    flex: 1;
}

/* Adjust alignment for iOS Safari and other mobile engines */
input[type="datetime-local"].bwiz-input::-webkit-date-and-time-value {
    text-align: left !important;
    min-height: 1.5em;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

/* Custom Calendar Icon behavior when parent group is focused */
.bwiz-input-group:focus-within .bwiz-icon-btn {
    color: var(--bw-green) !important;
}

/* SELECT — custom arrow, suppress ALL native/plugin arrows */
.bwiz-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231e7e34' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-color: #f8fbf9;
    padding-right: 38px !important;
    cursor: pointer;
}

/* Kill the extra arrow bootstrap-select or any plugin might inject */
.bwiz-field-wrap .bootstrap-select .dropdown-toggle::after,
.bwiz-field-wrap .bootstrap-select .caret {
    display: none !important;
}

.bwiz-select:focus {
    border-color: var(--bw-green);
    box-shadow: 0 0 0 3px rgba(30, 126, 52, 0.12);
    background-color: #fff;
}

/* Style for select options in booking wizard */
.bwiz-select option {
    padding: 12px 15px !important;
    background-color: #ffffff !important;
    color: #2D3748 !important;
    font-size: 15px;
    font-weight: 600;
}

.bwiz-select option:hover,
.bwiz-select option:focus,
.bwiz-select option:active {
    background-color: var(--bw-green) !important;
    color: #ffffff !important;
}

/* ---------- ICON BUTTONS ---------- */
.bwiz-icon-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #8899b0;
    font-size: 14px;
    transition: color 0.2s;
    flex-shrink: 0;
    padding: 0;
}

.bwiz-icon-btn:hover {
    color: var(--bw-green);
}

/* ---------- SWAP COLUMN ---------- */
.bwiz-swap-col {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 24px;
    flex-shrink: 0;
}

.bwiz-swap-icon {
    width: 38px;
    height: 38px;
    background: var(--bw-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(30, 126, 52, 0.4);
}

.bwiz-swap-icon:hover {
    transform: rotate(180deg);
    box-shadow: 0 6px 20px rgba(30, 126, 52, 0.5);
}

/* ---------- CAR TYPE LABEL ---------- */
.bwiz-car-type-label {
    margin-bottom: 10px;
}

/* ---------- CAR CARDS ---------- */
.bwiz-car-cards {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.bwiz-car-card {
    flex: 1 1 80px;
    border: 2px solid #d8eedc;
    border-radius: 12px;
    padding: 14px 10px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.22s ease;
    background: #f4fbf6;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 80px;
}

.bwiz-car-card i {
    font-size: 24px;
    color: #8899b0;
    transition: color 0.2s;
    margin-bottom: 4px;
}

.bwiz-car-card strong {
    font-size: 11px;
    font-weight: 700;
    color: var(--bw-dark);
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.bwiz-car-card span {
    font-size: 10px;
    color: #8899b0;
    display: block;
}

.bwiz-car-card:hover {
    border-color: var(--bw-green);
    background: #eaf7ee;
}

.bwiz-car-card.active {
    border-color: var(--bw-green);
    background: linear-gradient(135deg, #eaf7ee, #d4edda);
    box-shadow: 0 4px 14px rgba(30, 126, 52, 0.2);
}

.bwiz-car-card.active i {
    color: var(--bw-green);
}

.bwiz-car-card.active strong {
    color: var(--bw-green);
}

/* ---------- BOOKING SUMMARY STRIP ---------- */
.bwiz-summary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    background: linear-gradient(90deg, #155724, #1e7e34);
    border-radius: 10px;
    padding: 12px 18px;
    margin-bottom: 20px;
    color: #fff;
    border-left: 4px solid #f5b800;
}

.bwiz-summary-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
}

.bwiz-summary-item i {
    color: #f5b800;
    font-size: 12px;
}

.bwiz-summary-sep {
    color: rgba(255, 255, 255, 0.4);
    font-size: 16px;
}

/* ---------- NAVIGATION BUTTONS ---------- */
.bwiz-nav-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid #eef5f0;
}

.bwiz-btn-next,
.bwiz-btn-prev,
.bwiz-btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 28px;
    border: none;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.22s ease;
}

.bwiz-btn-next {
    background: var(--bw-green);
    color: #fff;
    box-shadow: 0 6px 20px rgba(30, 126, 52, 0.35);
    margin-left: auto;
}

.bwiz-btn-next:hover {
    background: var(--bw-green-dark);
    box-shadow: 0 8px 26px rgba(30, 126, 52, 0.45);
    transform: translateX(2px);
}

.bwiz-btn-prev {
    background: #f0f5f2;
    color: var(--bw-dark);
}

.bwiz-btn-prev:hover {
    background: #dceae0;
    transform: translateX(-2px);
}

.bwiz-btn-submit {
    background: linear-gradient(135deg, #f5b800, #d4a000);
    color: #1a2640;
    box-shadow: 0 6px 20px rgba(245, 184, 0, 0.4);
    font-size: 14px;
    padding: 13px 36px;
    font-weight: 800;
    margin-left: auto;
}

.bwiz-btn-submit:hover {
    box-shadow: 0 8px 28px rgba(245, 184, 0, 0.5);
    transform: translateY(-1px);
    background: linear-gradient(135deg, #ffc107, #e6a800);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    .bwiz-headline {
        font-size: 22px;
    }

    .bwiz-card {
        margin: 0 12px 100px;
        padding: 20px 14px 16px;
    }

    .bwiz-scene {
        min-height: 420px;
    }

    .bwiz-field-row {
        flex-direction: column;
        gap: 12px;
    }

    .bwiz-swap-col {
        padding-top: 0;
    }

    /* 2x2 spacious responsive grid on mobile for premium touch UI */
    .bwiz-car-cards {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .bwiz-car-card {
        min-width: 0 !important;
        padding: 12px 8px 10px !important;
        flex: unset !important;
    }

    .bwiz-car-card i {
        font-size: 22px !important;
        margin-bottom: 2px !important;
    }

    .bwiz-car-card strong {
        display: block !important;
        font-size: 11px !important;
    }

    .bwiz-car-card span {
        display: block !important;
        font-size: 9px !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .bwiz-tab {
        padding: 8px 14px;
        font-size: 11px;
    }

    .bwiz-progress {
        padding: 8px 12px 16px;
    }

    .bwiz-step-label {
        font-size: 9px;
    }

    .bwiz-connector {
        max-width: 50px;
    }

    .bwiz-nav-row {
        gap: 10px;
    }

    .bwiz-btn-next,
    .bwiz-btn-prev,
    .bwiz-btn-submit {
        padding: 10px 20px;
        font-size: 12px;
    }

    .bwiz-summary {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .bwiz-summary-sep {
        display: none;
    }

    .bwiz-field-grow {
        flex: 1 1 auto;
        width: auto;
    }

    .bwiz-inner {
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 480px) {
    .bwiz-car-card {
        min-width: 60px;
        padding: 10px 6px;
    }

    .bwiz-car-card i {
        font-size: 18px;
    }

    .bwiz-btn-submit {
        padding: 11px 22px;
        font-size: 12px;
    }

    .bwiz-header {
        padding: 24px 14px 10px;
    }
}

/* ---------- AUTOCOMPLETE LIST ---------- */
.bwiz-autocomplete-list {
    list-style: none;
    margin: 2px 0 0;
    padding: 4px 0;
    background: #fff;
    border: 2px solid #d4edda;
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 100%;
    z-index: 9999;
    max-height: 220px;
    overflow-y: auto;
    box-sizing: border-box;
    display: none;
}

.bwiz-autocomplete-list li {
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--bw-dark);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.bwiz-autocomplete-list li:hover {
    background: #eaf7ee;
    color: var(--bw-green);
}

/* ---------- PANEL TRANSITION ---------- */
.bwiz-panel {
    animation: bwizFadeIn 0.28s ease;
}

@keyframes bwizFadeIn {
    from {
        opacity: 0;
        transform: translateX(14px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ================================================
   MAP MODAL (in map-modal.php)
   ================================================ */
.bwiz-map-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    /* Modern deep dark backdrop with glass effect */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2147483647 !important;
    /* Highest possible z-index to always be on top of header */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bwiz-map-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.bwiz-map-dialog {
    background: #ffffff;
    border-radius: 24px;
    /* Ultra-smooth modern radius */
    width: 100%;
    max-width: 1040px;
    /* Spacious width */
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 40px rgba(0, 0, 0, 0.03);
    transform: translateY(30px) scale(0.97);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.bwiz-map-overlay.open .bwiz-map-dialog {
    transform: translateY(0) scale(1);
}

/* Modal header */
.bwiz-map-dialog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 28px;
    background: #ffffff;
    color: #1e293b;
    flex-shrink: 0;
    border-bottom: 1px solid #f1f5f9;
}

.bwiz-map-dialog-head h4 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bwiz-map-dialog-head h4 i {
    color: var(--bw-green);
    font-size: 18px;
}

.bwiz-map-close-btn {
    background: #f1f5f9;
    border: none;
    color: #475569;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
    font-family: inherit;
}

.bwiz-map-close-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: rotate(90deg);
}

/* Modal body */
.bwiz-map-dialog-body {
    padding: 0;
    overflow: hidden;
    flex: 1;
    display: grid;
    grid-template-columns: 1.3fr 440px;
    grid-template-rows: auto 1fr;
}

/* Layout */
.bwiz-map-layout {
    display: contents;
    /* Allows nested children (left and right) to participate in grid directly */
}

.bwiz-map-left {
    grid-column: 1;
    grid-row: 1 / span 2;
    background: #f1f5f9;
    position: relative;
    height: 100%;
}

.bwiz-map-right {
    grid-column: 2;
    grid-row: 2;
    padding: 0 28px 28px;
    display: flex;
    flex-direction: column;
    background: #f8fafc;
    border-left: 1px solid #e2e8f0;
}

/* Top Search Container */
.bwiz-map-search-container {
    grid-column: 2;
    grid-row: 1;
    padding: 28px 28px 10px;
    background: #f8fafc;
    border-left: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.bwiz-map-search-container .bwiz-map-search-row {
    margin-bottom: 0;
    /* Remove bottom margin since it is in its own container */
}

.bwiz-map-search-container .bwiz-quick-locs {
    margin-top: 14px;
    margin-bottom: 0;
}

/* Google Maps Places Autocomplete Dropdown Stacking Fix */
.pac-container {
    z-index: 2147483647 !important;
    /* Force dropdown to always render on top of our modal */
}

/* Search row */
.bwiz-map-search-row {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.bwiz-map-input-wrap {
    position: relative;
    flex: 1;
}

.bwiz-map-input-wrap .bwiz-input {
    width: 100%;
    padding: 12px 46px 12px 16px;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    background: #ffffff;
    color: #1e293b;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
}

.bwiz-map-input-wrap .bwiz-input:focus {
    border-color: var(--bw-green);
    box-shadow: 0 0 0 3px rgba(30, 126, 52, 0.15);
    outline: none;
}

.bwiz-map-geo-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: #f1fcf4;
    border: none;
    color: var(--bw-green);
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    padding: 0;
}

.bwiz-map-geo-btn:hover {
    background: var(--bw-green);
    color: #ffffff;
    transform: translateY(-50%) scale(1.05);
}

.bwiz-map-search-btn {
    width: 45px;
    height: 45px;
    background: var(--bw-green);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(30, 126, 52, 0.2);
}

.bwiz-map-search-btn:hover {
    background: var(--bw-green-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(30, 126, 52, 0.3);
}

/* Quick location chips */
.bwiz-quick-locs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    max-height: 220px;
    overflow-y: auto;
    padding-right: 4px;
}

/* Custom Scrollbar for Chips container */
.bwiz-quick-locs::-webkit-scrollbar {
    width: 4px;
}

.bwiz-quick-locs::-webkit-scrollbar-track {
    background: transparent;
}

.bwiz-quick-locs::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.bwiz-quick-chip {
    padding: 7px 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.bwiz-quick-chip:hover {
    background: #f1fcf4;
    color: var(--bw-green);
    border-color: #c3e6cb;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04);
}

.bwiz-quick-chip i {
    font-size: 12px;
    color: var(--bw-green);
    opacity: 0.8;
}

/* Map iframe */
.bwiz-map-iframe {
    width: 100%;
    height: 100%;
    min-height: 360px;
    border: none;
    border-radius: 0;
    background: #f8fafc;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

/* Confirm bar */
.bwiz-map-confirm-bar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-top: 1px solid #e2e8f0;
    padding-top: 20px;
    margin-top: auto;
}

.bwiz-map-selected-text {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
    line-height: 1.5;
}

.bwiz-map-selected-text strong {
    color: #0f172a;
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
}

.bwiz-map-confirm-btn {
    padding: 13px 24px;
    background: linear-gradient(135deg, #1e7e34, #155724);
    /* Beautiful Green theme primary button */
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(30, 126, 52, 0.25);
    white-space: nowrap;
}

.bwiz-map-confirm-btn:hover {
    background: linear-gradient(135deg, #22933d, #1b6d2e);
    box-shadow: 0 6px 20px rgba(30, 126, 52, 0.35);
    transform: translateY(-1px);
}

@media (max-width: 991px) {
    .bwiz-map-dialog {
        max-width: 90%;
    }

    .bwiz-map-dialog-body {
        grid-template-columns: 1.3fr 380px;
    }

    .bwiz-map-right {
        padding: 0 20px 20px;
    }

    .bwiz-map-search-container {
        padding: 20px 20px 10px;
    }
}

@media (max-width: 768px) {
    .bwiz-input {
        font-size: 16px !important;
        /* Forces input font to be at least 16px to prevent iOS Safari auto-zoom behavior */
    }

    .bwiz-map-dialog-body {
        display: flex;
        flex-direction: column;
    }

    .bwiz-map-layout {
        display: flex;
        /* Override display: contents */
        flex-direction: column;
        min-height: auto;
        flex: 1;
        overflow: hidden;
    }

    .bwiz-map-left {
        grid-column: auto;
        grid-row: auto;
        min-height: 200px;
        height: 200px;
        flex-shrink: 0;
    }

    .bwiz-map-right {
        grid-column: auto;
        grid-row: auto;
        width: 100%;
        border-left: none;
        border-top: 1px solid #e2e8f0;
        padding: 16px 20px 20px 20px;
        flex: 1;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        /* Let child controls scroll instead of parent */
        background: #ffffff;
    }

    /* Reduce Search container padding on mobile to maximize viewport usage */
    .bwiz-map-search-container {
        grid-column: auto;
        grid-row: auto;
        border-left: none;
        border-bottom: 1px solid #f1f5f9;
        padding: 12px 18px;
        background: #ffffff;
    }

    /* Bottom Sheet Modal on mobile devices — flush at bottom with curved top corners */
    .bwiz-map-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .bwiz-map-dialog {
        border-radius: 24px 24px 0 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 85vh;
        /* Take up 85% of viewport height */
        max-height: 85vh !important;
        transform: translateY(100%);
        border: none;
        margin: 0 !important;
    }

    .bwiz-map-overlay.open .bwiz-map-dialog {
        transform: translateY(0) scale(1);
    }

    /* Horizontal scrolling chips on mobile for beautiful native look and vertical space efficiency */
    .bwiz-quick-locs {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        gap: 8px;
        margin-bottom: 16px;
        padding-bottom: 8px;
        flex-shrink: 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* Hide scrollbar Firefox */
        -ms-overflow-style: none;
        /* Hide scrollbar IE/Edge */
    }

    .bwiz-quick-locs::-webkit-scrollbar {
        display: none;
        /* Hide scrollbar Chrome/Safari/Opera */
    }

    .bwiz-quick-chip {
        flex-shrink: 0 !important;
        white-space: nowrap !important;
    }

    .bwiz-map-confirm-bar {
        flex-shrink: 0;
        margin-top: auto;
        border-top: 1px solid #e2e8f0;
        padding-top: 16px;
        background: #ffffff;
    }

    .bwiz-map-selected-text {
        display: none !important;
        /* Hide selected location text block on mobile */
    }

    .bwiz-map-confirm-btn {
        width: 100% !important;
        /* Make button full width */
        justify-content: center !important;
    }
}

@media (max-width: 480px) {
    .bwiz-map-dialog-head {
        padding: 14px 16px;
    }

    .bwiz-map-search-container {
        padding: 10px 14px;
    }

    .bwiz-map-right {
        padding: 14px 16px 16px 16px;
    }

    .bwiz-map-left {
        min-height: 180px;
        height: 180px;
    }

    .bwiz-map-confirm-bar {
        padding-top: 12px;
    }
}

/* ================================================
   STACKING FIXES FOR OUTSIDE FLOATING WIDGETS
   ================================================ */
/* Hide Jivosite, GetButton (WhatsHelp), scrolltop, or other floating tools when map modal is open */
.bwiz-modal-open jdiv,
.bwiz-modal-open iframe[src*="jivosite"],
.bwiz-modal-open iframe[src*="jivo"],
.bwiz-modal-open div[class*="jivo"],
.bwiz-modal-open div[id*="jivo"],
.bwiz-modal-open #jivo-iframe-container,
.bwiz-modal-open #wh-widget-send-button,
.bwiz-modal-open div[id*="wh-widget"],
.bwiz-modal-open .scroltop,
.bwiz-modal-open button.scroltop {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}