/* Edge-to-edge — kill all surrounding spacing so the hero photo flushes
   directly against the header above and the next section below. */
.smyk-hw {
  padding: 0 !important;
  margin: 0 !important;
  background: transparent;
  display: block;
}

/* Search bar container — no glow */
.smyk-hw__search {
  position: relative;
  z-index: 1;
}
.shopify-section:has(> .smyk-hw),
.shopify-section.shopify-section--simyak-hero-worldwide {
  padding: 0 !important;
  margin: 0 !important;
  background: transparent;
}
/* Some themes add a content-spacing class on the section wrapper —
   neutralise it for this hero specifically. */
.shopify-section:has(> .smyk-hw) > .smyk-hw { margin-block: 0 !important; }

/* ── Hero photo + overlay + copy ────────────────────────── */
/* Mobile-first heights. Photo flushes against the header — no
   margin-top so there's no white gap between the header and the
   hero image. */
.smyk-hw__photo {
  position: relative;
  width: 100%;
  height: 19rem;            /* mobile  (304px — was 352, ~15% smaller) */
  margin: 0;
  overflow: hidden;
  isolation: isolate;
  display: block;
}
@media (min-width: 48em) {
  .smyk-hw__photo {
    height: 27rem;           /* desktop (432px — was 512, ~15% smaller) */
  }
}
.smyk-hw__photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Fit mode: Contain — show the full image with letterbox bands.
   Background fill colour (dark navy) shows where the image doesn't reach. */
.smyk-hw__photo--contain {
  background: #0a0a18;
}
.smyk-hw__photo--contain .smyk-hw__photo-img {
  object-fit: contain;
}

/* Fit mode: Auto height — section grows to match the image's natural
   aspect ratio. No cropping. Image fills width, height follows. */
