/* Country page, Figma "Destinations / country" 4:1585. Shared blocks (cards, how it works) are in shell.css. */

/* Hero: photo with a scrim to black, the H1 at its foot, then the intro on black */
.country-hero { background: var(--color-black); color: var(--color-white); }
.country-hero__media { position: relative; height: 678px; overflow: hidden; }
.country-hero__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 38%, var(--color-black)); }
.country-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.country-hero__head { position: absolute; z-index: 1; left: 0; right: 0; bottom: 11px; }
.country-hero__title { margin: 0; text-transform: uppercase; }
.country-hero__eyebrow { display: block; margin-bottom: 16px; font-family: var(--font-body); font-weight: 600; font-size: 24px; line-height: 26px; }
.country-hero__name { display: block; font-size: var(--h1-xl-size); line-height: var(--h1-xl-line); }
.country-hero__intro { padding-block: 23px 49px; }
.country-hero__intro-copy { max-width: 807px; }
.country-hero__intro p { margin: 0 0 var(--space-15); }
.country-hero__intro p:last-child { margin-bottom: 0; }
.country-hero__intro img { float: right; max-width: 160px; margin: 0 0 var(--space-15) var(--space-20); }
.country-hero__intro a { color: inherit; }

/* In-page nav: sticks to the top (the site header doesn't); the current section's link is teal */
.inpage-nav { position: sticky; top: 0; z-index: 30; background: var(--color-charcoal); }
.inpage-nav__list { display: flex; gap: 52px; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.inpage-nav__list a {
  display: block; padding-block: 18px; white-space: nowrap;
  font-weight: 600; font-size: 16px; line-height: 24px; letter-spacing: .8px; text-transform: uppercase;
  color: var(--color-white); text-decoration: none;
}
.inpage-nav__list a[aria-current], .inpage-nav__list a:hover { color: var(--color-teal); }
.inpage-nav__list a:focus-visible { outline: 2px solid var(--color-white); outline-offset: -2px; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
#enquire, .country-section { scroll-margin-top: 60px; }

.country-sand { background: var(--color-sand); }
.country-section { padding-block: 94px; }
.country-sand .country-section + .country-section { padding-top: 76px; }
.country-lead { max-width: 807px; margin: -8px 0 49px; }
.country-lead > :last-child { margin-bottom: 0; }

/* What to see and do: the shared slider (shell.css) with photo cards */
.see-card { display: block; color: var(--color-black); text-decoration: none; }
.see-card__img { width: 100%; aspect-ratio: 482 / 550; object-fit: cover; }
.see-card__text { display: block; margin-top: 13px; }

/* Where to go: grid/map switch, destination cards with text over a full scrim */
/* The grid icon is a 28px box and the map icon 22px: centre both, or the map sits 3px high */
.view-switch { display: flex; align-items: center; gap: 10px; padding: 10px 25px; background: var(--color-teal); }
.view-switch__btn { display: grid; place-items: center; padding: 0; border: 0; background: none; color: #263f44; cursor: pointer; }
.view-switch__btn[aria-pressed="true"] { color: var(--color-white); }
.view-switch__btn:focus-visible { outline: 2px solid var(--color-white); outline-offset: 2px; }
.place-card { position: relative; display: flex; align-items: flex-end; aspect-ratio: 482 / 642; overflow: hidden; background: var(--color-charcoal); color: var(--color-white); text-decoration: none; }
.place-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, .8)); }
.place-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.place-card__body { position: relative; z-index: 1; display: grid; gap: 10px; padding: 0 39px 42px; }
.place-card__name { font-family: var(--font-display); font-size: 24px; line-height: 31px; }
.place-card:focus-visible { outline: 3px solid var(--color-coral); outline-offset: 3px; }
/* Region card: a cover link opens the region; its places link above it */
.place-card__link { position: absolute; z-index: 1; inset: 0; }
.place-card__link:focus-visible { outline: 3px solid var(--color-coral); outline-offset: 3px; }
.place-card--region .place-card__body { z-index: 2; pointer-events: none; }
.place-card__places { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; line-height: 21px; }
.place-card__places a { color: var(--color-white); pointer-events: auto; }
.place-card__places a:hover { color: var(--link-hover-on-dark); }

