@import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&family=Nunito+Sans:opsz,wght@6..12,300..900&display=swap");

:root {
  --ui-brand: #4a3aff;
  --ui-brand-dark: #20155f;
  --ui-accent: #ffb347;
  --ui-accent-hover: #f5a329;
  --ui-ink: #191827;
  --ui-muted: #727583;
  --ui-soft: #f4f5f8;
  --ui-line: #e5e7ed;
  font-family: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.home-page,
.map-page,
.home-page button,
.home-page input,
.home-page select,
.map-page button,
.map-page input,
.map-page select {
  font-family: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.material-symbols-rounded {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 300;
  line-height: 1;
  font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 0, "opsz" 24;
}

/* Home shell and hero */
.home-page {
  color: var(--ui-ink);
  background: #f4f5f8;
}

.home-page .home-main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 0 64px;
}

.home-shell {
  width: min(100% - 32px, 1180px);
  margin-inline: auto;
}

.home-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(125deg, var(--ui-brand-dark) 0%, var(--ui-brand) 52%, #7569ff 100%);
}

.home-hero::before,
.home-hero::after {
  position: absolute;
  content: "";
  border-radius: 50%;
  background: rgba(255, 255, 255, .075);
  pointer-events: none;
}

.home-hero::before {
  top: -310px;
  right: -70px;
  width: 520px;
  height: 520px;
}

.home-hero::after {
  bottom: -245px;
  left: -190px;
  width: 350px;
  height: 350px;
}

.home-page .home-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  margin: 0;
}

.home-page .home-logo {
  width: 260px;
  max-width: 60vw;
}

.home-trust {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: rgba(255, 255, 255, .84);
  font-size: 14px;
}

.home-intro {
  position: relative;
  z-index: 1;
  padding-top: 46px;
  text-align: center;
}

.home-intro h1 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.045em;
}

.home-intro p {
  max-width: 680px;
  margin: 0 auto;
  color: rgba(255, 255, 255, .8);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.45;
}

.home-page .tour-search {
  position: relative;
  z-index: 2;
  padding: 30px 0 76px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.home-page .hot-tours-section {
  margin-top: 0;
  padding-top: 62px;
}

.home-page .hot-tours-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.home-page .hot-tours-heading h2 {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 800;
}

.home-page .hot-tours-heading p {
  max-width: 560px;
  margin: 0;
  color: var(--ui-muted);
  font-size: 15px;
  line-height: 1.45;
  text-align: right;
}

.home-page .hot-tours-widget {
  min-height: 440px;
  padding: 16px;
  border: 0;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(30, 25, 73, .045);
}

/* Shared custom search surface */
.custom-search {
  --search-brand: var(--ui-brand);
  --search-brand-hover: #382bdf;
  --search-brand-soft: #f1f0ff;
  --search-ink: var(--ui-ink);
  --search-muted: var(--ui-muted);
  --search-border: var(--ui-line);
  font-family: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.custom-search,
.custom-search * {
  font-weight: 300 !important;
}

.custom-search .product-tabs {
  display: flex;
  width: max-content;
  gap: 5px;
  margin: 0 auto 18px;
  padding: 5px;
  border: 0;
  border-radius: 999px;
  background: #ececf2;
}

.home-page .custom-search .product-tabs {
  background: rgba(27, 18, 93, .28);
}

.custom-search .product-tab {
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  color: #656877;
  background: transparent;
}

.home-page .custom-search .product-tab {
  color: rgba(255, 255, 255, .72);
}

.custom-search .product-tab.is-active {
  color: var(--ui-brand-dark);
  background: #fff;
  box-shadow: none;
}

.custom-search .search-panel {
  overflow: visible;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(26, 17, 87, .14);
}

.custom-search .primary-grid {
  display: grid;
  grid-template-columns: 1fr 1.55fr 1.05fr .9fr 1fr 56px 160px;
  gap: 0;
  align-items: stretch;
  padding: 7px;
}

.custom-search .field-shell {
  min-width: 0;
}

.custom-search .field-button {
  height: 62px;
  padding: 10px 12px 8px 14px;
  border: 0;
  border-right: 1px solid var(--ui-line);
  border-radius: 0;
  background: #fff;
}

.custom-search .field-button:hover,
.custom-search .filter-button:hover {
  border-color: var(--ui-line);
  background: #fafafe;
}

.custom-search .field-label,
.custom-search .filter-label {
  color: #858895;
  font-size: 12px;
  font-weight: 300 !important;
}

.custom-search .field-value,
.custom-search .filter-value {
  color: var(--ui-ink);
  font-size: 15px;
  font-weight: 300 !important;
}

.custom-search .field-icon,
.custom-search .filter-icon {
  width: auto;
  height: auto;
  color: #808390;
  font-size: 19px;
}

.custom-search .advanced-toggle {
  position: relative;
  display: inline-flex;
  align-self: center;
  justify-self: center;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  min-height: 48px;
  margin: 0 4px;
  padding: 0;
  color: var(--ui-brand);
  border: 0;
  border-radius: 12px;
  background: #f2f0ff;
}

.custom-search .advanced-toggle[aria-expanded="true"] {
  color: #fff;
  background: var(--ui-brand);
}

.custom-search .advanced-toggle-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.custom-search .search-button {
  min-height: 62px;
  margin-left: 3px;
  padding: 0 18px;
  color: #2f2107;
  border: 0;
  border-radius: 12px;
  background: var(--ui-accent);
  box-shadow: none;
}

.custom-search .search-button:hover {
  border: 0;
  background: var(--ui-accent-hover);
}

.custom-search .advanced-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  max-height: 140px;
  margin: 0 7px 7px;
  padding: 14px 0 0;
  border-top: 1px solid #f0f1f5;
}

.custom-search .advanced-grid.is-collapsed {
  max-height: 0;
  margin-bottom: 0;
  padding-top: 0;
  border-top-color: transparent;
}

.custom-search .filter-button {
  height: 58px;
  padding: 8px 12px;
  border: 0;
  border-radius: 11px;
  background: var(--ui-soft);
}

.custom-search .form-footer {
  justify-content: flex-end;
  margin-top: 12px;
}

.home-page .custom-search .search-hint {
  color: rgba(255, 255, 255, .76);
}

.custom-search .popover {
  border: 0;
  box-shadow: 0 14px 38px rgba(25, 24, 39, .14);
}

.custom-search .popover-search .material-symbols-rounded {
  color: var(--search-muted);
  font-size: 20px;
}

/* Keep the shared map form compact and behavior-compatible. */
.map-page .custom-search .search-panel {
  box-shadow: none;
}

.map-page .custom-search .product-tabs {
  margin-left: 0;
}

.map-page .custom-search .form-footer {
  justify-content: flex-start;
}

@media (max-width: 1120px) {
  .custom-search .primary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
  }

  .custom-search .search-button {
    grid-column: auto;
    margin: 4px;
  }

  .custom-search .advanced-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-height: 220px;
  }
}

