/*
 * Destinations: /destinations and /destinations/{country} (resources/views/destinations/*), and the
 * "Go beyond {city}" row on the city page. Colours, font and radii from css/tripdo-theme.css (--td-*).
 */

.td-page { padding: 20px 0 56px; }
.td-crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: var(--td-muted); margin: 0 0 14px; padding: 0; list-style: none; }
.td-crumbs a { color: var(--td-muted); text-decoration: none; }
.td-crumbs a:hover { color: var(--td-teal); }
.td-crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--td-border-strong); }
.td-crumbs [aria-current] { color: var(--td-text); font-weight: 500; }

/* ── Hero ─────────────────────────────────────────────────────────── */
.td-hero {
    position: relative; overflow: hidden; border-radius: 24px; min-height: 340px; display: flex; align-items: flex-end;
    background: linear-gradient(135deg, var(--td-navy), var(--td-teal-400)) center / cover no-repeat; color: #fff; isolation: isolate;
}
.td-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.02); }
.td-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 30, 50, .15) 0%, rgba(20, 30, 50, .35) 45%, rgba(15, 24, 40, .82) 100%); }
.td-hero__body { width: 100%; padding: clamp(22px, 4vw, 44px); }
.td-hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; opacity: .92; margin-bottom: 10px; }
.td-hero__title { color: #fff; font-size: clamp(30px, 4.4vw, 52px); font-weight: 700; line-height: 1.08; margin: 0 0 10px; letter-spacing: -.02em; text-shadow: 0 2px 18px rgba(0, 0, 0, .3); }
.td-hero__sub { font-size: clamp(15px, 1.4vw, 18px); max-width: 640px; margin: 0 0 20px; opacity: .95; }
.td-stats { display: flex; flex-wrap: wrap; gap: 10px; }
.td-stat { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--td-radius-pill); background: rgba(255, 255, 255, .16); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 14px; font-weight: 500; border: 1px solid rgba(255, 255, 255, .22); }
.td-stat strong { font-weight: 700; }
.td-stat svg { width: 16px; height: 16px; flex: none; }

/* Search in the hero */
.td-search { position: relative; display: block; width: 100%; max-width: 560px; margin: 18px 0 0; font-weight: 400; }
.td-search input {
    width: 100%; height: 56px; border-radius: var(--td-radius-pill); border: 0; padding: 0 22px 0 54px; font-size: 16px; color: var(--td-text);
    box-shadow: var(--td-shadow-lg); background: #fff; font-family: var(--td-font);
}
.td-search input:focus { outline: none; box-shadow: var(--td-shadow-lg), var(--td-focus); }
.td-search svg { position: absolute; left: 20px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--td-muted); }

/* ── Sections ─────────────────────────────────────────────────────── */
.td-section { margin-top: 44px; }

/* Country page (destinations/country): one rhythm — each section starts 40px below the one before. Its parts used
   to add their own space on top of that (the top block's bottom padding, the card rows' padding and heading margin,
   the newsletter's margins, the last block's padding), up to ~128px between two sections. */
.td-cpage { --td-gap: 40px; }
.td-cpage .td-page { padding-bottom: 0; }
.td-cpage .td-intro { margin-top: 24px; }
.td-cpage .td-section { margin-top: var(--td-gap); }
.td-cpage .td-section > .tp-row { padding: 0; }
.td-cpage .td-section > .tp-row .tp-row__head { margin-top: 0; }
/* a card row keeps ~14px under its cards for their shadow: the next section starts that much sooner */
.td-cpage .td-section:has(> .tp-row) + .td-section,
.td-cpage .td-section:has(> .tp-row) + .td-cpage__end > .td-section:first-child { margin-top: calc(var(--td-gap) - 14px); }
.td-cpage .tp-news-wrap.is-flush { margin: 0; }
.td-cpage__end { padding-bottom: var(--td-gap); }
@media (max-width: 767.98px) { .td-cpage { --td-gap: 32px; } }
.td-section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 18px; }
.td-section__title { font-size: clamp(22px, 2.2vw, 28px); font-weight: 700; margin: 0; color: var(--td-text); }
.td-section__desc { margin: 4px 0 0; color: var(--td-muted); font-size: 15px; }