.smyk-hw__photo--auto {
  height: auto !important;
  aspect-ratio: var(--smyk-hw-img-ratio, 16 / 9);
}
.smyk-hw__photo--auto .smyk-hw__photo-img {
  position: static;
  width: 100%;
  height: auto;
  display: block;
  object-fit: initial;
}
/* Override the fixed mobile + desktop heights for auto mode */
@media (min-width: 48em) {
  .smyk-hw__photo--auto { height: auto !important; }
}
.smyk-hw__photo-img--placeholder {
  background:
    radial-gradient(circle at 20% 30%, #f4899f, transparent 50%),
    radial-gradient(circle at 80% 70%, #ce6cf3, transparent 50%),
    linear-gradient(135deg, #e41d56 0%, #00a699 100%);
}
.smyk-hw__photo-overlay {
  display: none;
}
/* Legibility scrim so white hero text reads on any photo. */
.smyk-hw__photo::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(10,15,25,0.30) 0%, rgba(10,15,25,0.40) 55%, rgba(10,15,25,0.48) 100%);
}

.smyk-hw__copy {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(40px, 8vw, 80px) 20px;
  color: #fff;
}
.smyk-hw__title {
  font-family: var(--smyk-font, inherit);
  font-size: clamp(1.8rem, 4vw, 51px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 auto 12px;
  text-align: center !important;
  text-shadow: 0 1px 12px rgba(0,0,0,0.28);
  max-width: none;
  white-space: normal;
  color: #ffffff;
  width: 100%;
}
.smyk-hw__title-accent {
  color: #e41d56;
  display: block;
  text-align: center;
}
.smyk-hw__subtitle {
  font-size: clamp(14px, 1.5vw, 17px);
  font-weight: 600 !important;
  margin: 0 auto;
  color: #ffffff;
  text-shadow: none;
  max-width: 620px;
  text-align: center !important;
  width: 100%;
}

/* ── Band beneath the photo — transparent, search overlaps the photo ── */
.smyk-hw__band {
  background: #ffffff;
  padding: 0 20px 16px;
  position: relative;
  z-index: 3;
  margin: 0;
  display: block;
}
.smyk-hw__band-inner {
  max-width: 1120px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Pull the search bar UP so it visually overlaps the bottom edge of
   the hero photo. Tighter pull-up keeps things compact. */
.smyk-hw__search { margin-top: -44px; }

/* Search bar — full-pill, elevated white, soft drop shadow */
.smyk-hw__search {
  width: 100%;
  background: #FFFFFF;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 6px;
  display: flex;
  align-items: stretch;
  gap: 0;
  min-height: 76px;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.05),
    0 18px 44px rgba(0, 0, 0, 0.14);
  position: relative;
  z-index: 4;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.smyk-hw__search:hover,
.smyk-hw__search:focus-within {
  border-color: #222222;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.10),
    0 18px 44px rgba(0, 0, 0, 0.22);
}

.smyk-hw__field {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 28px;
  min-width: 0;
  color: #222222;
}
.smyk-hw__field--destination { flex: 1 1 55%; padding-left: 30px; }
.smyk-hw__field--meta { flex: 0 0 auto; padding-inline: 24px; }

.smyk-hw__field-icon { flex-shrink: 0; color: #222222; width: 22px; height: 22px; }

.smyk-hw__field-input {
  flex: 1;
  min-width: 0;
  font-size: 1rem;
  font-weight: 500;
  border: 0;
  outline: 0;
  background: transparent;
  color: #222222;
  letter-spacing: -0.005em;
}
.smyk-hw__field-input::placeholder { color: #5b6472; font-weight: 400; }

.smyk-hw__field-stack {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
  gap: 2px;
}
.smyk-hw__field-label {
  font-size: 13px;
  color: #6b7280;
  font-weight: 500;
  letter-spacing: 0;
}
.smyk-hw__field-value {
  font-size: 15px;
  font-weight: 700;
  color: #222222;
  letter-spacing: -0.005em;
}

/* Real <input type="date"> styled to look like the static .smyk-hw__field-value */
.smyk-hw__field-date-input {
  font-family: var(--smyk-font, inherit);
  font-size: 15px;
  font-weight: 700;
  color: #222222;
  background: transparent;
  border: 0;
  outline: 0;
  padding: 0;
  margin: 0;
  width: 100%;
  min-width: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  letter-spacing: -0.005em;
}
.smyk-hw__field-date-input:focus {
  outline: 2px solid var(--smyk-purple, #00a699);
  outline-offset: 4px;
  border-radius: 4px;
}
/* Hide the browser's native calendar icon — we keep only the custom
   SVG calendar icon on the left of the field. The label wraps the
   whole field, so clicking anywhere still opens the date picker. */
.smyk-hw__field-date-input::-webkit-calendar-picker-indicator {
  display: none;
  -webkit-appearance: none;
  appearance: none;
  opacity: 0;
}
/* When empty, show a hint as placeholder */
.smyk-hw__field-date-input:not(:focus):invalid,
.smyk-hw__field-date-input:not(:focus):placeholder-shown {
  color: #5b6472;
  font-weight: 600;
}
.smyk-hw__field--date { cursor: pointer; }

/* Thin vertical dividers between fields — full-height, soft grey */
.smyk-hw__divider {
  flex: 0 0 1px;
  width: 1px;
  align-self: stretch;
  background: #e5e7eb;
  margin-block: 16px;
}

.smyk-hw__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #e41d56;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 16px;
  border: 0;
  border-radius: 999px;
  padding: 0 32px;
  height: 100%;
  min-height: 64px;
  cursor: pointer;
  white-space: normal;
  transition: background .2s, transform .15s, box-shadow .2s;
  flex-shrink: 0;
  box-shadow: 0 4px 14px -4px rgba(228, 29, 86, 0.55);
}
.smyk-hw__cta:hover {
  background: #d11a4e;
  border-color: #d11a4e;
  transform: translateY(-1px);
}
.smyk-hw__cta:active { transform: translateY(0); }

/* Trust strip — 15px text, orange-filled icons, 32px gap (Fix Prompt #3) */
.smyk-hw__trust-list {
  list-style: none;
  margin: 20px auto 0;
  padding: 14px 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 18px 32px;
  font-size: 15px;
  font-weight: 500;
  color: #222222;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 10px 24px -12px rgba(15, 23, 42, 0.18), 0 2px 6px -2px rgba(15, 23, 42, 0.08);
  width: max-content;
  max-width: 100%;
}
.smyk-hw__trust-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 1.3;
}
.smyk-hw__trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #e41d56;
  color: #FFFFFF;
}
.smyk-hw__trust-icon svg { width: 14px; height: 14px; }

/* Optional trust-badge row */
.smyk-hw__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(16px, 3vw, 36px);
  margin-top: 18px;
}
.smyk-hw__badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.95);
}
.smyk-hw__badge-icon {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}
.smyk-hw__badge-label { margin: 0; line-height: 1.2; }

/* ── Responsive ─────────────────────────────────────────── */

/* Wide tablet / small laptop (1024–1100 px) — tighten search padding */
@media (max-width: 1100px) {
  .smyk-hw__field { padding: 10px 18px; gap: 10px; }
  .smyk-hw__field-icon { width: 20px; height: 20px; }
  .smyk-hw__field-label { font-size: 0.74rem; }
  .smyk-hw__field-value { font-size: 0.92rem; }
  .smyk-hw__cta { padding: 0 22px; font-size: 0.95rem; }
}

/* Tablet (768–1023 px) — keep horizontal layout but condense.
   Drop the third "Travelers" field to gain destination width. */
