/* Landing page: the query comes first, with ideas of where to go below it. Colours follow the planner. */
:root { --ink: #101c28; --muted: #78828f; --border: #e9edf0; --gradient: linear-gradient(135deg, #01aefd, #01ddd9, #02f9a7); }
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Montserrat, Arial, Helvetica, sans-serif;
    color: var(--ink);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; cursor: pointer; }
.home-header { display: flex; align-items: center; height: 72px; padding: 0 32px; border-bottom: 1px solid var(--border); }
.home-brand img { display: block; height: 46px; width: auto; }
.home-main { width: min(1120px, 100%); margin: 0 auto; padding: 0 24px 56px; }

.home-hero { display: flex; flex-direction: column; align-items: center; padding: clamp(40px, 9vh, 88px) 0 clamp(40px, 7vh, 64px); text-align: center; }
.home-hero h1 { margin: 0 0 10px; font-size: clamp(44px, 6vw, 72px); font-weight: 800; letter-spacing: -3px; line-height: 1.06; }
.home-hero h1 span { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.home-lead { margin: 0 0 28px; font-size: clamp(16px, 1.6vw, 20px); color: #47525e; }

.home-search {
    display: flex;
    align-items: center;
    gap: 14px;
    width: min(760px, 100%);
    min-height: 72px;
    padding: 10px 10px 10px 24px;
    border: 1px solid #e6e9ec;
    border-radius: 40px;
    background: #fff;
    box-shadow: 0 8px 32px #162b4214;
    transition: border-color .2s, box-shadow .2s;
}
.home-search:focus-within { border-color: #01ddd9; box-shadow: 0 0 0 4px #01ddd91f, 0 8px 32px #162b4214; }
.home-sparkle { font-size: 28px; line-height: 1; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.home-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.home-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 17px; color: inherit; }
.home-search input::placeholder { color: #66707b; }
.home-search button {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--ink);
    transition: background .2s, transform .2s;
}
.home-search button:hover { background: #007fae; transform: rotate(-7deg); }
.home-search svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }

.home-ideas { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.home-ideas button {
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 30px;
    background: #fff;
    font-size: 13px;
    font-weight: 500;
    transition: border-color .2s;
}
.home-ideas button:hover { border-color: #01ddd9; }

.home-places h2 { margin: 0 0 16px; font-size: 20px; font-weight: 700; letter-spacing: -.3px; }
.home-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.place-card {
    position: relative;
    isolation: isolate;
    display: block;
    width: 100%;
    height: 240px;
    padding: 14px;
    overflow: hidden;
    border: 0;
    border-radius: 12px;
    background: #d6e7ef;
    color: #fff;
    text-align: left;
}
.place-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.place-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 40%, #062d49da); }
.place-card:hover img { transform: scale(1.07); }
.place-caption { position: absolute; left: 14px; right: 14px; bottom: 14px; }
.place-caption strong { display: block; font-size: 20px; font-weight: 700; }
.place-caption small { display: block; margin-top: 2px; font-size: 12px; line-height: 1.4; }

@media (max-width: 767.98px) {
    .home-header { height: 60px; padding: 0 18px; }
    .home-brand img { height: 36px; }
    .home-main { padding: 0 18px 32px; }
    .home-hero h1 { letter-spacing: -1.6px; }
    .home-search { min-height: 60px; gap: 10px; padding: 8px 8px 8px 16px; }
    .home-search input { font-size: 15px; }
    .home-search button { width: 44px; height: 44px; }
    /* Same sideways-scrolling card row as in the planner. */
    .home-grid { display: flex; gap: 10px; margin-right: -18px; padding-right: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
    .home-grid::-webkit-scrollbar { display: none; }
    .place-card { flex: 0 0 68%; height: 200px; scroll-snap-align: start; }
}
@media (prefers-reduced-motion: reduce) {
    .place-card img, .home-search, .home-search button { transition: none; }
}

/* Accommodation row and activity list below the destinations. */
.home-places + .home-places { margin-top: 40px; }
.stay-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0;
    overflow: hidden;
    border: 1px solid #e4e9ed;
    border-radius: 12px;
    background: #fff;
    text-align: left;
    transition: border-color .2s, box-shadow .2s;
}
.stay-card:hover, .activity-row:hover { border-color: #01ddd9; box-shadow: 0 6px 20px #162b420f; }
.stay-card img { display: block; width: 100%; height: 150px; object-fit: cover; }
.stay-info { display: flex; flex: 1; flex-direction: column; gap: 3px; padding: 12px 14px 14px; }
.stay-info small, .activity-row small { font-size: 11px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: #6d8e9d; }
.stay-info strong { font-size: 15px; font-weight: 700; line-height: 1.3; }
.stay-stars { font-size: 11px; color: #ffb400; }
.stay-price { margin-top: auto; padding-top: 8px; font-size: 12px; color: var(--muted); }
.stay-price b { font-size: 18px; font-weight: 800; color: var(--ink); }

.home-activities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.activity-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    text-align: left;
    transition: border-color .2s, box-shadow .2s;
}
.activity-row img { flex-shrink: 0; width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.activity-row > span { display: flex; flex-direction: column; min-width: 0; }
.activity-row strong { font-size: 14px; font-weight: 700; }
.activity-row > span > span { font-size: 12px; color: #4a5662; }

@media (max-width: 767.98px) {
    .stay-card { flex: 0 0 68%; scroll-snap-align: start; }
    .stay-card img { height: 130px; }
    .home-activities { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .stay-card, .activity-row { transition: none; }
}

/* Activities: soft white cards with an image, short text and a pill. */
.home-activities { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.activity-row { gap: 16px; padding: 14px 16px; border-color: transparent; border-radius: 20px; box-shadow: 0 4px 24px #162b4214; }
.activity-row:hover { border-color: transparent; box-shadow: 0 8px 30px #162b4224; }
.activity-row img { width: 84px; height: 84px; border-radius: 16px; }
.activity-text { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.activity-text strong { font-size: 14px; font-weight: 600; line-height: 1.35; }
.activity-row .activity-text small { margin-top: 2px; font-size: 12px; font-weight: 400; letter-spacing: 0; line-height: 1.35; text-transform: none; color: var(--muted); }
.activity-cta { margin-top: 10px; padding: 7px 14px; border-radius: 999px; background: #f1f3f5; font-size: 12px; font-weight: 600; color: var(--ink); transition: background .2s; }
.activity-row:hover .activity-cta { background: #e6eaed; }
@media (max-width: 1023.98px) { .home-activities { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767.98px) { .home-activities { grid-template-columns: 1fr; } }

/* Activities are offered as interests: ONE suggests what to do for the chosen one. */
.home-icons { position: absolute; width: 0; height: 0; overflow: hidden; }
.home-note { margin: -10px 0 16px; font-size: 14px; color: var(--muted); }
.activity-icon { flex-shrink: 0; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 18px; background: linear-gradient(135deg, #ecf9ff, #effdf8); color: #01aefd; }
.activity-icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.activity-more { margin-top: 14px; }
.activity-more > summary { display: block; width: max-content; margin: 0 auto; padding: 9px 18px; border: 1px solid var(--border); border-radius: 999px; background: #fff; font-size: 13px; font-weight: 600; cursor: pointer; list-style: none; transition: border-color .2s; }
.activity-more > summary::-webkit-details-marker { display: none; }
.activity-more > summary:hover { border-color: #01ddd9; }
.activity-more .more-open, .activity-more[open] .more-closed { display: none; }
.activity-more[open] .more-open { display: inline; }
.activity-more[open] > summary { margin-bottom: 14px; }
.activity-row > .activity-icon { display: grid; }
.more-activities { margin-top: 14px; }
.more-activities[hidden] { display: none; }
.activity-toggle { display: block; margin: 16px auto 0; padding: 9px 18px; border: 1px solid var(--border); border-radius: 999px; background: #fff; font-size: 13px; font-weight: 600; transition: border-color .2s; }
.activity-toggle:hover { border-color: #01ddd9; }
.activity-toggle { display: flex; align-items: center; gap: 9px; width: max-content; }
.activity-toggle::after { content: ""; width: 7px; height: 7px; border-right: 1.7px solid currentColor; border-bottom: 1.7px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.activity-toggle[aria-expanded="true"]::after { transform: translateY(2px) rotate(-135deg); }
.activity-surprise .activity-icon { background: var(--gradient); color: #fff; font-size: 28px; line-height: 1; }
.activity-toggle:focus { outline: 0; }
.activity-toggle:focus-visible { outline: 2px solid #01ddd9; outline-offset: 2px; }
/* Tomorrow's forecast on the destination cards, same pill as in the planner. */
.place-weather { position: absolute; top: 10px; right: 10px; display: flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 30px; background: #fffffff5; font-size: 12px; font-weight: 700; color: #142332; }
.place-weather svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.place-weather .is-sun { color: #ffb400; }
.place-weather .is-rain { color: #008df0; }
/* Logged-in user in the header. */
.home-header { justify-content: space-between; }
.home-user { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; }
.home-avatar { display: grid; width: 36px; height: 36px; overflow: hidden; border-radius: 50%; background: linear-gradient(160deg, #dbe3ea, #c3cfd9); }
.home-avatar svg { width: 100%; height: 100%; fill: #fff; }

/* Header controls, matching the planner: trips, new trip and the account menu. */
.home-nav { position: relative; display: flex; align-items: center; gap: 12px; }
.hd-icon { width: 21px; height: 21px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.hd-trips, .hd-add, .hd-menu { position: relative; display: inline-flex; align-items: center; justify-content: center; height: 44px; border-radius: 999px; }
.hd-trips { gap: 7px; padding: 0 14px 0 12px; border: 1px solid var(--border); background: #fff; font-size: 12px; font-weight: 700; }
.hd-trips:hover, .hd-menu:hover { background: #f1f5f7; }
.hd-add { width: 44px; padding: 0; border: 0; background: var(--gradient); color: #fff; }
.hd-add:hover { box-shadow: 0 4px 14px #01aefd55; transform: translateY(-1px); }
.hd-menu { gap: 8px; padding: 0 5px 0 12px; border: 1px solid var(--border); background: #fff; }
.hd-menu .home-avatar { width: 34px; height: 34px; }
.home-nav button:focus { outline: 0; }
.home-nav button:focus-visible { outline: 2px solid #01ddd9; outline-offset: 2px; }
[data-tooltip]::after { content: attr(data-tooltip); position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); padding: 6px 10px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 600; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; z-index: 120; }
[data-tooltip]:hover::after, [data-tooltip]:focus-visible::after { opacity: 1; }
[data-tooltip][aria-expanded="true"]::after { opacity: 0; }

.hd-panel { position: absolute; top: 54px; right: 0; z-index: 110; min-width: 235px; padding: 14px; border: 1px solid var(--border); border-radius: 16px; background: #fff; box-shadow: 0 12px 35px #142d4920; font-size: 13px; }
.hd-panel[hidden] { display: none; }
.trips-panel { right: 96px; }
.menu-section { padding: 2px 10px 6px; font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: #83939d; }
.menu-item { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 10px; background: none; font-size: 13px; font-weight: 600; color: var(--ink); text-align: left; text-decoration: none; cursor: pointer; }
.menu-item:hover { background: #f0f8fb; }
.menu-item .hd-icon { width: 18px; height: 18px; color: #6d8e9d; }
.menu-item[data-menu="Log out"] { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--border); border-radius: 0; color: #c2410c; }
.menu-user { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; padding: 2px 2px 12px; border-bottom: 1px solid var(--border); }
.menu-user > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.menu-user strong { font-size: 13px; font-weight: 700; }
.menu-user small { font-size: 11px; color: var(--muted); }

.hd-hover { position: absolute; right: 100%; top: 50%; transform: translateY(-50%); padding-right: 10px; opacity: 0; visibility: hidden; transition: opacity .15s; cursor: default; }
.menu-item:hover > .hd-hover, .menu-item:focus-within > .hd-hover, .menu-package:focus > .hd-hover { opacity: 1; visibility: visible; }
.hd-card { display: flex; flex-direction: column; gap: 6px; width: 230px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 14px; background: #fff; box-shadow: 0 12px 30px #213c4f22; font-size: 12px; font-weight: 500; color: #4a5662; }
.hd-card b { font-size: 20px; color: var(--ink); }
.hd-card small { font-size: 10px; color: #8b97a2; }
.usage-bar { display: block; height: 10px; border-radius: 999px; background: #eef1f4; overflow: hidden; }
.usage-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #01aefd, #01ddd9, #02f9a7); }
.package-name { width: max-content; padding: 2px 9px; border-radius: 999px; background: var(--gradient); color: #fff; font-size: 11px; font-weight: 700; }
.package-link { display: flex; align-items: center; justify-content: center; margin-top: 4px; padding: 8px 12px; border: 1px solid #9fe3ea; border-radius: 999px; background: #f4fcfd; font-size: 12px; font-weight: 700; color: #0a6f8f; text-decoration: none; }
.package-link:hover { border-color: #01ddd9; }

.home-toast { position: fixed; left: 50%; bottom: 24px; z-index: 130; max-width: calc(100% - 32px); padding: 13px 20px; border-radius: 14px; background: #122b3f; color: #fff; font-size: 13px; opacity: 0; pointer-events: none; transform: translate(-50%, 25px); transition: .2s; }
.home-toast.visible { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 767.98px) {
    .home-nav { gap: 8px; }
    .hd-trips { width: 40px; height: 40px; padding: 0; }
    .hd-trips span { display: none; }
    .hd-add { width: 40px; height: 40px; }
    .hd-menu { height: 40px; }
    .hd-menu .home-avatar { width: 28px; height: 28px; }
    .trips-panel { right: 0; }
    .hd-hover { position: static; transform: none; padding: 8px 0 0; display: none; }
    .hd-panel { width: min(280px, calc(100vw - 36px)); }
}

/* Hero as a stylised chat: ONE asks, suggested replies below, own query in the composer. */
.home-hero { padding: clamp(32px, 7vh, 72px) 0 clamp(36px, 6vh, 56px); text-align: left; }
.hero-chat { display: flex; flex-direction: column; gap: 18px; width: min(760px, 100%); }
.hero-message { display: flex; align-items: flex-end; gap: 12px; animation: hero-in .45s ease both; }
.hero-avatar { flex-shrink: 0; width: 56px; height: 56px; object-fit: contain; }
.hero-bubble { padding: 22px 30px 24px; border-radius: 28px 28px 28px 8px; background: var(--gradient); color: #fff; box-shadow: 0 12px 34px #01aefd33; }
.hero-bubble h1 { margin: 0 0 4px; font-size: clamp(32px, 4.6vw, 54px); font-weight: 800; letter-spacing: -1.6px; line-height: 1.1; }
.hero-bubble p { margin: 0; font-size: clamp(14px, 1.4vw, 17px); font-weight: 500; }
.home-ideas { justify-content: flex-start; margin: 0 0 0 68px; animation: hero-in .45s ease .12s both; }
.home-ideas button { padding: 10px 16px; font-size: 14px; font-weight: 600; box-shadow: 0 3px 12px #162b420f; }
.home-search { width: 100%; animation: hero-in .45s ease .24s both; }
@keyframes hero-in { from { opacity: 0; transform: translateY(10px); } }
@media (max-width: 767.98px) {
    .hero-avatar { width: 36px; height: 36px; }
    .hero-message { gap: 8px; }
    .hero-bubble { padding: 16px 20px 18px; border-radius: 22px 22px 22px 6px; }
    .home-ideas { margin-left: 0; }
    .home-ideas button { padding: 8px 13px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-message, .home-ideas, .home-search { animation: none; }
}

/* Hero uses the same chat parts as the planner: agent bubble, tinted frame with options, composer with the robot. */
.hero-chat { gap: 12px; }
.hero-message { gap: 8px; }
.hero-avatar { width: 40px; height: 40px; }
.hero-bubble { padding: 14px 20px 15px; border-radius: 20px 20px 20px 6px; box-shadow: 0 6px 20px #01aefd30; }
.hero-bubble h1 { margin: 0 0 2px; font-size: clamp(22px, 2.6vw, 28px); font-weight: 700; letter-spacing: -.5px; line-height: 1.2; }
.hero-bubble p { font-size: 14px; }
.home-ideas {
    margin: 0 0 0 48px;
    padding: 20px;
    border: 1px solid #cdeef4;
    border-radius: 6px 24px 24px 24px;
    background: linear-gradient(135deg, #ecf9ff, #effdf8);
    box-shadow: 0 8px 30px #213c4f0f;
}
.home-ideas button { padding: 10px 16px; border-color: var(--border); background: #fff; box-shadow: none; }
.hero-composer { display: flex; align-items: center; gap: 8px; margin-top: 8px; animation: hero-in .45s ease .24s both; }
.hero-composer .home-search { flex: 1; width: auto; min-height: 64px; animation: none; }
@media (max-width: 767.98px) {
    .hero-avatar { width: 28px; height: 28px; }
    .hero-message, .hero-composer { gap: 6px; }
    .hero-bubble { padding: 12px 16px 13px; border-radius: 18px 18px 18px 6px; }
    .home-ideas { margin-left: 0; padding: 12px; border-radius: 6px 18px 18px 18px; }
    .hero-composer .home-search { min-height: 56px; }
}
@media (prefers-reduced-motion: reduce) { .hero-composer { animation: none; } }
/* The chat and its input span the same width as the cards below. */
.hero-chat { width: 100%; }

/* ONE recommendation in the hero: same orange message as in the planner. */
.hero-message[hidden] { display: none; }
.hero-dots { display: flex; gap: 5px; padding: 16px 18px; border-radius: 20px 20px 20px 6px; background: linear-gradient(135deg, #ffb347, #ff8a3d, #ff6b5b); }
.hero-dots span { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: hero-dot 1s ease-in-out infinite; }
.hero-dots span:nth-child(2) { animation-delay: .15s; }
.hero-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes hero-dot { 0%, 60%, 100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-4px); } }
.hero-tip-bubble { padding: 14px 18px 16px; border-radius: 20px 20px 20px 6px; background: linear-gradient(135deg, #ffb347, #ff8a3d, #ff6b5b); box-shadow: 0 10px 35px #ff8a3d40; color: #fff; }
.hero-tip-label { margin-bottom: 4px; font-size: 9px; font-weight: 700; letter-spacing: 1.1px; }
.hero-tip-bubble p { margin: 0 0 12px; font-size: 15px; font-weight: 500; }
.hero-tip-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-tip-actions button { padding: 8px 16px; border: 0; border-radius: 999px; background: #fff; color: #c2410c; font-size: 13px; font-weight: 700; box-shadow: 0 3px 10px #c2410c26; transition: transform .2s, box-shadow .2s; }
.hero-tip-actions button:hover { transform: translateY(-2px); box-shadow: 0 6px 16px #c2410c40; }
.hero-tip-actions .tip-dismiss { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px #ffffffc0; }
.hero-tip-actions .tip-dismiss:hover { background: #ffffff26; box-shadow: inset 0 0 0 1.5px #fff; transform: none; }
@media (prefers-reduced-motion: reduce) { .hero-dots span { animation: none; } .hero-tip-actions button { transition: none; } }
.hero-bubble h1 { margin: 0; font-size: clamp(17px, 1.7vw, 20px); font-weight: 600; letter-spacing: -.2px; }
/* Hero chat text: questions larger, answer pills smaller. */
.hero-bubble h1, .hero-tip-bubble p { font-size: 17px; font-weight: 600; letter-spacing: 0; }
.home-ideas button, .hero-tip-actions button { font-size: 13px; font-weight: 600; letter-spacing: 0; }
@media (max-width: 767.98px) {
    .hero-bubble h1, .hero-tip-bubble p { font-size: 16px; }
    .home-ideas button, .hero-tip-actions button { font-size: 12px; }
}
/* Chat frame around the hero conversation, set apart from the sections below. */
.hero-chat { padding: 24px; border: 1px solid var(--border); border-radius: 28px; background: #fff; box-shadow: 0 16px 48px #162b4212; }
.home-hero { padding-top: clamp(24px, 4vh, 40px); padding-bottom: clamp(56px, 9vh, 88px); }
@media (max-width: 767.98px) {
    .hero-chat { padding: 14px; border-radius: 22px; }
    .home-hero { padding-bottom: 44px; }
}
.hero-chat { padding: 40px; }
@media (max-width: 767.98px) { .hero-chat { padding: 20px; } }

/* The chat frame spans the page and speaks from the logo: its tail points up at the robot. */
.home-header { border-bottom: 0; }
.home-main { width: 100%; padding: 0 32px 56px; }
.home-content { width: min(1072px, 100%); margin: 0 auto; }
.home-hero { padding-top: 14px; }
.hero-chat { position: relative; }
.hero-chat::before { content: ""; position: absolute; top: -12px; left: 22px; width: 22px; height: 22px; border-top: 1px solid var(--border); border-left: 1px solid var(--border); border-radius: 4px 0 0 0; background: #fff; transform: rotate(45deg); }
.home-ideas { align-self: flex-start; width: fit-content; max-width: calc(100% - 48px); }
@media (max-width: 767.98px) {
    .home-main { padding: 0 18px 32px; }
    .home-hero { padding-top: 12px; }
    .hero-chat::before { top: -9px; left: 12px; width: 16px; height: 16px; }
    .home-ideas { max-width: 100%; }
}
/* Relative to the logo the frame behaves like a chat box under its avatar: sharp corner towards the logo, no tail. */
.hero-chat::before { content: none; }
.hero-chat { border-radius: 6px 24px 24px 24px; }
.home-hero { padding-top: 4px; }
@media (max-width: 767.98px) { .hero-chat { border-radius: 6px 18px 18px 18px; } .home-hero { padding-top: 4px; } }
.hero-chat { border-radius: 22px 44px 44px 44px; }
@media (max-width: 767.98px) { .hero-chat { border-radius: 16px 32px 32px 32px; } }

/* Everything full width, with four columns of suggestions; the last card fills the final row. */
.home-content { width: 100%; }
.home-activities { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.activity-surprise { grid-column: span 2; }
@media (max-width: 1199.98px) { .home-activities { grid-template-columns: repeat(2, minmax(0, 1fr)); } .activity-surprise { grid-column: auto; } }
@media (max-width: 767.98px) { .home-activities { grid-template-columns: 1fr; } }

/* Column counts: 6 on XXL screens, 4 below, sideways row on mobile. Extra city and hotel cards show on XXL and mobile. */
@media (min-width: 768px) and (max-width: 1599.98px) {
    .home-grid > :nth-child(n + 5) { display: none; }
}
@media (min-width: 1600px) {
    .home-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .activities-form { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
    .activities-form .home-activities:not([hidden]) { display: contents; }
    .activities-form .home-activities:not(.more-activities) .activity-row:nth-child(n + 7) { display: none; }
    .activities-form:has(.more-activities:not([hidden])) .home-activities:not(.more-activities) .activity-row:nth-child(n + 7) { display: flex; }
    .activity-surprise { grid-column: span 4; }
    .activity-toggle { grid-column: 1 / -1; margin-top: 2px; }
    .activity-row { gap: 12px; padding: 12px; }
    .activity-icon { width: 56px; height: 56px; }
    .activity-icon svg { width: 25px; height: 25px; }
}
@media (min-width: 1600px) { .home-grid > :nth-child(n + 7) { display: none; } }

/* 18 activity cards fill every row: the surprise card takes the space left in the last row. */
.activity-surprise { grid-column: span 3; }
@media (max-width: 1199.98px) { .activity-surprise { grid-column: auto; } }
@media (min-width: 1600px) { .activity-surprise { grid-column: auto; } }
/* Four columns: 16 cards fill all rows, so two extras stay for the wider and narrower layouts. */
@media (min-width: 1200px) and (max-width: 1599.98px) {
    .activity-surprise { grid-column: auto; }
    .more-activities .activity-row:nth-child(8), .more-activities .activity-row:nth-child(9) { display: none; }
}
/* The same gap between all sections of the page. */
.home-hero { padding-bottom: 48px; }
.home-places + .home-places { margin-top: 48px; }
@media (max-width: 767.98px) {
    .home-hero { padding-bottom: 36px; }
    .home-places + .home-places { margin-top: 36px; }
}