/* Region tabs */
.td-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 6px; margin: 26px 0 6px; }
.td-tabs::-webkit-scrollbar { display: none; }
.td-tab {
    flex: none; border: 1px solid var(--td-border); background: #fff; color: var(--td-text); border-radius: var(--td-radius-pill);
    padding: 9px 18px; font-size: 14px; font-weight: 600; font-family: var(--td-font); cursor: pointer; transition: all .2s var(--td-ease);
}
.td-tab:hover { border-color: var(--td-border-strong); background: var(--td-surface-2); }
.td-tab.is-on { background: linear-gradient(135deg, var(--td-sun), var(--td-coral)); border-color: transparent; color: #fff; box-shadow: 0 6px 16px rgba(241, 90, 36, .28); }
.td-tab small { font-weight: 500; opacity: .75; margin-left: 4px; }

/* ── Country cards ────────────────────────────────────────────────── */
.td-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.td-country { position: relative; display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: #fff; border: 1px solid var(--td-border);
    text-decoration: none !important; color: inherit !important; transition: transform .25s var(--td-ease), box-shadow .25s var(--td-ease); }
.td-country:hover, .td-country:focus-visible { transform: translateY(-4px); box-shadow: var(--td-shadow-lg); }
.td-country:focus-visible { outline: none; box-shadow: var(--td-shadow-lg), var(--td-focus); }
.td-country__img { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(135deg, var(--td-navy), var(--td-teal-400)); overflow: hidden; }
.td-country__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--td-ease); }
.td-country:hover .td-country__img img { transform: scale(1.07); }
.td-country__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(15, 24, 40, .7)); }
.td-country__name { position: absolute; left: 16px; right: 16px; bottom: 12px; z-index: 1; color: #fff; font-size: 22px; font-weight: 700; line-height: 1.15; text-shadow: 0 2px 12px rgba(0, 0, 0, .4); }
.td-country__badge { position: absolute; top: 12px; left: 12px; z-index: 1; padding: 4px 10px; border-radius: var(--td-radius-pill); background: linear-gradient(135deg, var(--td-sun), var(--td-coral)); color: #fff; font-size: 12px; font-weight: 600; }
.td-country__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.td-country__meta { display: flex; gap: 14px; font-size: 14px; color: var(--td-body); }
.td-country__meta strong { color: var(--td-text); }
.td-country__top { font-size: 13px; color: var(--td-muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.td-country__go { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--td-teal); }
.td-country__go svg { width: 16px; height: 16px; transition: transform .2s var(--td-ease); }
.td-country:hover .td-country__go svg { transform: translateX(4px); }

/* Search results: matching cities */
.td-hits { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-bottom: 24px; }
.td-hit { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--td-radius); border: 1px solid var(--td-border); background: #fff; text-decoration: none !important; color: var(--td-text) !important; transition: box-shadow .2s; }
.td-hit:hover { box-shadow: var(--td-shadow); }
.td-hit img, .td-hit span.td-hit__img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex: none; background: var(--td-navy-50); }
.td-hit small { display: block; color: var(--td-muted); font-size: 12px; }
.td-empty { text-align: center; padding: 48px 16px; color: var(--td-muted); }

/* ── City tiles (country page, "Go beyond") ───────────────────────── */
.td-cities { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.td-city { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: 18px; overflow: hidden; background: linear-gradient(135deg, var(--td-navy), var(--td-teal)); color: #fff !important; text-decoration: none !important;
    box-shadow: var(--td-shadow-sm); transition: box-shadow .25s var(--td-ease), transform .25s var(--td-ease); }
.td-city img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--td-ease); }
.td-city::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 30, 50, .05) 30%, rgba(15, 24, 40, .78)); }
.td-city__text { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; }
.td-city__name { display: block; font-size: 19px; font-weight: 700; line-height: 1.15; text-shadow: 0 2px 10px rgba(0, 0, 0, .45); overflow-wrap: anywhere; }
.td-city__count { display: inline-flex; margin-top: 6px; padding: 3px 10px; border-radius: var(--td-radius-pill); background: rgba(255, 255, 255, .92); color: var(--td-navy); font-size: 12px; font-weight: 600; }
.td-city__rank { position: absolute; top: 10px; left: 10px; z-index: 1; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: var(--td-navy); font-size: 13px; font-weight: 700; }
.td-city:hover, .td-city:focus-visible { transform: translateY(-3px); box-shadow: var(--td-shadow-lg); }
.td-city:hover img { transform: scale(1.08); }
.td-city.is-extra { display: none; }
.td-cities.is-open .td-city.is-extra { display: block; }
.td-cities-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.td-filter { position: relative; }
.td-filter input { height: 42px; border-radius: var(--td-radius-pill); border: 1px solid var(--td-border); padding: 0 16px 0 40px; font-size: 14px; min-width: 220px; font-family: var(--td-font); color: var(--td-text); }
.td-filter input:focus { outline: none; border-color: var(--td-teal); box-shadow: var(--td-focus); }
.td-filter svg { position: absolute; left: 14px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--td-muted); }
.td-more { display: flex; justify-content: center; margin-top: 22px; }

/* Buttons */
.td-btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 22px; border-radius: var(--td-radius-pill); border: 1px solid var(--td-border-strong); background: #fff; color: var(--td-text) !important;
    font-weight: 600; font-size: 14px; font-family: var(--td-font); text-decoration: none !important; cursor: pointer; transition: all .2s var(--td-ease); }
.td-btn:hover { background: var(--td-surface-2); }
.td-btn svg { width: 16px; height: 16px; }

