/* Home page: search-first surf atlas (search hero, categories, in season, regions, countries) */

/* Hero */
.sx-hero { min-height: min(92vh, 860px); align-items: center; padding: clamp(96px, 12vw, 150px) 0 clamp(40px, 6vw, 72px); }
.sx-hero h1 { max-width: 16ch; }
.sx-hero .lead { margin-bottom: 32px; max-width: 54ch; }

/* Search bar */
.sx-search {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr auto; align-items: stretch;
  background: var(--white); color: var(--navy); border-radius: 999px; padding: 8px;
  box-shadow: 0 18px 50px rgba(8,21,31,.35); max-width: 1000px; position: relative;
}
.sx-field { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 8px 22px; border-radius: 999px; min-width: 0; }
.sx-field + .sx-field::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--mist); }
.sx-field:focus-within { background: var(--mist-soft); }
.sx-field:focus-within::before, .sx-field:focus-within + .sx-field::before { opacity: 0; }
.sx-field label { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); margin-bottom: 2px; }
.sx-field input, .sx-field select {
  border: 0; background: transparent; font: 400 16px/1.3 var(--font); color: var(--navy); padding: 2px 0; width: 100%;
  outline: none; appearance: none; -webkit-appearance: none; cursor: pointer; text-overflow: ellipsis;
}
.sx-field input { cursor: text; }
.sx-field input::placeholder { color: var(--grey); }
.sx-field input::-webkit-search-cancel-button { display: none; }
.sx-go {
  display: inline-flex; align-items: center; gap: 10px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--cobalt); color: var(--white); font: 600 16px/1 var(--font); padding: 0 28px; min-height: 60px;
  transition: background .2s;
}
.sx-go:hover { background: #0f44ae; }
.sx-go svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }

.sx-suggest {
  position: absolute; left: 0; top: calc(100% + 14px); width: min(420px, 90vw); z-index: 20; list-style: none; margin: 0; padding: 10px;
  background: var(--white); border-radius: 18px; box-shadow: 0 18px 50px rgba(8,21,31,.28); max-height: 360px; overflow: auto;
}
.sx-suggest li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; cursor: pointer; }
.sx-suggest li[aria-selected="true"], .sx-suggest li:hover { background: var(--mist-soft); }
.sx-suggest .sx-ico { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--mist-soft); display: grid; place-items: center; color: var(--deep-water); overflow: hidden; }
.sx-suggest .sx-ico img { width: 100%; height: 100%; object-fit: cover; }
.sx-suggest .sx-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.sx-suggest b { display: block; font-weight: 600; font-size: 15px; }
.sx-suggest small { color: var(--grey); font-size: 13px; }
.sx-suggest mark { background: none; color: var(--cobalt); }

.sx-hero__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: 26px; max-width: 1000px; }
.sx-popular { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; }
.sx-popular span { font-family: var(--mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--skylight); margin-right: 6px; }
.sx-popular a { color: var(--white); text-decoration: none; padding: 7px 14px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; backdrop-filter: blur(6px); background: rgba(14,34,51,.25); transition: background .2s, border-color .2s; }
.sx-popular a:hover { background: rgba(255,255,255,.16); border-color: var(--white); }