@media (max-width: 1023px) {
  .smyk-hw__title { font-size: clamp(1.2rem, 3vw, 1.8rem); white-space: normal; }
  .smyk-hw__subtitle { font-size: clamp(1.1rem, 1.8vw, 1.3rem); }
  .smyk-hw__band { padding: 28px 18px 24px; }
  .smyk-hw__field { padding: 10px 14px; gap: 8px; }
  .smyk-hw__cta { padding: 0 18px; }
}

/* Medium tablet (640–767 px) — keep search bar pill but drop both
   meta fields; just destination + CTA. */
@media (max-width: 767px) {
  .smyk-hw__title {
    font-size: clamp(0.95rem, 3.8vw, 1.4rem);
    margin-bottom: 8px;
    white-space: normal;
    max-width: none;
  }
  .smyk-hw__subtitle {
    font-size: clamp(1.05rem, 2.4vw, 1.2rem);
    max-width: 90%;
  }
  .smyk-hw__band { padding: 24px 16px 22px; }
  .smyk-hw__search {
    border-radius: 14px;
    padding: 7px;
    gap: 4px;
  }
  .smyk-hw__field--meta,
  .smyk-hw__divider { display: none; }
  .smyk-hw__field--destination {
    flex: 1 1 100%;
    padding: 10px 14px;
  }
  .smyk-hw__cta {
    padding: 0 16px;
    font-size: 0.9rem;
    border-radius: 10px;
  }
  .smyk-hw__trust {
    font-size: 0.85rem;
    text-align: center;
    margin-top: 16px;
    padding-inline: 8px;
  }
}

/* Mobile (≤540 px) — stack everything vertically */
@media (max-width: 540px) {
  .smyk-hw__copy { padding: 16px 16px 32px; }
  .smyk-hw__title { font-size: clamp(0.85rem, 4vw, 1.2rem); line-height: 1.2; white-space: normal; max-width: none; }
  .smyk-hw__subtitle { font-size: 1.05rem; }
  .smyk-hw__band { padding: 22px 14px 20px; }
  .smyk-hw__search {
    flex-direction: column;
    border-radius: 16px;
    padding: 10px;
    gap: 8px;
  }
  .smyk-hw__field--destination {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    width: 100%;
    padding: 12px 14px;
  }
  .smyk-hw__cta {
    width: 100%;
    justify-content: center;
    padding: 14px 22px;
    font-size: 1rem;
  }
  .smyk-hw__trust { font-size: 0.85rem; gap: 8px; flex-wrap: wrap; justify-content: center; }
}

/* Very small (≤360 px) — extra-tight padding */
@media (max-width: 360px) {
  .smyk-hw__title { font-size: 0.82rem; white-space: normal; max-width: none; }
  .smyk-hw__subtitle { font-size: 0.95rem; }
  .smyk-hw__band { padding: 18px 10px 16px; }
}