/* Intro */
.td-intro { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 28px; }
.td-intro__text { font-size: 16px; line-height: 1.75; color: var(--td-body); }
.td-intro__text.is-clamped { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.td-link { background: none; border: 0; padding: 0; color: var(--td-teal); font-weight: 600; cursor: pointer; font-family: var(--td-font); }

/* FAQ */
.td-faq { display: grid; gap: 10px; max-width: 860px; }
.td-faq details { border: 1px solid var(--td-border); border-radius: var(--td-radius); background: #fff; padding: 0 18px; transition: box-shadow .2s; }
.td-faq details[open] { box-shadow: var(--td-shadow-sm); }
.td-faq summary { list-style: none; cursor: pointer; padding: 16px 28px 16px 0; font-weight: 600; color: var(--td-text); position: relative; }
.td-faq summary::-webkit-details-marker { display: none; }
.td-faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; color: var(--td-teal); transition: transform .2s; }
.td-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.td-faq p { margin: 0 0 16px; color: var(--td-body); line-height: 1.7; }
/* An answer, as written in the Admin Panel's editor (App\Support\RichText). */
.td-faq__a { padding-bottom: 16px; color: var(--td-body); line-height: 1.7; overflow-wrap: anywhere; }
.td-faq__a p { margin: 0 0 10px; }
.td-faq__a h2, .td-faq__a h3, .td-faq__a h4, .td-faq__a h5 { margin: 14px 0 6px; font-size: 16px; font-weight: 700; line-height: 1.4; color: var(--td-text); }
.td-faq__a ul, .td-faq__a ol { margin: 0 0 10px; padding-inline-start: 22px; }
.td-faq__a ul { list-style: disc; }
.td-faq__a ol { list-style: decimal; }
.td-faq__a li { margin-bottom: 4px; list-style: inherit; }
.td-faq__a a { color: var(--td-teal); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.td-faq__a a:hover { color: var(--td-coral); }
.td-faq__a blockquote { margin: 0 0 10px; padding: 4px 0 4px 14px; border-inline-start: 3px solid var(--td-border-strong, var(--td-border)); color: var(--td-muted); }
.td-faq__a figure { margin: 0 0 10px; overflow-x: auto; }
.td-faq__a figcaption { margin-top: 4px; font-size: 13px; color: var(--td-muted); }
.td-faq__a img { display: block; max-width: 100%; height: auto; border-radius: 12px; }
.td-faq__a table { width: 100%; border-collapse: collapse; font-size: 14px; }
.td-faq__a th, .td-faq__a td { padding: 8px 10px; border: 1px solid var(--td-border); text-align: start; vertical-align: top; }
.td-faq__a th { background: var(--td-surface-2); font-weight: 600; color: var(--td-text); }
.td-faq__a > :first-child { margin-top: 0; }
.td-faq__a > :last-child { margin-bottom: 0; }

/* City page: questions & answers (two columns on desktop) */
.td-city-faq { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; margin: 48px 0 16px; }
@media (min-width: 992px) { .td-city-faq { grid-template-columns: minmax(260px, 1fr) minmax(0, 2fr); gap: 48px; align-items: start; } .td-city-faq__aside { position: sticky; top: 100px; } }
.td-city-faq .td-faq { max-width: none; }
.td-city-faq__help { display: flex; gap: 14px; align-items: center; margin-top: 22px; padding: 16px 18px; border-radius: var(--td-radius-lg); background: linear-gradient(135deg, var(--td-sun-50), var(--td-coral-50)); }
.td-city-faq__help strong { display: block; color: var(--td-text); }
.td-city-faq__help a { color: var(--td-coral); font-weight: 600; text-decoration: none; }
.td-city-faq__icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; background: linear-gradient(135deg, var(--td-sun), var(--td-coral)); color: #fff; }
.td-city-faq__icon svg { width: 22px; height: 22px; }

/* Small country cards (more in the region) */
.td-minis { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.td-mini { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; border: 1px solid var(--td-border); background: #fff; text-decoration: none !important; color: var(--td-text) !important; transition: box-shadow .2s, transform .2s; }
.td-mini:hover { box-shadow: var(--td-shadow); transform: translateY(-2px); }
.td-mini img, .td-mini .td-mini__img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex: none; background: linear-gradient(135deg, var(--td-navy), var(--td-teal-400)); }
.td-mini strong { display: block; font-size: 15px; }
.td-mini small { color: var(--td-muted); font-size: 12px; }

@media (max-width: 575.98px) {
    .td-hero { min-height: 300px; border-radius: 18px; }
    .td-grid { grid-template-columns: 1fr; }
    .td-cities { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .td-city__name { font-size: 16px; }
    .td-filter input { min-width: 0; width: 100%; }
    .td-filter { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .td-country, .td-country__img img, .td-city, .td-city img { transition: none; }
}

/* ── City page (category.blade): header, jump links, top attractions, about ── */
.cp-page { padding-top: 12px; }
.cp-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: end; padding: 8px 0 22px; }
@media (min-width: 992px) { .cp-head { grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; } }
.cp-head__title { font-size: clamp(30px, 4vw, 46px); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; color: var(--td-text); margin: 0 0 12px; }
.cp-head__intro { font-size: 16px; line-height: 1.7; color: var(--td-body); margin: 0; max-width: 760px; }
.cp-head__intro a { color: var(--td-teal); font-weight: 600; white-space: nowrap; }

.cp-jump { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 14px; margin-bottom: 18px; border-bottom: 1px solid var(--td-border); }
.cp-jump::-webkit-scrollbar { display: none; }
.cp-jump a { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; border-radius: var(--td-radius-pill); border: 1px solid var(--td-border); background: #fff; color: var(--td-text) !important; font-size: 14px; font-weight: 500; text-decoration: none !important; transition: all .2s var(--td-ease); }
.cp-jump a:hover { border-color: var(--td-teal); color: var(--td-teal) !important; background: var(--td-teal-50); }
.cp-jump svg { width: 16px; height: 16px; }
[id="activities"], [id="sights"], [id="beyond"], [id="faq"], [id="about"] { scroll-margin-top: 110px; }

/* City page, compact header (category.blade.php): the first activities show without scrolling on a laptop.
   Title + the city's numbers on one line, a two-line intro; the jump links beside "All tours & activities". */
.cp-page:has(.cp-head--compact) { padding-top: 8px; }
.cp-page:has(.cp-head--compact) .td-crumbs { margin-bottom: 8px; }
.cp-head--compact { display: block; padding: 0 0 14px; margin-bottom: 16px; border-bottom: 1px solid var(--td-border); }
.cp-head__line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-bottom: 8px; }
/* The intro (two lines) with the jump links at its right; on narrower screens the links go under it */
.cp-head__row { display: flex; align-items: center; gap: 10px 28px; }
/* Share (partials/share-button, the same button as the product page): at the end of the title's line. */
.cp-share { flex: none; margin-left: auto; }
[dir="rtl"] .cp-share { margin-left: 0; margin-right: auto; }
/* Phones: the icon alone, beside the title (the word stays for screen readers). */
@media (max-width: 767.98px) {
    .cp-head__line .cp-head__title { flex: 1 1 0; min-width: 0; }
    .cp-head__line .cp-share { order: 1; padding: 4px; }
    .cp-head__line .cp-share span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .cp-head__line .cp-head__facts { order: 2; flex-basis: 100%; }
}
.cp-head__row .cp-head__intro { flex: 1 1 auto; min-width: 0; }
.cp-head__row .cp-jump--inline { flex: none; margin-left: auto; }
@media (max-width: 991.98px) {
  .cp-head__row { flex-direction: column; align-items: stretch; }
  .cp-head__row .cp-jump--inline { margin-left: 0; }
}
/* Visually hidden, still read by screen readers and search engines */
.cp-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.cp-head--compact .cp-head__title { font-size: clamp(28px, 3vw, 38px); margin: 0; }
/* "📍 United Arab Emirates · 259 activities · ★ 4.5" — one line of text */
.cp-head__facts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; list-style: none; margin: 0; padding: 0; }
.cp-head__facts li { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; color: var(--td-body); white-space: nowrap; }
.cp-head__facts li + li::before { content: "·"; margin: 0 9px; color: var(--td-muted); font-weight: 700; }
/* Phones: the country on its own line, then "259 activities · ★ 4.5" (no "·" left at the start of a line) */
@media (max-width: 575.98px) {
  .cp-head__facts li:first-child:has(a) { flex-basis: 100%; }
  .cp-head__facts li:first-child:has(a) + li::before { display: none; }
}
.cp-head__facts strong { font-weight: 700; color: var(--td-text); }
.cp-head__facts svg { width: 15px; height: 15px; flex: none; }
.cp-head__facts li > svg { color: var(--td-sun); }
.cp-head__facts a { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; color: var(--td-teal) !important; text-decoration: none !important; }
.cp-head__facts a:hover { text-decoration: underline !important; }
/* Two lines; "Read more" laid over the end of the second (hidden when the text fits: .is-whole). */
.cp-head--compact .cp-head__intro { position: relative; max-width: 860px; font-size: 15.5px; line-height: 1.65; }
.cp-head--compact .cp-head__intro p { margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cp-head--compact .cp-head__intro a { position: absolute; right: 0; bottom: 0; padding-left: 56px; background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff 45%); }
.cp-head--compact .cp-head__intro.is-whole a { display: none; }
@media (max-width: 767.98px) { .cp-head--compact .cp-head__intro p { -webkit-line-clamp: 3; } }

.cp-jump--inline { padding: 0; margin: 0; border: 0; gap: 6px; max-width: 100%; }
.cp-jump--inline a { padding: 6px 12px; font-size: 13px; }
.cp-jump--inline svg { width: 15px; height: 15px; }

/* Top attractions: a swipeable row, or every attraction in a grid ("View all") */
.cp-sights { margin-top: 48px; }
.cp-sights__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cp-sort { display: inline-flex; padding: 4px; border-radius: var(--td-radius-pill); background: var(--td-surface-2); border: 1px solid var(--td-border); }
.cp-sort button { border: 0; background: transparent; padding: 7px 14px; border-radius: var(--td-radius-pill); font: 500 13px var(--td-font); color: var(--td-body); cursor: pointer; transition: all .2s var(--td-ease); }
.cp-sort button.is-on { background: #fff; color: var(--td-text); box-shadow: var(--td-shadow-sm); font-weight: 600; }
.cp-arrow { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--td-border-strong, var(--td-border)); background: #fff; color: var(--td-text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: all .2s var(--td-ease); }
.cp-arrow:hover:not(:disabled) { border-color: var(--td-text); box-shadow: var(--td-shadow); }
.cp-arrow:disabled { opacity: .35; cursor: default; }
.cp-arrow svg { width: 18px; height: 18px; }
.cp-sights.is-all .cp-arrow, .cp-row--fits .cp-arrow { display: none; }
@media (max-width: 767.98px) { .cp-arrow { display: none; } } /* phones swipe */
.cp-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 18px) / 4); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 4px 2px 10px; }
.cp-track::-webkit-scrollbar { display: none; }
@media (max-width: 1199.98px) { .cp-track { grid-auto-columns: calc((100% - 2 * 18px) / 3); } }
/* Phones: the next card peeks in from the screen's edge. */
@media (max-width: 767.98px) { .cp-track { grid-auto-columns: 72%; gap: 14px; margin-right: calc(-1 * var(--td-gutter, 16px)); padding-right: var(--td-gutter, 16px); } }
.cp-sights.is-all .cp-track { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); grid-auto-columns: auto; overflow: visible; margin-right: 0; padding-right: 2px; }
/* Go beyond {city}: smaller cards, so more cities show. */
.cp-track--cities { grid-auto-columns: calc((100% - 4 * 16px) / 5); gap: 16px; }
@media (max-width: 1199.98px) { .cp-track--cities { grid-auto-columns: calc((100% - 3 * 16px) / 4); } }
@media (max-width: 991.98px) { .cp-track--cities { grid-auto-columns: calc((100% - 2 * 16px) / 3); } }
@media (max-width: 767.98px) { .cp-track--cities { grid-auto-columns: 44%; gap: 12px; } }
.cp-track--cities .td-city { scroll-snap-align: start; }
/* Go beyond {city}: cities without photos (owner, 2026-11-09): plain white tiles in the site's own navy and border colours. The row comes in one
   tile after another when it scrolls into view (data-reveal, js/catalog/attraction-row.js); pointing at a tile lifts it, draws the sun-to-coral line of
   the header menu along its foot and fills the arrow. */