/* Category bar */
.sx-cats { background: var(--white); border-bottom: 1px solid var(--mist); position: sticky; top: 76px; z-index: 40; }
.sx-cats__list { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(20px, 3vw, 40px); overflow-x: auto; scrollbar-width: none; }
.sx-cats__list::-webkit-scrollbar { display: none; }
.sx-cats a {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 0 14px; white-space: nowrap;
  text-decoration: none; color: var(--grey); font-size: 13px; font-weight: 500; border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.sx-cats a:hover { color: var(--navy); border-bottom-color: var(--navy); }
.sx-cats svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* In season */
.sx-mons { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: -12px 0 28px; padding-bottom: 2px; }
.sx-mons::-webkit-scrollbar { display: none; }
.sx-mon {
  flex: none; min-width: 56px; height: 40px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--mist); background: var(--white); color: var(--navy); font: 500 14px/1 var(--mono);
  transition: background .2s, color .2s, border-color .2s;
}
.sx-mon:hover { border-color: var(--navy); }
.sx-mon[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.sx-track { min-height: 200px; }
.sx-nav { justify-content: flex-end; margin-top: 18px; }
.sx-note { font-size: 13.5px; color: var(--grey); margin: 18px 0 0; max-width: 70ch; }
.sx-empty { color: var(--grey); padding: 40px 0; }

.sx-card { display: flex; flex-direction: column; text-decoration: none; color: var(--navy); min-width: 0; }
.sx-card__img { position: relative; aspect-ratio: 1 / 1; border-radius: 16px; overflow: hidden; background: var(--mist); }
.sx-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.sx-card:hover .sx-card__img img { transform: scale(1.04); }
.sx-card__kind {
  position: absolute; top: 12px; left: 12px; padding: 6px 11px; border-radius: 999px; background: var(--white);
  font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
}
.sx-card__body { padding-top: 14px; }
.sx-card__where { font-size: 14px; color: var(--grey); margin: 0 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-card h3 { font-size: 18px; line-height: 1.25; margin: 0 0 4px; }
.sx-card__lvl { font-size: 14px; color: var(--grey); margin: 0 0 10px; }
.sx-card__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; margin: 0; font-size: 14px; }
.sx-peak { font: 500 12px/1 var(--mono); color: var(--cobalt); background: rgba(21,84,209,.08); padding: 6px 9px; border-radius: 6px; letter-spacing: .02em; }
.sx-card__price { font-weight: 600; }

/* Regions */
.sx-regions { display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; }
.sx-region { position: relative; border-radius: 16px; overflow: hidden; color: var(--white); text-decoration: none; isolation: isolate; background: var(--deep-water); }
.sx-region--big { grid-column: span 2; grid-row: span 2; }
.sx-region img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease; }
.sx-region::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14,34,51,0) 25%, rgba(14,34,51,.55) 55%, rgba(14,34,51,.92) 100%); }
.sx-region:hover img { transform: scale(1.05); }
.sx-region__txt { position: absolute; left: 20px; right: 20px; bottom: 18px; display: flex; flex-direction: column; gap: 4px; }
.sx-region__n { font: 600 11.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #fff; opacity: .85; }
.sx-region__name { font-size: 22px; font-weight: 600; line-height: 1.15; }
.sx-region--big .sx-region__name { font-size: clamp(26px, 3vw, 36px); }
.sx-region__sub { font-size: 14px; color: rgba(255,255,255,.82); }

.sx-subhead { font-size: 22px; margin: clamp(48px, 6vw, 72px) 0 20px; }
.sx-countries { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.sx-countries a { display: flex; align-items: center; gap: 14px; padding: 10px; border: 1px solid var(--mist); border-radius: 14px; text-decoration: none; color: var(--navy); transition: border-color .2s, box-shadow .2s; }
.sx-countries a:hover { border-color: var(--navy); box-shadow: 0 6px 18px rgba(14,34,51,.08); }
.sx-countries img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex: none; }
.sx-countries b { display: block; font-weight: 600; }
.sx-countries small { color: var(--grey); font-size: 13.5px; }

/* Why */
.sx-why__grid { list-style: none; margin: clamp(32px, 4vw, 52px) 0 0; padding: 0; display: grid; gap: 28px 36px; grid-template-columns: repeat(4, 1fr); }
.sx-why__grid li { border-top: 1px solid rgba(255,255,255,.2); padding-top: 20px; }
.sx-why__n { font: 500 12px/1 var(--mono); color: var(--skylight); letter-spacing: .14em; }
.sx-why__grid h3 { font-size: 20px; margin: 14px 0 8px; }
.sx-why__grid p { color: rgba(255,255,255,.78); margin: 0; font-size: 15.5px; }

/* Partner call-out */
.sx-partner { padding: clamp(48px, 6vw, 80px) 0; border-top: 1px solid var(--mist); }
.sx-partner__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.sx-partner h2 { font-size: clamp(26px, 3vw, 34px); max-width: 24ch; margin-bottom: 12px; }
.sx-partner .lead { margin: 0; }

/* Tablet */
@media (max-width: 1000px) {
  .sx-search { grid-template-columns: 1fr 1fr 1fr; border-radius: 24px; gap: 4px; }
  .sx-field--where { grid-column: 1 / -1; }
  .sx-field { border-radius: 16px; }
  .sx-field + .sx-field::before { display: none; }
  .sx-go { grid-column: 1 / -1; justify-content: center; border-radius: 16px; min-height: 54px; }
  .sx-regions { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .sx-why__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) { .sx-cats { top: 76px; } }

/* Phone */
@media (max-width: 640px) {
  .sx-hero { min-height: auto; padding-top: 140px; }
  .sx-hide-s { display: none; }
  .sx-search { grid-template-columns: 1fr 1fr; padding: 6px; }
  .sx-field { padding: 8px 14px; }
  .sx-field--where { grid-column: 1 / -1; }
  .sx-field:nth-child(4) { grid-column: 1 / -1; }
  .sx-hero__foot { flex-direction: column; align-items: flex-start; }
  .sx-cats a { padding: 12px 0 10px; font-size: 12px; }
  .sx-cats svg { width: 24px; height: 24px; }
  .sx-regions { grid-template-columns: 1fr; grid-auto-rows: 180px; }
  .sx-region--big { grid-column: auto; grid-row: span 1; }
  .sx-why__grid { grid-template-columns: 1fr; }
  .sx-countries { grid-template-columns: 1fr 1fr; }
  .sx-countries a { flex-direction: column; align-items: flex-start; gap: 8px; }
  .sx-countries img { width: 100%; height: 90px; }
  .sx-track { grid-auto-columns: 78%; }
}

/* Phone hero (Kieran, 11 Nov 2026): the whole widescreen film, never cropped, as a band under the header.
   Text and search sit below it on navy. */
@media (max-width: 767px) {
  .sx-hero { padding-top: calc(56.25vw + 30px); }
  .sx-hero .ui-hero__bg { inset: 0 0 auto 0; height: auto; aspect-ratio: 16 / 9; }
  .sx-hero .ui-hero__bg video { object-fit: cover; }
  .sx-hero .ui-hero__bg::after { background: linear-gradient(180deg, rgba(14,34,51,.18) 0%, rgba(14,34,51,0) 22%, rgba(14,34,51,0) 70%, var(--navy) 100%); }
  .sx-hero .film-sound { top: 12px; right: 12px; }
}

/* Expeditions on request (dive camps, team trips): a light strip under the expedition cards, so they don't crowd the grid */
.also { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line, #E1E6E9); }
.also__label { font: 400 11px/1.4 "IBM Plex Mono", ui-monospace, monospace; letter-spacing: .16em; text-transform: uppercase; color: #56616B; margin: 0 0 14px; }
.also__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.also__item { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px; border-radius: 10px; border: 1px solid #E1E6E9; background: #fff; color: #0E2233; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.also__item:hover { border-color: #0E2233; box-shadow: 0 10px 24px -18px rgba(14,34,51,.5); }
.also__item img { width: 96px; height: 72px; object-fit: cover; border-radius: 6px; display: block; }
.also__txt { display: grid; gap: 2px; min-width: 0; }
.also__txt b { font-size: 16px; font-weight: 600; line-height: 1.25; }
.also__txt small { font-size: 13.5px; color: #56616B; line-height: 1.35; }
.also__txt em { font-style: normal; font-size: 14px; font-weight: 600; color: #1554D1; margin-top: 2px; }
.also__txt em::after { content: " ›"; }
@media (max-width: 960px) { .also__grid { grid-template-columns: minmax(0, 1fr); gap: 10px; } }