@media (max-width: 700px) {
  .home-shell {
    width: min(100% - 20px, 1180px);
  }

  .home-page .home-header {
    min-height: 70px;
  }

  .home-page .home-logo {
    width: 210px;
  }

  .home-trust {
    display: none;
  }

  .home-intro {
    padding-top: 30px;
  }

  .home-intro h1 {
    font-size: 36px;
  }

  .home-page .tour-search {
    padding: 26px 0 48px;
  }

  .custom-search .product-tabs {
    margin-bottom: 18px;
  }

  .custom-search .primary-grid,
  .custom-search .advanced-grid {
    grid-template-columns: 1fr;
  }

  .custom-search .primary-grid {
    padding: 8px;
  }

  .custom-search .field-button {
    height: 58px;
    border-right: 0;
    border-bottom: 1px solid var(--ui-line);
  }

  .custom-search .advanced-toggle {
    justify-self: stretch;
    width: auto;
    height: 50px;
    margin: 4px;
  }

  .custom-search .advanced-toggle-label {
    position: static;
    width: auto;
    height: auto;
    margin: 0 0 0 8px;
    overflow: visible;
    clip: auto;
    white-space: normal;
  }

  .custom-search .search-button {
    grid-column: auto;
    min-height: 54px;
    margin: 4px;
  }

  .custom-search .advanced-grid {
    max-height: 420px;
  }

  .custom-search .form-footer {
    align-items: center;
  }

  .home-page .custom-search .search-hint {
    width: 100%;
    text-align: center;
  }

  .home-page .hot-tours-section {
    padding-top: 42px;
  }

  .home-page .hot-tours-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-page .hot-tours-heading p {
    text-align: left;
  }

  .home-page .hot-tours-widget {
    padding: 10px;
  }
}

@media (min-width: 381px) and (max-width: 700px) {
  .home-page .home-logo {
    width: 190px;
  }

  .home-intro h1 {
    white-space: nowrap;
  }
}

@media (max-width: 380px) {
  .home-intro h1 {
    font-size: 32px;
  }

  .custom-search .product-tab {
    padding-inline: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .custom-search *,
  .custom-search *::before,
  .custom-search *::after {
    transition-duration: .01ms !important;
  }
}