/* ── Country autocomplete dropdown ─────────────────────────── */
.smyk-hw__field--destination { position: relative; }
.smyk-hw__ac {
  position: absolute;
  top: calc(100% + 10px);
  left: -18px;
  right: -18px;
  z-index: 60;
  list-style: none;
  margin: 0;
  padding: 6px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  box-shadow: 0 18px 44px -16px rgba(10, 22, 40, 0.35);
  max-height: 320px;
  overflow-y: auto;
  font-family: var(--smyk-font, 'Figtree', 'Circular', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif);
}
.smyk-hw__ac[hidden] { display: none; }
.smyk-hw__ac li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 11px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: #222222;
}
.smyk-hw__ac li.is-active,
.smyk-hw__ac li:hover { background: #fdeef2; }
.smyk-hw__ac-flag {
  width: 26px;
  height: 19px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f1f5f9;
  box-shadow: 0 0 0 1px rgba(10, 22, 40, 0.06);
}
.smyk-hw__ac-name { flex: 1 1 auto; min-width: 0; }
.smyk-hw__ac-globe {
  width: 26px; height: 19px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px; line-height: 1; flex-shrink: 0;
}
.smyk-hw__ac-tag {
  flex-shrink: 0;
  font-size: 11px; font-weight: 700; letter-spacing: .02em;
  color: #c2410c; background: #fdeef2;
  border-radius: 999px; padding: 3px 9px;
  text-transform: uppercase;
}
.smyk-hw__ac-empty {
  padding: 14px;
  font-family: var(--smyk-font, 'Figtree', 'Circular', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif);
  font-size: 14px;
  color: #64748b;
}
@media (max-width: 760px) {
  .smyk-hw__ac { left: 0; right: 0; }
}

/* Trigger value text */
.smyk-hw__field-value {
  font-family: 'Figtree', var(--smyk-font, sans-serif);
  font-size: 0.95rem; font-weight: 600; color: #222222;
  line-height: 1.2; white-space: nowrap; text-align: left;
}
.smyk-hw__field-value.is-placeholder { color: #5b6472; font-weight: 500; }
button.smyk-hw__field--date { background: none; border: 0; text-align: left; cursor: pointer; font: inherit; }

/* Calendar popover */
.smyk-cal {
  position: fixed; z-index: 10070;
  background: #fff; border: 1px solid #e9edf2; border-radius: 22px;
  box-shadow: 0 28px 70px -22px rgba(10,22,40,.45);
  padding: 18px 20px 14px;
  font-family: 'Figtree', var(--smyk-font, sans-serif);
  width: 640px; max-width: calc(100vw - 24px);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.smyk-cal.is-open { opacity: 1; visibility: visible; transform: translateY(0); }

.smyk-cal__head {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: #475569; margin-bottom: 12px; min-height: 22px;
}
.smyk-cal__head svg { color: #e41d56; flex-shrink: 0; }

.smyk-cal__body { position: relative; }
.smyk-cal__nav {
  position: absolute; top: -2px; width: 34px; height: 34px; border-radius: 50%;
  border: 1.5px solid #e5e7eb; background: #fff; color: #222222; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; padding: 0;
  transition: border-color .15s, color .15s, background .15s; -webkit-tap-highlight-color: transparent;
}
.smyk-cal__nav:hover { border-color: #e41d56; color: #e41d56; }
.smyk-cal__nav[disabled] { opacity: .35; cursor: not-allowed; }
.smyk-cal__nav[disabled]:hover { border-color: #e5e7eb; color: #222222; }
.smyk-cal__nav--prev { left: 0; }
.smyk-cal__nav--next { right: 0; }

.smyk-cal__months { display: flex; gap: 32px; padding: 0 6px; }
.smyk-cal__month { flex: 1 1 0; min-width: 0; }
.smyk-cal__month-title {
  text-align: center; font-size: 15px; font-weight: 800; color: #222222;
  letter-spacing: -.01em; margin: 0 0 12px; padding: 0 30px;
}
.smyk-cal__weekdays, .smyk-cal__grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px;
}
.smyk-cal__weekday {
  text-align: center; font-size: 11px; font-weight: 600; color: #5b6472; padding-bottom: 6px;
}
.smyk-cal__day {
  aspect-ratio: 1; border: 0; background: none; cursor: pointer; padding: 0;
  font-family: inherit; font-size: 14px; font-weight: 500; color: #222222;
  border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  transition: background .14s, color .14s; -webkit-tap-highlight-color: transparent;
  max-width: 42px; margin: 0 auto; width: 100%;
}
.smyk-cal__day:hover { background: #fdeef2; color: #c2410c; }
.smyk-cal__day.is-today { font-weight: 700; box-shadow: inset 0 0 0 1.5px #ffd5b3; }
.smyk-cal__day.is-selected,
.smyk-cal__day.is-selected:hover { background: #e41d56; color: #fff; font-weight: 700; box-shadow: none; }
.smyk-cal__day.is-disabled { color: #cbd5e1; cursor: default; pointer-events: none; }
.smyk-cal__day--pad { visibility: hidden; }

.smyk-cal__footer {
  display: flex; align-items: center; justify-content: flex-end;
  margin-top: 12px; padding-top: 12px; border-top: 1px solid #eef0f3;
}
.smyk-cal__clear {
  background: none; border: 0; cursor: pointer; font-family: inherit;
  font-size: 14px; font-weight: 700; color: #222222; text-decoration: underline;
  text-underline-offset: 3px; padding: 4px 2px;
}
.smyk-cal__clear:hover { color: #e41d56; }

@media (max-width: 640px) {
  .smyk-cal { width: calc(100vw - 20px); padding: 16px 16px 12px; max-height: calc(100vh - 90px); overflow-y: auto; }
  .smyk-cal__months { flex-direction: column; gap: 22px; padding: 0; }
  .smyk-cal__day { font-size: 15px; }
}

/* ---- One focus ring on the hero search, not two -------------------------
   simyak-a11y.css applies `outline:2px solid #e41d56` to every focused input.
   Inside this pill that drew a red rectangle around the text field, nested in
   the bar — the bar is the control, so the ring belongs on the bar. The field
   itself is borderless; the wrapper below keeps a visible focus state, so
   keyboard users still see where they are. */
.smyk-hw__search .smyk-hw__field-input:focus,
.smyk-hw__search .smyk-hw__field-input:focus-visible{
  outline: none !important;
  outline-offset: 0 !important;
  box-shadow: none !important;
  border: 0 !important;
}
.smyk-hw__search .smyk-hw__field:focus-within{
  border-color: #e41d56;
}
