/* Homepage discovery sections. Loaded only by pages/home; shared result pages retain their layout. */
.home-dmo-spotlight { background: #fff; }
/* Night to day: Spotlight is a night band that continues the hero, then two pale indigo surfaces alternate below it.
   The "of" filter keeps Featured on the lighter surface and the alternation right when optional sections are absent. */
main:has(> .home-discovery-section--sticky) { background: #f4f5fc; }
main > section:nth-child(odd of .home-featured-section, .home-travel-services-section, .home-recommendations-section, .home-categories-section) { --home-tone: #f4f5fc; --home-tone-prev: #e9ebf8; }
main > section:nth-child(even of .home-featured-section, .home-travel-services-section, .home-recommendations-section, .home-categories-section) { --home-tone: #e9ebf8; --home-tone-prev: #f4f5fc; }
/* Featured opens the day surface with no seam: it rises over the night band, or follows the hero veil. */
main > .home-featured-section { --home-tone-prev: var(--home-tone); }
main > section { --home-seam: linear-gradient(180deg, var(--home-tone-prev) 0, #0000 120px); }
.home-dmo-spotlight--textured {
    background-color: #0b1626;
    background-image:
        radial-gradient(ellipse 55% 60% at 88% 0%, #14b8a61c 0, #14b8a600 70%),
        radial-gradient(ellipse 50% 60% at 0% 100%, #fc5b6214 0, #fc5b6200 70%),
        linear-gradient(#ffffff06 1px, #0000 1px),
        linear-gradient(90deg, #ffffff06 1px, #0000 1px);
    background-size: auto, auto, 72px 72px, 72px 72px;
}
.home-featured-section, .home-categories-section { background: var(--home-tone); background-image: var(--home-seam); }
/* Soft daylight on the shared surface, keeping the category photos prominent. */
.home-categories-section--soft-light {
    background-color: var(--home-tone);
    background-image:
        var(--home-seam),
        radial-gradient(ellipse at 92% 8%, #fffdf6e6 0, #fffdf600 58%),
        linear-gradient(122deg, #d9d3c01a 0, #d9d3c000 24%, #ffffffa6 39%, #ffffff00 57%),
        radial-gradient(ellipse at 4% 95%, #c5cec01a 0, #c5cec000 60%);
    /* home.css tiles the third layer onwards; these gradients span the section. */
    background-size: auto;
}
.home-categories-section:before { display: none; }
.home-dmo-spotlight, .home-featured-section, .home-travel-services-section,
.home-recommendations-section, .home-categories-section { padding: 44px 0; }
:is(.home-dmo-spotlight,.home-featured-section,.home-travel-services-section,.home-recommendations-section,.home-categories-section) .section-heading h2 {
    font-size: clamp(24px, 2.6vw, 34px); line-height: 1.2; font-weight: 700; letter-spacing: -.025em;
}
:is(.home-dmo-spotlight,.home-featured-section,.home-travel-services-section,.home-recommendations-section,.home-categories-section) .section-heading > span {
    font-size: 11px; letter-spacing: .1em; font-weight: 700; box-shadow: none;
}
:is(.home-featured-section,.home-recommendations-section) .section-heading-row { align-items: center; margin-bottom: 24px; }
:is(.home-featured-section,.home-recommendations-section) .section-view-all { flex-shrink: 0; font-size: 13px; min-height: 40px; box-shadow: none; background: #fff; }
:is(.home-featured-section,.home-recommendations-section) .home-card-grid { margin-top: 0; gap: 18px; }
.home-featured-section .home-card-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.home-featured-section .home-listing-card { border-radius: 20px; box-shadow: 0 6px 18px #193b4b0d; }
.home-featured-section .home-listing-card:hover { box-shadow: 0 10px 24px #193b4b1c; transform: translateY(-3px); }
.home-featured-section .home-listing-body { left: 18px; right: 18px; bottom: 18px; }
.home-featured-section .home-listing-body h3 { font-size: 18px; font-weight: 650; line-height: 1.3; }
.home-featured-section .listing-distance { font-size: 12px; box-shadow: none; padding: 6px 10px; }
.home-featured-section .home-listing-image { background: #dce8ed; }
.home-featured-section .home-listing-fallback { display: none; }
.home-featured-section .is-image-missing { background: linear-gradient(135deg,#e2edf1,#c7d9df); }
.home-featured-section .is-image-missing:after { background: linear-gradient(0deg,#294c60de,transparent 85%); }
.home-featured-section .is-image-missing .home-listing-fallback { display: grid; place-items: start center; padding-top: 14%; height: 100%; color: #557987; }
.home-featured-section .home-listing-fallback svg { width: 64px; height: 64px; }

/* A quiet network illustration connects this section to the hero without competing with the cards. */
.home-recommendations-section { background: var(--home-tone); background-image: var(--home-seam); }
.home-recommendations-section:before { display: none; }
.home-recommendations-section:after {
    content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background: url('../media/hero/category-landscape-light.svg') right center / 800px auto no-repeat;
    opacity: .65; mask-image: linear-gradient(90deg,transparent 25%,#000 65%); -webkit-mask-image: linear-gradient(90deg,transparent 25%,#000 65%);
}
.home-recommendations-section > .container { position: relative; z-index: 1; }
.home-recommendations-section .home-recommendation-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.home-recommendations-section .home-recommendation-grid[data-count="2"] { grid-template-columns: repeat(2,minmax(0,1fr)); }
.home-recommendations-section .home-recommendation-grid[data-count="3"] { grid-template-columns: repeat(3,minmax(0,1fr)); }
.home-recommendations-section .recommendation-card {
    position: relative; min-width: 0; min-height: 0; padding: 22px; gap: 18px; border-radius: 20px;
    border: 1px solid #cedde4; background: #fff; color: #203846;
    backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 5px 16px #28465408;
}
.home-recommendations-section .recommendation-card:before { display: none; }
.home-recommendations-section .recommendation-card:hover { border-color: var(--recommendation-accent); transform: translateY(-3px); box-shadow: 0 10px 24px #28465414; }
.home-recommendations-section .recommendation-card-top { align-items: center; justify-content: flex-start; gap: 12px; }
.home-recommendations-section .recommendation-icon {
    display: grid; place-items: center; width: 56px; height: 56px; flex-shrink: 0;
    border-radius: 16px; color: var(--recommendation-accent); background: #f4f7f8;
    background: color-mix(in srgb, var(--recommendation-accent) 9%, white);
}
.home-recommendations-section .recommendation-icon :is(img,svg) { width: 32px; height: 32px; }
.home-recommendations-section .recommendation-label {
    padding: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent;
    color: #516874; font-size: 12px; line-height: 1.4; font-weight: 600; white-space: normal;
}
.home-recommendations-section .recommendation-card h3 { font-size: 18px; line-height: 1.4; font-weight: 650; letter-spacing: -.015em; margin: 0 0 10px; overflow-wrap: anywhere; }
.home-recommendations-section .recommendation-card-body p {
    font-size: 14px; line-height: 1.65; color: #617580; display: -webkit-box;
    -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
}
.home-recommendations-section .recommendation-card-footer { font-size: 13px; font-weight: 600; padding-top: 14px; border-color: #e7eef1; }
.home-recommendations-section .recommendation-card-footer i { background: #f0f5f6; color: #365f68; }
.home-recommendations-section .home-recommendation-grid[data-count="1"] { grid-template-columns: minmax(0,1fr); }
.home-recommendation-grid[data-count="1"] .recommendation-card { display: grid; grid-template-columns: 160px minmax(0,1fr) 110px; align-items: center; gap: 28px; padding: 26px; }
.home-recommendation-grid[data-count="1"] .recommendation-card-top { flex-direction: column; align-items: flex-start; }
.home-recommendation-grid[data-count="1"] .recommendation-card-footer { border-top: 0; padding-top: 0; margin-top: 0; }

/* Logo-only services should not reserve the height of an absent cover image. */
.home-travel-services-section { background: var(--home-tone); background-image: var(--home-seam); }
.home-travel-services-section:before, .home-travel-services-section:after { display: none; }
.home-travel-services-section .travel-service-grid { margin-top: 0; gap: 18px; }
.home-travel-services-section .travel-service-grid.is-single { grid-template-columns: minmax(0,1fr); }
.home-travel-services-section .travel-service-grid .travel-service-card { min-height: 0; border-radius: 20px; background: #fff; border-color: #e4dfd7; box-shadow: 0 5px 16px #3b302208; backdrop-filter: none; -webkit-backdrop-filter: none; }
.home-travel-services-section .travel-service-card:before, .home-travel-services-section .travel-service-card:after { display: none; }
.home-travel-services-section .is-logo-only { display: flex; flex-direction: row-reverse; align-items: center; justify-content: center; padding: 26px; gap: 24px; }
.home-travel-services-section .is-logo-only .travel-service-body { padding: 0; text-align: start; align-items: flex-start; flex: 1; }
.home-travel-services-section .is-logo-only .travel-service-media { width: 112px; height: 112px; flex-shrink: 0; min-height: 0; padding: 14px; margin: 0; align-items: center; border: 1px solid #eee9e1; border-radius: 18px; background: #fff; }
.home-travel-services-section .is-logo-only .travel-service-media:before { display: none; }
.home-travel-services-section .is-logo-only .travel-service-media img { max-width: 100%; max-height: 100%; width: auto; border-radius: 0; box-shadow: none; }
.home-travel-services-section .travel-service-body h3 { font-size: 22px; line-height: 1.3; font-weight: 650; }
.home-travel-services-section .travel-service-logo-badge { width: 88px; height: 88px; border-radius: 16px; box-shadow: none; }
.home-travel-services-section .travel-service-logo-badge img { max-width: 68px; max-height: 68px; }
.home-travel-services-section .travel-service-grid:is(.is-triple,.is-quad) .is-logo-only { flex-direction: column-reverse; align-items: flex-start; }
.home-categories-section:before { display: none; }
/* Category navigation: tiles of a small photo beside the name. Rows wrap and centre, so any number of categories
   ends on a balanced last row, and the photos (400px sources) are never shown larger than they can carry.
   The whole tile is the link, so it carries no arrow: the name keeps the room. */
.home-categories-section .category-grid { --category-cols: 4; --category-gap: 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--category-gap); }
.home-categories-section .category-card {
    position: relative; display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 12px;
    flex: 0 0 calc((100% - (var(--category-cols) - 1) * var(--category-gap)) / var(--category-cols)); min-width: 0; aspect-ratio: auto;
    padding-block: 8px; padding-inline: 8px 14px;
    border-radius: 18px; border: 1px solid #dce5ea; background: #fff;
    backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 3px 12px #28465408;
}
.home-categories-section .category-card-media { position: relative; width: 72px; }
.home-categories-section .category-card-image {
    position: relative; inset: auto; width: 100%; height: auto; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 12px;
    background: color-mix(in srgb, var(--category-accent) 12%, #fff);
}
.home-categories-section .category-card-image:after { display: none; }
.home-categories-section .category-card-image > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.home-categories-section .category-image-fallback { display: none; }
.home-categories-section .is-image-missing .category-image-fallback { display: grid; place-items: center; width: 100%; height: 100%; color: var(--category-accent); }
.home-categories-section .category-image-fallback :is(img,svg) { width: 28px; height: 28px; object-fit: contain; transform: none; }
/* The category's own icon, in its colour, pinned to the photo's corner; a missing photo already shows it. */
.home-categories-section .category-card-icon {
    position: absolute; inset-inline-end: -6px; bottom: -6px; width: 26px; height: 26px; display: grid; place-items: center;
    border-radius: 50%; background: #fff; color: var(--category-accent); box-shadow: 0 2px 6px #1418381f;
}
.home-categories-section .category-card-icon :is(img,svg) { width: 16px; height: 16px; }
.home-categories-section .is-image-missing + .category-card-icon { display: none; }
.home-categories-section .category-card h3 {
    position: static; padding: 0; margin: 0; color: #253f4d; font-size: 14px; font-weight: 600; line-height: 1.35; text-shadow: none; overflow-wrap: break-word; hyphens: auto;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
@media (hover: hover) {
    .home-categories-section .category-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px #28465412; }
    .home-categories-section .category-card:hover .category-card-image > img { transform: scale(1.08); }
}
:is(.home-featured-section,.home-recommendations-section,.home-travel-services-section,.home-categories-section) a:focus-visible { outline: 2px solid var(--ui-focus, #357b83); outline-offset: 2px; }
@media (max-width: 991px) {
    .home-categories-section .category-grid { --category-cols: 3; }
    .home-featured-section .home-card-grid,
    .home-recommendations-section .home-recommendation-grid:not([data-count="1"]) { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .home-recommendation-grid[data-count="1"] .recommendation-card { grid-template-columns: 120px minmax(0,1fr); gap: 20px; }
    .home-recommendation-grid[data-count="1"] .recommendation-card-footer { grid-column: 2; }
}
@media (max-width: 767px) {
    .home-categories-section .category-grid { --category-cols: 2; }
}
@media (max-width: 575px) {
    /* Phones keep two tiles a row with a smaller photo; a name too long for its line hyphenates. */
    .home-categories-section .category-grid { --category-gap: 10px; }
    .home-categories-section .category-card { gap: 8px; min-height: 50px; padding-block: 6px; padding-inline: 6px 8px; }
    .home-categories-section .category-card-media { width: 44px; }
    .home-categories-section .category-card-image { border-radius: 9px; }
    .home-categories-section .category-card-icon { width: 22px; height: 22px; inset-inline-end: -5px; bottom: -5px; }
    .home-categories-section .category-card-icon :is(img,svg) { width: 14px; height: 14px; }
    .home-categories-section .category-card h3 { font-size: 13px; -webkit-line-clamp: 3; }

    .home-dmo-spotlight, .home-featured-section, .home-travel-services-section,
    .home-recommendations-section, .home-categories-section { padding: 30px 0; }
    :is(.home-featured-section,.home-recommendations-section) .section-heading-row { gap: 12px; align-items: flex-end; }
    :is(.home-featured-section,.home-recommendations-section) .section-view-all { padding: 8px 12px; }
    .home-featured-section .home-card-grid { gap: 12px; }
    .home-featured-section .home-listing-card { border-radius: 16px; }
    .home-featured-section .home-listing-body { left: 12px; right: 12px; bottom: 12px; }
    .home-featured-section .home-listing-body h3 { font-size: 15px; margin-bottom: 6px; }
    .home-featured-section .listing-distance { font-size: 11px; padding: 4px 8px; }
    .home-featured-section .home-listing-fallback svg { width: 42px; height: 42px; }
    .home-recommendations-section:after { background-position: 130px center; background-size: 580px auto; background-repeat: no-repeat; opacity: .4; }
    .home-recommendations-section .home-recommendation-grid:not([data-count="1"]) { grid-template-columns: minmax(0,1fr); }
    .home-recommendations-section .recommendation-card,
    .home-recommendation-grid[data-count="1"] .recommendation-card { display: flex; flex-direction: column; align-items: stretch; padding: 20px; gap: 16px; }
    .home-recommendation-grid[data-count="1"] .recommendation-card-top { flex-direction: row; align-items: center; }
    .home-recommendation-grid[data-count="1"] .recommendation-card-footer { border-top: 1px solid #e7eef1; padding-top: 14px; }
    .home-travel-services-section .is-logo-only { padding: 20px; gap: 16px; }
    .home-travel-services-section .is-logo-only .travel-service-media { width: 72px; height: 72px; padding: 8px; border-radius: 14px; }
    .home-travel-services-section .travel-service-body h3 { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
    :is(.home-featured-section,.home-recommendations-section,.home-travel-services-section,.home-categories-section) a,
    :is(.home-featured-section,.home-categories-section) img,
    .home-recommendations-section .recommendation-card-footer i { transition: none; }
    :is(.home-featured-section,.home-recommendations-section,.home-travel-services-section,.home-categories-section) a:hover { transform: none; }
    .home-categories-section .category-card:hover .category-card-image > img { transform: none; }
}

/* Location, search and map share one entry point below the hero. */
.home-discovery-section { position: relative; z-index: 5; margin-top: -42px; padding-bottom: 8px; background: linear-gradient(transparent 42px,#fff 42px); }
.home-discovery-card { padding: 24px; border: 1px solid #dce5ea; border-radius: 24px; background: #fff; box-shadow: 0 14px 36px #193b4b16; }
.home-discovery-context { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.home-discovery-location { min-width: 0; }
.home-discovery-label { display: block; font-size: 12px; line-height: 1.5; color: #647783; margin-bottom: 3px; }
.home-discovery-location-btn { display: inline-flex; align-items: center; gap: 12px; max-width: 100%; min-height: 32px; padding: 0; border: 0; background: transparent; color: #223e4c; font-size: 17px; font-weight: 650; text-align: start; }
.home-discovery-location-btn span { overflow-wrap: anywhere; }
.home-discovery-location-btn i { display: grid; place-items: center; flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: #edf4f6; color: #487382; font-size: 10px; }
.home-discovery-card .location-switch { flex: 0 0 auto; width: auto; min-height: 44px; padding: 10px 14px; border-radius: 12px; box-shadow: none; font-size: 13px; font-weight: 600; background: #f6f9fa; color: #476774; }
.home-discovery-search-row { display: flex; align-items: flex-start; gap: 12px; }
.home-discovery-search { min-width: 0; flex: 1; position: relative; }
.home-discovery-card .home-search-input { height: 56px; padding: 0 16px 0 46px; border-radius: 12px; background: #f8fafb; border-color: #ccdce3; font-size: 16px; }
.home-discovery-card.home-search-card--compact .home-search-input { padding-right: 210px; }
.home-discovery-card .home-search-input:focus { background: #fff; border-color: #41868c; box-shadow: 0 0 0 3px #41868c20; }
.home-discovery-card .home-search-input-wrap > i { color: #4d717e; }
.home-discovery-card .home-search-loader { position: static; display: block; margin-top: 8px; font-size: 12px; color: #617681; }
.home-discovery-card .home-search-results { position: relative; margin-top: 8px; max-height: 320px; border-radius: 12px; box-shadow: none; }
.home-discovery-card .location-map-btn { min-height: 56px; padding: 12px 24px; border-radius: 12px; flex: 0 0 auto; width: auto; background: #24767b; border: 1px solid #24767b; color: #fff; box-shadow: none; font-size: 14px; font-weight: 600; }
.home-discovery-card .location-map-btn:hover { background: #1b6166; transform: none; }
.home-discovery-ai-note { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; color: #687d88; font-size: 12px; line-height: 1.5; }
.home-discovery-ai-note > i { color: #598397; }
.home-discovery-card :is(button,a):focus-visible { outline: 2px solid var(--ui-focus, #41868c); outline-offset: 2px; }

/* Spotlight header: chapter title on the left, the visitor's area on the right. The media lives in dmo-stage.css. */
.home-dmo-spotlight .dmo-spotlight-card { padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
.home-dmo-spotlight .section-heading { margin-bottom: 0; }

/* A single service is always an identity / description / action row. */
.home-travel-services-section .travel-service-grid .is-compact-service { display: grid; grid-template-columns: 88px minmax(0,1fr) auto; align-items: center; gap: 24px; padding: 26px; text-align: start; }
.travel-service-compact-logo { position: relative; display: grid; place-items: center; width: 88px; height: 88px; border: 1px solid #e3e9ec; border-radius: 16px; background: #fff; overflow: hidden; color: #527a83; }
.travel-service-compact-logo > i { font-size: 28px; }
.travel-service-compact-logo img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 12px; background: #fff; object-fit: contain; }
.travel-service-compact-logo img[hidden] { display: none; }
.travel-service-compact-copy { min-width: 0; }
.travel-service-compact-copy .travel-service-eyebrow { font-size: 10px; margin-bottom: 8px; }
.travel-service-compact-copy h3 { font-size: 21px; font-weight: 650; line-height: 1.3; margin: 0 0 6px; overflow-wrap: anywhere; }
.travel-service-compact-copy p { max-width: 680px; font-size: 14px; line-height: 1.6; color: #617580; margin: 0; overflow-wrap: anywhere; }
.travel-service-compact-action { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 12px 18px; border-radius: 12px; border: 1px solid #c5d8dc; background: #f3f8f8; color: #286b72; font-size: 14px; font-weight: 600; }
@media (max-width: 767px) {
    .home-dmo-spotlight .dmo-spotlight-grid { grid-template-columns: minmax(0,1fr); gap: 16px; }
    .home-discovery-context { align-items: flex-start; gap: 12px; }
    .home-discovery-card .location-switch { max-width: 45%; white-space: normal; }
    .home-travel-services-section .travel-service-grid .is-compact-service { grid-template-columns: 72px minmax(0,1fr); gap: 18px; padding: 22px; }
    .travel-service-compact-logo { width: 72px; height: 72px; }
    .travel-service-compact-action { grid-column: 2; justify-self: start; }
}
@media (max-width: 575px) {
    .home-discovery-section { margin-top: -24px; padding-bottom: 8px; background: linear-gradient(transparent 24px,#fff 24px); }
    .home-discovery-card { padding: 18px; border-radius: 20px; }
    .home-discovery-context { flex-direction: column; gap: 8px; margin-bottom: 14px; }
    .home-discovery-card .location-switch { max-width: 100%; min-height: 36px; padding: 6px 0; border: 0; background: transparent; }
    .home-discovery-search-row { flex-direction: column; gap: 10px; }
    .home-discovery-search { width: 100%; }
    .home-discovery-card .location-map-btn { width: 100%; min-height: 46px; }
    .home-discovery-card .home-search-input { height: 52px; font-size: 16px; }
    .travel-service-compact-copy h3 { font-size: 18px; }
    .home-travel-services-section .travel-service-grid .is-compact-service { gap: 14px; padding: 18px; }
    .travel-service-compact-action { grid-column: 1 / -1; justify-self: stretch; }
}

@media (max-width: 600px) {
    .home-discovery-card.home-search-card--compact .home-search-input { padding-right: 12px; background: transparent; }
    .home-discovery-card.home-search-card--compact .home-search-input-wrap { background: #f8fafb; border-color: #ccdce3; border-radius: 12px; }
    .home-discovery-card.home-search-card--compact .home-search-input:focus { box-shadow: none; }
}

/* One integrated Ask entry, with the existing location and navigation actions. */
.home-discovery-section--sticky { position: sticky; top: calc(var(--iw-header-height, 65px) + 8px); z-index: 900; background: transparent; pointer-events: none; }
.home-discovery-section--sticky .home-discovery-card { pointer-events: auto; }
.home-discovery-card.home-search-card--compact { display: flex; align-items: center; gap: 12px; padding: 10px; max-width: var(--home-entry-width,820px); margin-inline: auto; }
.home-search-card--compact .home-discovery-context { flex: 0 1 340px; min-width: 0; justify-content: flex-start; gap: 8px; margin: 0; padding-inline-end: 12px; }
.home-search-card--compact .home-discovery-location { flex: 1; min-width: 0; }
.home-search-card--compact .home-discovery-location-btn { display: flex; width: 100%; min-height: 70px; gap: 12px; padding: 10px; border-radius: 16px; transition: background .18s ease; }
.home-search-card--compact .home-discovery-location-btn:hover { background: #f3f7f8; }
.home-search-card--compact .home-discovery-label { margin-bottom: 2px; font-weight: 500; }
.home-search-card--compact .home-near-pin { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; background: #e0f4f1; color: #198e85; }
.home-search-card--compact svg { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.home-search-card--compact .home-near-copy { display: flex; flex-direction: column; min-width: 0; }
.home-search-card--compact .home-near-value { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 18px; line-height: 1.4; font-weight: 700; }
.home-search-card--compact .home-near-chevron { width: 16px; height: 16px; color: #738998; }
.home-search-card--compact #homeCurrentLocationName { min-width: 0; }
.home-search-card--compact .current-location-primary,
.home-search-card--compact .current-location-secondary { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-search-card--compact .location-switch { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; max-width: none; padding: 0; border: 1px solid #dce7ec; border-radius: 50%; background: #fff; color: #5c7a8b; }
.home-search-card--compact .location-switch:hover { color: #198e85; border-color: #97cbc4; }
.home-search-card--compact .location-switch.is-loading { width: auto; height: auto; padding: 10px; gap: 6px; border-radius: 14px; }
.home-search-card--compact .location-switch::after { content: attr(data-tooltip); position: absolute; top: calc(100% + 8px); inset-inline-start: 0; z-index: 10; width: max-content; max-width: 220px; padding: 7px 10px; border-radius: 8px; background: #223e4c; color: #fff; font-size: 12px; line-height: 1.4; white-space: normal; pointer-events: none; opacity: 0; visibility: hidden; }
.home-search-card--compact .location-switch:is(:hover,:focus-visible):not(.is-loading)::after { opacity: 1; visibility: visible; }
.home-search-card--compact .home-discovery-search-row { position: relative; flex: 1; min-width: 0; flex-direction: row; align-items: center; gap: 12px; padding-inline-start: 12px; }
.home-search-card--compact .home-discovery-search-row::before,
.home-search-card--compact .home-discovery-search-row > * + *::before { content: ''; position: absolute; inset-inline-start: 0; top: 16px; bottom: 16px; width: 1px; background: #e1e8ee; }
.home-search-card--compact .home-ask-launch { position: relative; transform: none; align-self: auto; flex: 0 1 auto; margin-inline-start: 0; min-width: 0; min-height: 70px; justify-content: flex-end; gap: 8px; padding: 10px 14px; border: 0; border-radius: 16px; background: transparent; box-shadow: none; color: #536d7d; font-size: 14px; font-weight: 600; }
.home-search-card--compact .home-ask-launch:is(:hover,:focus-visible) { transform: none; background: #f5f3fc; box-shadow: none; }
.home-search-card--compact .location-map-btn { position: relative; gap: 8px; width: auto; min-height: 70px; padding: 12px 18px; background: transparent; border: 0; color: #536d7d; }
.home-search-card--compact .location-map-btn::before { inset-inline-start: -6px; }
.home-search-card--compact .location-map-btn:hover { background: #f3f7f8; color: #286b72; }
.home-search-card--compact .home-near-map { width: 24px; height: 24px; color: #19978c; fill: #def4ee; transform-origin: center; }
.home-search-card--compact .location-map-btn:is(:hover,:focus-visible) .home-near-map { animation: home-near-map-lift .65s ease-in-out; }
/* Tablet widths squeezed the search row until Ask IsWhere's centred orb overflowed onto the search
   icon; keep the row at its content width and let the location side give way instead. */
@media (min-width: 768px) {
    .home-search-card--compact .home-discovery-search-row { min-width: max-content; }
    .home-search-card--compact .home-ask-launch { flex-shrink: 0; }
}
@keyframes home-near-map-lift {
    0%, 100% { transform: translateY(0) rotate(0); }
    40% { transform: translateY(-2px) rotate(-6deg); }
    70% { transform: translateY(-1px) rotate(3deg); }
}
@media (max-width: 767px) {
    .home-discovery-card.home-search-card--compact { flex-direction: column; align-items: stretch; gap: 0; }
    .home-search-card--compact .home-discovery-context { flex: auto; flex-direction: row; align-items: center; justify-content: space-between; margin: 0; padding: 0 6px 6px 0; }
    .home-search-card--compact .location-switch::after { inset-inline-start: auto; inset-inline-end: 0; }
    .home-search-card--compact .home-discovery-search-row { flex: auto; gap: 8px; padding: 6px 0 0; border-top: 1px solid #e1e8ee; }
    .home-search-card--compact .home-discovery-search-row::before { display: none; }
    .home-search-card--compact .home-ask-launch { min-height: 60px; gap: 8px; padding: 8px; font-size: 13px; }
    .home-search-card--compact .home-ask-launch img { width: 30px; height: 30px; flex-basis: 30px; }
    .home-search-card--compact .location-map-btn { min-height: 60px; min-width: 0; max-width: 44%; padding: 8px; font-size: 13px; white-space: normal; }
    .home-search-card--compact .location-map-btn::before { inset-inline-start: -4px; }
}
@media (prefers-reduced-motion: reduce) {
    .home-search-card--compact :is(.home-discovery-location-btn,.home-ask-launch) { transition: none; }
    .home-search-card--compact .location-map-btn:is(:hover,:focus-visible) .home-near-map { animation: none; }
}

/* Reserve the expanded footprint while the sticky card changes size. */
.home-discovery-section--sticky { min-height: var(--home-discovery-height, 0px); }
/* Join the hero and Spotlight surfaces without removing the sticky footprint. */
.home-discovery-section--sticky + .home-dmo-spotlight--textured {
    margin-top: calc(-1 * var(--home-discovery-overlap, 58px));
    padding-top: calc(var(--home-discovery-overlap, 58px) + 24px);
}
main:has(> .home-discovery-section--sticky) + .iswhere-footer { margin-top: 0; }
.home-discovery-section--sticky .home-discovery-card,
.home-discovery-section--sticky :is(.home-discovery-context,.home-discovery-location-btn,.home-discovery-search-row,.home-ask-launch,.location-map-btn,.home-near-pin,.home-near-value,.home-discovery-label,.home-near-map),
.home-discovery-section--sticky .home-ask-launch img {
    transition: max-width .28s ease, min-height .28s ease, padding .28s ease, gap .28s ease, width .28s ease, height .28s ease, flex-basis .28s ease, font-size .28s ease, border-radius .28s ease, box-shadow .28s ease, background .18s ease;
}
.home-discovery-section--sticky.is-compact .home-discovery-card { max-width: var(--home-entry-compact-width,720px); padding: 6px; gap: 8px; border-radius: 18px; box-shadow: 0 8px 24px #193b4b1a; }
.home-discovery-section--sticky.is-compact .home-discovery-context { flex-basis: 320px; gap: 6px; padding-inline-end: 8px; }
.home-discovery-section--sticky.is-compact .home-discovery-location-btn { min-height: 52px; padding: 4px 8px; gap: 8px; }
.home-discovery-section--sticky.is-compact .home-near-pin { width: 34px; height: 34px; flex-basis: 34px; }
.home-discovery-section--sticky.is-compact .home-near-value { font-size: 16px; }
.home-discovery-section--sticky.is-compact .home-discovery-label { font-size: 11px; }
.home-discovery-section--sticky.is-compact .home-discovery-search-row { gap: 8px; padding-inline-start: 8px; }
.home-discovery-section--sticky.is-compact :is(.home-ask-launch,.location-map-btn) { min-height: 52px; padding: 6px 10px; font-size: 13px; gap: 6px; }
.home-discovery-section--sticky.is-compact .home-ask-launch img { width: 32px; height: 32px; flex-basis: 32px; }
.home-discovery-section--sticky.is-compact .home-near-map { width: 22px; height: 22px; }
.home-discovery-section--sticky.is-measuring *,
.home-discovery-section--sticky.is-measuring .home-discovery-card { transition: none !important; }
@media (max-width: 767px) {
    .home-discovery-section--sticky.is-compact .home-discovery-card { gap: 0; }
    .home-discovery-section--sticky.is-compact .home-discovery-context { flex-basis: auto; padding: 0 4px 4px 0; }
    .home-discovery-section--sticky.is-compact .home-discovery-search-row { padding: 4px 0 0; }
    .home-discovery-section--sticky.is-compact :is(.home-ask-launch,.location-map-btn) { min-height: 44px; padding: 4px 8px; }
    .home-discovery-section--sticky.is-compact .home-ask-launch img { width: 28px; height: 28px; flex-basis: 28px; }
}
@media (prefers-reduced-motion: reduce) {
    .home-discovery-section--sticky .home-discovery-card,
    .home-discovery-section--sticky .home-discovery-card * { transition: none; }
}

/* Entry actions and dividers follow the independently enabled controls. */
.home-search-card--compact .home-discovery-search-row > * + *::before { inset-inline-start: -6px; }
.home-search-card--compact .home-direct-search { position: relative; display: grid; place-items: center; align-self: stretch; flex: 1; min-width: 44px; padding: 0; border: 0; border-radius: 12px; background: transparent; color: #486573; }
.home-direct-search { transition: background-color 180ms ease, box-shadow 180ms ease; }
.home-direct-search svg { transition: transform 220ms ease; }
.home-search-card--compact .home-direct-search:is(:hover,:focus-visible) { background: #edf7f7; box-shadow: 0 3px 10px #29495712; }
.home-direct-search:is(:hover,:focus-visible) svg { transform: translateY(-1px) rotate(-12deg) scale(1.12); }
.home-search-card--compact:not(:has(.home-ask-launch)) { --home-entry-width: 660px; --home-entry-compact-width: 580px; }
.home-search-card--compact:not(:has(.home-ask-launch,.home-direct-search)) { --home-entry-width: 540px; --home-entry-compact-width: 480px; }
.home-search-card--compact .home-discovery-context { flex-basis: 340px; }
@media(max-width:767px) {
    .home-search-card--compact .home-discovery-context { flex-basis: auto; }
    .home-search-card--compact .home-discovery-search-row > * + *::before { inset-inline-start: -4px; }
    .home-search-card--compact .location-map-btn:first-child { margin-inline: auto; }
}
@media(prefers-reduced-motion:reduce) { .home-direct-search,.home-direct-search svg { transition: none; } .home-direct-search:is(:hover,:focus-visible) svg { transform: none; } }
