/* ======================================================================
   APD HOME AIRBNB PRECISION 15.4.0
   Capa final exclusiva de la portada. Conserva la identidad y las
   funciones de APD, corrigiendo escala, posición, tipografía y responsive.
   ====================================================================== */
body.home.apd-marketplace-ui {
    --apd-home-max: 1608px;
    color: #222;
    font-family: "Airbnb Cereal VF", "Circular Std", Inter, -apple-system,
        BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    font-size: 14px;
    letter-spacing: normal;
}
body.home.apd-marketplace-ui * { box-sizing: border-box; }
body.home .apd5-header { border-bottom-color:#e6e6e6 !important; box-shadow:none !important; }
body.home .apd5-card,
body.home .apd5-card-media,
body.home .apd5-card-media img { transform:none; }
body.home .apd5-account-menu a.apd5-account-host-card { cursor:pointer !important; }

@media (min-width:1180px) {
    body.home .apd5-header-row,
    body.home .apd5-main,
    body.home .apd5-footer-grid,
    body.home .apd10-footer-meta,
    body.home .apd5-footer-bottom {
        width:min(calc(100vw - 96px),var(--apd-home-max)) !important;
        max-width:var(--apd-home-max) !important;
    }

    body.home .apd5-header-row {
        height:90px !important;
        min-height:90px !important;
        grid-template-columns:150px minmax(690px,1fr) 300px !important;
        gap:26px !important;
    }
    body.home .apd5-logo,
    body.home .apd5-logo img {
        width:102px !important;
        height:42px !important;
    }
    body.home .apd5-main-nav { gap:29px !important; }
    body.home .apd5-main-nav a {
        min-width:auto !important;
        padding:0 5px !important;
        gap:9px !important;
        color:#303030 !important;
        font-size:13px !important;
        font-weight:600 !important;
    }
    body.home .apd5-main-nav a > span {
        width:36px !important;
        height:36px !important;
    }
    body.home .apd5-main-nav strong { font-weight:650 !important; }
    body.home .apd5-main-nav a::after {
        left:5px !important;
        right:5px !important;
        height:3px !important;
        background:#222 !important;
    }
    body.home .apd5-header-actions { gap:10px !important; }
    body.home .apd5-host-trigger {
        min-height:42px !important;
        padding:0 13px !important;
        font-size:13px !important;
        font-weight:600 !important;
    }
    body.home .apd5-language-button {
        width:40px !important;
        height:40px !important;
        background:#f5f5f5 !important;
    }
    body.home .apd5-account-button {
        min-width:78px !important;
        height:44px !important;
        box-shadow:none !important;
    }
    body.home .apd5-account-button img,
    body.home .apd5-account-button > span {
        width:34px !important;
        height:34px !important;
    }

    body.home .apd5-header-search-row {
        min-height:100px !important;
        padding:9px 24px 23px !important;
        align-items:flex-start !important;
    }
    body.home .apd5-search {
        width:min(750px,calc(100vw - 110px)) !important;
        height:66px !important;
        grid-template-columns:1.14fr 1px .97fr 1px 1fr 62px !important;
        border:1px solid #ddd !important;
        border-radius:999px !important;
        background:#fff !important;
        box-shadow:0 5px 18px rgba(0,0,0,.12) !important;
        transition:background .18s ease,grid-template-columns .22s ease,box-shadow .2s ease !important;
    }
    body.home .apd5-search > i { height:32px !important; background:#ddd !important; }
    body.home .apd5-search-field > button {
        padding:0 25px !important;
        border-radius:999px !important;
    }
    body.home .apd5-search-field > button:hover { background:#f4f4f4 !important; box-shadow:none !important; }
    body.home .apd5-search-field.is-open > button {
        background:#fff !important;
        box-shadow:0 3px 12px rgba(0,0,0,.12) !important;
    }
    body.home .apd5-search-field span {
        color:#222 !important;
        font-size:11px !important;
        line-height:1.15 !important;
        font-weight:700 !important;
    }
    body.home .apd5-search-field strong {
        margin-top:4px !important;
        color:#717171 !important;
        font-size:12px !important;
        line-height:1.15 !important;
        font-weight:400 !important;
    }
    body.home .apd5-search-submit {
        width:48px !important;
        height:48px !important;
        margin-right:7px !important;
        padding:0 !important;
        border-radius:999px !important;
        background:#0f6fe8 !important;
        box-shadow:none !important;
        display:flex !important;
        align-items:center !important;
        justify-content:center !important;
        gap:7px !important;
        transition:width .22s ease,transform .16s ease,box-shadow .18s ease !important;
    }
    body.home .apd5-search-submit span { display:none !important; color:#fff !important; font-size:13px !important; font-weight:700 !important; }
    body.home .apd5-search.has-open-panel {
        grid-template-columns:1.14fr 1px .97fr 1px 1fr 105px !important;
        background:#ebebeb !important;
    }
    body.home .apd5-search.has-open-panel .apd5-search-submit {
        width:94px !important;
        padding:0 15px !important;
    }
    body.home .apd5-search.has-open-panel .apd5-search-submit span { display:inline !important; }
    body.home .apd5-search-submit:hover { transform:scale(1.035) !important; box-shadow:0 6px 16px rgba(15,111,232,.28) !important; }

    body.home .apd5-search-panel {
        top:calc(100% + 14px) !important;
        border:1px solid #e5e5e5 !important;
        border-radius:26px !important;
        background:#fff !important;
        box-shadow:0 14px 44px rgba(0,0,0,.17) !important;
    }
    body.home .apd5-location-panel {
        width:405px !important;
        max-height:535px !important;
        padding:20px !important;
    }
    body.home .apd5-date-panel {
        width:850px !important;
        padding:25px 28px 22px !important;
    }
    body.home .apd5-guests-panel,
    body.home .apd5-service-panel {
        width:410px !important;
        padding:22px 26px !important;
    }
    body.home .apd5-panel-title { margin-bottom:14px !important; }
    body.home .apd5-panel-title strong {
        color:#222 !important;
        font-size:16px !important;
        font-weight:650 !important;
        letter-spacing:-.015em !important;
    }
    body.home .apd5-panel-title small { font-size:11px !important; }
    body.home .apd5-panel-title button { width:30px !important; height:30px !important; }
    body.home .apd5-panel-filter {
        height:46px !important;
        padding:0 14px !important;
        border-radius:12px !important;
    }
    body.home .apd5-panel-filter input { font-size:13px !important; }
    body.home .apd5-destination-option {
        min-height:60px !important;
        grid-template-columns:47px minmax(0,1fr) !important;
        gap:12px !important;
        padding:6px 4px !important;
    }
    body.home .apd5-destination-option > span {
        width:46px !important;
        height:46px !important;
        border-radius:12px !important;
    }
    body.home .apd5-destination-option .apd5-icon { width:21px !important; height:21px !important; }
    body.home .apd5-destination-option strong { font-size:12px !important; font-weight:650 !important; }
    body.home .apd5-destination-option small { margin-top:2px !important; font-size:11px !important; }
    body.home .apd11-date-mode { width:258px !important; height:38px !important; margin-bottom:20px !important; }
    body.home .apd11-date-mode span { font-size:11px !important; }
    body.home .apd5-calendar-months { gap:48px !important; }
    body.home .apd5-calendar-month h3 { font-size:14px !important; font-weight:650 !important; }
    body.home .apd5-calendar-weekdays span,
    body.home .apd5-calendar-days button,
    body.home .apd5-calendar-days span {
        width:38px !important;
        height:38px !important;
        font-size:11px !important;
    }
    body.home .apd5-guest-row { padding:16px 0 !important; }
    body.home .apd5-guest-row strong { font-size:14px !important; }
    body.home .apd5-guest-row span { font-size:12px !important; }

    body.home .apd5-main {
        padding:50px 0 78px !important;
    }
    body.home .apd5-main > .apd5-rail:first-child { margin-top:0 !important; }
    body.home .apd5-rail { margin-top:48px !important; }
    body.home .apd5-section-head {
        margin-bottom:15px !important;
        align-items:center !important;
    }
    body.home .apd5-section-head h2,
    body.home .apd5-section-head h2 a {
        color:#222 !important;
        font-size:18px !important;
        line-height:1.2 !important;
        font-weight:650 !important;
        letter-spacing:-.025em !important;
    }
    body.home .apd5-section-head h2 a { display:inline-flex !important; align-items:center !important; gap:8px !important; }
    body.home .apd5-section-head h2 span {
        width:25px !important;
        height:25px !important;
        display:inline-grid !important;
        place-items:center !important;
        border-radius:50% !important;
        color:#222 !important;
        background:#f2f2f2 !important;
        font-size:15px !important;
        line-height:1 !important;
    }
    body.home .apd5-section-head p { display:none !important; }
    body.home .apd5-rail-controls { gap:6px !important; }
    body.home .apd5-rail-controls button {
        width:31px !important;
        height:31px !important;
        border:1px solid transparent !important;
        background:#f3f3f3 !important;
        color:#222 !important;
        font-size:18px !important;
    }
    body.home .apd5-rail-controls button:hover { border-color:#ddd !important; background:#fff !important; }
    body.home .apd5-card-rail {
        grid-auto-columns:clamp(245px,calc((100% - 100px)/6),260px) !important;
        gap:20px !important;
        padding-bottom:6px !important;
    }
    body.home .apd5-card-media {
        aspect-ratio:1.055/1 !important;
        border-radius:18px !important;
        box-shadow:none !important;
    }
    body.home .apd5-card:hover .apd5-card-media { box-shadow:0 8px 22px rgba(0,0,0,.12) !important; }
    body.home .apd5-card-media img { transition:transform .25s ease !important; }
    body.home .apd5-card:hover .apd5-card-media img { transform:scale(1.018) !important; }
    body.home .apd5-card-badge {
        top:10px !important;
        left:10px !important;
        padding:6px 10px !important;
        border-radius:999px !important;
        color:#222 !important;
        font-size:11px !important;
        line-height:1.05 !important;
        font-weight:600 !important;
    }
    body.home .apd5-favorite { top:8px !important; right:8px !important; width:38px !important; height:38px !important; }
    body.home .apd5-favorite .apd5-icon { width:29px !important; height:29px !important; }
    body.home .apd5-card-body { padding:10px 3px 0 !important; }
    body.home .apd5-card-title-row { gap:6px !important; align-items:center !important; }
    body.home .apd5-card-title-row h3 {
        min-height:0 !important;
        color:#222 !important;
        font-size:15px !important;
        line-height:1.25 !important;
        font-weight:600 !important;
        white-space:nowrap !important;
        display:block !important;
        overflow:hidden !important;
        text-overflow:ellipsis !important;
    }
    body.home .apd5-card-title-row > span { padding:0 !important; font-size:12px !important; }
    body.home .apd5-card-title-row .apd5-icon { width:12px !important; height:12px !important; }
    body.home .apd5-stay-card .apd5-card-location { display:none !important; }
    body.home .apd5-card-body p {
        margin:4px 0 0 !important;
        color:#717171 !important;
        font-size:12px !important;
        line-height:1.3 !important;
    }
    body.home .apd5-stay-card .apd5-card-price-row {
        margin-top:5px !important;
        gap:5px !important;
        overflow:hidden !important;
    }
    body.home .apd5-stay-card .apd5-card-price {
        color:#222 !important;
        font-size:13px !important;
        line-height:1.3 !important;
        font-weight:450 !important;
        overflow:hidden !important;
        text-overflow:ellipsis !important;
    }
    body.home .apd5-stay-card .apd5-card-price small { color:inherit !important; font-size:inherit !important; font-weight:inherit !important; }
    body.home .apd5-stay-card .apd5-card-rating {
        color:#222 !important;
        font-size:13px !important;
        line-height:1.3 !important;
    }
    body.home .apd5-stay-card .apd5-card-rating .apd5-icon { width:12px !important; height:12px !important; }
    body.home .apd5-card-body > strong {
        margin-top:4px !important;
        color:#555 !important;
        font-size:12px !important;
        line-height:1.3 !important;
        font-weight:450 !important;
    }
    body.home .apd5-card-body > strong small { color:inherit !important; font-size:inherit !important; font-weight:inherit !important; }
    body.home .apd5-demo-edit { margin-top:6px !important; font-size:10px !important; }

    body.home .apd5-host-banner {
        margin-top:62px !important;
        min-height:240px !important;
        border-radius:24px !important;
    }
    body.home .apd10-inspiration {
        width:100vw !important;
        margin:70px 0 -78px calc(50% - 50vw) !important;
        padding:52px max(48px,calc((100vw - var(--apd-home-max))/2)) 48px !important;
        border:0 !important;
        background:#f7f7f7 !important;
    }
    body.home .apd10-inspiration h2 {
        margin:0 0 18px !important;
        color:#222 !important;
        font-size:18px !important;
        line-height:1.2 !important;
        font-weight:650 !important;
        letter-spacing:-.02em !important;
    }
    body.home .apd10-inspiration-tabs { gap:31px !important; }
    body.home .apd10-inspiration-tabs button { padding-bottom:13px !important; font-size:12px !important; font-weight:500 !important; }
    body.home .apd10-inspiration-grid {
        grid-template-columns:repeat(6,minmax(0,1fr)) !important;
        gap:23px 38px !important;
        padding-top:25px !important;
    }
    body.home .apd10-inspiration-grid strong { font-size:12px !important; font-weight:600 !important; }
    body.home .apd10-inspiration-grid span { margin-top:3px !important; font-size:11px !important; }

    body.home .apd5-footer {
        margin-top:0 !important;
        padding:50px 24px 20px !important;
        background:#f7f7f7 !important;
        border-top:0 !important;
    }
    body.home .apd5-footer-grid {
        grid-template-columns:repeat(3,minmax(0,1fr)) !important;
        gap:100px !important;
    }
    body.home .apd5-footer-brand { display:none !important; }
    body.home .apd5-footer h3 { margin-bottom:16px !important; font-size:12px !important; }
    body.home .apd5-footer a { margin-bottom:12px !important; color:#333 !important; font-size:11px !important; }
    body.home .apd10-footer-meta,
    body.home .apd5-footer-bottom { font-size:10px !important; }
}

/* ======================================================================
   APD 24 · encabezado estable, pie editorial y selectores globales
   ====================================================================== */
.apd24-avatar-button {
    width:38px;
    min-width:38px;
    height:38px;
    padding:0;
    overflow:hidden;
    display:grid;
    place-items:center;
    border:0;
    border-radius:50%;
    background:#f2f2f2;
    cursor:pointer;
}
.apd24-avatar-button img {
    width:34px;
    height:34px;
    display:block;
    border-radius:50%;
    object-fit:cover;
}
.apd24-avatar-button:hover,
.apd24-avatar-button:focus-visible { background:#ebebeb; }

body.apd-marketplace-ui .apd5-demo-edit { display:none !important; }

body.apd-marketplace-ui .apd5-footer {
    margin-top:64px !important;
    padding:48px max(48px,calc((100vw - 1456px)/2)) 24px !important;
    border-top:1px solid #dddddd !important;
    background:#f7f7f7 !important;
    color:#222222 !important;
}
body.apd-marketplace-ui .apd5-footer-grid {
    width:100% !important;
    max-width:1456px !important;
    margin:0 auto !important;
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    gap:72px !important;
}
body.apd-marketplace-ui .apd5-footer-grid > div { min-width:0; }
body.apd-marketplace-ui .apd5-footer h3 {
    margin:0 0 20px !important;
    color:#222222 !important;
    font-size:14px !important;
    line-height:1.25 !important;
    font-weight:650 !important;
}
body.apd-marketplace-ui .apd5-footer-grid a {
    width:max-content;
    max-width:100%;
    margin:0 0 15px !important;
    display:block !important;
    color:#222222 !important;
    font-size:14px !important;
    line-height:1.3 !important;
    font-weight:400 !important;
    text-decoration:none !important;
}
body.apd-marketplace-ui .apd5-footer-grid a:hover { text-decoration:underline !important; }
.apd24-footer-bottom {
    width:100%;
    max-width:1456px;
    margin:38px auto 0;
    padding-top:22px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:26px;
    border-top:1px solid #dddddd;
    color:#222222;
    font-size:14px;
    line-height:1.3;
}
.apd24-footer-legal,
.apd24-footer-controls,
.apd10-footer-social {
    display:flex;
    align-items:center;
}
.apd24-footer-legal { flex-wrap:wrap; gap:8px; }
.apd24-footer-legal a {
    display:inline !important;
    margin:0 !important;
    color:#222222 !important;
    font-size:14px !important;
    text-decoration:none !important;
}
.apd24-footer-legal a:hover { text-decoration:underline !important; }
.apd24-footer-controls { flex:0 0 auto; gap:3px; }
.apd24-footer-control {
    min-height:38px;
    padding:0 10px;
    display:inline-flex;
    align-items:center;
    gap:8px;
    border:0;
    border-radius:20px;
    background:transparent;
    color:#222222;
    font:inherit;
    font-size:14px;
    cursor:pointer;
}
.apd24-footer-control:hover,
.apd24-footer-control:focus-visible { background:#ebebeb; }
.apd24-footer-control .apd5-icon { width:17px; height:17px; }
.apd24-footer-control strong { font-weight:600; }
.apd10-footer-social { gap:3px; }
body.apd-marketplace-ui .apd10-footer-social a {
    width:38px !important;
    height:38px !important;
    margin:0 !important;
    display:grid !important;
    place-items:center !important;
    border-radius:50% !important;
    background:transparent !important;
    color:#222222 !important;
    text-decoration:none !important;
}
body.apd-marketplace-ui .apd10-footer-social a:hover,
body.apd-marketplace-ui .apd10-footer-social a:focus-visible { background:#ebebeb !important; }
.apd10-footer-social svg { width:17px; height:17px; fill:currentColor; }

body.apd-marketplace-ui .apd5-modal-backdrop {
    z-index:7999 !important;
    background:rgba(0,0,0,.42) !important;
}
body.apd-marketplace-ui .apd5-region-modal {
    z-index:8000 !important;
    padding:32px !important;
    display:grid !important;
    place-items:center !important;
}
body.apd-marketplace-ui .apd5-region-modal[hidden] { display:none !important; }
body.apd-marketplace-ui .apd5-region-dialog {
    position:relative !important;
    width:min(826px,calc(100vw - 64px)) !important;
    height:min(750px,calc(100vh - 110px)) !important;
    max-height:calc(100vh - 64px) !important;
    padding:0 !important;
    overflow:hidden !important;
    border:0 !important;
    border-radius:24px !important;
    background:#ffffff !important;
    box-shadow:0 18px 50px rgba(0,0,0,.24) !important;
}
body.apd-marketplace-ui .apd5-region-close {
    position:absolute !important;
    top:16px !important;
    left:16px !important;
    z-index:5 !important;
    width:34px !important;
    height:34px !important;
    padding:0 !important;
    display:grid !important;
    place-items:center !important;
    border:0 !important;
    border-radius:50% !important;
    background:transparent !important;
    color:#222222 !important;
    font-size:24px !important;
    line-height:1 !important;
    cursor:pointer !important;
}
body.apd-marketplace-ui .apd5-region-close:hover { background:#f2f2f2 !important; }
body.apd-marketplace-ui .apd5-region-dialog > section {
    width:100%;
    height:100%;
    max-height:100%;
    padding:88px 20px 34px !important;
    overflow-y:auto;
    overscroll-behavior:contain;
    scrollbar-width:thin;
    box-sizing:border-box;
}
body.apd-marketplace-ui .apd5-region-dialog > section[hidden] { display:none !important; }
body.apd-marketplace-ui .apd5-region-dialog section > h2,
body.apd-marketplace-ui .apd5-language-heading-row h2 {
    margin:32px 0 18px !important;
    color:#222222 !important;
    font-size:21px !important;
    line-height:1.25 !important;
    font-weight:600 !important;
    letter-spacing:-.02em !important;
}
body.apd-marketplace-ui .apd5-region-dialog section[data-region-panel="currency"] > h2 {
    margin:0 0 22px !important;
}
body.apd-marketplace-ui .apd5-auto-translate {
    width:min(460px,100%);
    min-height:68px;
    padding:14px 14px;
    display:grid;
    grid-template-columns:minmax(0,1fr) 44px;
    align-items:center;
    gap:14px;
    border-radius:12px;
    background:#f7f7f7;
}
body.apd-marketplace-ui .apd5-auto-translate > div strong,
body.apd-marketplace-ui .apd5-auto-translate > div > span { display:block; }
body.apd-marketplace-ui .apd5-auto-translate > div strong {
    color:#222222;
    font-size:15px;
    font-weight:500;
}
body.apd-marketplace-ui .apd5-auto-translate > div strong span { display:inline; margin-left:4px; }
body.apd-marketplace-ui .apd5-auto-translate > div > span {
    margin-top:5px;
    color:#717171;
    font-size:12px;
    line-height:1.3;
}
.apd5-switch { position:relative; width:40px; height:26px; margin:0; }
.apd5-switch input { position:absolute; opacity:0; pointer-events:none; }
.apd5-switch > span {
    position:absolute;
    inset:0;
    border-radius:999px;
    background:#b0b0b0;
    cursor:pointer;
    transition:background .16s ease;
}
.apd5-switch > span::after {
    content:"✓";
    position:absolute;
    top:3px;
    left:3px;
    width:20px;
    height:20px;
    display:grid;
    place-items:center;
    border-radius:50%;
    background:#fff;
    color:#222;
    font-size:12px;
    transition:transform .16s ease;
}
.apd5-switch input:checked + span { background:#222; }
.apd5-switch input:checked + span::after { transform:translateX(14px); }
body.apd-marketplace-ui .apd5-language-suggested,
body.apd-marketplace-ui .apd5-language-all,
body.apd-marketplace-ui .apd5-currency-grid {
    display:grid !important;
    grid-template-columns:repeat(5,minmax(0,1fr)) !important;
    column-gap:18px !important;
    row-gap:10px !important;
}
body.apd-marketplace-ui .apd5-language-option,
body.apd-marketplace-ui .apd5-currency-grid button {
    min-width:0 !important;
    min-height:55px !important;
    padding:9px 10px !important;
    display:block !important;
    border:1px solid transparent !important;
    border-radius:9px !important;
    background:#fff !important;
    color:#222 !important;
    text-align:left !important;
    cursor:pointer !important;
}
body.apd-marketplace-ui .apd5-language-option:hover,
body.apd-marketplace-ui .apd5-currency-grid button:hover { background:#f7f7f7 !important; }
body.apd-marketplace-ui .apd5-language-option.is-selected,
body.apd-marketplace-ui .apd5-currency-grid button.is-selected {
    border-color:#222222 !important;
    box-shadow:none !important;
}
body.apd-marketplace-ui .apd5-language-option strong,
body.apd-marketplace-ui .apd5-language-option span,
body.apd-marketplace-ui .apd5-currency-grid strong,
body.apd-marketplace-ui .apd5-currency-grid span {
    display:block !important;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
body.apd-marketplace-ui .apd5-language-option strong,
body.apd-marketplace-ui .apd5-currency-grid strong {
    color:#222222 !important;
    font-size:13px !important;
    line-height:1.25 !important;
    font-weight:400 !important;
}
body.apd-marketplace-ui .apd5-language-option span,
body.apd-marketplace-ui .apd5-currency-grid span {
    margin-top:2px !important;
    color:#717171 !important;
    font-size:12px !important;
    line-height:1.2 !important;
}
body.apd-marketplace-ui .apd5-language-heading-row { display:block !important; }

@media (min-width:1180px) {
    body.apd-marketplace-ui .apd5-header-actions > .apd24-avatar-button,
    body.apd-marketplace-ui .apd5-header-actions > .apd5-account-button.is-logged,
    body.apd-marketplace-ui .apd5-header-actions > .apd5-account-button.is-guest {
        width:36px !important;
        min-width:36px !important;
        max-width:36px !important;
        height:36px !important;
        min-height:36px !important;
        padding:0 !important;
        display:grid !important;
        place-items:center !important;
        border:0 !important;
        border-radius:50% !important;
        background:#f5f5f5 !important;
        box-shadow:none !important;
    }
    body.apd-marketplace-ui .apd5-header-actions > .apd24-avatar-button { background:transparent !important; }
    body.apd-marketplace-ui .apd5-header-actions > .apd24-avatar-button img {
        width:32px !important;
        height:32px !important;
    }
    body.apd-marketplace-ui .apd5-header-actions > .apd5-account-button > .apd5-icon {
        width:17px !important;
        height:17px !important;
    }
    body.apd-marketplace-ui .apd5-header-actions > .apd5-account-button > span,
    body.apd-marketplace-ui .apd5-header-actions > .apd5-account-button > img { display:none !important; }
}

@media (max-width:767px) {
    body.apd-marketplace-ui .apd5-footer {
        margin:30px 0 var(--apd10-bottom-nav-height) !important;
        padding:0 24px calc(32px + env(safe-area-inset-bottom)) !important;
    }
    body.apd-marketplace-ui .apd5-footer-grid {
        display:block !important;
    }
    body.apd-marketplace-ui .apd5-footer-grid > div {
        padding:28px 0 !important;
        border-top:1px solid #dddddd !important;
    }
    body.apd-marketplace-ui .apd5-footer-grid > div:first-child { border-top:0 !important; }
    .apd24-footer-bottom {
        margin:0 !important;
        padding:24px 0 0 !important;
        display:flex !important;
        flex-direction:column-reverse !important;
        align-items:flex-start !important;
        gap:18px !important;
        font-size:14px !important;
    }
    .apd24-footer-controls { flex-wrap:wrap; }
    .apd24-footer-legal { line-height:1.6; }
    body.apd-marketplace-ui .apd5-region-modal {
        padding:0 !important;
        align-items:end !important;
    }
    body.apd-marketplace-ui .apd5-region-dialog {
        width:100% !important;
        height:min(90vh,780px) !important;
        max-height:90vh !important;
        border-radius:24px 24px 0 0 !important;
    }
    body.apd-marketplace-ui .apd5-region-dialog > section { padding:76px 16px 30px !important; }
    body.apd-marketplace-ui .apd5-language-suggested,
    body.apd-marketplace-ui .apd5-language-all,
    body.apd-marketplace-ui .apd5-currency-grid {
        grid-template-columns:repeat(2,minmax(0,1fr)) !important;
        gap:8px !important;
    }
}

@media (min-width:1180px) and (max-width:1450px) {
    body.home .apd5-header-row,
    body.home .apd5-main,
    body.home .apd5-footer-grid,
    body.home .apd10-footer-meta,
    body.home .apd5-footer-bottom { width:calc(100vw - 64px) !important; }
    body.home .apd5-card-rail { grid-auto-columns:clamp(245px,calc((100% - 80px)/5),270px) !important; }
    body.home .apd10-inspiration-grid { grid-template-columns:repeat(4,minmax(0,1fr)) !important; }
}

@media (max-width:1179px) and (min-width:768px) {
    body.home .apd5-header-row,
    body.home .apd5-main { width:calc(100% - 40px) !important; }
    body.home .apd5-card-rail { grid-auto-columns:clamp(220px,calc((100% - 40px)/3),260px) !important; gap:20px !important; }
}

@media (max-width:767px) {
    body.home.apd-marketplace-ui {
        font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif !important;
        padding-bottom:calc(76px + env(safe-area-inset-bottom)) !important;
    }
    body.home .apd5-header { min-height:146px !important; }
    body.home .apd5-header-search-row { min-height:78px !important; padding:12px 16px 8px !important; }
    body.home .apd5-search { height:56px !important; border-color:#ddd !important; box-shadow:0 3px 12px rgba(0,0,0,.13) !important; }
    body.home .apd10-mobile-search-trigger { justify-content:flex-start !important; padding:0 20px !important; }
    body.home .apd10-mobile-search-trigger strong { font-size:15px !important; }
    body.home .apd5-header-row { min-height:68px !important; height:68px !important; }
    body.home .apd5-main-nav { min-height:54px !important; padding:4px 16px 10px !important; gap:9px !important; }
    body.home .apd5-main-nav a { min-height:44px !important; padding:0 15px !important; font-size:13px !important; box-shadow:0 2px 7px rgba(0,0,0,.12) !important; }
    body.home .apd5-main { padding-top:16px !important; }
    body.home .apd5-rail { margin-top:42px !important; padding-left:16px !important; }
    body.home .apd5-section-head { padding-right:16px !important; }
    body.home .apd5-section-head h2,
    body.home .apd5-section-head h2 a { font-size:22px !important; }
    body.home .apd5-section-head h2 span { width:34px !important; height:34px !important; font-size:20px !important; }
    body.home .apd5-card-rail {
        width:calc(100vw - 16px) !important;
        grid-auto-columns:min(72vw,280px) !important;
        gap:14px !important;
        padding-right:16px !important;
    }
    body.home .apd5-card-media { aspect-ratio:1.055/1 !important; border-radius:18px !important; }
    body.home .apd5-card-body { padding:10px 3px 0 !important; }
    body.home .apd5-card-title-row h3 { min-height:0 !important; font-size:15px !important; }
    body.home .apd5-stay-card .apd5-card-price,
    body.home .apd5-stay-card .apd5-card-rating { font-size:13px !important; }
    body.home .apd5-card-body > strong { font-size:13px !important; }
    body.home .apd5-host-banner { margin:45px 16px 0 !important; }
    body.home .apd10-inspiration { margin-top:50px !important; padding:44px 16px 38px !important; }
    body.home .apd10-inspiration h2 { font-size:27px !important; }
    body.home .apd10-inspiration-grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
    body.home .apd5-footer { padding-inline:16px !important; }
}

/* ======================================================================
   APD 15.3 — BUSCADOR, NAVEGACIÓN Y CALENDARIO FLEXIBLE
   Capa compartida por Inicio, Alojamientos, Experiencias y Servicios.
   ====================================================================== */
body.apd-marketplace-ui {
    --apd15-blue:#0f6fe8;
    --apd15-navy:#0d2b6c;
    --apd15-lime:#7cc70a;
    --apd15-text:#222222;
    --apd15-muted:#717171;
    --apd15-line:#dddddd;
    --apd15-soft:#f1f1f1;
    font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif !important;
}
body.apd-marketplace-ui .apd5-icon { flex:0 0 auto; }
body.apd-marketplace-ui .apd15-nav-svg { width:100%; height:100%; display:block; overflow:visible; }
body.apd-marketplace-ui .apd5-logo img {
    display:block !important;
    width:118px !important;
    height:auto !important;
    max-height:44px !important;
    object-fit:contain !important;
    image-rendering:auto !important;
}
body.apd-marketplace-ui .apd5-main-nav a > span {
    background:transparent !important;
    box-shadow:none !important;
    border-radius:0 !important;
}
body.apd-marketplace-ui .apd5-main-nav a::after {
    border-radius:999px !important;
    transform-origin:center !important;
}
body.apd-marketplace-ui .apd5-search-separator {
    transition:opacity .12s ease !important;
}
body.apd-marketplace-ui .apd5-search[data-hover-field="location"] .is-after-location,
body.apd-marketplace-ui .apd5-search[data-active-panel="location"] .is-after-location,
body.apd-marketplace-ui .apd5-search[data-hover-field="dates"] .is-after-location,
body.apd-marketplace-ui .apd5-search[data-hover-field="dates"] .is-after-dates,
body.apd-marketplace-ui .apd5-search[data-active-panel="dates"] .is-after-location,
body.apd-marketplace-ui .apd5-search[data-active-panel="dates"] .is-after-dates,
body.apd-marketplace-ui .apd5-search[data-hover-field="guests"] .is-after-dates,
body.apd-marketplace-ui .apd5-search[data-hover-field="service"] .is-after-dates,
body.apd-marketplace-ui .apd5-search[data-active-panel="guests"] .is-after-dates,
body.apd-marketplace-ui .apd5-search[data-active-panel="service"] .is-after-dates {
    opacity:0 !important;
}
body.apd-marketplace-ui .apd15-date-mode {
    width:284px;
    height:44px;
    margin:0 auto 22px;
    padding:4px;
    display:grid;
    grid-template-columns:1fr 1fr;
    border-radius:999px;
    background:#ebebeb;
}
body.apd-marketplace-ui .apd15-date-mode button {
    border:0;
    border-radius:999px;
    background:transparent;
    color:#222;
    font:inherit;
    font-size:13px;
    font-weight:600;
    cursor:pointer;
    transition:background .16s ease,box-shadow .16s ease;
}
body.apd-marketplace-ui .apd15-date-mode button.is-active {
    background:#fff;
    box-shadow:0 1px 5px rgba(0,0,0,.14),inset 0 0 0 1px #ddd;
}
body.apd-marketplace-ui .apd15-date-view[hidden] { display:none !important; }
body.apd-marketplace-ui .apd15-date-flexibility {
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:9px;
    margin-top:22px;
}
body.apd-marketplace-ui .apd15-date-flexibility button,
body.apd-marketplace-ui .apd15-flexible-duration button {
    min-height:38px;
    padding:0 15px;
    border:1px solid #d6d6d6;
    border-radius:999px;
    background:#fff;
    color:#222;
    font:inherit;
    font-size:12px;
    font-weight:500;
    cursor:pointer;
    transition:border-color .15s ease,background .15s ease,box-shadow .15s ease;
}
body.apd-marketplace-ui .apd15-date-flexibility button:hover,
body.apd-marketplace-ui .apd15-flexible-duration button:hover { border-color:#222; }
body.apd-marketplace-ui .apd15-date-flexibility button.is-active,
body.apd-marketplace-ui .apd15-flexible-duration button.is-active {
    border-color:#222;
    background:#f7f7f7;
    box-shadow:inset 0 0 0 1px #222;
}
body.apd-marketplace-ui .apd15-flexible-section { text-align:center; }
body.apd-marketplace-ui .apd15-flexible-section + .apd15-flexible-section { margin-top:44px; }
body.apd-marketplace-ui .apd15-flexible-section h3 {
    margin:0 0 18px;
    color:#222;
    font-size:22px;
    line-height:1.25;
    font-weight:650;
    letter-spacing:-.025em;
}
body.apd-marketplace-ui .apd15-flexible-duration {
    display:flex;
    align-items:center;
    justify-content:center;
    flex-wrap:wrap;
    gap:10px;
}
body.apd-marketplace-ui .apd15-flexible-duration button {
    min-height:45px;
    padding:0 20px;
    font-size:14px;
}
body.apd-marketplace-ui .apd15-flexible-months {
    display:grid;
    grid-auto-flow:column;
    grid-auto-columns:122px;
    gap:10px;
    overflow-x:auto;
    padding:2px 2px 9px;
    scroll-snap-type:x mandatory;
    scrollbar-width:thin;
}
body.apd-marketplace-ui .apd15-flexible-months > button {
    min-height:138px;
    padding:18px 10px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    scroll-snap-align:start;
    border:1px solid #d8d8d8;
    border-radius:18px;
    background:#fff;
    color:#222;
    font:inherit;
    cursor:pointer;
    transition:border-color .15s ease,box-shadow .15s ease,background .15s ease;
}
body.apd-marketplace-ui .apd15-flexible-months > button:hover { border-color:#222; }
body.apd-marketplace-ui .apd15-flexible-months > button.is-active {
    border-color:#222;
    background:#f7f7f7;
    box-shadow:inset 0 0 0 1px #222;
}
body.apd-marketplace-ui .apd15-flexible-months strong {
    margin-top:12px;
    font-size:14px;
    line-height:1.15;
    font-weight:650;
}
body.apd-marketplace-ui .apd15-flexible-months small {
    margin-top:4px;
    color:#555;
    font-size:12px;
}
body.apd-marketplace-ui .apd15-month-calendar {
    position:relative;
    width:35px;
    height:32px;
    display:block;
    border:2px solid #6b6b6b;
    border-radius:5px;
}
body.apd-marketplace-ui .apd15-month-calendar::before {
    content:"";
    position:absolute;
    left:-2px;
    right:-2px;
    top:7px;
    border-top:2px solid #6b6b6b;
}
body.apd-marketplace-ui .apd15-month-calendar i {
    position:absolute;
    top:-5px;
    width:3px;
    height:9px;
    border-radius:2px;
    background:#6b6b6b;
}
body.apd-marketplace-ui .apd15-month-calendar i:first-child { left:7px; }
body.apd-marketplace-ui .apd15-month-calendar i:nth-child(2) { right:7px; }
body.apd-marketplace-ui .apd15-month-calendar b {
    position:absolute;
    left:8px;
    right:8px;
    bottom:7px;
    height:5px;
    border-radius:2px;
    background:#b7b7b7;
}
body.apd-marketplace-ui .apd15-date-footer { margin-top:20px !important; }
body.apd-marketplace-ui .apd15-date-panel-heading { margin-bottom:0 !important; }

@media (min-width:768px) {
    body.apd-marketplace-ui .apd5-header {
        min-height:188px !important;
        border-bottom:1px solid #ebebeb !important;
        background:#fff !important;
        box-shadow:none !important;
    }
    body.apd-marketplace-ui .apd5-header-row {
        width:min(calc(100vw - 96px),1450px) !important;
        max-width:1450px !important;
        height:92px !important;
        min-height:92px !important;
        grid-template-columns:170px minmax(620px,1fr) 320px !important;
        gap:28px !important;
    }
    body.apd-marketplace-ui .apd5-logo {
        width:128px !important;
        min-width:128px !important;
        height:48px !important;
        display:flex !important;
        align-items:center !important;
    }
    body.apd-marketplace-ui .apd5-main-nav {
        align-self:stretch !important;
        gap:31px !important;
    }
    body.apd-marketplace-ui .apd5-main-nav a {
        position:relative !important;
        min-width:auto !important;
        min-height:92px !important;
        padding:10px 4px 8px !important;
        display:flex !important;
        flex-direction:row !important;
        align-items:center !important;
        justify-content:center !important;
        gap:9px !important;
        color:#4b4b4b !important;
        font-size:14px !important;
        line-height:1 !important;
        font-weight:500 !important;
        text-decoration:none !important;
    }
    body.apd-marketplace-ui .apd5-main-nav a:hover { color:#222 !important; }
    body.apd-marketplace-ui .apd5-main-nav a > span {
        width:43px !important;
        height:43px !important;
        flex:0 0 43px !important;
    }
    body.apd-marketplace-ui .apd5-main-nav a strong { font-weight:550 !important; }
    body.apd-marketplace-ui .apd5-main-nav a::after {
        left:2px !important;
        right:2px !important;
        bottom:5px !important;
        height:3px !important;
        background:#222 !important;
    }
    body.apd-marketplace-ui .apd5-main-nav a:not(.is-active)::after {
        transform:scaleX(0) !important;
        opacity:0 !important;
    }
    body.apd-marketplace-ui .apd5-main-nav a.is-active::after {
        transform:scaleX(1) !important;
        opacity:1 !important;
    }
    body.apd-marketplace-ui .apd5-header-actions { gap:10px !important; }
    body.apd-marketplace-ui .apd5-host-trigger {
        min-height:44px !important;
        padding:0 15px !important;
        border-radius:999px !important;
        font-size:13px !important;
        font-weight:600 !important;
    }
    body.apd-marketplace-ui .apd5-host-trigger:hover { background:#f5f5f5 !important; }
    body.apd-marketplace-ui .apd5-language-button {
        width:42px !important;
        height:42px !important;
        border-radius:50% !important;
        background:#f4f4f4 !important;
    }
    body.apd-marketplace-ui .apd5-account-button {
        min-width:80px !important;
        height:46px !important;
        padding:4px 5px 4px 13px !important;
        border:1px solid #ddd !important;
        border-radius:999px !important;
        background:#fff !important;
        box-shadow:none !important;
    }
    body.apd-marketplace-ui .apd5-account-button:hover { box-shadow:0 3px 12px rgba(0,0,0,.14) !important; }
    body.apd-marketplace-ui .apd5-account-button img,
    body.apd-marketplace-ui .apd5-account-button > span {
        width:36px !important;
        height:36px !important;
    }
    body.apd-marketplace-ui .apd5-header-search-row {
        min-height:96px !important;
        height:96px !important;
        padding:4px 24px 26px !important;
        display:flex !important;
        align-items:flex-start !important;
        justify-content:center !important;
    }
    body.apd-marketplace-ui .apd5-search {
        width:min(760px,calc(100vw - 170px)) !important;
        height:66px !important;
        grid-template-columns:1.13fr 1px .97fr 1px 1fr 62px !important;
        align-items:center !important;
        border:1px solid #ddd !important;
        border-radius:999px !important;
        background:#fff !important;
        box-shadow:0 4px 17px rgba(0,0,0,.13) !important;
        transition:background .18s ease,grid-template-columns .2s ease,box-shadow .2s ease !important;
    }
    body.apd-marketplace-ui .apd5-search.has-open-panel {
        grid-template-columns:1.13fr 1px .97fr 1px 1fr 108px !important;
        background:#ebebeb !important;
    }
    body.apd-marketplace-ui .apd5-search > i {
        width:1px !important;
        height:32px !important;
        background:#ddd !important;
    }
    body.apd-marketplace-ui .apd5-search-field > button {
        position:relative !important;
        z-index:1 !important;
        padding:0 25px !important;
        border-radius:999px !important;
        background:transparent !important;
        box-shadow:none !important;
        transform:none !important;
        transition:background .12s ease,box-shadow .15s ease !important;
    }
    body.apd-marketplace-ui .apd5-search-field > button:hover {
        background:#ddd !important;
        box-shadow:none !important;
    }
    body.apd-marketplace-ui .apd5-search-field.is-open > button {
        background:#fff !important;
        box-shadow:0 4px 14px rgba(0,0,0,.14) !important;
    }
    body.apd-marketplace-ui .apd5-search-field span {
        color:#222 !important;
        font-size:12px !important;
        line-height:1.1 !important;
        font-weight:700 !important;
    }
    body.apd-marketplace-ui .apd5-search-field strong {
        margin-top:5px !important;
        color:#717171 !important;
        font-size:13px !important;
        line-height:1.1 !important;
        font-weight:400 !important;
    }
    body.apd-marketplace-ui .apd5-search-submit {
        width:48px !important;
        height:48px !important;
        margin-right:7px !important;
        padding:0 !important;
        display:flex !important;
        align-items:center !important;
        justify-content:center !important;
        gap:7px !important;
        border:0 !important;
        border-radius:999px !important;
        background:var(--apd15-blue) !important;
        color:#fff !important;
        box-shadow:none !important;
        transition:width .2s ease,transform .15s ease,box-shadow .15s ease !important;
    }
    body.apd-marketplace-ui .apd5-search-submit .apd5-icon { width:20px !important; height:20px !important; }
    body.apd-marketplace-ui .apd5-search-submit span {
        display:none !important;
        color:#fff !important;
        font-size:14px !important;
        font-weight:700 !important;
    }
    body.apd-marketplace-ui .apd5-search.has-open-panel .apd5-search-submit {
        width:98px !important;
        padding:0 16px !important;
    }
    body.apd-marketplace-ui .apd5-search.has-open-panel .apd5-search-submit span { display:inline !important; }
    body.apd-marketplace-ui .apd5-search-submit:hover {
        transform:scale(1.03) !important;
        box-shadow:0 7px 18px rgba(15,111,232,.27) !important;
    }
    body.apd-marketplace-ui .apd5-search-panel {
        top:calc(100% + 14px) !important;
        border:1px solid #e4e4e4 !important;
        border-radius:28px !important;
        background:#fff !important;
        box-shadow:0 16px 46px rgba(0,0,0,.18) !important;
    }
    body.apd-marketplace-ui .apd5-location-panel {
        left:0 !important;
        width:410px !important;
        max-height:560px !important;
        padding:22px !important;
    }
    body.apd-marketplace-ui .apd5-date-panel {
        left:50% !important;
        width:850px !important;
        min-height:435px !important;
        padding:24px 28px 20px !important;
        transform:translateX(-50%) !important;
    }
    body.apd-marketplace-ui .apd5-date-panel.is-flexible-mode {
        width:850px !important;
        min-height:515px !important;
        padding-bottom:22px !important;
    }
    body.apd-marketplace-ui .apd5-guests-panel {
        right:0 !important;
        width:410px !important;
        padding:26px 28px !important;
    }
    body.apd-marketplace-ui .apd5-service-panel {
        right:0 !important;
        width:500px !important;
        padding:25px !important;
        display:flex !important;
        flex-wrap:wrap !important;
        align-content:flex-start !important;
        gap:10px !important;
    }
    body.apd-marketplace-ui .apd5-service-panel[hidden] { display:none !important; }
    body.apd-marketplace-ui .apd5-service-panel .apd5-panel-title { flex:0 0 100% !important; }
    body.apd-marketplace-ui .apd5-service-option {
        width:auto !important;
        min-height:40px !important;
        padding:0 14px !important;
        border:1px solid #ddd !important;
        border-radius:999px !important;
        gap:8px !important;
    }
    body.apd-marketplace-ui .apd5-service-option span {
        width:auto !important;
        height:auto !important;
        background:transparent !important;
        border-radius:0 !important;
    }
    body.apd-marketplace-ui .apd5-service-option .apd5-icon { width:16px !important; height:16px !important; }
    body.apd-marketplace-ui .apd5-panel-title { margin-bottom:16px !important; }
    body.apd-marketplace-ui .apd5-panel-title strong {
        color:#222 !important;
        font-size:16px !important;
        font-weight:650 !important;
        letter-spacing:-.015em !important;
    }
    body.apd-marketplace-ui .apd5-panel-title small { margin-top:4px !important; font-size:11px !important; }
    body.apd-marketplace-ui .apd5-panel-title button {
        width:32px !important;
        height:32px !important;
        background:#f2f2f2 !important;
    }
    body.apd-marketplace-ui .apd15-date-panel-heading { min-height:0 !important; }
    body.apd-marketplace-ui .apd15-date-panel-heading > div:first-child { visibility:hidden !important; height:0 !important; overflow:hidden !important; }
    body.apd-marketplace-ui .apd15-date-panel-heading > button { position:absolute !important; top:18px !important; right:20px !important; z-index:7 !important; }
    body.apd-marketplace-ui .apd5-panel-filter {
        height:48px !important;
        padding:0 14px !important;
        border:1px solid #ddd !important;
        border-radius:12px !important;
    }
    body.apd-marketplace-ui .apd5-panel-filter input { font-size:13px !important; }
    body.apd-marketplace-ui .apd5-destination-option {
        min-height:62px !important;
        grid-template-columns:48px minmax(0,1fr) !important;
        gap:13px !important;
        padding:6px 5px !important;
        border-radius:12px !important;
    }
    body.apd-marketplace-ui .apd5-destination-option > span {
        width:46px !important;
        height:46px !important;
        border-radius:12px !important;
        background:#eef5ff !important;
        color:#0f6fe8 !important;
    }
    body.apd-marketplace-ui .apd5-destination-option:nth-of-type(3n+1) > span { background:#fff1e8 !important; color:#e66a1f !important; }
    body.apd-marketplace-ui .apd5-destination-option:nth-of-type(3n+2) > span { background:#eef8e8 !important; color:#5d9d10 !important; }
    body.apd-marketplace-ui .apd5-destination-option strong { font-size:13px !important; font-weight:600 !important; }
    body.apd-marketplace-ui .apd5-destination-option small { font-size:11px !important; }
    body.apd-marketplace-ui .apd5-calendar-nav {
        margin:0 0 -36px !important;
        padding:0 !important;
    }
    body.apd-marketplace-ui .apd5-calendar-nav button {
        width:34px !important;
        height:34px !important;
        background:transparent !important;
        font-size:24px !important;
    }
    body.apd-marketplace-ui .apd5-calendar-nav button:hover { background:#f3f3f3 !important; }
    body.apd-marketplace-ui .apd5-calendar-months { gap:58px !important; }
    body.apd-marketplace-ui .apd5-calendar-month h3 {
        margin-bottom:15px !important;
        font-size:15px !important;
        font-weight:650 !important;
        text-transform:capitalize !important;
    }
    body.apd-marketplace-ui .apd5-calendar-weekdays span,
    body.apd-marketplace-ui .apd5-calendar-days button,
    body.apd-marketplace-ui .apd5-calendar-days > span {
        width:40px !important;
        height:40px !important;
        padding:0 !important;
        display:grid !important;
        place-items:center !important;
        font-size:12px !important;
    }
    body.apd-marketplace-ui .apd5-calendar-days button.is-in-range { border-radius:0 !important; background:#edf3fb !important; }
    body.apd-marketplace-ui .apd5-calendar-days button.is-selected,
    body.apd-marketplace-ui .apd5-calendar-days button.is-start,
    body.apd-marketplace-ui .apd5-calendar-days button.is-end {
        border-radius:50% !important;
        background:#222 !important;
        color:#fff !important;
    }
    body.apd-marketplace-ui .apd5-guest-row {
        min-height:88px !important;
        padding:16px 0 !important;
    }
    body.apd-marketplace-ui .apd5-guest-row strong { font-size:16px !important; font-weight:600 !important; }
    body.apd-marketplace-ui .apd5-guest-row span { max-width:215px !important; font-size:13px !important; line-height:1.28 !important; }
    body.apd-marketplace-ui .apd5-guest-row > div:last-child { gap:14px !important; }
    body.apd-marketplace-ui .apd5-guest-row button {
        width:34px !important;
        height:34px !important;
        border-color:#ddd !important;
        background:#f4f4f4 !important;
        font-size:20px !important;
    }
    body.apd-marketplace-ui .apd5-guest-row output { min-width:17px !important; text-align:center !important; font-size:15px !important; }
    body.apd-marketplace-ui .apd5-panel-footer button:last-child { background:var(--apd15-navy) !important; }

    /* Compact/detail headers keep the same visual language at a reduced scale. */
    body.apd-marketplace-ui .apd5-header.is-compact,
    body.apd-marketplace-ui .apd5-header.is-detail-context { min-height:82px !important; }
    body.apd-marketplace-ui .apd5-header.is-compact .apd5-header-row,
    body.apd-marketplace-ui .apd5-header.is-detail-context .apd5-header-row { height:82px !important; min-height:82px !important; }
    body.apd-marketplace-ui .apd5-header.is-compact .apd5-header-search-row,
    body.apd-marketplace-ui .apd5-header.is-detail-context .apd5-header-search-row {
        width:min(660px,calc(100vw - 650px)) !important;
        height:82px !important;
        min-height:82px !important;
        padding:14px 0 !important;
    }
    body.apd-marketplace-ui .apd5-header.is-compact .apd5-search,
    body.apd-marketplace-ui .apd5-header.is-detail-context .apd5-search {
        width:100% !important;
        height:52px !important;
        grid-template-columns:1.15fr 1px 1fr 1px .92fr 51px !important;
    }
    body.apd-marketplace-ui .apd5-header.is-compact .apd5-search.has-open-panel,
    body.apd-marketplace-ui .apd5-header.is-detail-context .apd5-search.has-open-panel {
        grid-template-columns:1.15fr 1px 1fr 1px .92fr 93px !important;
    }
    body.apd-marketplace-ui .apd5-header.is-compact .apd5-search-field > button,
    body.apd-marketplace-ui .apd5-header.is-detail-context .apd5-search-field > button {
        padding:0 17px !important;
    }
    body.apd-marketplace-ui .apd5-header.is-compact .apd5-search-field span,
    body.apd-marketplace-ui .apd5-header.is-detail-context .apd5-search-field span { display:none !important; }
    body.apd-marketplace-ui .apd5-header.is-compact .apd5-search-field strong,
    body.apd-marketplace-ui .apd5-header.is-detail-context .apd5-search-field strong {
        margin:0 !important;
        color:#222 !important;
        font-size:12px !important;
        font-weight:600 !important;
    }
    body.apd-marketplace-ui .apd5-header.is-compact .apd5-search-submit,
    body.apd-marketplace-ui .apd5-header.is-detail-context .apd5-search-submit {
        width:40px !important;
        height:40px !important;
        margin-right:5px !important;
    }
    body.apd-marketplace-ui .apd5-header.is-compact .apd5-search.has-open-panel .apd5-search-submit,
    body.apd-marketplace-ui .apd5-header.is-detail-context .apd5-search.has-open-panel .apd5-search-submit { width:84px !important; }
}

@media (min-width:768px) and (max-width:1180px) {
    body.apd-marketplace-ui .apd5-header-row {
        width:calc(100vw - 40px) !important;
        grid-template-columns:120px minmax(470px,1fr) 220px !important;
        gap:14px !important;
    }
    body.apd-marketplace-ui .apd5-logo img { width:102px !important; }
    body.apd-marketplace-ui .apd5-main-nav { gap:13px !important; }
    body.apd-marketplace-ui .apd5-main-nav a { font-size:12px !important; gap:5px !important; }
    body.apd-marketplace-ui .apd5-main-nav a > span { width:34px !important; height:34px !important; flex-basis:34px !important; }
    body.apd-marketplace-ui .apd5-host-trigger { display:none !important; }
    body.apd-marketplace-ui .apd5-header-actions { justify-content:flex-end !important; }
    body.apd-marketplace-ui .apd5-search { width:min(720px,calc(100vw - 80px)) !important; }
}

@media (max-width:767px) {
    body.apd-marketplace-ui .apd5-logo img {
        width:100px !important;
        height:auto !important;
        max-height:38px !important;
    }
    body.apd-marketplace-ui .apd5-main-nav a > span {
        width:31px !important;
        height:31px !important;
        flex:0 0 31px !important;
    }
    body.apd-marketplace-ui .apd5-main-nav a::after {
        bottom:0 !important;
        height:3px !important;
    }
    body.apd-marketplace-ui .apd5-search-panel {
        padding:22px 18px calc(92px + env(safe-area-inset-bottom)) !important;
        border-radius:0 !important;
    }
    body.apd-marketplace-ui .apd15-date-panel-heading > div:first-child { visibility:visible !important; height:auto !important; }
    body.apd-marketplace-ui .apd15-date-mode {
        width:min(100%,310px) !important;
        height:44px !important;
        margin:4px auto 22px !important;
    }
    body.apd-marketplace-ui .apd5-calendar-months {
        grid-template-columns:1fr !important;
        gap:34px !important;
    }
    body.apd-marketplace-ui .apd5-calendar-months .apd5-calendar-month:nth-child(2) { display:none !important; }
    body.apd-marketplace-ui .apd5-calendar-weekdays span,
    body.apd-marketplace-ui .apd5-calendar-days button,
    body.apd-marketplace-ui .apd5-calendar-days > span {
        width:auto !important;
        height:auto !important;
        aspect-ratio:1 !important;
        display:grid !important;
        place-items:center !important;
        font-size:13px !important;
    }
    body.apd-marketplace-ui .apd15-date-flexibility {
        flex-wrap:nowrap !important;
        overflow-x:auto !important;
        padding:2px 1px 8px !important;
        scrollbar-width:none !important;
    }
    body.apd-marketplace-ui .apd15-date-flexibility::-webkit-scrollbar { display:none !important; }
    body.apd-marketplace-ui .apd15-date-flexibility button { flex:0 0 auto !important; }
    body.apd-marketplace-ui .apd15-flexible-section { text-align:left !important; }
    body.apd-marketplace-ui .apd15-flexible-section + .apd15-flexible-section { margin-top:34px !important; }
    body.apd-marketplace-ui .apd15-flexible-section h3 { font-size:22px !important; }
    body.apd-marketplace-ui .apd15-flexible-duration { justify-content:flex-start !important; }
    body.apd-marketplace-ui .apd15-flexible-months {
        grid-auto-columns:min(42vw,145px) !important;
        margin-right:-18px !important;
        padding-right:18px !important;
    }
    body.apd-marketplace-ui .apd15-flexible-months > button { min-height:145px !important; }
    body.apd-marketplace-ui .apd5-guests-panel .apd5-guest-row { min-height:84px !important; }
    body.apd-marketplace-ui .apd5-guest-row strong { font-size:16px !important; }
    body.apd-marketplace-ui .apd5-guest-row span { font-size:13px !important; }
    body.apd-marketplace-ui .apd5-service-panel {
        display:flex !important;
        flex-wrap:wrap !important;
        align-content:flex-start !important;
        gap:10px !important;
    }
    body.apd-marketplace-ui .apd5-service-panel[hidden] { display:none !important; }
    body.apd-marketplace-ui .apd5-service-panel .apd5-panel-title { flex:0 0 100% !important; }
    body.apd-marketplace-ui .apd5-service-option {
        width:auto !important;
        min-height:42px !important;
        padding:0 14px !important;
        border:1px solid #ddd !important;
        border-radius:999px !important;
    }
}

@media (prefers-reduced-motion:reduce) {
    body.apd-marketplace-ui .apd5-search,
    body.apd-marketplace-ui .apd5-search-field > button,
    body.apd-marketplace-ui .apd5-search-submit,
    body.apd-marketplace-ui .apd5-search-separator,
    body.apd-marketplace-ui .apd15-date-mode button,
    body.apd-marketplace-ui .apd15-flexible-months > button { transition:none !important; }
}

/* ======================================================================
   APD 23.0 · Descubrimiento unificado inspirado en Airbnb 2026
   Portada, Alojamientos, Experiencias y Servicios comparten escala,
   navegación, buscador, carruseles y jerarquía con identidad visual APD.
   ====================================================================== */
body.apd-marketplace-ui {
    --apd23-content-max:1460px;
    --apd23-text:#222222;
    --apd23-muted:#6a6a6a;
    --apd23-line:#e5e5e5;
    color:var(--apd23-text) !important;
    font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif !important;
    font-feature-settings:"kern" 1,"liga" 1;
    text-rendering:optimizeLegibility;
}

body.apd-marketplace-ui .apd5-card.is-demo .apd5-card-media {
    outline:0 !important;
}

body.apd-marketplace-ui .apd5-favorite {
    transition:transform .14s ease,opacity .14s ease !important;
}
body.apd-marketplace-ui .apd5-favorite:hover { transform:scale(1.07) !important; }
body.apd-marketplace-ui .apd5-favorite:active { transform:scale(.92) !important; }
body.apd-marketplace-ui .apd5-favorite.is-favorite .apd5-icon {
    fill:#e31c5f !important;
    stroke:#fff !important;
}
body.apd-marketplace-ui .apd5-favorite.is-loading { opacity:.55 !important; cursor:wait !important; }

body.apd-marketplace-ui .apd23-discovery-page {
    width:min(calc(100% - 96px),var(--apd23-content-max)) !important;
    max-width:var(--apd23-content-max) !important;
    margin:0 auto !important;
    padding:43px 0 84px !important;
}

body.apd-marketplace-ui .apd23-rail {
    margin-top:43px !important;
}
body.apd-marketplace-ui .apd23-discovery-page > .apd23-rail:first-child,
body.apd-marketplace-ui .apd23-service-directory + .apd23-rail {
    margin-top:0 !important;
}
body.apd-marketplace-ui .apd23-service-directory + .apd23-rail {
    margin-top:34px !important;
}
body.apd-marketplace-ui .apd23-rail .apd5-section-head,
body.apd-marketplace-ui .apd23-service-directory .apd5-section-head {
    align-items:center !important;
    margin-bottom:13px !important;
}
body.apd-marketplace-ui .apd23-rail .apd5-section-head h2,
body.apd-marketplace-ui .apd23-rail .apd5-section-head h2 a,
body.apd-marketplace-ui .apd23-service-directory h1 {
    margin:0 !important;
    color:#222 !important;
    font-size:18px !important;
    line-height:1.22 !important;
    font-weight:650 !important;
    letter-spacing:-.025em !important;
    text-decoration:none !important;
}
body.apd-marketplace-ui .apd23-rail .apd5-section-head h2 span {
    display:inline-grid !important;
    width:22px !important;
    height:22px !important;
    place-items:center !important;
    margin-left:3px !important;
    border-radius:50% !important;
    background:#f2f2f2 !important;
    font-size:21px !important;
    line-height:1 !important;
    font-weight:400 !important;
    vertical-align:-1px !important;
}
body.apd-marketplace-ui .apd23-rail .apd5-section-head p {
    margin:4px 0 0 !important;
    color:#717171 !important;
    font-size:12px !important;
    line-height:1.25 !important;
    font-weight:400 !important;
}
body.apd-marketplace-ui .apd23-rail .apd5-rail-controls,
body.apd-marketplace-ui .apd23-service-directory .apd5-rail-controls {
    gap:7px !important;
}
body.apd-marketplace-ui .apd23-rail .apd5-rail-controls button,
body.apd-marketplace-ui .apd23-service-directory .apd5-rail-controls button {
    width:28px !important;
    height:28px !important;
    padding:0 !important;
    display:grid !important;
    place-items:center !important;
    border:0 !important;
    border-radius:50% !important;
    background:#f2f2f2 !important;
    color:#222 !important;
    font-size:18px !important;
    line-height:1 !important;
}
body.apd-marketplace-ui .apd23-rail .apd5-rail-controls button:disabled,
body.apd-marketplace-ui .apd23-service-directory .apd5-rail-controls button:disabled {
    color:#c8c8c8 !important;
    background:#fafafa !important;
    opacity:1 !important;
}

body.apd-marketplace-ui .apd23-collection-title {
    margin:39px 0 0 !important;
    color:#222 !important;
    font-size:28px !important;
    line-height:1.18 !important;
    font-weight:650 !important;
    letter-spacing:-.035em !important;
}
body.apd-marketplace-ui .apd23-collection-title + .apd23-rail {
    margin-top:27px !important;
}

body.apd-marketplace-ui .apd23-discovery-page .apd5-card-rail,
body.home.apd-marketplace-ui .apd5-card-rail {
    gap:12px !important;
    align-items:start !important;
    scroll-padding-inline:1px !important;
}
body.apd-marketplace-ui .apd23-discovery-page .apd5-card {
    width:100% !important;
    max-width:none !important;
}
body.apd-marketplace-ui .apd23-discovery-page .apd5-card-media,
body.home.apd-marketplace-ui .apd5-card-media {
    width:100% !important;
    aspect-ratio:1.05/1 !important;
    border-radius:15px !important;
    background:#f2f2f2 !important;
}
body.apd-marketplace-ui .apd23-discovery-page .apd5-card-body,
body.home.apd-marketplace-ui .apd5-card-body {
    width:100% !important;
    min-height:0 !important;
    padding:8px 2px 0 !important;
    box-sizing:border-box !important;
}
body.apd-marketplace-ui .apd23-discovery-page .apd5-card-title-row,
body.home.apd-marketplace-ui .apd5-card-title-row {
    min-height:0 !important;
}
body.apd-marketplace-ui .apd23-discovery-page .apd5-card-title-row h3,
body.home.apd-marketplace-ui .apd5-card-title-row h3 {
    width:100% !important;
    min-height:0 !important;
    max-height:32px !important;
    margin:0 !important;
    display:-webkit-box !important;
    -webkit-box-orient:vertical !important;
    -webkit-line-clamp:2 !important;
    overflow:hidden !important;
    white-space:normal !important;
    text-overflow:ellipsis !important;
    color:#222 !important;
    font-size:13px !important;
    line-height:16px !important;
    font-weight:600 !important;
    letter-spacing:-.012em !important;
}
body.apd-marketplace-ui .apd23-discovery-page .apd5-card-location,
body.home.apd-marketplace-ui .apd5-card-location {
    min-height:15px !important;
    margin:2px 0 0 !important;
    color:#717171 !important;
    font-size:11.5px !important;
    line-height:15px !important;
    font-weight:400 !important;
}
body.apd-marketplace-ui .apd23-discovery-page .apd5-stay-card .apd5-card-location,
body.home.apd-marketplace-ui .apd5-stay-card .apd5-card-location {
    display:none !important;
}
body.apd-marketplace-ui .apd23-discovery-page .apd5-card-price-row,
body.home.apd-marketplace-ui .apd5-card-price-row {
    min-height:16px !important;
    margin-top:2px !important;
    gap:4px !important;
    overflow:hidden !important;
}
body.apd-marketplace-ui .apd23-discovery-page .apd5-card-price,
body.apd-marketplace-ui .apd23-discovery-page .apd5-card-price small,
body.apd-marketplace-ui .apd23-discovery-page .apd5-card-rating,
body.home.apd-marketplace-ui .apd5-card-price,
body.home.apd-marketplace-ui .apd5-card-price small,
body.home.apd-marketplace-ui .apd5-card-rating {
    color:#222 !important;
    font-size:11.5px !important;
    line-height:16px !important;
    font-weight:450 !important;
}
body.apd-marketplace-ui .apd23-discovery-page .apd5-card-badge,
body.home.apd-marketplace-ui .apd5-card-badge {
    top:9px !important;
    left:9px !important;
    padding:5px 9px !important;
    background:rgba(255,255,255,.94) !important;
    color:#222 !important;
    font-size:9.5px !important;
    line-height:1.15 !important;
    font-weight:600 !important;
    box-shadow:0 1px 4px rgba(0,0,0,.08) !important;
}
body.apd-marketplace-ui .apd23-discovery-page .apd5-favorite,
body.home.apd-marketplace-ui .apd5-favorite {
    top:7px !important;
    right:7px !important;
}

body.apd-marketplace-ui .apd23-service-directory {
    margin:0 0 34px !important;
}
body.apd-marketplace-ui .apd23-service-category-rail {
    display:grid !important;
    grid-auto-flow:column !important;
    grid-auto-columns:138px !important;
    justify-content:start !important;
    gap:9px !important;
    overflow-x:auto !important;
    scrollbar-width:none !important;
}
body.apd-marketplace-ui .apd23-service-category-rail::-webkit-scrollbar { display:none !important; }
body.apd-marketplace-ui .apd23-service-category-rail a {
    min-width:0 !important;
    color:#222 !important;
    text-decoration:none !important;
}
body.apd-marketplace-ui .apd23-service-category-rail a > span {
    width:138px !important;
    height:138px !important;
    display:grid !important;
    place-items:center !important;
    border-radius:16px !important;
    background:#f7f7f7 !important;
    font-size:52px !important;
    line-height:1 !important;
    transition:transform .18s ease,background-color .18s ease !important;
}
body.apd-marketplace-ui .apd23-service-category-rail a:hover > span {
    transform:translateY(-2px) !important;
    background:#f1f1f1 !important;
}
body.apd-marketplace-ui .apd23-service-category-rail strong {
    display:block !important;
    margin:8px 3px 0 !important;
    overflow:hidden !important;
    color:#222 !important;
    font-size:12px !important;
    line-height:16px !important;
    font-weight:600 !important;
    white-space:nowrap !important;
    text-overflow:ellipsis !important;
}

@media (min-width:1180px) {
    body.apd-marketplace-ui .apd5-header.is-discovery-context {
        min-height:160px !important;
        height:160px !important;
    }
    body.apd-marketplace-ui .apd5-header.is-discovery-context .apd5-header-row {
        width:min(calc(100vw - 96px),var(--apd23-content-max)) !important;
        max-width:var(--apd23-content-max) !important;
        height:76px !important;
        min-height:76px !important;
        grid-template-columns:200px minmax(620px,1fr) 270px !important;
        gap:20px !important;
    }
    body.apd-marketplace-ui .apd5-header.is-discovery-context .apd5-logo,
    body.apd-marketplace-ui .apd5-header.is-discovery-context .apd5-logo img {
        width:96px !important;
        min-width:96px !important;
        height:40px !important;
    }
    body.apd-marketplace-ui .apd5-header.is-discovery-context .apd5-main-nav {
        height:76px !important;
        min-height:76px !important;
        gap:27px !important;
    }
    body.apd-marketplace-ui .apd5-header.is-discovery-context .apd5-main-nav a {
        height:76px !important;
        min-height:76px !important;
        padding:6px 4px 4px !important;
        gap:7px !important;
        color:#5b5b5b !important;
        font-size:12px !important;
        font-weight:500 !important;
    }
    body.apd-marketplace-ui .apd5-header.is-discovery-context .apd5-main-nav a.is-active {
        color:#222 !important;
    }
    body.apd-marketplace-ui .apd5-header.is-discovery-context .apd5-main-nav a > span {
        width:34px !important;
        height:34px !important;
        flex-basis:34px !important;
    }
    body.apd-marketplace-ui .apd5-header.is-discovery-context .apd5-main-nav a strong {
        font-weight:550 !important;
    }
    body.apd-marketplace-ui .apd5-header.is-discovery-context .apd5-main-nav a::after {
        left:3px !important;
        right:3px !important;
        bottom:0 !important;
        height:2px !important;
        background:#222 !important;
    }
    body.apd-marketplace-ui .apd5-header.is-discovery-context .apd5-header-actions {
        gap:8px !important;
    }
    body.apd-marketplace-ui .apd5-header.is-discovery-context .apd5-host-trigger {
        min-height:38px !important;
        padding:0 11px !important;
        color:#333 !important;
        font-size:12px !important;
        font-weight:600 !important;
    }
    body.apd-marketplace-ui .apd5-header.is-discovery-context .apd5-language-button,
    body.apd-marketplace-ui .apd5-header.is-discovery-context .apd5-account-button.is-guest {
        width:36px !important;
        min-width:36px !important;
        max-width:36px !important;
        height:36px !important;
        min-height:36px !important;
        padding:0 !important;
        display:grid !important;
        place-items:center !important;
        border:0 !important;
        border-radius:50% !important;
        background:#f5f5f5 !important;
        box-shadow:none !important;
    }
    body.apd-marketplace-ui .apd5-header.is-discovery-context .apd5-account-button.is-guest > span {
        display:none !important;
    }
    body.apd-marketplace-ui .apd5-header.is-discovery-context .apd5-account-button.is-guest > .apd5-icon {
        width:17px !important;
        height:17px !important;
    }
    body.apd-marketplace-ui .apd5-header.is-discovery-context .apd5-header-search-row {
        width:100% !important;
        height:84px !important;
        min-height:84px !important;
        padding:8px 24px 22px !important;
        align-items:flex-start !important;
    }
    body.apd-marketplace-ui .apd5-header.is-discovery-context .apd5-search {
        width:min(680px,calc(100vw - 180px)) !important;
        height:54px !important;
        grid-template-columns:1.12fr 1px .95fr 1px 1fr 52px !important;
        border:1px solid #ddd !important;
        box-shadow:0 3px 12px rgba(0,0,0,.13) !important;
    }
    body.apd-marketplace-ui .apd5-header.is-discovery-context .apd5-search-field > button {
        padding:0 24px !important;
    }
    body.apd-marketplace-ui .apd5-header.is-discovery-context .apd5-search-field span {
        color:#222 !important;
        font-size:10px !important;
        line-height:1.1 !important;
        font-weight:650 !important;
    }
    body.apd-marketplace-ui .apd5-header.is-discovery-context .apd5-search-field strong {
        margin-top:3px !important;
        color:#717171 !important;
        font-size:11.5px !important;
        line-height:1.15 !important;
        font-weight:400 !important;
    }
    body.apd-marketplace-ui .apd5-header.is-discovery-context .apd5-search-submit {
        width:42px !important;
        min-width:42px !important;
        max-width:42px !important;
        height:42px !important;
        min-height:42px !important;
        margin-right:6px !important;
        background:#0f6fe8 !important;
        box-shadow:0 3px 9px rgba(15,111,232,.25) !important;
    }
    body.apd-marketplace-ui .apd5-header.is-discovery-context .apd5-search-submit .apd5-icon {
        width:17px !important;
        height:17px !important;
    }

    body.home.apd-marketplace-ui .apd5-main,
    body.home.apd-marketplace-ui .apd5-footer-grid,
    body.home.apd-marketplace-ui .apd10-footer-meta,
    body.home.apd-marketplace-ui .apd5-footer-bottom {
        width:min(calc(100vw - 96px),var(--apd23-content-max)) !important;
        max-width:var(--apd23-content-max) !important;
    }
    body.home.apd-marketplace-ui .apd5-main {
        padding-top:43px !important;
    }
}

@media (min-width:1500px) {
    body.apd-marketplace-ui .apd23-discovery-page .apd5-card-rail,
    body.home.apd-marketplace-ui .apd5-card-rail {
        grid-auto-columns:calc((100% - 72px)/7) !important;
    }
}

@media (min-width:1180px) and (max-width:1499px) {
    body.apd-marketplace-ui .apd23-discovery-page,
    body.home.apd-marketplace-ui .apd5-main {
        width:calc(100% - 64px) !important;
    }
    body.apd-marketplace-ui .apd23-discovery-page .apd5-card-rail,
    body.home.apd-marketplace-ui .apd5-card-rail {
        grid-auto-columns:calc((100% - 60px)/6) !important;
    }
}

@media (max-width:767px) {
    body.apd-marketplace-ui .apd23-discovery-page {
        width:calc(100% - 24px) !important;
        padding:25px 0 86px !important;
    }
    body.apd-marketplace-ui .apd23-rail { margin-top:34px !important; }
    body.apd-marketplace-ui .apd23-rail .apd5-section-head h2,
    body.apd-marketplace-ui .apd23-rail .apd5-section-head h2 a,
    body.apd-marketplace-ui .apd23-service-directory h1 {
        font-size:18px !important;
    }
    body.apd-marketplace-ui .apd23-rail .apd5-section-head p {
        font-size:12px !important;
    }
    body.apd-marketplace-ui .apd23-collection-title {
        margin-top:35px !important;
        font-size:25px !important;
    }
    body.apd-marketplace-ui .apd23-discovery-page .apd5-card-rail {
        width:calc(100vw - 12px) !important;
        grid-auto-columns:min(72vw,280px) !important;
        gap:12px !important;
        padding-right:16px !important;
    }
    body.apd-marketplace-ui .apd23-discovery-page .apd5-card-title-row h3,
    body.apd-marketplace-ui .apd23-discovery-page .apd5-card-location,
    body.apd-marketplace-ui .apd23-discovery-page .apd5-card-price,
    body.apd-marketplace-ui .apd23-discovery-page .apd5-card-price small,
    body.apd-marketplace-ui .apd23-discovery-page .apd5-card-rating {
        font-size:13px !important;
    }
    body.apd-marketplace-ui .apd23-service-category-rail {
        width:calc(100vw - 12px) !important;
        grid-auto-columns:128px !important;
        padding-right:16px !important;
    }
    body.apd-marketplace-ui .apd23-service-category-rail a > span {
        width:128px !important;
        height:128px !important;
        font-size:48px !important;
    }
}


/* ======================================================================
   APD 15.4 — RESÚMENES DEL BUSCADOR Y SUBRAYADO FIJO
   ====================================================================== */
body.apd-marketplace-ui .apd5-main-nav a::after {
    transform:none !important;
    transform-origin:center !important;
    transition:none !important;
    animation:none !important;
    opacity:0 !important;
    visibility:hidden !important;
}
body.apd-marketplace-ui .apd5-main-nav a.is-active::after {
    transform:none !important;
    opacity:1 !important;
    visibility:visible !important;
}
body.apd-marketplace-ui .apd5-main-nav a:not(.is-active)::after {
    transform:none !important;
    opacity:0 !important;
    visibility:hidden !important;
}

@media (min-width:768px) {
    body.apd-marketplace-ui .apd5-search-field > button {
        align-items:flex-start !important;
        justify-content:center !important;
        text-align:left !important;
    }
    body.apd-marketplace-ui .apd5-search-field span {
        width:100% !important;
        color:#222 !important;
        font-size:12px !important;
        line-height:1.05 !important;
        font-weight:650 !important;
        text-align:left !important;
    }
    body.apd-marketplace-ui .apd5-search-field strong {
        width:100% !important;
        margin-top:6px !important;
        color:#717171 !important;
        font-size:14px !important;
        line-height:1.08 !important;
        font-weight:400 !important;
        letter-spacing:-.01em !important;
        text-align:left !important;
        overflow:hidden !important;
        text-overflow:ellipsis !important;
        white-space:nowrap !important;
    }
    body.apd-marketplace-ui .apd5-search-field.has-value strong {
        color:#222 !important;
        font-size:14px !important;
        font-weight:650 !important;
    }
    body.apd-marketplace-ui .apd5-search-field[data-search-field="guests"] strong {
        padding-right:2px !important;
    }
}

@media (max-width:767px) {
    body.apd-marketplace-ui .apd5-main-nav a::after,
    body.apd-marketplace-ui .apd5-main-nav a.is-active::after,
    body.apd-marketplace-ui .apd5-main-nav a:not(.is-active)::after {
        transition:none !important;
        animation:none !important;
        transform:none !important;
    }
}


/* ========================================================================
   APD 15.5 · Botones del bloque anfitrión y acceso mediante modal APD
   ======================================================================== */
body.home .apd5-host-banner .apd5-host-actions {
    display:flex !important;
    align-items:center !important;
    flex-wrap:wrap !important;
    gap:12px !important;
    margin-top:24px !important;
}
body.home .apd5-host-banner .apd5-host-actions a {
    position:relative !important;
    isolation:isolate !important;
    min-height:48px !important;
    padding:0 22px !important;
    border-width:1px !important;
    border-style:solid !important;
    border-radius:999px !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:8px !important;
    color:#fff !important;
    background:rgba(255,255,255,.03) !important;
    box-shadow:0 7px 18px rgba(0,20,55,.14) !important;
    font-size:14px !important;
    line-height:1 !important;
    font-weight:800 !important;
    text-decoration:none !important;
    cursor:pointer !important;
    overflow:hidden !important;
    transform:translateY(0) scale(1) !important;
    transition:transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease !important;
    -webkit-tap-highlight-color:transparent !important;
}
body.home .apd5-host-banner .apd5-host-actions a::after {
    content:"" !important;
    position:absolute !important;
    inset:0 !important;
    z-index:-1 !important;
    border-radius:inherit !important;
    background:linear-gradient(110deg,transparent 18%,rgba(255,255,255,.22) 48%,transparent 78%) !important;
    opacity:0 !important;
    transform:translateX(-115%) !important;
    transition:transform .42s ease, opacity .18s ease !important;
}
body.home .apd5-host-banner .apd5-host-actions a:hover {
    color:#fff !important;
    background:rgba(255,255,255,.10) !important;
    border-color:rgba(255,255,255,.72) !important;
    box-shadow:0 13px 28px rgba(0,20,55,.24) !important;
    transform:translateY(-2px) scale(1.015) !important;
}
body.home .apd5-host-banner .apd5-host-actions a:hover::after {
    opacity:1 !important;
    transform:translateX(115%) !important;
}
body.home .apd5-host-banner .apd5-host-actions a:active {
    box-shadow:0 5px 12px rgba(0,20,55,.20) !important;
    transform:translateY(1px) scale(.985) !important;
    transition-duration:.06s !important;
}
body.home .apd5-host-banner .apd5-host-actions a:focus-visible {
    outline:3px solid rgba(255,255,255,.95) !important;
    outline-offset:4px !important;
}
body.home .apd5-host-banner .apd5-host-actions a.is-primary {
    color:#102d48 !important;
    border-color:#9df22f !important;
    background:#9df22f !important;
    box-shadow:0 9px 22px rgba(116,192,0,.30) !important;
}
body.home .apd5-host-banner .apd5-host-actions a.is-primary:hover {
    color:#0b2945 !important;
    border-color:#b5ff52 !important;
    background:#b5ff52 !important;
    box-shadow:0 14px 30px rgba(116,192,0,.40) !important;
}
body.home .apd5-host-banner .apd5-host-actions a.is-primary:focus-visible {
    outline-color:#d9ff9e !important;
}
@media (max-width:767px) {
    body.home .apd5-host-banner .apd5-host-actions {
        align-items:stretch !important;
    }
    body.home .apd5-host-banner .apd5-host-actions a {
        min-width:min(100%,240px) !important;
    }
}
@media (prefers-reduced-motion:reduce) {
    body.home .apd5-host-banner .apd5-host-actions a,
    body.home .apd5-host-banner .apd5-host-actions a::after {
        transition:none !important;
    }
}


/* ========================================================================
   APD 15.6 · Destino cercano instantáneo y buscador estable al hacer scroll
   ======================================================================== */
@media (min-width:1180px) {
    /* En la portada no se modifica la geometría del encabezado al desplazarse. */
    body.home.apd-marketplace-ui .apd5-header,
    body.home.apd-marketplace-ui .apd5-header-row,
    body.home.apd-marketplace-ui .apd5-header-search-row,
    body.home.apd-marketplace-ui .apd5-search {
        transition:none !important;
        animation:none !important;
    }

    body.home.apd-marketplace-ui .apd5-header-search-row {
        transform:none !important;
        will-change:auto !important;
    }
}

body.apd-marketplace-ui .apd5-destination-option.is-selected {
    background:#f2f7ff !important;
}
body.apd-marketplace-ui .apd5-destination-option.is-locating > span {
    position:relative !important;
}
body.apd-marketplace-ui .apd5-destination-option.is-locating > span::after {
    content:"" !important;
    position:absolute !important;
    right:-2px !important;
    bottom:-2px !important;
    width:10px !important;
    height:10px !important;
    border:2px solid #fff !important;
    border-radius:50% !important;
    background:#7cc70a !important;
    box-shadow:0 1px 4px rgba(13,43,108,.18) !important;
}

/* ========================================================================
   APD 15.10 · Mismo encabezado y scroll en Todo, Alojamientos, Experiencias y Servicios
   ======================================================================== */
@media (min-width:1180px) {
    body.apd-marketplace-ui {
        --apd159-header-max: 1800px;
        --apd159-header-side: 128px;
    }

    /* Estado expandido: logo a la izquierda, navegación centrada y acciones
       a la derecha, usando el mismo ancho útil que la referencia. */
    body.apd-marketplace-ui .apd5-header.is-discovery-context {
        position:sticky !important;
        top:0 !important;
        z-index:5000 !important;
        min-height:196px !important;
        height:196px !important;
        overflow:visible !important;
        background:#fff !important;
        border-bottom:1px solid #e7e7e7 !important;
        box-shadow:none !important;
        backdrop-filter:none !important;
        -webkit-backdrop-filter:none !important;
    }

    body.apd-marketplace-ui .apd5-header.is-discovery-context .apd5-header-row {
        width:min(calc(100vw - var(--apd159-header-side)),var(--apd159-header-max)) !important;
        max-width:var(--apd159-header-max) !important;
        height:82px !important;
        min-height:82px !important;
        grid-template-columns:160px minmax(720px,1fr) 300px !important;
        gap:24px !important;
        margin:0 auto !important;
    }

    body.apd-marketplace-ui .apd5-header.is-discovery-context .apd5-logo {
        width:108px !important;
        min-width:108px !important;
        height:44px !important;
        justify-self:start !important;
        align-self:center !important;
    }
    body.apd-marketplace-ui .apd5-header.is-discovery-context .apd5-logo img {
        width:108px !important;
        height:44px !important;
        object-fit:contain !important;
        object-position:left center !important;
        image-rendering:auto !important;
        transform:translateZ(0) !important;
    }

    body.apd-marketplace-ui .apd5-header.is-discovery-context .apd5-main-nav {
        height:82px !important;
        min-height:82px !important;
        align-self:center !important;
        justify-self:center !important;
        justify-content:center !important;
        gap:28px !important;
    }
    body.apd-marketplace-ui .apd5-header.is-discovery-context .apd5-main-nav a {
        min-height:82px !important;
        height:82px !important;
        padding:7px 5px 5px !important;
        gap:8px !important;
        font-size:13px !important;
        font-weight:550 !important;
    }
    body.apd-marketplace-ui .apd5-header.is-discovery-context .apd5-main-nav a > span {
        width:38px !important;
        height:38px !important;
        flex:0 0 38px !important;
    }
    body.apd-marketplace-ui .apd5-header.is-discovery-context .apd5-main-nav a strong {
        font-weight:550 !important;
    }
    body.apd-marketplace-ui .apd5-header.is-discovery-context .apd5-main-nav a::after {
        left:4px !important;
        right:4px !important;
        bottom:1px !important;
        height:3px !important;
        border-radius:3px !important;
        transform-origin:center !important;
        transition:none !important;
    }

    body.apd-marketplace-ui .apd5-header.is-discovery-context .apd5-header-actions {
        justify-self:end !important;
        gap:9px !important;
    }
    body.apd-marketplace-ui .apd5-header.is-discovery-context .apd5-host-trigger {
        min-height:42px !important;
        padding:0 13px !important;
        font-size:13px !important;
        font-weight:600 !important;
    }
    body.apd-marketplace-ui .apd5-header.is-discovery-context .apd5-language-button {
        width:40px !important;
        height:40px !important;
        background:#f5f5f5 !important;
    }
    body.apd-marketplace-ui .apd5-header.is-discovery-context .apd5-account-button {
        min-width:76px !important;
        height:44px !important;
    }
    body.apd-marketplace-ui .apd5-header.is-discovery-context .apd5-account-button img,
    body.apd-marketplace-ui .apd5-header.is-discovery-context .apd5-account-button > span {
        width:34px !important;
        height:34px !important;
    }

    body.apd-marketplace-ui .apd5-header.is-discovery-context .apd5-header-search-row {
        position:static !important;
        inset:auto !important;
        width:100% !important;
        height:114px !important;
        min-height:114px !important;
        padding:16px 24px 31px !important;
        display:flex !important;
        align-items:flex-start !important;
        justify-content:center !important;
        transform:none !important;
        pointer-events:auto !important;
    }
    body.apd-marketplace-ui .apd5-header.is-discovery-context .apd5-search {
        width:min(850px,calc(100vw - 150px)) !important;
        height:66px !important;
        grid-template-columns:1.14fr 1px .97fr 1px 1fr 62px !important;
        border:1px solid #ddd !important;
        border-radius:999px !important;
        background:#fff !important;
        box-shadow:0 5px 18px rgba(0,0,0,.13) !important;
        transform:none !important;
    }
    body.apd-marketplace-ui .apd5-header.is-discovery-context .apd5-search-field > button {
        padding:0 25px !important;
    }
    body.apd-marketplace-ui .apd5-header.is-discovery-context .apd5-search-field span {
        font-size:11px !important;
        font-weight:700 !important;
    }
    body.apd-marketplace-ui .apd5-header.is-discovery-context .apd5-search-field strong {
        margin-top:4px !important;
        font-size:13px !important;
        font-weight:450 !important;
    }
    body.apd-marketplace-ui .apd5-header.is-discovery-context .apd5-search-submit {
        width:48px !important;
        height:48px !important;
        margin-right:7px !important;
    }

    /* Estado compacto al desplazarse. El buscador permanece centrado y cambia
       de escala simétricamente: nunca se desplaza desde un costado. */
    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact {
        position:fixed !important;
        inset:0 0 auto 0 !important;
        min-height:72px !important;
        height:72px !important;
        background:rgba(255,255,255,.985) !important;
        border-bottom:1px solid #e6e6e6 !important;
        box-shadow:0 2px 14px rgba(0,0,0,.10) !important;
        backdrop-filter:saturate(180%) blur(16px) !important;
        -webkit-backdrop-filter:saturate(180%) blur(16px) !important;
    }
    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact .apd5-header-row {
        width:min(calc(100vw - var(--apd159-header-side)),var(--apd159-header-max)) !important;
        max-width:var(--apd159-header-max) !important;
        height:72px !important;
        min-height:72px !important;
        grid-template-columns:160px minmax(720px,1fr) 300px !important;
    }
    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact .apd5-logo,
    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact .apd5-logo img {
        width:98px !important;
        height:38px !important;
        opacity:1 !important;
        visibility:visible !important;
        transform:none !important;
    }
    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact .apd5-main-nav {
        opacity:0 !important;
        visibility:hidden !important;
        pointer-events:none !important;
        transform:none !important;
    }
    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact .apd5-header-actions {
        opacity:1 !important;
        visibility:visible !important;
        transform:none !important;
    }
    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact .apd5-header-search-row {
        position:absolute !important;
        top:0 !important;
        left:50% !important;
        right:auto !important;
        bottom:auto !important;
        z-index:6 !important;
        width:min(520px,calc(100vw - 700px)) !important;
        height:72px !important;
        min-height:72px !important;
        padding:10px 0 !important;
        transform:translateX(-50%) !important;
        pointer-events:none !important;
    }
    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact .apd5-search {
        width:100% !important;
        height:52px !important;
        grid-template-columns:1.15fr 1px 1fr 1px .92fr 51px !important;
        box-shadow:0 3px 13px rgba(0,0,0,.13) !important;
        pointer-events:auto !important;
        transform:none !important;
    }
    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact .apd5-search.has-open-panel {
        grid-template-columns:1.15fr 1px 1fr 1px .92fr 88px !important;
    }
    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact .apd5-search-field > button {
        padding:0 16px !important;
        flex-direction:row !important;
        align-items:center !important;
    }
    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact .apd5-search-field span {
        display:none !important;
    }
    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact .apd5-search-field strong {
        margin:0 !important;
        color:#222 !important;
        font-size:12px !important;
        font-weight:600 !important;
        white-space:nowrap !important;
        overflow:hidden !important;
        text-overflow:ellipsis !important;
    }
    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact .apd5-search-submit {
        width:40px !important;
        height:40px !important;
        margin-right:5px !important;
    }
    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact .apd5-search.has-open-panel .apd5-search-submit {
        width:78px !important;
    }

    /* Solo se animan altura, escala y opacidad. Las coordenadas horizontales
       no tienen transición para evitar el efecto de izquierda a derecha. */
    body.apd-marketplace-ui .apd5-header.is-discovery-context.apd-header-ready {
        transition:height .20s ease,min-height .20s ease,box-shadow .20s ease,background-color .20s ease !important;
    }
    body.apd-marketplace-ui .apd5-header.is-discovery-context.apd-header-ready .apd5-header-row {
        transition:height .20s ease,min-height .20s ease !important;
    }
    body.apd-marketplace-ui .apd5-header.is-discovery-context.apd-header-ready .apd5-main-nav {
        transition:opacity .12s ease,visibility .12s linear !important;
    }
    body.apd-marketplace-ui .apd5-header.is-discovery-context.apd-header-ready .apd5-logo,
    body.apd-marketplace-ui .apd5-header.is-discovery-context.apd-header-ready .apd5-logo img {
        transition:width .18s ease,height .18s ease,opacity .12s ease !important;
    }
    body.apd-marketplace-ui .apd5-header.is-discovery-context.apd-header-ready .apd5-header-search-row {
        transition:width .18s ease,height .20s ease,min-height .20s ease,padding .20s ease !important;
    }
    body.apd-marketplace-ui .apd5-header.is-discovery-context.apd-header-ready .apd5-search {
        transition:width .18s ease,height .18s ease,box-shadow .18s ease,grid-template-columns .18s ease,background-color .18s ease !important;
    }
}

/* El mismo layout expandido/compacto se aplica a todas las páginas de
   descubrimiento. is-detail-context queda excluido por diseño. */
@media (min-width:1180px) and (max-width:1500px) {
    body.apd-marketplace-ui {
        --apd159-header-side:64px;
    }
    body.apd-marketplace-ui .apd5-header.is-discovery-context .apd5-header-row,
    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact .apd5-header-row {
        grid-template-columns:130px minmax(620px,1fr) 260px !important;
        gap:14px !important;
    }
    body.apd-marketplace-ui .apd5-header.is-discovery-context .apd5-main-nav { gap:18px !important; }
    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact .apd5-header-search-row {
        width:min(500px,calc(100vw - 560px)) !important;
    }
}

@media (prefers-reduced-motion:reduce) {
    body.apd-marketplace-ui .apd5-header.is-discovery-context,
    body.apd-marketplace-ui .apd5-header.is-discovery-context *,
    body.apd-marketplace-ui .apd5-header.is-discovery-context .apd5-header-search-row,
    body.apd-marketplace-ui .apd5-header.is-discovery-context .apd5-search {
        transition:none !important;
    }
}

/* ==========================================================================
   APD 15.11 · Scroll estable sin rebote al volver al inicio
   ========================================================================== */
@media (min-width:1180px) {
    /* Durante el único cuadro en que el encabezado vuelve de fijo/compacto a
       sticky/expandido, las dimensiones se aplican de inmediato. De este modo
       el separador y el encabezado intercambian exactamente la misma altura y
       no alteran la posición vertical del documento. */
    body.apd-marketplace-ui .apd5-header.is-discovery-context.apd-header-stabilizing,
    body.apd-marketplace-ui .apd5-header.is-discovery-context.apd-header-stabilizing .apd5-header-row,
    body.apd-marketplace-ui .apd5-header.is-discovery-context.apd-header-stabilizing .apd5-logo,
    body.apd-marketplace-ui .apd5-header.is-discovery-context.apd-header-stabilizing .apd5-logo img,
    body.apd-marketplace-ui .apd5-header.is-discovery-context.apd-header-stabilizing .apd5-main-nav,
    body.apd-marketplace-ui .apd5-header.is-discovery-context.apd-header-stabilizing .apd5-header-search-row,
    body.apd-marketplace-ui .apd5-header.is-discovery-context.apd-header-stabilizing .apd5-search {
        transition:none !important;
    }
}

/* ========================================================================== 
   APD 15.12 · Botón Buscar con proporción, sombra y expansión tipo Airbnb
   ========================================================================== */
@media (min-width:768px) {
    body.apd-marketplace-ui .apd5-header.is-discovery-context .apd5-search {
        overflow:visible !important;
    }

    body.apd-marketplace-ui .apd5-header.is-discovery-context .apd5-search-submit {
        box-sizing:border-box !important;
        width:48px !important;
        min-width:48px !important;
        max-width:48px !important;
        height:48px !important;
        min-height:48px !important;
        margin:0 8px 0 0 !important;
        padding:0 !important;
        justify-self:end !important;
        align-self:center !important;
        flex:0 0 auto !important;
        overflow:visible !important;
        white-space:nowrap !important;
        border:0 !important;
        border-radius:999px !important;
        background:#0f6fe8 !important;
        color:#fff !important;
        box-shadow:0 3px 10px rgba(15,111,232,.22) !important;
        transform:none !important;
        transition:width .18s ease,min-width .18s ease,max-width .18s ease,
                   background-color .16s ease,box-shadow .16s ease,transform .12s ease !important;
    }

    body.apd-marketplace-ui .apd5-header.is-discovery-context .apd5-search-submit .apd5-icon {
        width:20px !important;
        min-width:20px !important;
        height:20px !important;
        flex:0 0 20px !important;
        stroke-width:2.4 !important;
    }

    body.apd-marketplace-ui .apd5-header.is-discovery-context .apd5-search-submit span {
        display:none !important;
        min-width:0 !important;
        margin:0 !important;
        color:#fff !important;
        font-size:14px !important;
        line-height:1 !important;
        font-weight:700 !important;
        letter-spacing:-.01em !important;
        white-space:nowrap !important;
        overflow:visible !important;
    }

    body.apd-marketplace-ui .apd5-header.is-discovery-context .apd5-search.has-open-panel {
        grid-template-columns:1.14fr 1px .97fr 1px 1fr 120px !important;
    }

    body.apd-marketplace-ui .apd5-header.is-discovery-context .apd5-search.has-open-panel .apd5-search-submit {
        width:104px !important;
        min-width:104px !important;
        max-width:104px !important;
        padding:0 17px !important;
        gap:8px !important;
        box-shadow:0 4px 12px rgba(15,111,232,.30) !important;
    }

    body.apd-marketplace-ui .apd5-header.is-discovery-context .apd5-search.has-open-panel .apd5-search-submit span {
        display:inline-block !important;
    }

    body.apd-marketplace-ui .apd5-header.is-discovery-context .apd5-search-submit:hover {
        background:#0b63d4 !important;
        box-shadow:0 6px 16px rgba(15,111,232,.34) !important;
        transform:scale(1.025) !important;
    }

    body.apd-marketplace-ui .apd5-header.is-discovery-context .apd5-search-submit:active {
        background:#0958bd !important;
        box-shadow:0 2px 8px rgba(15,111,232,.24) !important;
        transform:scale(.97) !important;
    }

    body.apd-marketplace-ui .apd5-header.is-discovery-context .apd5-search-submit:focus-visible {
        outline:3px solid rgba(15,111,232,.24) !important;
        outline-offset:3px !important;
    }

    /* En el encabezado compacto mantiene la misma lógica, sin recortes. */
    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact .apd5-search {
        overflow:visible !important;
    }

    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact .apd5-search-submit {
        width:40px !important;
        min-width:40px !important;
        max-width:40px !important;
        height:40px !important;
        min-height:40px !important;
        margin-right:6px !important;
        padding:0 !important;
    }

    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact .apd5-search.has-open-panel {
        grid-template-columns:1.15fr 1px 1fr 1px .92fr 104px !important;
    }

    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact .apd5-search.has-open-panel .apd5-search-submit {
        width:92px !important;
        min-width:92px !important;
        max-width:92px !important;
        padding:0 14px !important;
        gap:7px !important;
    }

    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact .apd5-search-submit .apd5-icon {
        width:18px !important;
        min-width:18px !important;
        height:18px !important;
        flex-basis:18px !important;
    }

    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact .apd5-search-submit span {
        font-size:13px !important;
    }
}


/* ========================================================================== 
   APD 15.15 · Popovers del buscador al estilo Airbnb en encabezado compacto
   ========================================================================== */
@media (min-width:768px) {
    /* El fondo se oscurece en escritorio igual que en Airbnb. El encabezado y
       el buscador permanecen nítidos, por encima de la capa. */
    body.apd-marketplace-ui .apd5-header {
        isolation:isolate !important;
    }
    body.apd-marketplace-ui .apd5-header-row,
    body.apd-marketplace-ui .apd5-header-search-row {
        position:relative !important;
        z-index:3 !important;
    }
    body.apd-marketplace-ui .apd5-search {
        z-index:6 !important;
    }
    body.apd-marketplace-ui .apd5-search-backdrop:not([hidden]) {
        position:fixed !important;
        inset:0 !important;
        z-index:4990 !important;
        display:block !important;
        background:rgba(0,0,0,.30) !important;
        opacity:1 !important;
        visibility:visible !important;
        pointer-events:auto !important;
        backdrop-filter:none !important;
        -webkit-backdrop-filter:none !important;
    }
    body.apd-marketplace-ui .apd5-search-panel {
        z-index:9 !important;
        overflow:hidden !important;
        border:1px solid #e3e3e3 !important;
        border-radius:28px !important;
        background:#fff !important;
        box-shadow:0 18px 42px rgba(0,0,0,.20) !important;
    }

    /* Destinos: panel limpio, sin un segundo campo ni botón de cierre. */
    body.apd-marketplace-ui .apd5-location-panel {
        left:0 !important;
        right:auto !important;
        width:360px !important;
        max-height:550px !important;
        padding:25px 18px 18px !important;
        overflow-y:auto !important;
        transform:none !important;
        scrollbar-width:thin !important;
        scrollbar-color:#9b9b9b transparent !important;
    }
    body.apd-marketplace-ui .apd5-location-panel .apd5-panel-title {
        margin:0 7px 13px !important;
    }
    body.apd-marketplace-ui .apd5-location-panel .apd5-panel-title strong {
        font-size:14px !important;
        line-height:1.25 !important;
        font-weight:500 !important;
    }
    body.apd-marketplace-ui .apd5-location-panel .apd5-panel-title button,
    body.apd-marketplace-ui .apd5-location-panel .apd5-panel-filter {
        display:none !important;
    }
    body.apd-marketplace-ui .apd5-location-panel .apd5-destination-option {
        min-height:66px !important;
        padding:5px 7px !important;
        border-radius:14px !important;
    }
    body.apd-marketplace-ui .apd5-location-panel .apd5-destination-option:hover,
    body.apd-marketplace-ui .apd5-location-panel .apd5-destination-option:focus-visible {
        background:#f7f7f7 !important;
    }
    body.apd-marketplace-ui .apd5-location-panel .apd5-destination-option > span {
        width:48px !important;
        height:48px !important;
        border-radius:13px !important;
    }
    body.apd-marketplace-ui .apd5-location-panel .apd5-destination-option strong {
        font-size:13px !important;
        line-height:1.2 !important;
        font-weight:500 !important;
    }
    body.apd-marketplace-ui .apd5-location-panel .apd5-destination-option small {
        margin-top:3px !important;
        color:#717171 !important;
        font-size:11.5px !important;
        line-height:1.25 !important;
    }

    /* Fechas: el panel ocupa exactamente el ancho del buscador, sin el pie
       adicional de APD. La selección se mantiene abierta hasta hacer clic
       fuera, igual que en la referencia. */
    body.apd-marketplace-ui .apd5-date-panel,
    body.apd-marketplace-ui .apd5-date-panel.is-flexible-mode {
        left:0 !important;
        right:auto !important;
        width:100% !important;
        min-height:0 !important;
        padding:24px 28px 27px !important;
        transform:none !important;
        overflow:visible !important;
    }
    body.apd-marketplace-ui .apd5-date-panel .apd15-date-panel-heading,
    body.apd-marketplace-ui .apd5-date-panel .apd5-panel-footer {
        display:none !important;
    }
    body.apd-marketplace-ui .apd5-date-panel .apd15-date-mode {
        width:270px !important;
        height:40px !important;
        margin:0 auto 18px !important;
        padding:3px !important;
        border-radius:999px !important;
        background:#ebebeb !important;
    }
    body.apd-marketplace-ui .apd5-date-panel .apd15-date-mode button {
        font-size:12px !important;
        font-weight:500 !important;
    }
    body.apd-marketplace-ui .apd5-date-panel .apd5-calendar-months {
        grid-template-columns:repeat(2,minmax(0,1fr)) !important;
        gap:52px !important;
    }
    body.apd-marketplace-ui .apd5-date-panel .apd5-calendar-month h3 {
        margin-bottom:14px !important;
        font-size:14px !important;
        font-weight:600 !important;
    }
    body.apd-marketplace-ui .apd5-date-panel .apd5-calendar-weekdays span,
    body.apd-marketplace-ui .apd5-date-panel .apd5-calendar-days button,
    body.apd-marketplace-ui .apd5-date-panel .apd5-calendar-days > span {
        width:39px !important;
        height:39px !important;
        font-size:12px !important;
    }
    body.apd-marketplace-ui .apd5-date-panel .apd15-date-flexibility {
        margin-top:19px !important;
        padding-top:18px !important;
        border-top:0 !important;
    }
    body.apd-marketplace-ui .apd5-date-panel .apd15-date-flexibility button {
        min-height:34px !important;
        padding:0 13px !important;
        font-size:11px !important;
        font-weight:500 !important;
    }

    /* Viajeros: ancho y alineación de Airbnb, sin encabezado ni botón Listo. */
    body.apd-marketplace-ui .apd5-guests-panel {
        right:0 !important;
        left:auto !important;
        width:385px !important;
        padding:20px 27px !important;
        transform:none !important;
    }
    body.apd-marketplace-ui .apd5-guests-panel .apd5-panel-title,
    body.apd-marketplace-ui .apd5-guests-panel .apd5-panel-footer {
        display:none !important;
    }
    body.apd-marketplace-ui .apd5-guests-panel .apd5-guest-row {
        min-height:90px !important;
        padding:19px 0 !important;
        border-bottom:1px solid #ebebeb !important;
    }
    body.apd-marketplace-ui .apd5-guests-panel .apd5-guest-row:last-of-type {
        border-bottom:0 !important;
    }
    body.apd-marketplace-ui .apd5-guests-panel .apd5-guest-row strong {
        color:#222 !important;
        font-size:16px !important;
        line-height:1.2 !important;
        font-weight:500 !important;
    }
    body.apd-marketplace-ui .apd5-guests-panel .apd5-guest-row span {
        margin-top:4px !important;
        color:#717171 !important;
        font-size:13px !important;
        line-height:1.25 !important;
    }
    body.apd-marketplace-ui .apd5-guests-panel .apd5-guest-row button {
        width:34px !important;
        height:34px !important;
        border:0 !important;
        border-radius:50% !important;
        background:#f2f2f2 !important;
        color:#222 !important;
        font-size:21px !important;
    }
    body.apd-marketplace-ui .apd5-guests-panel .apd5-guest-row button:hover:not(:disabled) {
        background:#e7e7e7 !important;
    }
    body.apd-marketplace-ui .apd5-guests-panel .apd5-guest-row output {
        min-width:18px !important;
        font-size:15px !important;
    }
}

@media (min-width:1180px) {
    /* Al bajar, el buscador conserva el mismo ancho premium que arriba. Así los
       paneles quedan alineados y no parecen ventanas distintas. */
    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact .apd5-header-search-row {
        width:min(850px,calc(100vw - 610px)) !important;
    }
    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact .apd5-search {
        width:100% !important;
        grid-template-columns:1.14fr 1px .97fr 1px 1fr 51px !important;
    }
    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact .apd5-search.has-open-panel {
        grid-template-columns:1.14fr 1px .97fr 1px 1fr 104px !important;
    }
    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact .apd5-search-field > button {
        padding:0 20px !important;
    }
}

@media (min-width:1180px) and (max-width:1450px) {
    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact .apd5-header-search-row {
        width:min(760px,calc(100vw - 500px)) !important;
    }
}

/* ========================================================================== 
   APD 15.16 · El buscador compacto vuelve al encabezado completo al abrirse
   ========================================================================== */
@media (min-width:1180px) {
    /* El encabezado sigue fijo y conserva el separador del estado compacto,
       pero recupera la altura y la composición de la vista inicial. De esta
       forma no cambia la posición de scroll y el panel aparece exactamente
       como si el usuario estuviera arriba de la página. */
    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact.is-search-expanded {
        position:fixed !important;
        inset:0 0 auto 0 !important;
        min-height:196px !important;
        height:196px !important;
        overflow:visible !important;
        background:#fff !important;
        border-bottom:1px solid #e7e7e7 !important;
        box-shadow:none !important;
        backdrop-filter:none !important;
        -webkit-backdrop-filter:none !important;
    }

    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact.is-search-expanded .apd5-header-row {
        width:min(calc(100vw - var(--apd159-header-side)),var(--apd159-header-max)) !important;
        max-width:var(--apd159-header-max) !important;
        height:82px !important;
        min-height:82px !important;
        grid-template-columns:160px minmax(720px,1fr) 300px !important;
        gap:24px !important;
        margin:0 auto !important;
    }

    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact.is-search-expanded .apd5-logo {
        width:108px !important;
        min-width:108px !important;
        height:44px !important;
        justify-self:start !important;
        align-self:center !important;
        opacity:1 !important;
        visibility:visible !important;
    }
    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact.is-search-expanded .apd5-logo img {
        width:108px !important;
        height:44px !important;
        object-fit:contain !important;
        object-position:left center !important;
        opacity:1 !important;
        visibility:visible !important;
        transform:translateZ(0) !important;
    }

    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact.is-search-expanded .apd5-main-nav {
        height:82px !important;
        min-height:82px !important;
        display:flex !important;
        align-self:center !important;
        justify-self:center !important;
        justify-content:center !important;
        gap:28px !important;
        opacity:1 !important;
        visibility:visible !important;
        pointer-events:auto !important;
        transform:none !important;
    }
    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact.is-search-expanded .apd5-main-nav a {
        min-height:82px !important;
        height:82px !important;
        padding:7px 5px 5px !important;
        gap:8px !important;
        font-size:13px !important;
        font-weight:550 !important;
    }
    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact.is-search-expanded .apd5-main-nav a > span {
        width:38px !important;
        height:38px !important;
        flex:0 0 38px !important;
    }

    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact.is-search-expanded .apd5-header-actions {
        justify-self:end !important;
        gap:9px !important;
        opacity:1 !important;
        visibility:visible !important;
        pointer-events:auto !important;
        transform:none !important;
    }

    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact.is-search-expanded .apd5-header-search-row {
        position:static !important;
        inset:auto !important;
        width:100% !important;
        height:114px !important;
        min-height:114px !important;
        padding:16px 24px 31px !important;
        display:flex !important;
        align-items:flex-start !important;
        justify-content:center !important;
        transform:none !important;
        pointer-events:auto !important;
    }

    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact.is-search-expanded .apd5-search {
        width:min(850px,calc(100vw - 150px)) !important;
        height:66px !important;
        grid-template-columns:1.14fr 1px .97fr 1px 1fr 62px !important;
        border:1px solid #ddd !important;
        border-radius:999px !important;
        background:#fff !important;
        box-shadow:0 5px 18px rgba(0,0,0,.13) !important;
        transform:none !important;
        pointer-events:auto !important;
    }
    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact.is-search-expanded .apd5-search.has-open-panel {
        grid-template-columns:1.14fr 1px .97fr 1px 1fr 120px !important;
        background:#ebebeb !important;
    }

    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact.is-search-expanded .apd5-search-field > button {
        padding:0 25px !important;
        flex-direction:column !important;
        align-items:flex-start !important;
        justify-content:center !important;
    }
    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact.is-search-expanded .apd5-search-field span {
        display:block !important;
        color:#222 !important;
        font-size:11px !important;
        line-height:1.1 !important;
        font-weight:700 !important;
    }
    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact.is-search-expanded .apd5-search-field strong {
        display:block !important;
        margin-top:4px !important;
        color:#717171 !important;
        font-size:13px !important;
        line-height:1.1 !important;
        font-weight:450 !important;
        white-space:nowrap !important;
        overflow:hidden !important;
        text-overflow:ellipsis !important;
    }

    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact.is-search-expanded .apd5-search-submit {
        width:48px !important;
        min-width:48px !important;
        max-width:48px !important;
        height:48px !important;
        min-height:48px !important;
        margin-right:7px !important;
        padding:0 !important;
    }
    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact.is-search-expanded .apd5-search.has-open-panel .apd5-search-submit {
        width:104px !important;
        min-width:104px !important;
        max-width:104px !important;
        padding:0 17px !important;
        gap:8px !important;
    }
    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact.is-search-expanded .apd5-search-submit .apd5-icon {
        width:20px !important;
        min-width:20px !important;
        height:20px !important;
        flex-basis:20px !important;
    }
    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact.is-search-expanded .apd5-search-submit span {
        font-size:14px !important;
    }
}

@media (min-width:1180px) and (max-width:1500px) {
    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact.is-search-expanded .apd5-header-row {
        grid-template-columns:130px minmax(620px,1fr) 260px !important;
        gap:14px !important;
    }
    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact.is-search-expanded .apd5-main-nav {
        gap:18px !important;
    }
}


/* APD 16 · Borrar selección de viajeros desde el campo y el modal. */
.apd5-search-field[data-search-field="guests"] {
    position: relative;
}
.apd16-search-clear {
    position: absolute !important;
    right: 10px !important;
    top: 50% !important;
    z-index: 4 !important;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    padding: 0 !important;
    display: grid !important;
    place-items: center !important;
    transform: translateY(-50%) !important;
    border: 0 !important;
    border-radius: 999px !important;
    color: #222 !important;
    background: #ebebeb !important;
    font-size: 20px !important;
    line-height: 1 !important;
}
.apd16-search-clear[hidden] {
    display: none !important;
}
.apd5-search-field[data-search-field="guests"]:has(.apd16-search-clear:not([hidden])) > button:first-child {
    padding-right: 44px !important;
}
.apd5-guests-panel .apd5-panel-title > div {
    display: flex;
    align-items: center;
    gap: 10px;
}
.apd16-guests-reset {
    min-height: 32px !important;
    padding: 0 4px !important;
    border: 0 !important;
    color: #222 !important;
    background: transparent !important;
    font-size: 13px !important;
    font-weight: 650 !important;
    text-decoration: underline !important;
}
.apd16-guests-reset:disabled {
    color: #aaa !important;
    cursor: default !important;
}
.apd5-guest-row [data-counter="minus"]:disabled {
    opacity: .35 !important;
    cursor: not-allowed !important;
}

/* ========================================================================== 
   APD 22.0 · Portada de precisión: escala Airbnb con identidad APD
   ========================================================================== */
body.home.apd-marketplace-ui {
    --apd22-content-max: 1820px;
    color:#222 !important;
    background:#fff !important;
    -webkit-font-smoothing:antialiased;
    text-rendering:optimizeLegibility;
}

body.home .apd5-card.is-demo .apd5-card-media {
    outline:0 !important;
}

body.home .apd5-favorite {
    transition:transform .14s ease,opacity .14s ease !important;
}
body.home .apd5-favorite:hover { transform:scale(1.07) !important; }
body.home .apd5-favorite:active { transform:scale(.92) !important; }
body.home .apd5-favorite.is-favorite .apd5-icon {
    fill:#e31c5f !important;
    stroke:#fff !important;
}
body.home .apd5-favorite.is-loading { opacity:.55 !important; cursor:wait !important; }
body.home .apd5-favorite.has-error { animation:apd22-favorite-error .35s ease 2; }
@keyframes apd22-favorite-error {
    0%,100% { transform:translateX(0); }
    50% { transform:translateX(4px); }
}

body.home .apd5-rail-controls button:disabled {
    opacity:.36 !important;
    cursor:default !important;
    pointer-events:none !important;
}

body.home .apd5-main-nav a:focus-visible,
body.home .apd5-search-field > button:focus-visible,
body.home .apd5-section-head a:focus-visible,
body.home .apd5-rail-controls button:focus-visible,
body.home .apd5-favorite:focus-visible {
    outline:3px solid rgba(15,111,232,.25) !important;
    outline-offset:3px !important;
}

@media (min-width:1180px) {
    body.home .apd5-main,
    body.home .apd5-footer-grid,
    body.home .apd10-footer-meta,
    body.home .apd5-footer-bottom {
        width:min(calc(100vw - 96px),var(--apd22-content-max)) !important;
        max-width:var(--apd22-content-max) !important;
    }

    body.home .apd5-main {
        padding-top:50px !important;
    }
    body.home .apd5-rail {
        margin-top:36px !important;
    }
    body.home .apd5-main > .apd5-rail:first-child {
        margin-top:0 !important;
    }
    body.home .apd5-section-head {
        margin-bottom:14px !important;
    }
    body.home .apd5-section-head h2,
    body.home .apd5-section-head h2 a {
        font-size:18px !important;
        line-height:1.2 !important;
        font-weight:650 !important;
    }
    body.home .apd5-section-head h2 span {
        width:24px !important;
        height:24px !important;
        font-size:22px !important;
        font-weight:400 !important;
    }
    body.home .apd5-card-rail {
        grid-auto-columns:calc((100% - 60px)/6) !important;
        gap:12px !important;
        scroll-padding-inline:1px !important;
    }
    body.home .apd5-card-media {
        aspect-ratio:1.05/1 !important;
        border-radius:16px !important;
    }
    body.home .apd5-card-body {
        padding:9px 2px 0 !important;
    }
    body.home .apd5-card-title-row h3 {
        font-size:14px !important;
        line-height:1.22 !important;
        font-weight:600 !important;
    }
    body.home .apd5-card-body p,
    body.home .apd5-card-price,
    body.home .apd5-card-price small,
    body.home .apd5-card-rating {
        font-size:12.5px !important;
        line-height:1.28 !important;
    }
    body.home .apd5-card-badge {
        top:9px !important;
        left:9px !important;
        padding:6px 10px !important;
        font-size:10.5px !important;
        font-weight:600 !important;
    }
    body.home .apd5-favorite {
        top:7px !important;
        right:7px !important;
    }
    body.home .apd10-inspiration {
        padding-left:max(48px,calc((100vw - var(--apd22-content-max))/2)) !important;
        padding-right:max(48px,calc((100vw - var(--apd22-content-max))/2)) !important;
    }
}

@media (min-width:1680px) {
    body.home .apd5-card-rail {
        grid-auto-columns:calc((100% - 72px)/7) !important;
    }
}

@media (max-width:767px) {
    body.home .apd5-main {
        width:calc(100% - 24px) !important;
    }
    body.home .apd5-card-rail {
        gap:12px !important;
        scroll-padding-left:1px !important;
    }
    body.home .apd5-card-media {
        border-radius:16px !important;
    }
    body.home .apd5-section-head h2,
    body.home .apd5-section-head h2 a {
        font-size:19px !important;
        line-height:1.2 !important;
    }
}

@media (prefers-reduced-motion:reduce) {
    body.home .apd5-favorite,
    body.home .apd5-card-media img {
        transition:none !important;
        animation:none !important;
    }
}

/* APD 23 · cierre de cascada del encabezado expandido. */
@media (min-width:1180px) {
    body.apd-marketplace-ui .apd5-header.is-discovery-context {
        min-height:160px !important;
        height:160px !important;
    }
    body.apd-marketplace-ui .apd5-header.is-discovery-context .apd5-header-row {
        width:min(calc(100vw - 96px),1460px) !important;
        max-width:1460px !important;
        height:76px !important;
        min-height:76px !important;
        grid-template-columns:200px minmax(620px,1fr) 270px !important;
        gap:20px !important;
    }
    body.apd-marketplace-ui .apd5-header.is-discovery-context .apd5-logo,
    body.apd-marketplace-ui .apd5-header.is-discovery-context .apd5-logo img {
        width:96px !important;
        min-width:96px !important;
        height:40px !important;
    }
    body.apd-marketplace-ui .apd5-header.is-discovery-context .apd5-main-nav {
        height:76px !important;
        min-height:76px !important;
        gap:27px !important;
    }
    body.apd-marketplace-ui .apd5-header.is-discovery-context .apd5-main-nav a {
        height:76px !important;
        min-height:76px !important;
        padding:6px 4px 4px !important;
        gap:7px !important;
        color:#5b5b5b !important;
        font-size:12px !important;
        font-weight:500 !important;
    }
    body.apd-marketplace-ui .apd5-header.is-discovery-context .apd5-main-nav a.is-active { color:#222 !important; }
    body.apd-marketplace-ui .apd5-header.is-discovery-context .apd5-main-nav a > span {
        width:34px !important;
        height:34px !important;
        flex-basis:34px !important;
    }
    body.apd-marketplace-ui .apd5-header.is-discovery-context .apd5-main-nav a strong { font-weight:550 !important; }
    body.apd-marketplace-ui .apd5-header.is-discovery-context .apd5-main-nav a::after {
        left:3px !important;
        right:3px !important;
        bottom:0 !important;
        height:2px !important;
        background:#222 !important;
    }
    body.apd-marketplace-ui .apd5-header.is-discovery-context .apd5-header-actions { gap:8px !important; }
    body.apd-marketplace-ui .apd5-header.is-discovery-context .apd5-host-trigger {
        min-height:38px !important;
        padding:0 11px !important;
        color:#333 !important;
        font-size:12px !important;
        font-weight:600 !important;
    }
    body.apd-marketplace-ui .apd5-header.is-discovery-context .apd5-language-button,
    body.apd-marketplace-ui .apd5-header.is-discovery-context .apd5-account-button.is-guest {
        width:36px !important;
        min-width:36px !important;
        max-width:36px !important;
        height:36px !important;
        min-height:36px !important;
        padding:0 !important;
        display:grid !important;
        place-items:center !important;
        border:0 !important;
        border-radius:50% !important;
        background:#f5f5f5 !important;
        box-shadow:none !important;
    }
    body.apd-marketplace-ui .apd5-header.is-discovery-context .apd5-account-button.is-guest > span { display:none !important; }
    body.apd-marketplace-ui .apd5-header.is-discovery-context .apd5-account-button.is-guest > .apd5-icon {
        width:17px !important;
        height:17px !important;
    }
    body.apd-marketplace-ui .apd5-header.is-discovery-context .apd5-header-search-row {
        width:100% !important;
        height:84px !important;
        min-height:84px !important;
        padding:8px 24px 22px !important;
        align-items:flex-start !important;
    }
    body.apd-marketplace-ui .apd5-header.is-discovery-context .apd5-search {
        width:min(680px,calc(100vw - 180px)) !important;
        height:54px !important;
        grid-template-columns:1.12fr 1px .95fr 1px 1fr 52px !important;
        border:1px solid #ddd !important;
        box-shadow:0 3px 12px rgba(0,0,0,.13) !important;
    }
    body.apd-marketplace-ui .apd5-header.is-discovery-context .apd5-search-field > button { padding:0 24px !important; }
    body.apd-marketplace-ui .apd5-header.is-discovery-context .apd5-search-field span {
        color:#222 !important;
        font-size:10px !important;
        line-height:1.1 !important;
        font-weight:650 !important;
    }
    body.apd-marketplace-ui .apd5-header.is-discovery-context .apd5-search-field strong {
        margin-top:3px !important;
        color:#717171 !important;
        font-size:11.5px !important;
        line-height:1.15 !important;
        font-weight:400 !important;
    }
    body.apd-marketplace-ui .apd5-header.is-discovery-context .apd5-search-submit {
        width:42px !important;
        min-width:42px !important;
        max-width:42px !important;
        height:42px !important;
        min-height:42px !important;
        margin-right:6px !important;
        background:#0f6fe8 !important;
        box-shadow:0 3px 9px rgba(15,111,232,.25) !important;
    }
    body.apd-marketplace-ui .apd5-header.is-discovery-context .apd5-search-submit .apd5-icon {
        width:17px !important;
        height:17px !important;
    }
}

/* APD 24.3 · cuenta unificada: una foto y un único botón visual de menú. */
body.apd-marketplace-ui .apd5-header .apd5-header-actions > .apd25-account-cluster {
    width:76px !important;
    min-width:76px !important;
    max-width:76px !important;
    height:36px !important;
    min-height:36px !important;
    padding:0 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:8px !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    box-shadow:none !important;
    cursor:pointer !important;
}
body.apd-marketplace-ui .apd5-header .apd5-header-actions > .apd25-account-cluster .apd25-account-avatar {
    width:32px !important;
    height:32px !important;
    min-width:32px !important;
    flex:0 0 32px !important;
    display:block !important;
    border-radius:50% !important;
    object-fit:cover !important;
}
body.apd-marketplace-ui .apd5-header .apd5-header-actions > .apd25-account-cluster .apd25-menu-circle {
    width:36px !important;
    height:36px !important;
    min-width:36px !important;
    flex:0 0 36px !important;
    display:grid !important;
    place-items:center !important;
    border-radius:50% !important;
    background:#f5f5f5 !important;
    color:#222 !important;
}
body.apd-marketplace-ui .apd5-header .apd5-header-actions > .apd25-account-cluster .apd25-menu-circle > .apd5-icon {
    width:17px !important;
    height:17px !important;
}
@media (min-width:1180px) {
    body.apd-marketplace-ui .apd5-header .apd5-header-actions {
        display:flex !important;
        align-items:center !important;
        justify-content:flex-end !important;
        gap:8px !important;
    }
    body.apd-marketplace-ui .apd5-header .apd5-header-actions > .apd25-account-cluster {
        width:76px !important;
        min-width:76px !important;
        max-width:76px !important;
        height:36px !important;
        min-height:36px !important;
        padding:0 !important;
        display:flex !important;
        align-items:center !important;
        justify-content:space-between !important;
        gap:8px !important;
        border:0 !important;
        border-radius:0 !important;
        background:transparent !important;
        box-shadow:none !important;
        cursor:pointer !important;
    }
    body.apd-marketplace-ui .apd5-header .apd5-header-actions > .apd25-account-cluster .apd25-account-avatar {
        width:32px !important;
        height:32px !important;
        min-width:32px !important;
        flex:0 0 32px !important;
        display:block !important;
        border-radius:50% !important;
        object-fit:cover !important;
    }
    body.apd-marketplace-ui .apd5-header .apd5-header-actions > .apd25-account-cluster .apd25-menu-circle {
        width:36px !important;
        height:36px !important;
        min-width:36px !important;
        flex:0 0 36px !important;
        display:grid !important;
        place-items:center !important;
        border-radius:50% !important;
        background:#f5f5f5 !important;
        color:#222 !important;
    }
    body.apd-marketplace-ui .apd5-header .apd5-header-actions > .apd25-account-cluster .apd25-menu-circle > .apd5-icon {
        width:17px !important;
        height:17px !important;
    }
    body.apd-marketplace-ui .apd5-header .apd5-header-actions > .apd5-account-button.is-guest {
        width:36px !important;
        min-width:36px !important;
        max-width:36px !important;
        height:36px !important;
        min-height:36px !important;
        padding:0 !important;
        display:grid !important;
        place-items:center !important;
        border:0 !important;
        border-radius:50% !important;
        background:#f5f5f5 !important;
        box-shadow:none !important;
    }
    body.apd-marketplace-ui .apd5-header .apd5-header-actions > .apd5-account-button.is-guest > .apd5-icon {
        width:17px !important;
        height:17px !important;
    }
    body.apd-marketplace-ui .apd5-header .apd5-header-actions > .apd5-account-button.is-guest > img,
    body.apd-marketplace-ui .apd5-header .apd5-header-actions > .apd5-account-button.is-guest > span { display:none !important; }
    body.home.apd-marketplace-ui .apd5-footer-grid {
        width:100% !important;
        max-width:1456px !important;
    }
}

/* APD 46 · escala real del navegador. Nunca se amplía el documento con CSS zoom. */
@media (min-width:1500px) {
    html { overflow-x:hidden !important; }
    body.apd-marketplace-ui {
        width:100% !important;
        min-width:100% !important;
        max-width:100% !important;
        margin-left:auto !important;
        margin-right:auto !important;
        zoom:1 !important;
    }
    body.apd-marketplace-ui .apd5-footer {
        padding-left:max(48px,calc((100vw - 1456px)/2)) !important;
        padding-right:max(48px,calc((100vw - 1456px)/2)) !important;
    }
}

/* APD 24.4 · acople compacto inmediato y anclajes invariantes al desplazarse. */
@media (min-width:1180px) {
    /* La cabecera grande permanece estable durante los primeros píxeles. El
       cambio de estado lo realiza JS antes de que pueda aparecer recortada. */
    body.apd-marketplace-ui .apd5-header.is-discovery-context {
        top:0 !important;
        left:0 !important;
        right:0 !important;
        overflow:visible !important;
        transform:none !important;
        backface-visibility:hidden !important;
    }

    /* La misma caja exterior y las mismas columnas se usan arriba y abajo.
       Por eso logo y cuenta conservan exactamente su coordenada horizontal. */
    body.apd-marketplace-ui .apd5-header.is-discovery-context .apd5-header-row,
    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact .apd5-header-row,
    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact.is-search-expanded .apd5-header-row {
        width:min(calc(100vw - 96px),1460px) !important;
        max-width:1460px !important;
        margin-left:auto !important;
        margin-right:auto !important;
        grid-template-columns:200px minmax(620px,1fr) 270px !important;
        gap:20px !important;
    }

    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact:not(.is-search-expanded) {
        position:fixed !important;
        inset:0 0 auto 0 !important;
        width:100% !important;
        min-height:72px !important;
        height:72px !important;
        overflow:visible !important;
        background:rgba(255,255,255,.985) !important;
        border-bottom:1px solid #e7e7e7 !important;
        box-shadow:0 2px 12px rgba(0,0,0,.08) !important;
        backdrop-filter:saturate(180%) blur(16px) !important;
        -webkit-backdrop-filter:saturate(180%) blur(16px) !important;
    }
    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact:not(.is-search-expanded) .apd5-header-row {
        height:72px !important;
        min-height:72px !important;
    }

    /* El archivo y el tamaño del logo no cambian entre los dos estados. */
    body.apd-marketplace-ui .apd5-header.is-discovery-context .apd5-logo,
    body.apd-marketplace-ui .apd5-header.is-discovery-context .apd5-logo img,
    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact .apd5-logo,
    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact .apd5-logo img {
        width:96px !important;
        min-width:96px !important;
        max-width:96px !important;
        height:40px !important;
        min-height:40px !important;
        max-height:40px !important;
        justify-self:start !important;
        object-fit:contain !important;
        object-position:left center !important;
        opacity:1 !important;
        visibility:visible !important;
        transform:none !important;
    }

    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact:not(.is-search-expanded) .apd5-main-nav {
        opacity:0 !important;
        visibility:hidden !important;
        pointer-events:none !important;
        transform:none !important;
    }
    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact:not(.is-search-expanded) .apd5-header-actions {
        justify-self:end !important;
        opacity:1 !important;
        visibility:visible !important;
        transform:none !important;
    }

    /* Como en Airbnb, el buscador de 680 px se convierte en una pastilla
       compacta centrada. El cambio vertical es corto y nunca barre de lado. */
    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact:not(.is-search-expanded) .apd5-header-search-row {
        position:absolute !important;
        inset:0 auto auto 50% !important;
        z-index:6 !important;
        width:405px !important;
        max-width:calc(100vw - 590px) !important;
        height:72px !important;
        min-height:72px !important;
        padding:16px 0 !important;
        align-items:center !important;
        transform:translateX(-50%) !important;
        pointer-events:none !important;
        animation:apd244-search-dock .19s cubic-bezier(.2,.72,.2,1) both !important;
    }
    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact:not(.is-search-expanded) .apd5-search {
        width:100% !important;
        height:40px !important;
        min-height:40px !important;
        grid-template-columns:1.15fr 1px 1.05fr 1px .9fr 40px !important;
        border:1px solid #ddd !important;
        box-shadow:0 3px 12px rgba(0,0,0,.13) !important;
        pointer-events:auto !important;
        transform:none !important;
    }
    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact:not(.is-search-expanded) .apd5-search-field > button {
        padding:0 13px !important;
        flex-direction:row !important;
        align-items:center !important;
    }
    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact:not(.is-search-expanded) .apd5-search-field span {
        display:none !important;
    }
    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact:not(.is-search-expanded) .apd5-search-field strong {
        margin:0 !important;
        color:#222 !important;
        font-size:11px !important;
        line-height:1.1 !important;
        font-weight:600 !important;
        white-space:nowrap !important;
        overflow:hidden !important;
        text-overflow:ellipsis !important;
    }
    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact:not(.is-search-expanded) .apd5-search-submit {
        width:32px !important;
        min-width:32px !important;
        max-width:32px !important;
        height:32px !important;
        min-height:32px !important;
        margin-right:4px !important;
        padding:0 !important;
    }
    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact:not(.is-search-expanded) .apd5-search-submit .apd5-icon {
        width:15px !important;
        min-width:15px !important;
        height:15px !important;
    }

    /* No se interpolan coordenadas laterales: el logo queda inmóvil. */
    body.apd-marketplace-ui .apd5-header.is-discovery-context.apd-header-ready .apd5-logo,
    body.apd-marketplace-ui .apd5-header.is-discovery-context.apd-header-ready .apd5-logo img {
        transition:opacity .12s ease !important;
    }
}

@keyframes apd244-search-dock {
    from { opacity:.78; transform:translateX(-50%) translateY(12px) scale(1.025); }
    to { opacity:1; transform:translateX(-50%) translateY(0) scale(1); }
}

@media (prefers-reduced-motion:reduce) {
    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact:not(.is-search-expanded) .apd5-header-search-row {
        animation:none !important;
    }
}

/* APD 24.5 · Limpiar Viajeros, dentro del campo y solo mientras está activo. */
body.apd-marketplace-ui .apd5-search-field[data-search-field="guests"] {
    position:relative !important;
    overflow:visible !important;
}
body.apd-marketplace-ui .apd5-search-field[data-search-field="guests"] > button.apd16-search-clear {
    position:absolute !important;
    inset:50% 10px auto auto !important;
    z-index:12 !important;
    display:grid !important;
    place-items:center !important;
    width:24px !important;
    min-width:24px !important;
    max-width:24px !important;
    height:24px !important;
    min-height:24px !important;
    max-height:24px !important;
    margin:0 !important;
    padding:0 0 2px !important;
    overflow:visible !important;
    transform:translateY(-50%) !important;
    border:0 !important;
    border-radius:50% !important;
    box-shadow:none !important;
    background:transparent !important;
    color:#222 !important;
    font:400 17px/1 Arial,sans-serif !important;
    text-align:center !important;
    cursor:pointer !important;
    opacity:1 !important;
    visibility:visible !important;
    pointer-events:auto !important;
}
body.apd-marketplace-ui .apd5-search-field[data-search-field="guests"] > button.apd16-search-clear:hover {
    background:#dedede !important;
}
body.apd-marketplace-ui .apd5-search-field[data-search-field="guests"] > button.apd16-search-clear[hidden] {
    display:none !important;
}
body.apd-marketplace-ui .apd5-search-field[data-search-field="guests"]:has(> .apd16-search-clear:not([hidden])) > button:first-child {
    padding-right:48px !important;
}

@media (min-width:1180px) {
    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact:not(.is-search-expanded) .apd5-search-field[data-search-field="guests"] > button.apd16-search-clear {
        right:5px !important;
        width:22px !important;
        min-width:22px !important;
        max-width:22px !important;
        height:22px !important;
        min-height:22px !important;
        max-height:22px !important;
        font-size:16px !important;
    }
}


/* APD 26.1 · comportamiento del buscador sticky igual a la referencia Airbnb. */
body.apd-marketplace-ui .apd26-search-leading-icon,
body.apd-marketplace-ui .apd26-compact-summary {
    display:none;
}

@media (min-width:1180px) {
    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact .apd5-header-search-row {
        animation:none !important;
    }

    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact .apd5-search-field > button > strong[id] {
        display:none !important;
    }

    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact .apd26-compact-summary {
        display:block !important;
        margin:0 !important;
        color:#222 !important;
        font-size:11px !important;
        line-height:1.1 !important;
        font-weight:600 !important;
        white-space:nowrap !important;
        overflow:hidden !important;
        text-overflow:ellipsis !important;
    }

    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact .apd5-search-field[data-search-field="location"] > button {
        gap:8px !important;
    }

    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact .apd26-search-leading-icon {
        display:inline-flex !important;
        align-items:center !important;
        justify-content:center !important;
        flex:0 0 18px !important;
        width:18px !important;
        height:18px !important;
        overflow:hidden !important;
    }

    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact .apd26-search-leading-icon .apd15-nav-svg {
        width:18px !important;
        height:18px !important;
        display:block !important;
    }

    body.apd-marketplace-ui .apd5-header.is-discovery-context:not(.is-compact) .apd26-search-leading-icon,
    body.apd-marketplace-ui .apd5-header.is-discovery-context:not(.is-compact) .apd26-compact-summary {
        display:none !important;
    }

    body.apd-marketplace-ui .apd5-header.is-discovery-context:not(.is-compact) .apd5-search {
        width:min(560px, calc(100vw - 760px)) !important;
        height:40px !important;
        min-height:40px !important;
        grid-template-columns:1.18fr 1px 1.06fr 1px .92fr 40px !important;
        box-shadow:0 3px 12px rgba(0,0,0,.12) !important;
    }

    body.apd-marketplace-ui .apd5-header.is-discovery-context:not(.is-compact) .apd5-search-field > button {
        padding:0 16px !important;
    }

    body.apd-marketplace-ui .apd5-header.is-discovery-context:not(.is-compact) .apd5-search-field span {
        font-size:10px !important;
        font-weight:700 !important;
    }

    body.apd-marketplace-ui .apd5-header.is-discovery-context:not(.is-compact) .apd5-search-field strong {
        margin-top:2px !important;
        font-size:12px !important;
        font-weight:400 !important;
    }

    body.apd-marketplace-ui .apd5-header.is-discovery-context:not(.is-compact) .apd5-search-submit {
        width:32px !important;
        min-width:32px !important;
        height:32px !important;
        margin-right:4px !important;
        padding:0 !important;
    }

    body.apd-marketplace-ui .apd5-header.is-discovery-context:not(.is-compact) .apd5-search-submit span {
        display:none !important;
    }

    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact .apd5-header-search-row,
    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact.is-search-expanded .apd5-header-search-row {
        width:330px !important;
        max-width:calc(100vw - 640px) !important;
    }

    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact .apd5-search,
    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact.is-search-expanded .apd5-search {
        height:40px !important;
        min-height:40px !important;
        grid-template-columns:1.18fr 1px 1.04fr 1px .92fr 40px !important;
        box-shadow:0 3px 12px rgba(0,0,0,.13) !important;
    }

    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact .apd5-search-submit span {
        display:none !important;
    }
}

/* APD 26.2 · Buscador superior más grande y campo Lugar editable como Airbnb. */
body.apd-marketplace-ui .apd5-search-field[data-search-field="location"] {
    position:relative !important;
    overflow:visible !important;
}
body.apd-marketplace-ui .apd26-inline-editor,
body.apd-marketplace-ui .apd26-field-clear {
    display:none;
}
body.apd-marketplace-ui .apd26-search-inline-input {
    width:100% !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    outline:none !important;
    background:transparent !important;
    box-shadow:none !important;
    color:#222 !important;
    font:400 14px/1.25 Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}
body.apd-marketplace-ui .apd26-search-inline-input::placeholder {
    color:#6a6a6a !important;
    opacity:1 !important;
}
body.apd-marketplace-ui .apd26-field-clear {
    position:absolute !important;
    inset:50% 12px auto auto !important;
    z-index:14 !important;
    width:24px !important;
    min-width:24px !important;
    height:24px !important;
    min-height:24px !important;
    margin:0 !important;
    padding:0 0 2px !important;
    transform:translateY(-50%) !important;
    border:0 !important;
    border-radius:50% !important;
    background:#dedede !important;
    color:#222 !important;
    font:400 17px/1 Arial, sans-serif !important;
    cursor:pointer !important;
    place-items:center !important;
}
body.apd-marketplace-ui .apd26-field-clear:hover {
    background:#d2d2d2 !important;
}
body.apd-marketplace-ui .apd26-field-clear[hidden] {
    display:none !important;
}

@media (min-width:1180px) {
    body.apd-marketplace-ui .apd5-header.is-discovery-context:not(.is-compact) .apd5-header-search-row {
        width:min(720px, calc(100vw - 500px)) !important;
        max-width:min(720px, calc(100vw - 500px)) !important;
    }

    body.apd-marketplace-ui .apd5-header.is-discovery-context:not(.is-compact) .apd5-search {
        width:min(720px, calc(100vw - 500px)) !important;
        height:50px !important;
        min-height:50px !important;
        grid-template-columns:1.26fr 1px 1.12fr 1px .96fr auto !important;
        box-shadow:0 4px 16px rgba(0,0,0,.14) !important;
    }

    body.apd-marketplace-ui .apd5-header.is-discovery-context:not(.is-compact) .apd5-search-field > button {
        min-height:50px !important;
        padding:0 18px !important;
    }

    body.apd-marketplace-ui .apd5-header.is-discovery-context:not(.is-compact) .apd5-search-field span {
        font-size:10px !important;
        font-weight:700 !important;
    }

    body.apd-marketplace-ui .apd5-header.is-discovery-context:not(.is-compact) .apd5-search-field strong {
        margin-top:2px !important;
        font-size:13px !important;
        line-height:1.2 !important;
    }

    body.apd-marketplace-ui .apd5-header.is-discovery-context:not(.is-compact) .apd5-search-submit {
        width:34px !important;
        min-width:34px !important;
        height:34px !important;
        min-height:34px !important;
        margin-right:4px !important;
    }

    body.apd-marketplace-ui .apd5-header.is-discovery-context:not(.is-compact) .apd5-search.has-open-panel .apd5-search-submit {
        width:auto !important;
        min-width:102px !important;
        height:40px !important;
        min-height:40px !important;
        padding:0 18px !important;
    }

    body.apd-marketplace-ui .apd5-header.is-discovery-context:not(.is-compact) .apd5-search-field[data-search-field="location"].is-open > button {
        padding-right:42px !important;
    }

    body.apd-marketplace-ui .apd5-header.is-discovery-context:not(.is-compact) .apd5-search-field[data-search-field="location"].is-open > button > span,
    body.apd-marketplace-ui .apd5-header.is-discovery-context:not(.is-compact) .apd5-search-field[data-search-field="location"].is-open > button > strong,
    body.apd-marketplace-ui .apd5-header.is-discovery-context:not(.is-compact) .apd5-search-field[data-search-field="location"].is-open > button > .apd26-search-leading-icon {
        opacity:0 !important;
    }

    body.apd-marketplace-ui .apd5-header.is-discovery-context:not(.is-compact) .apd5-search-field[data-search-field="location"].is-open .apd26-inline-editor {
        position:absolute !important;
        inset:0 42px 0 18px !important;
        z-index:13 !important;
        display:flex !important;
        flex-direction:column !important;
        justify-content:center !important;
        align-items:flex-start !important;
        gap:2px !important;
        pointer-events:auto !important;
    }

    body.apd-marketplace-ui .apd5-header.is-discovery-context:not(.is-compact) .apd5-search-field[data-search-field="location"].is-open .apd26-inline-editor > span {
        margin:0 !important;
        color:#222 !important;
        font-size:10px !important;
        font-weight:700 !important;
        line-height:1.05 !important;
    }

    body.apd-marketplace-ui .apd5-header.is-discovery-context:not(.is-compact) .apd5-search-field[data-search-field="location"].is-open .apd26-field-clear:not([hidden]) {
        display:grid !important;
    }
}

/* APD 26.2.1 · corrección de centrado del buscador superior.
   La fila ocupa todo el ancho y la pastilla ampliada queda centrada;
   el buscador compacto conserva sus medidas y posición. */
@media (min-width:1180px) {
    body.apd-marketplace-ui .apd5-header.is-discovery-context:not(.is-compact) .apd5-header-search-row {
        width:100% !important;
        max-width:none !important;
        margin-left:0 !important;
        margin-right:0 !important;
        display:flex !important;
        justify-content:center !important;
        align-items:flex-start !important;
    }

    body.apd-marketplace-ui .apd5-header.is-discovery-context:not(.is-compact) .apd5-search {
        width:min(720px, calc(100vw - 500px)) !important;
        max-width:min(720px, calc(100vw - 500px)) !important;
        margin-left:auto !important;
        margin-right:auto !important;
    }
}

/* APD 26.2.2 · transición directa del buscador grande al compacto.
   Evita la etapa intermedia ancha: la pastilla se contrae desde su centro
   hasta el tamaño sticky, sin barrer la cabecera ni dejar el menú traslúcido. */
@media (min-width:1180px) {
    body.apd-marketplace-ui .apd5-header.is-discovery-context.apd-header-ready,
    body.apd-marketplace-ui .apd5-header.is-discovery-context.apd-header-ready .apd5-header-row,
    body.apd-marketplace-ui .apd5-header.is-discovery-context.apd-header-ready .apd5-main-nav,
    body.apd-marketplace-ui .apd5-header.is-discovery-context.apd-header-ready .apd5-header-search-row,
    body.apd-marketplace-ui .apd5-header.is-discovery-context.apd-header-ready .apd5-search {
        transition:none !important;
    }

    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact:not(.is-search-expanded) .apd5-main-nav {
        opacity:0 !important;
        visibility:hidden !important;
        transition:none !important;
    }

    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact:not(.is-search-expanded) .apd5-header-search-row {
        left:50% !important;
        right:auto !important;
        width:330px !important;
        max-width:calc(100vw - 640px) !important;
        transform:translateX(-50%) !important;
        animation:apd2622-search-shrink .18s cubic-bezier(.2,.72,.2,1) both !important;
        transform-origin:center center !important;
    }

    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact:not(.is-search-expanded) .apd5-search {
        width:100% !important;
        max-width:100% !important;
        transform:none !important;
        animation:none !important;
    }
}

@keyframes apd2622-search-shrink {
    from {
        width:min(720px, calc(100vw - 500px));
        max-width:min(720px, calc(100vw - 500px));
        opacity:1;
    }
    to {
        width:330px;
        max-width:calc(100vw - 640px);
        opacity:1;
    }
}

/* APD 26.2.3 · botón Buscar más grande y campo Lugar estable al escribir. */
@media (min-width:1180px) {
    body.apd-marketplace-ui .apd5-header.is-discovery-context:not(.is-compact) .apd5-search {
        grid-template-columns:1.24fr 1px 1.1fr 1px .96fr auto !important;
    }

    body.apd-marketplace-ui .apd5-header.is-discovery-context:not(.is-compact) .apd5-search-submit {
        width:40px !important;
        min-width:40px !important;
        height:40px !important;
        min-height:40px !important;
        margin-right:5px !important;
        border-radius:999px !important;
        box-shadow:0 6px 18px rgba(15,111,232,.34) !important;
    }

    body.apd-marketplace-ui .apd5-header.is-discovery-context:not(.is-compact) .apd5-search-submit .apd5-icon {
        width:18px !important;
        height:18px !important;
    }

    body.apd-marketplace-ui .apd5-header.is-discovery-context:not(.is-compact) .apd5-search.has-open-panel .apd5-search-submit {
        min-width:114px !important;
        height:42px !important;
        min-height:42px !important;
        padding:0 20px !important;
    }

    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact .apd5-search,
    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact.is-search-expanded .apd5-search {
        grid-template-columns:1.18fr 1px 1.04fr 1px .92fr 44px !important;
    }

    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact .apd5-search-submit,
    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact.is-search-expanded .apd5-search-submit {
        width:44px !important;
        min-width:44px !important;
        height:44px !important;
        min-height:44px !important;
    }

    body.apd-marketplace-ui .apd5-header.is-discovery-context:not(.is-compact) .apd5-search-field[data-search-field="location"].is-open > button {
        padding-right:46px !important;
    }

    body.apd-marketplace-ui .apd5-header.is-discovery-context:not(.is-compact) .apd5-search-field[data-search-field="location"].is-open .apd26-inline-editor {
        inset:0 48px 0 18px !important;
        gap:3px !important;
    }
}

body.apd-marketplace-ui .apd26-search-inline-input {
    font:400 15px/1.25 Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

/* APD 26.2.4 · buscador sticky igual a la referencia: icono visible y textos completos. */
@media (min-width:1180px) {
    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact:not(.is-search-expanded) .apd5-header-search-row,
    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact.is-search-expanded .apd5-header-search-row {
        width:min(566px, calc(100vw - 560px)) !important;
        max-width:min(566px, calc(100vw - 560px)) !important;
    }

    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact:not(.is-search-expanded) .apd5-search,
    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact.is-search-expanded .apd5-search {
        width:100% !important;
        max-width:100% !important;
        height:48px !important;
        min-height:48px !important;
        border-radius:999px !important;
        grid-template-columns:1.42fr 1px 1.58fr 1px 1.02fr 44px !important;
        box-shadow:0 2px 12px rgba(0,0,0,.12) !important;
    }

    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact .apd5-search[data-context="services"],
    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact.is-search-expanded .apd5-search[data-context="services"] {
        grid-template-columns:1.28fr 1px 1.42fr 1px 1.34fr 44px !important;
    }

    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact .apd5-search-field > button,
    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact.is-search-expanded .apd5-search-field > button {
        min-height:48px !important;
        padding:0 16px !important;
        gap:10px !important;
        flex-direction:row !important;
        align-items:center !important;
        justify-content:flex-start !important;
    }

    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact .apd5-search-field[data-search-field="location"] > button,
    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact.is-search-expanded .apd5-search-field[data-search-field="location"] > button {
        padding-left:18px !important;
    }

    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact .apd26-search-leading-icon,
    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact.is-search-expanded .apd26-search-leading-icon {
        display:inline-flex !important;
        align-items:center !important;
        justify-content:center !important;
        flex:0 0 20px !important;
        width:20px !important;
        height:20px !important;
        margin:0 !important;
    }

    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact .apd26-search-leading-icon .apd15-nav-svg,
    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact.is-search-expanded .apd26-search-leading-icon .apd15-nav-svg {
        width:20px !important;
        height:20px !important;
    }

    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact .apd26-compact-summary,
    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact.is-search-expanded .apd26-compact-summary {
        display:block !important;
        min-width:0 !important;
        margin:0 !important;
        color:#222 !important;
        font-size:14px !important;
        line-height:1.2 !important;
        font-weight:600 !important;
        letter-spacing:-.01em !important;
        white-space:nowrap !important;
        overflow:visible !important;
        text-overflow:clip !important;
    }

    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact .apd5-search-field[data-search-field="location"] .apd26-compact-summary,
    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact.is-search-expanded .apd5-search-field[data-search-field="location"] .apd26-compact-summary {
        max-width:none !important;
    }

    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact .apd5-search-field strong[id],
    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact.is-search-expanded .apd5-search-field strong[id] {
        display:none !important;
    }

    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact .apd5-search-separator,
    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact.is-search-expanded .apd5-search-separator {
        height:22px !important;
        align-self:center !important;
        background:#dddddd !important;
    }

    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact .apd5-search-submit,
    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact.is-search-expanded .apd5-search-submit {
        width:32px !important;
        min-width:32px !important;
        height:32px !important;
        min-height:32px !important;
        margin-right:7px !important;
        padding:0 !important;
        box-shadow:none !important;
    }

    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact .apd5-search-submit .apd5-icon,
    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact.is-search-expanded .apd5-search-submit .apd5-icon {
        width:15px !important;
        height:15px !important;
    }

    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact .apd5-search.has-open-panel .apd5-search-submit,
    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact.is-search-expanded .apd5-search.has-open-panel .apd5-search-submit {
        width:32px !important;
        min-width:32px !important;
    }
}
@media (min-width:1180px) {
    body.apd-marketplace-ui .apd5-header.is-discovery-context.is-compact:not(.is-search-expanded) .apd5-header-search-row {
        animation:none !important;
    }
}
