/* Standalone, full-width callout calculator directly beneath Pricing. */

.callout-map-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #d8d1cb;
    scroll-margin-top: 88px;
}

.callout-map-section .pricing-map-estimator {
    position: relative;
    width: 100%;
    min-height: clamp(660px, 78vh, 790px);
    overflow: hidden;
    color: #fff;
    background: #d8d1cb;
    isolation: isolate;
}

.callout-map-section .callout-map-estimator__canvas,
.callout-map-section #callout-map,
.callout-map-section .callout-map-estimator__shade {
    position: absolute;
    inset: 0;
}

.callout-map-section .callout-map-estimator__canvas {
    z-index: 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 28% 30%, rgba(255, 255, 255, 0.3), transparent 18rem),
        #d8d1cb;
}

.callout-map-section #callout-map {
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(circle at 42% 45%, #ebe5df 0 18%, transparent 19%),
        #cfc7c0;
    filter: blur(8px) saturate(0.72);
    transform: scale(1.035);
    transition: filter 520ms ease, transform 520ms ease;
}

.callout-map-section .pricing-map-estimator.is-route-ready #callout-map {
    pointer-events: auto;
    filter: none;
    transform: scale(1);
}

.callout-map-section .callout-map-estimator__shade {
    z-index: 2;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(26, 17, 15, 0.79) 0%, rgba(35, 21, 18, 0.56) 39%, rgba(24, 16, 14, 0.18) 68%, rgba(22, 15, 13, 0.34) 100%),
        linear-gradient(0deg, rgba(29, 19, 17, 0.63) 0%, transparent 42%);
    transition: background 420ms ease;
}

.callout-map-section .pricing-map-estimator.is-route-ready .callout-map-estimator__shade {
    background:
        linear-gradient(90deg, rgba(26, 17, 15, 0.64) 0%, rgba(35, 21, 18, 0.18) 38%, transparent 63%),
        linear-gradient(0deg, rgba(29, 19, 17, 0.44) 0%, transparent 35%);
}

.callout-map-section .callout-map-estimator__content {
    position: relative;
    z-index: 10;
    width: min(1280px, calc(100% - clamp(2rem, 7vw, 6rem)));
    min-height: clamp(660px, 78vh, 790px);
    margin: 0 auto;
    padding: clamp(1.35rem, 3vw, 2.35rem);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(310px, 390px);
    grid-template-rows: auto 1fr auto;
    gap: 1rem;
    pointer-events: none;
}

.callout-map-section .callout-map-estimator__content > * {
    pointer-events: auto;
}

.callout-map-section .callout-map-estimator__search-card {
    grid-column: 1 / -1;
    grid-row: 1 / 3;
    width: min(100%, 1120px);
    padding: clamp(1.4rem, 3.2vw, 2.4rem);
    align-self: center;
    justify-self: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(430px, 1.1fr);
    grid-template-rows: auto auto auto;
    column-gap: clamp(2rem, 4vw, 4rem);
    align-items: center;
    color: #fff;
    background: rgba(37, 23, 20, 0.88);
    box-shadow: 0 24px 62px rgba(15, 8, 7, 0.28);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: width 340ms ease, align-self 340ms ease, padding 340ms ease;
}

.callout-map-section .pricing-map-estimator.is-route-ready .callout-map-estimator__search-card {
    grid-column: 1;
    width: min(100%, 470px);
    padding: 1.35rem;
    align-self: start;
    justify-self: start;
    display: block;
}

