/* ==========================================================================
   CROMMELINS — Store Locator Homepage Widget
   File: assets/css/store-locator-widget.css
   Shortcode: [crommelins_find_dealer]
   ========================================================================== */

/* ── Google Font ── */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&display=swap');

/* ── Outer wrapper ── */
.crom-slw-outer {
    width: 100%;
    background: #F5A800; /* Crommelins brand amber */
    border-radius: 18px;
    padding: 22px;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

/* ── Card (white inner box) ── */
.crom-slw-card {
    background: #ffffff;
    border-radius: 14px;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    min-height: 180px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

/* ── Left content panel ── */
.crom-slw-content {
    flex: 1 1 55%;
    padding: 34px 36px 34px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

/* ── Heading ── */
.crom-slw-heading-wrap {
    margin-bottom: 4px;
}

.crom-slw-heading {
    font-family: 'Montserrat', sans-serif !important;
    font-size: clamp(18px, 2.2vw, 26px) !important;
    font-weight: 800 !important;
    color: #F5A800 !important;
    line-height: 1.15 !important;
    letter-spacing: -0.5px !important;
    margin: 0 !important;
    padding: 0 !important;
    text-transform: uppercase;
    font-style: italic;
}

/* ── Sub-text ── */
.crom-slw-subtext {
    font-size: 13px;
    color: #555;
    line-height: 1.55;
    margin: 0 0 10px;
    padding: 0;
}

/* ── Form ── */
.crom-slw-form {
    width: 100%;
}

.crom-slw-input-row {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #f9f9f9;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.crom-slw-input-row:focus-within {
    border-color: #F5A800;
    box-shadow: 0 0 0 3px rgba(245, 168, 0, 0.18);
    background: #fff;
}

/* Input wrapper with icon */
.crom-slw-input-wrap {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    padding: 0 12px;
    background: transparent;
}

.crom-slw-pin-icon {
    display: flex;
    align-items: center;
    color: #aaa;
    flex-shrink: 0;
    margin-right: 8px;
    transition: color 0.2s;
}

.crom-slw-pin-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.crom-slw-input-row:focus-within .crom-slw-pin-icon {
    color: #F5A800;
}

/* Text input */
.crom-slw-input {
    border: none !important;
    outline: none !important;
    background: transparent !important;
    padding: 13px 0 !important;
    font-size: 14px !important;
    font-family: 'Montserrat', sans-serif !important;
    color: #333 !important;
    width: 100% !important;
    box-shadow: none !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

.crom-slw-input::placeholder {
    color: #aaa;
    font-size: 13px;
}

/* Submit button */
.crom-slw-btn {
    flex-shrink: 0;
    background: #111 !important;
    color: #fff !important;
    border: none !important;
    padding: 0 24px !important;
    height: 50px !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px;
    cursor: pointer !important;
    transition: background 0.22s ease, transform 0.12s ease !important;
    white-space: nowrap;
    border-radius: 0 !important;
    line-height: 1 !important;
    text-transform: none !important;
    outline: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.crom-slw-btn:hover {
    background: #F5A800 !important;
    transform: none !important;
}

.crom-slw-btn:active {
    background: #d48f00 !important;
    transform: scale(0.98) !important;
}

/* ── Right: Map visual panel ── */
.crom-slw-map-visual {
    flex: 0 0 42%;
    position: relative;
    overflow: hidden;
    background: #f0f4f0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

.crom-slw-map-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.crom-slw-map-svg-wrap {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box;
}

.crom-slw-map-svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0 14px 14px 0;
}

/* ── Pin bounce animation ── */
@keyframes cromPinBounce {
    0%, 100% { transform: translateY(0); }
    40%       { transform: translateY(-8px); }
    70%       { transform: translateY(-4px); }
}
.crom-slw-map-svg g:last-child {
    animation: cromPinBounce 2.4s ease-in-out infinite;
    transform-origin: 155px 140px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .crom-slw-content {
        padding: 26px 24px;
    }
    .crom-slw-map-visual {
        flex: 0 0 38%;
    }
}

@media (max-width: 680px) {
    .crom-slw-outer {
        padding: 14px;
        border-radius: 14px;
    }
    .crom-slw-card {
        flex-direction: column;
        border-radius: 10px;
    }
    .crom-slw-content {
        padding: 24px 20px 20px;
    }
    .crom-slw-map-visual {
        flex: 0 0 auto;
        min-height: 160px;
        width: 100%;
    }
    .crom-slw-map-svg {
        border-radius: 0 0 10px 10px;
    }
    .crom-slw-input-row {
        flex-direction: column;
        border-radius: 8px;
        border: 1.5px solid #e0e0e0;
    }
    .crom-slw-input-wrap {
        width: 100%;
        box-sizing: border-box;
        border-bottom: 1.5px solid #e0e0e0;
    }
    .crom-slw-btn {
        width: 100% !important;
        border-radius: 0 0 6px 6px !important;
        height: 46px !important;
    }
}
