/* Single source for compact and expanded HOME_TRIP_CARD visual primitives.
   Shared map placement presentation resides in atlas.shared.css; preview placement
   is owned by journey-preview.shared.css. */
.map-trip-card{position:absolute;pointer-events:auto;border:1px solid #fff7;border-radius:var(--radius-control);background:linear-gradient(#112c2766,#102b26ee),var(--trip-image, none);background-position:var(--trip-image-position,center);background-size:cover;color:var(--tyit-text-on-dark)}
.map-trip-card.is-muted{opacity:.62;filter:grayscale(.85)}.map-trip-card.is-expanded{background:linear-gradient(#102b266b,#102b26f2),var(--trip-image, none);background-position:var(--trip-image-position,center);background-size:cover}
.map-trip-toggle{appearance:none;display:block;width:100%;border:0;background:none;color:inherit;text-align:left;padding:14px 16px;cursor:pointer;min-height:82px}.map-trip-toggle small{font:var(--tyit-weight-label) var(--tyit-type-compact-nav)/1.2 var(--tyit-font-structural);letter-spacing:.13em;text-transform:uppercase;color:#e5c982}.map-trip-toggle h3{font:var(--tyit-weight-body) var(--tyit-type-subheading)/1.05 var(--serif);margin:7px 0 0}.map-trip-toggle:focus-visible{outline:3px solid #e5c982;outline-offset:-3px}
.map-trip-card,.discovery-stage .map-trip-card{display:grid;grid-template-rows:auto;height:auto;min-height:82px;overflow:hidden}
.map-trip-card.is-expanded,.discovery-stage .map-trip-card.is-expanded{min-height:0}
.trip-card-text{min-height:0;overflow:visible}
.map-trip-card .map-trip-toggle,.discovery-stage .map-trip-card .map-trip-toggle{padding:10px 12px;min-height:0}
.map-trip-card .map-trip-toggle small{display:block;line-height:1.3;letter-spacing:.09em;overflow-wrap:anywhere}
.map-trip-card .map-trip-toggle h3{margin-top:6px;line-height:1.1;overflow-wrap:anywhere}
.map-trip-card.is-expanded h3{font-size:min(23px,var(--tyit-type-subheading))}
.map-trip-card p,.discovery-stage .map-trip-card p{padding:0 12px 10px;font-size:13px;line-height:1.35;margin:0}
/* The arrow shares the final description lines, with no separate footer. */
.map-trip-card.is-expanded .trip-card-detail{--trip-detail-inline:12px;--trip-detail-bottom:10px;position:relative;display:flow-root;padding-inline:var(--trip-detail-inline);padding-bottom:var(--trip-detail-bottom)}
/* The float reserves the description corner; the link itself is pinned to the final line. */
.map-trip-card.is-expanded .trip-card-detail::before{content:"";float:right;width:calc(var(--nav-editorial-size) + 8px);height:var(--trip-arrow-reserve,0px);shape-outside:inset(var(--trip-arrow-offset,0px) 0 0 0)}
.map-trip-card.is-expanded .trip-resource-arrow{position:absolute;right:var(--trip-detail-inline);bottom:var(--trip-detail-bottom)}

/* Expanded HOME map cards: content-measured width, natural height and corner arrow. */
.discovery-stage .map-trip-card.is-expanded{max-width:min(320px,calc(100vw - 24px));max-height:none;overflow:visible}

/* Compact Atlas card presentation. */
.discovery-stage .map-trip-card p{font-size:13px;line-height:1.35}
.discovery-stage .map-trip-card:not(.is-expanded){height:auto;min-height:0;max-height:none}
.discovery-stage .map-trip-card:not(.is-expanded) .trip-card-text{overflow:hidden}
.discovery-stage .map-trip-card:not(.is-expanded) .map-trip-toggle{min-height:0;padding:9px 24px 7px 12px;position:static;display:block;height:100%;box-sizing:border-box}
.discovery-stage .map-trip-card:not(.is-expanded) .trip-card-compact-arrow{position:absolute;right:9px;bottom:9px;font-size:17px;line-height:1;pointer-events:none}
.discovery-stage .map-trip-card:not(.is-expanded) .map-trip-toggle small{white-space:normal;overflow-wrap:break-word}
.discovery-stage .map-trip-card:not(.is-expanded) .map-trip-toggle h3{font-size:var(--tyit-type-subheading);line-height:1.08;overflow:hidden;margin:4px 0 0}
.discovery-stage .map-trip-card:not(.is-expanded) .trip-card-detail{font-size:12px;line-height:1.3;padding:0 12px 10px;margin:0}
.discovery-stage .map-trip-card.is-condensed .trip-card-detail{display:none}

/* Compact in-map row: use the same cards and type fitting with smaller insets. */
.discovery-stage .map-trip-card.is-row-compact:not(.is-expanded) .map-trip-toggle{padding:7px 8px 16px;}
.discovery-stage .map-trip-card.is-row-compact:not(.is-expanded) .trip-card-compact-arrow{right:7px;bottom:5px;font-size:14px;}