.callout-map-section .callout-map-estimator__eyebrow {
    grid-column: 1;
    grid-row: 1;
    margin: 0 0 0.65rem;
    color: #f1b8ad;
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.callout-map-section .callout-map-estimator__search-card h2 {
    grid-column: 1;
    grid-row: 2;
    max-width: 18ch;
    margin: 0 0 0.7rem;
    color: #fff;
    font-size: clamp(2rem, 3.6vw, 3.45rem);
    font-weight: 780;
    line-height: 0.98;
    letter-spacing: -0.048em;
}

.callout-map-section .pricing-map-estimator.is-route-ready .callout-map-estimator__search-card h2 {
    max-width: none;
    font-size: 1.45rem;
    line-height: 1.1;
}

.callout-map-section .callout-map-estimator__lead {
    grid-column: 1;
    grid-row: 3;
    max-width: 48ch;
    margin: 0 0 1.35rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.92rem;
    line-height: 1.58;
}

.callout-map-section .pricing-map-estimator.is-route-ready .callout-map-estimator__lead {
    display: none;
}

.callout-map-section .callout-estimator__form {
    grid-column: 2;
    grid-row: 1 / 4;
    margin: 0;
}

.callout-map-section .callout-estimator__label {
    display: block;
    margin: 0 0 0.48rem;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.8rem;
    font-weight: 760;
}

.callout-map-section .callout-estimator__field {
    position: relative;
    z-index: 80;
}

.callout-map-section .callout-estimator__input-shell {
    min-height: 58px;
    padding: 0 0.38rem 0 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    display: flex;
    gap: 0.72rem;
    align-items: center;
    color: #2b211f;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 15px 34px rgba(12, 7, 6, 0.2);
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.callout-map-section .callout-estimator__input-shell:focus-within {
    border-color: #f1b8ad;
    box-shadow: 0 0 0 4px rgba(241, 184, 173, 0.18), 0 16px 36px rgba(12, 7, 6, 0.25);
}

.callout-map-section .callout-estimator__input-shell > i {
    flex: 0 0 auto;
    color: #8f2f2a;
}

.callout-map-section #callout-address {
    width: 100%;
    min-width: 0;
    min-height: 56px;
    padding: 0;
    border: 0;
    outline: 0;
    color: #2b211f;
    background: transparent;
    font: inherit;
    font-size: 1rem;
}

.callout-map-section #callout-address::placeholder {
    color: #8f817c;
}

.callout-map-section .callout-estimator__clear {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    display: grid;
    flex: 0 0 44px;
    place-items: center;
    color: #786a65;
    background: transparent;
    cursor: pointer;
}

.callout-map-section .callout-estimator__clear[hidden] {
    display: none !important;
}

.callout-map-section .callout-estimator__clear:hover,
.callout-map-section .callout-estimator__clear:focus-visible {
    color: #8f2f2a;
    background: rgba(143, 47, 42, 0.08);
}

.callout-map-section .callout-estimator__suggestions {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    z-index: 1000;
    max-height: 292px;
    margin: 0;
    padding: 0.45rem;
    overflow-y: auto;
    border: 1px solid rgba(86, 55, 48, 0.16);
    border-radius: 16px;
    list-style: none;
    background: #fff;
    box-shadow: 0 24px 54px rgba(27, 16, 14, 0.3);
}

.callout-map-section .callout-estimator__suggestions[hidden] {
    display: none !important;
}

.callout-map-section .callout-estimator__suggestion {
    width: 100%;
    padding: 0.78rem;
    border: 0;
    border-radius: 11px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 0.7rem;
    align-items: center;
    color: #332724;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.callout-map-section .callout-estimator__suggestion:hover,
.callout-map-section .callout-estimator__suggestion.is-active {
    background: #f7efea;
}

.callout-map-section .callout-estimator__suggestion-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: #8f2f2a;
    background: rgba(143, 47, 42, 0.09);
}

