/* ==========================================================================
   Simyak — Shop / Destinations page
   Ported from sections/simyak-shop.liquid (<style> blocks)
   ========================================================================== */

.smyk-dshero {
  position: relative;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.52) 0%, rgba(15, 23, 42, 0.34) 60%, rgba(15, 23, 42, 0.30) 100%),
    url("../../img/simyak-newsletter-tropical-beach-umbrella-airplane.avif") center 55% / cover no-repeat;
  padding: clamp(72px, 10vw, 132px) 0 clamp(48px, 7vw, 84px);
}
.smyk-dshero__heading { color: #ffffff !important; }
.smyk-dshero__sub { color: rgba(255, 255, 255, 0.94) !important; max-width: 620px; }
/* Lift the search pill so it sits on the base of the hero image (kept white so
   the sticky behaviour still works when scrolling). */
.smyk-dest-nav { margin-top: -34px; border-radius: 20px 20px 0 0; }
.smyk-dshero__heading {
  font-family: var(--smyk-font);
  font-weight: 800;
  font-size: clamp(1.875rem, 4vw, 3.25rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: #222222;
  margin: 0 0 18px;
}
.smyk-dshero__sub {
  font-family: var(--smyk-font);
  font-weight: 400;
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  line-height: 1.55;
  color: #475569;
  max-width: 60ch;
  margin: 0;
}

/* Tab navigation — Hostelworld editorial: underline tabs above + wide multi-field search below */
.smyk-dest-nav {
  background: #fff;
  padding: 24px 0 16px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.smyk-dest-nav > .smyk-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Pill toggle — matches home Simyak Destinations `.smyk-tab-toggle`,
   but evenly distributed across 4 tabs so the active pill stays centered. */
.smyk-dest-tabs {
  align-self: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}
.smyk-dest-tabs .smyk-tab-toggle__btn {
  padding: 11px 28px;
  flex: 1 1 0;
  justify-content: center;
  text-align: center;
  min-width: 120px;
  font-size: 15px;
}
.smyk-dest-tabs .smyk-tab-toggle__btn::after { content: none; }

@media (max-width: 560px) {
  .smyk-dest-tabs { align-self: stretch; gap: 8px; }
  .smyk-dest-tabs .smyk-tab-toggle__btn {
    padding: 16px 20px;
    min-width: 0;
    font-size: 17px;
    font-weight: 600;
  }
}

/* Wide multi-field search bar — same design as home Worldwide Hero */
.smyk-ds-search {
  width: 100%;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 16px;
  padding: 8px;
  display: flex;
  align-items: stretch;
  gap: 0;
  box-shadow: 0 16px 36px -14px rgba(10, 0, 30, 0.45);
  position: relative;
  z-index: 4;
  transition: border-color .2s;
}
.smyk-ds-search:focus-within {
  border-color: #e41d56;
}
.smyk-ds-search__field {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  min-width: 0;
  color: #222222;
}
.smyk-ds-search__field--destination { flex: 1 1 100%; }
.smyk-ds-search__icon { flex-shrink: 0; color: #222222; }
.smyk-ds-search__input {
  flex: 1;
  min-width: 0;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  border: 0;
  outline: 0;
  background: transparent;
  color: #222222;
}
.smyk-ds-search__input::placeholder { color: #5b6472; font-weight: 400; }
.smyk-ds-search__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #e41d56;
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  border: 0;
  border-radius: 12px;
  padding: 0 26px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s, transform .15s;
  flex-shrink: 0;
}
.smyk-ds-search__cta:hover { background: #c2164a; }
.smyk-ds-search__cta:active { transform: translateY(1px); }

.smyk-dest-card-h--hidden { display: none !important; }

/* Responsive */
@media (max-width: 768px) {
  .smyk-ds-search__field { padding: 10px 14px; gap: 8px; }
  .smyk-ds-search__cta   { padding: 0 18px; }
}
@media (max-width: 640px) {
  .smyk-ds-search {
    flex-direction: column;
    gap: 4px;
    padding: 10px;
  }
  .smyk-ds-search__field--destination {
    width: 100%;
    flex: 1 1 100%;
  }
  .smyk-ds-search__cta {
    width: 100%;
    justify-content: center;
    height: 44px;
  }
  .smyk-dest-tabs { overflow-x: auto; padding-bottom: 2px; }
}

/* ── Mobile: use the full screen width + full-width single-column cards ──
   Fixes the overflow caused by 2 horizontal cards (flag + unbreakable price)
   not fitting, and the wide 30px container padding wasting width. Scoped +
   higher specificity so it beats the conflicting rules in simyak-theme.css. */
@media (max-width: 600px) {
  .smyk-dshero > .smyk-container,
  .smyk-dest-nav > .smyk-container,
  .smyk-shop-panel > .smyk-container {
    padding-inline: 16px !important;
  }
  .smyk-shop-panel .smyk-dest-grid--countries,
  .smyk-shop-panel .smyk-dest-grid--regions,
  #smyk-all-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  /* let the card fill the full card width */
  .smyk-shop-panel .smyk-dest-card-h,
  .smyk-shop-panel .smyk-region-card-h {
    width: 100% !important;
  }
}