/* Map view: sections/map.pug (old markup with Bootstrap class names), styled here */
.country-map { position: relative; }
#destinations-map { margin-top: 0 !important; border: 0 !important; }
#custom-infowindow { background: var(--color-white); box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
#custom-infowindow a { color: inherit; text-decoration: none; }
#custom-infowindow .card-body { padding: var(--space-20); }
#custom-infowindow .card-title { font-family: var(--font-display); font-size: 24px; line-height: 31px; }
#custom-infowindow .btn { padding: 10px 20px; border: 1px solid var(--color-ink); background: none; font-weight: 700; text-transform: uppercase; }
#custom-infowindow .btn-close { top: 8px; right: 8px; z-index: 1; width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--color-white); cursor: pointer; }
#custom-infowindow .btn-close::before { content: '\00d7'; font-size: 22px; line-height: 32px; }

/* Specialists banner and CMS "about" copy (www.text). The CMS marks subheads as <span style="font-size:30px">. */
.country-banner { display: block; width: 100%; height: 600px; object-fit: cover; }
.country-about { padding-block: 54px 0; }
.country-about__inner { max-width: 1240px; color: var(--color-black); font-size: 14px; line-height: 24px; }
/* The first heading is Figma's big title; any later h2 (Italy has several) takes the subhead style below */
.country-about__inner > h2:first-child { margin: 0 0 12px; font-size: var(--h1-size); line-height: 79px; text-transform: none; color: var(--color-ink); }
.country-about__inner > h2:first-child + p { margin-bottom: 70px; font-size: 16px; color: var(--color-ink); }
.country-about__inner p { margin: 0 0 24px; }
.country-about__inner span[style*="font-size"], .country-about__inner h2:not(:first-child), .country-about__inner h3, .country-about__inner h4 {
  display: inline-block; margin: 13px 0 0; text-transform: none;
  font-family: var(--font-body) !important; font-size: 14px !important; font-weight: 700; line-height: 24px; color: var(--color-black) !important;
}
.country-about__inner a { color: inherit; }

/* FAQ: bordered rows (differs from the /faq page design) */
.country-faq { padding-top: 84px; }
.country-faq__inner { max-width: 1240px; }
.country-faq__title { margin: 0 0 36px; font-size: var(--h3-size); line-height: var(--h3-line); text-transform: none; color: var(--color-black); }
.country-faq__sub { display: block; font-family: var(--font-body); font-size: 20px; line-height: 30px; }
.country-faq__list { display: grid; gap: 17px; }
.faq-box { border: 1px solid #c4c4c4; border-radius: 3px; }
.faq-box__q { display: flex; align-items: center; justify-content: space-between; gap: var(--space-20); padding: 6px 30px 6px 23px; min-height: 46px; font-size: 16px; line-height: 26px; color: var(--color-black); cursor: pointer; list-style: none; }
.faq-box__q::-webkit-details-marker { display: none; }
.faq-box__q .icon { flex: none; color: var(--color-coral); }
.faq-box[open] .faq-box__q .icon { color: #c0c0c0; }
.faq-box__a { padding: 0 23px 20px; font-size: 16px; line-height: 26px; }
.faq-box__a p { margin: 0 0 12px; }

/* Travel guide and blog */
.article-card { display: block; color: var(--color-black); text-decoration: none; }
.article-card__img { width: 100%; aspect-ratio: 478 / 542; object-fit: cover; }
.article-card__title { display: block; max-width: 294px; margin-top: 13px; }
.country-articles .country-section + .country-section { padding-top: 0; }

@media (max-width: 991.98px) {
  .country-hero__media { height: 480px; }
  .country-section { padding-block: var(--space-60); }
  .inpage-nav__list { gap: 32px; }
  .country-banner { height: 360px; }
  .country-about__inner > h2:first-child { line-height: var(--h1-line); }
  .country-about__inner > h2:first-child + p { margin-bottom: 40px; }
}
@media (max-width: 575.98px) {
  .country-hero__media { height: 420px; }
  .country-hero__eyebrow { font-size: 16px; margin-bottom: 8px; }
  .inpage-nav__list a { font-size: 14px; padding-block: 14px; }
  #enquire, .country-section { scroll-margin-top: 52px; }
  .place-card__body { padding: 0 20px 24px; }
  .country-banner { height: 240px; }
  .faq-box__q { padding-inline: 15px; }
  .faq-box__a { padding-inline: 15px; }
}