.callout-map-section .callout-estimator__suggestion strong,
.callout-map-section .callout-estimator__suggestion small {
    display: block;
    overflow: hidden;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.callout-map-section .callout-estimator__suggestion strong {
    font-size: 0.87rem;
    font-weight: 760;
}

.callout-map-section .callout-estimator__suggestion small {
    margin-top: 0.13rem;
    color: #83736e;
    font-size: 0.74rem;
}

.callout-map-section .callout-estimator__actions {
    margin-top: 0.75rem;
    display: flex;
    gap: 0.6rem;
}

.callout-map-section .callout-estimator__submit,
.callout-map-section .callout-estimator__reset,
.callout-map-section .callout-estimator__whatsapp {
    min-height: 50px;
    border-radius: 999px;
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 820;
    text-decoration: none;
    cursor: pointer;
    transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.callout-map-section .callout-estimator__submit {
    flex: 1;
    padding: 0.78rem 1.2rem;
    border: 0;
    color: #fff;
    background: #a23a33;
    box-shadow: 0 13px 26px rgba(9, 4, 3, 0.24);
}

.callout-map-section .callout-estimator__submit:disabled {
    color: #a69792;
    background: #ded6d1;
    box-shadow: none;
    cursor: not-allowed;
}

.callout-map-section .callout-estimator__reset {
    padding: 0.78rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.callout-map-section .callout-estimator__reset[hidden] {
    display: none !important;
}

.callout-map-section .callout-estimator__submit:hover:not(:disabled),
.callout-map-section .callout-estimator__submit:focus-visible:not(:disabled),
.callout-map-section .callout-estimator__reset:hover,
.callout-map-section .callout-estimator__reset:focus-visible,
.callout-map-section .callout-estimator__whatsapp:hover,
.callout-map-section .callout-estimator__whatsapp:focus-visible {
    transform: translateY(-2px);
}

.callout-map-section .callout-estimator__submit:focus-visible,
.callout-map-section .callout-estimator__reset:focus-visible,
.callout-map-section .callout-estimator__whatsapp:focus-visible,
.callout-map-section .callout-estimator__clear:focus-visible,
.callout-map-section .callout-estimator__suggestion:focus-visible {
    outline: 3px solid #f1b8ad;
    outline-offset: 3px;
}

.callout-map-section .callout-estimator__privacy,
.callout-map-section .callout-estimator__status {
    font-size: 0.72rem;
    line-height: 1.45;
}

.callout-map-section .callout-estimator__privacy {
    margin: 0.7rem 0 0;
    display: flex;
    gap: 0.43rem;
    align-items: flex-start;
    color: rgba(255, 255, 255, 0.57);
}

.callout-map-section .callout-estimator__privacy i {
    margin-top: 0.14rem;
    color: #f1b8ad;
}

.callout-map-section .callout-estimator__status {
    min-height: 1.2rem;
    margin: 0.55rem 0 0;
    color: rgba(255, 255, 255, 0.65);
}

.callout-map-section .callout-estimator__status.is-error {
    color: #ffbeb5;
}

.callout-map-section .callout-estimator__status.is-success {
    color: #a8e4c2;
}

.callout-map-section .callout-map-estimator__result {
    grid-column: 2;
    grid-row: 1 / 4;
    padding: 1.65rem;
    align-self: stretch;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 22px;
    color: #332724;
    background: rgba(255, 250, 245, 0.95);
    box-shadow: 0 24px 58px rgba(20, 11, 9, 0.25);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.callout-map-section .callout-map-estimator__result[hidden] {
    display: none !important;
}

.callout-map-section .callout-estimator__estimate-label {
    margin: 0 0 0.35rem;
    color: #8f2f2a;
    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.callout-map-section .callout-estimator__total {
    margin: 0;
    color: #2c201e;
    font-size: clamp(2.7rem, 4.5vw, 3.8rem);
    font-weight: 820;
    line-height: 1;
    letter-spacing: -0.05em;
}

.callout-map-section .callout-estimator__total span {
    margin-left: 0.3rem;
    color: #887873;
    font-size: 0.77rem;
    font-weight: 700;
    letter-spacing: 0;
}

.callout-map-section .callout-estimator__result-address {
    margin: 0.65rem 0 0;
    color: #4e3d38;
    font-size: 0.82rem;
    font-weight: 760;
    line-height: 1.45;
}

.callout-map-section .callout-estimator__confirmation {
    margin: 0.65rem 0 1.1rem;
    padding: 0.72rem 0.8rem;
    border-left: 3px solid #a23a33;
    border-radius: 8px;
    color: #665650;
    background: rgba(162, 58, 51, 0.07);
    font-size: 0.73rem;
    line-height: 1.45;
}

.callout-map-section .callout-estimator__confirmation strong {
    color: #8f2f2a;
}

.callout-map-section .callout-estimator__breakdown {
    margin: 0 0 1.1rem;
    padding: 0;
    border-top: 1px solid rgba(86, 55, 48, 0.13);
}

.callout-map-section .callout-estimator__breakdown > div {
    padding: 0.58rem 0;
    border-bottom: 1px solid rgba(86, 55, 48, 0.1);
    display: flex;
    gap: 0.8rem;
    align-items: baseline;
    justify-content: space-between;
}

.callout-map-section .callout-estimator__breakdown dt,
.callout-map-section .callout-estimator__breakdown dd {
    margin: 0;
}

.callout-map-section .callout-estimator__breakdown dt {
    color: #7e6f69;
    font-size: 0.73rem;
}

.callout-map-section .callout-estimator__breakdown dd {
    color: #332724;
    font-size: 0.78rem;
    font-weight: 820;
    text-align: right;
}

.callout-map-section .callout-estimator__whatsapp {
    width: 100%;
    padding: 0.82rem 1rem;
    border: 0;
    color: #fff;
    background: #158d55;
    box-shadow: 0 13px 26px rgba(21, 141, 85, 0.2);
}

.callout-map-section .callout-estimator__whatsapp:hover,
.callout-map-section .callout-estimator__whatsapp:focus-visible {
    color: #fff;
    background: #117749;
}

.callout-map-section .leaflet-control-attribution {
    font-size: 9px;
}

.callout-map-section .leaflet-control-zoom {
    opacity: 0;
    transform: translateY(-6px);
    visibility: hidden;
    transition: opacity 220ms ease, transform 220ms ease;
}

.callout-map-section .pricing-map-estimator.is-route-ready .leaflet-control-zoom {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.callout-map-section .leaflet-control-zoom a {
    color: #332724;
}

.callout-map-section .callout-destination-marker {
    width: 20px;
    height: 20px;
    border: 4px solid #fff;
    border-radius: 50% 50% 50% 0;
    background: #8f2f2a;
    box-shadow: 0 6px 16px rgba(65, 24, 21, 0.3);
    transform: rotate(-45deg);
}

@media screen and (max-width: 900px) {
    .callout-map-section .pricing-map-estimator.is-route-ready .leaflet-top.leaflet-right {
        top: 50%;
        right: 0.65rem;
        transform: translateY(-50%);
    }

    .callout-map-section .pricing-map-estimator.is-route-ready .leaflet-right .leaflet-control {
        margin-right: 0;
    }

    .callout-map-section .pricing-map-estimator,
    .callout-map-section .callout-map-estimator__content {
        min-height: 760px;
    }

    .callout-map-section .callout-map-estimator__content {
        width: min(100%, 760px);
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr auto;
    }

    .callout-map-section .pricing-map-estimator.is-route-ready,
    .callout-map-section .pricing-map-estimator.is-route-ready .callout-map-estimator__content {
        min-height: 860px;
    }

    .callout-map-section .callout-map-estimator__search-card {
        grid-column: 1;
        grid-row: 1;
        width: min(100%, 560px);
        align-self: start;
        justify-self: start;
        display: block;
    }

    .callout-map-section .pricing-map-estimator.is-route-ready .callout-map-estimator__search-card {
        width: min(100%, 560px);
    }

    .callout-map-section .callout-map-estimator__result {
        grid-column: 1;
        grid-row: 2 / 4;
        width: min(100%, 390px);
        margin-left: auto;
        align-self: end;
    }

}

@media screen and (max-width: 620px) {
    .callout-map-section .pricing-map-estimator {
        min-height: 720px;
    }

    .callout-map-section .callout-map-estimator__content {
        width: 100%;
        min-height: 720px;
        padding: 0.85rem;
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .callout-map-section .callout-map-estimator__shade {
        background:
            linear-gradient(180deg, rgba(26, 17, 15, 0.78) 0%, rgba(35, 21, 18, 0.44) 48%, rgba(22, 15, 13, 0.6) 100%);
    }

    .callout-map-section .callout-map-estimator__search-card,
    .callout-map-section .pricing-map-estimator.is-route-ready .callout-map-estimator__search-card {
        width: 100%;
        padding: 1.2rem;
        border-radius: 18px;
        align-self: auto;
    }

    .callout-map-section .callout-map-estimator__search-card h2 {
        max-width: 13ch;
        font-size: clamp(1.75rem, 9vw, 2.4rem);
    }

    .callout-map-section .pricing-map-estimator.is-route-ready .callout-map-estimator__search-card h2 {
        max-width: none;
        font-size: 1.25rem;
    }

    .callout-map-section .callout-map-estimator__lead {
        margin-bottom: 1rem;
        font-size: 0.82rem;
    }

    .callout-map-section #callout-address {
        font-size: 16px !important;
    }

    .callout-map-section .callout-estimator__actions {
        flex-direction: column;
    }

    .callout-map-section .callout-estimator__submit,
    .callout-map-section .callout-estimator__reset {
        width: 100%;
    }

    .callout-map-section .callout-estimator__suggestions {
        max-height: 230px;
    }

    .callout-map-section .callout-map-estimator__result {
        width: 100%;
        margin: auto 0 0;
        padding: 1.2rem;
        border-radius: 18px;
    }

    .callout-map-section .callout-estimator__total {
        font-size: 2.8rem;
    }

    .callout-map-section .pricing-map-estimator.is-route-ready,
    .callout-map-section .pricing-map-estimator.is-route-ready .callout-map-estimator__content {
        min-height: 1040px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .callout-map-section #callout-map,
    .callout-map-section .callout-map-estimator__shade,
    .callout-map-section .callout-map-estimator__search-card,
    .callout-map-section .callout-estimator__submit,
    .callout-map-section .callout-estimator__reset,
    .callout-map-section .callout-estimator__whatsapp {
        transition: none;
    }
}