.cp-track--go { padding-top: 6px; padding-bottom: 14px; }
@media (max-width: 767.98px) { .cp-track--go { grid-auto-columns: 62%; } }
.td-go {
    position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 78px; padding: 14px 14px 14px 18px; overflow: hidden;
    border: 1px solid var(--td-border); border-radius: var(--td-radius-lg); background: #fff; color: var(--td-text) !important; text-decoration: none !important; scroll-snap-align: start;
    transition: transform .28s var(--td-ease), box-shadow .28s var(--td-ease), border-color .2s ease;
}
.td-go::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--td-sun), var(--td-coral));
    transform: scaleX(0); transform-origin: left center; transition: transform .35s var(--td-ease);
}
.td-go__text { min-width: 0; }
.td-go__name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 16px; font-weight: 600; line-height: 1.3; color: var(--td-text); }
.td-go__count { display: flex; align-items: center; gap: 4px; margin-top: 3px; font-size: 13px; color: var(--td-muted); white-space: nowrap; }
.td-go__count svg { flex: none; width: 14px; height: 14px; color: var(--td-teal); }
.td-go__arrow {
    display: grid; place-items: center; flex: none; width: 34px; height: 34px; border: 1px solid var(--td-border-strong, var(--td-border)); border-radius: 50%; background: #fff; color: var(--td-text);
    transition: background-color .22s ease, border-color .22s ease, color .22s ease;
}
.td-go__arrow svg { width: 16px; height: 16px; transition: transform .28s var(--td-ease); }
.td-go:focus-visible { border-color: transparent; box-shadow: var(--td-shadow); }
.td-go:focus-visible::after { transform: scaleX(1); }
.td-go:focus-visible .td-go__arrow { background: var(--td-text); border-color: var(--td-text); color: #fff; }
@media (hover: hover) {
    .td-go:hover { transform: translateY(-3px); border-color: transparent; box-shadow: var(--td-shadow); }
    .td-go:hover::after { transform: scaleX(1); }
    .td-go:hover .td-go__arrow { background: var(--td-text); border-color: var(--td-text); color: #fff; }
    .td-go:hover .td-go__arrow svg { transform: translateX(2px); }
}
.td-go:active { transform: scale(.985); }
.cp-track--go.is-waiting .td-go { opacity: 0; }
.cp-track--go.is-in .td-go { animation: td-go-in .5s var(--td-ease) backwards; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes td-go-in { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) {
    .td-go, .td-go::after, .td-go__arrow, .td-go__arrow svg { transition: none; }
    .cp-track--go.is-in .td-go { animation: none; }
}
.cp-sight { position: relative; display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; scroll-snap-align: start; isolation: isolate;
    background: linear-gradient(135deg, var(--td-navy), var(--td-teal-400)); color: #fff !important; text-decoration: none !important; box-shadow: var(--td-shadow-sm); transition: transform .25s var(--td-ease), box-shadow .25s var(--td-ease); }
.cp-sight:hover, .cp-sight:focus-visible { transform: translateY(-4px); box-shadow: var(--td-shadow-lg); }
.cp-sight:focus-visible { outline: none; box-shadow: var(--td-shadow-lg), var(--td-focus); }
.cp-sight img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s var(--td-ease); }
.cp-sight:hover img { transform: scale(1.06); }
.cp-sight::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15, 24, 40, .45) 0%, rgba(15, 24, 40, 0) 30%, rgba(15, 24, 40, .1) 50%, rgba(15, 24, 40, .85) 100%); }
.cp-sight__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; padding: 14px; }
.cp-sight__rank { min-width: 32px; height: 32px; padding: 0 8px; border-radius: var(--td-radius-pill); background: linear-gradient(135deg, var(--td-sun), var(--td-coral)); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.cp-sight__pill { padding: 5px 11px; border-radius: var(--td-radius-pill); background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .3); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 12px; font-weight: 600; white-space: nowrap; }
.cp-sight__body { padding: 16px; }
.cp-sight__name { color: #fff; font-size: 19px; font-weight: 700; line-height: 1.25; margin: 0 0 6px; text-shadow: 0 1px 8px rgba(0, 0, 0, .35); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cp-sight__rating { display: flex; align-items: center; gap: 5px; font-size: 13px; opacity: .95; }
.cp-sight__rating svg { width: 14px; height: 14px; color: var(--td-sun); }
.cp-sight__rating strong { font-weight: 700; }
.cp-sight__go { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: var(--td-radius-pill); background: #fff; color: var(--td-text); transition: gap .2s var(--td-ease); }
.cp-sight__go svg { width: 14px; height: 14px; }
.cp-sight:hover .cp-sight__go { gap: 10px; }

/* About {city} */
.cp-about { margin: 48px 0 8px; padding: clamp(22px, 3vw, 36px); border-radius: 24px; background: var(--td-surface-2); border: 1px solid var(--td-border); }
.cp-about__text { font-size: 15.5px; line-height: 1.8; color: var(--td-body); }
.cp-about__text.is-clamped { max-height: 11.5em; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); mask-image: linear-gradient(180deg, #000 60%, transparent); }
/* What travellers say about {city} (partials/city-reviews): 3 across, 2 on tablets; phones swipe. */
/* Go beyond {city} on an attraction page (a row of product cards, css/home/rows.css): the rhythm of the page's other sections. */
.cp-beyond { margin-top: 38px; }
.cp-beyond .tp-row__head { margin-top: 0; }
.cp-said { margin-top: 48px; }
.cp-said__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1199.98px) { .cp-said__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767.98px) {
    .cp-said__list { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 86%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
        margin-right: calc(-1 * var(--td-gutter, 16px)); padding: 2px var(--td-gutter, 16px) 6px 2px; }
    .cp-said__list::-webkit-scrollbar { display: none; }
    .cp-said__list:has(> :only-child) { grid-auto-columns: 100%; }
}
.cp-said__card { min-width: 0; scroll-snap-align: start; }
.cp-said__activity { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 13px; font-weight: 600; color: var(--td-teal) !important; text-decoration: none; }
.cp-said__activity:hover { text-decoration: underline; }
.cp-said__activity svg { flex: none; width: 16px; height: 16px; }
.cp-said__activity span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cp-about__text h2, .cp-about__text h3 { font-size: 19px; color: var(--td-text); margin: 18px 0 8px; }
.cp-about__text p { margin: 0 0 12px; }
@media (prefers-reduced-motion: reduce) {
    .cp-sight, .cp-sight img, .cp-track { transition: none; scroll-behavior: auto; }
}

/* Top attractions: find box, nothing found */
.cp-find { position: relative; display: inline-flex; align-items: center; }
.cp-find svg { position: absolute; left: 12px; width: 16px; height: 16px; color: var(--td-muted); pointer-events: none; }
.cp-find input { height: 40px; width: 220px; max-width: 60vw; border-radius: var(--td-radius-pill); border: 1px solid var(--td-border); padding: 0 14px 0 36px; font: 14px var(--td-font); color: var(--td-text); background: #fff; }
.cp-find input:focus { outline: none; border-color: var(--td-teal); box-shadow: var(--td-focus); }
.cp-sight[hidden] { display: none; }
.cp-empty { color: var(--td-muted); padding: 24px 0; text-align: center; }

/* Attraction page (venues.blade): actions, reviews, about + map */
.cp-action { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: var(--td-radius-pill); border: 1px solid var(--td-border); background: #fff; color: var(--td-text) !important; font: 600 14px var(--td-font); text-decoration: none !important; cursor: pointer; transition: all .2s var(--td-ease); }
.cp-action:hover { border-color: var(--td-text); box-shadow: var(--td-shadow); }
.cp-action svg { width: 17px; height: 17px; }
.cp-action--main { background: linear-gradient(135deg, var(--td-sun), var(--td-coral)); border-color: transparent; color: #fff !important; box-shadow: 0 6px 16px rgba(241, 90, 36, .28); }
.cp-action--main:hover { border-color: transparent; box-shadow: 0 8px 22px rgba(241, 90, 36, .38); }
.cp-about--split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
@media (min-width: 992px) { .cp-about--split { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: start; } }
/* Photo at its 3:2 shape (height:auto — its height="600" attribute stretched it), map under it; on wide screens the
   column stays in view while the text is read (owner, 2026-11-02). */
.cp-where { display: flex; flex-direction: column; gap: 12px; padding: 12px; border-radius: 22px; background: #fff; border: 1px solid var(--td-border); box-shadow: var(--td-shadow-sm); }
@media (min-width: 992px) { .cp-where { position: sticky; top: 96px; } }
.cp-where__photo { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 14px; background: var(--td-navy-50); }
.cp-where__map { display: block; width: 100%; height: 200px; border: 0; border-radius: 14px; background: var(--td-navy-50); }
.cp-where__row { padding: 2px 4px 2px; }
.cp-where__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cp-where__row strong { display: block; color: var(--td-text); font-size: 14px; }
.cp-where__row small { color: var(--td-muted); font-size: 13px; }
[id="tickets"], [id="reviews"] { scroll-margin-top: 110px; }

/* Attraction page: nothing on sale yet */
.cp-none { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding: 24px; border-radius: 20px; border: 1px dashed var(--td-border-strong); background: var(--td-surface-2); }
.cp-none > div { flex: 1; min-width: 220px; }
.cp-none strong { display: block; font-size: 18px; color: var(--td-text); }
.cp-none p { margin: 4px 0 0; color: var(--td-muted); font-size: 14.5px; }
.cp-none__icon { width: 52px; height: 52px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: var(--td-sun-50); color: var(--td-coral); flex: none; }
.cp-none__icon svg { width: 24px; height: 24px; }

/* Test accounts only: attraction source tag (App\Support\SupplierTag) */
.cp-sight__test { position: absolute; left: 12px; right: 12px; top: 54px; z-index: 2; justify-content: flex-start; width: max-content; max-width: calc(100% - 24px); }
/* Share on a country page's photo. */
.td-hero__share { position: absolute; top: 14px; right: 14px; z-index: 2; }
[dir="rtl"] .td-hero__share { right: auto; left: 14px; }
.td-hero__share .tp-share { margin: 0; padding: 7px 14px; border-radius: var(--td-radius-pill); background: rgba(255, 255, 255, .92); box-shadow: var(--td-shadow-sm); }

/* "More to do in {city}" (attraction page): the homepage row (css/home/rows.css) with compact attraction cards —
   6 per row on wide screens, 2 and a peek on phones (owner, 2026-11-02). */
.cp-more .cp-more__track { grid-auto-columns: calc((100% - 5 * 15px) / 6); }
@media (max-width: 1199.98px) { .cp-more .cp-more__track { grid-auto-columns: calc((100% - 3 * 15px) / 4); } }
@media (max-width: 767.98px) { .cp-more .cp-more__track { grid-auto-columns: 44%; gap: 12px; } }
.cp-more .cp-sight , .cp-sights--compact .cp-sight { aspect-ratio: 3 / 4; border-radius: 16px; box-shadow: 0 2px 10px rgba(31, 47, 74, .10); }
.cp-more .cp-sight:hover , .cp-sights--compact .cp-sight:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -12px rgba(31, 47, 74, .45); }
.cp-more .cp-sight__top , .cp-sights--compact .cp-sight__top { padding: 10px; }
.cp-more .cp-sight__rank , .cp-sights--compact .cp-sight__rank { min-width: 24px; height: 24px; padding: 0 6px; font-size: 11px; }
.cp-more .cp-sight__pill , .cp-sights--compact .cp-sight__pill { padding: 3px 8px; font-size: 10.5px; font-weight: 500; }
.cp-more .cp-sight__body , .cp-sights--compact .cp-sight__body { padding: 12px; }
.cp-more .cp-sight__name , .cp-sights--compact .cp-sight__name { font-size: 15px; line-height: 1.25; margin-bottom: 4px; }
.cp-more .cp-sight__rating , .cp-sights--compact .cp-sight__rating { font-size: 12px; gap: 4px; }
.cp-more .cp-sight__rating svg , .cp-sights--compact .cp-sight__rating svg { width: 12px; height: 12px; }
.cp-more .cp-sight__go , .cp-sights--compact .cp-sight__go { display: none; } /* the whole card is the link */
.cp-more .cp-sight__test , .cp-sights--compact .cp-sight__test { top: 42px; left: 10px; font-size: 9.5px; }

/* City + attraction pages: ONE gap between sections, the country page's (.td-cpage): 40px, 32px on phones
   (owner, 2026-11-02: padding and margins the same everywhere). Each section's own margins are replaced; a row of cards
   keeps 14px of shadow room under it, so the section after it starts 14px sooner. */
.cp-page { --td-gap: 40px; padding-bottom: var(--td-gap); }
.cp-page > section, .cp-page > section.tp-news-wrap, .cp-page > section.tp-news-wrap.is-flush { margin-top: var(--td-gap); margin-bottom: 0; }
.cp-page > section#activities, .cp-page > section#tickets { margin-top: 0; }
.cp-page > section.tp-row { padding-top: 0; padding-bottom: 0; }
.cp-page > section.tp-row .tp-row__head { margin-top: 0; }
.cp-page > section.tp-row + section, .cp-page > section.cp-sights + section, .cp-page > section.td-beyond + section { margin-top: calc(var(--td-gap) - 14px); }
@media (max-width: 767.98px) { .cp-page { --td-gap: 32px; } }
/* The city page's own rows keep 10px of shadow room (and a structured-data script sits between "Top attractions" and
   "Go beyond", so "+" can't see them as neighbours). */
.cp-page > section.cp-sights ~ section#beyond, .cp-page > section.td-beyond + section { margin-top: calc(var(--td-gap) - 10px); }

/* City page "Top attractions": the homepage row's layout — title left, "View all" + arrows right — with find + sort in a
   slim bar under it, and the compact cards of "More to do" (6 per row on wide screens). */
.cp-sights__head { flex-wrap: nowrap; align-items: flex-end; }
.cp-sights__heading { min-width: 0; }
.cp-sights__nav { display: flex; align-items: center; gap: 8px; flex: none; }
.cp-sights__all { padding: 6px 4px; margin-right: 6px; border: 0; background: none; font: 600 14px var(--td-font); color: var(--td-teal); cursor: pointer; white-space: nowrap; }
.cp-sights__all:hover { color: var(--td-text); text-decoration: underline; }
.cp-sights__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: -4px 0 14px; }
.cp-sights--compact .cp-track { grid-auto-columns: calc((100% - 5 * 15px) / 6); gap: 15px; }
@media (max-width: 1199.98px) { .cp-sights--compact .cp-track { grid-auto-columns: calc((100% - 3 * 15px) / 4); } }
@media (max-width: 767.98px) {
    .cp-sights--compact .cp-track { grid-auto-columns: 44%; gap: 12px; }
    .cp-sights__head { flex-wrap: wrap; }
    .cp-sights__nav .cp-arrow { display: none; } /* phones swipe */
    .cp-sights__bar .cp-find { flex: 1 1 100%; } .cp-sights__bar .cp-find input { width: 100%; max-width: none; }
}
.cp-sights--compact.is-all .cp-track { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }

/* "About {place}" (partials/place-about, city + attraction pages): text at a reading width beside a photo + map card that
   stays in view; quick facts as chips; the supplier's own "Opening hours" lines as subheadings (owner, 2026-11-02). */
.cp-about2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
@media (min-width: 992px) { .cp-about2--aside { grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: 44px; align-items: start; } }
.cp-about2__facts { list-style: none; margin: 12px 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cp-about2__facts li { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: var(--td-radius-pill); background: #fff; border: 1px solid var(--td-border); font-size: 13.5px; font-weight: 500; line-height: 1.3; color: var(--td-text); }
.cp-about2__facts svg { width: 15px; height: 15px; flex: none; color: var(--td-teal); }
.cp-about2__text { max-width: 68ch; font-size: 15.5px; line-height: 1.8; }
.cp-about2__text.is-clamped { max-height: 15em; }
.cp-about2__text > :first-child { margin-top: 0; }
.cp-about2__text p > strong:only-child, .cp-about2__text h2, .cp-about2__text h3, .cp-about2__text h4 { display: block; margin: 22px 0 6px; font-size: 16.5px; font-weight: 700; line-height: 1.35; color: var(--td-text); }
.cp-about2__text p:has(> strong:only-child) { margin-bottom: 4px; }
.cp-about2__text ul { list-style: none; margin: 0 0 14px; padding: 0; }
.cp-about2__text ul li { position: relative; margin: 5px 0; padding-left: 20px; }
.cp-about2__text ul li::before { content: ""; position: absolute; left: 4px; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--td-teal-400); }
.cp-about2__more { display: inline-flex; align-items: center; gap: 9px; margin-top: 14px; padding: 9px 18px; border-radius: var(--td-radius-pill); border: 1px solid var(--td-border-strong); background: #fff; font: 600 14px var(--td-font); color: var(--td-text); cursor: pointer; transition: border-color .2s var(--td-ease), box-shadow .2s var(--td-ease); }
.cp-about2__more:hover { border-color: var(--td-text); box-shadow: var(--td-shadow); }
.cp-about2__more::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s var(--td-ease); }
.cp-about2__text:not(.is-clamped) + .cp-about2__more::after { transform: translateY(2px) rotate(-135deg); }
@media (max-width: 767.98px) { .cp-about2__text { font-size: 15px; } }
/* "Go beyond {city}": its "All of {country}" as the same quiet link as "View all" / the homepage rows' "See all". */
.cp-page .td-beyond .td-section__head .td-btn { padding: 6px 4px; margin-right: 6px; border: 0; background: none; box-shadow: none; font-size: 14px; font-weight: 600; color: var(--td-teal) !important; }
.cp-page .td-beyond .td-section__head .td-btn:hover { color: var(--td-text) !important; text-decoration: underline; transform: none; }
.cp-page .td-beyond .td-section__head .td-btn svg { display: none; }
