/* Marketplace hero redesign, desktop only (>= 1100px). Loaded last. Mobile and tablet layouts are unchanged.
   Hero text and photo still come from the Marketplace CMS (cms/public.js). */
/* Hero extras are desktop-only. */
.marketplace-app .hero-trust, .marketplace-app .hero-popular { display: none; }

@media (min-width: 1100px) {
  /* Taller, immersive hero; photo positioned so the mountain and wildlife stay visible. */
  .marketplace-app .store-hero {
    min-height: clamp(560px, 70vh, 700px);
    /* Left edge of the text lines up with the search bar below (max width 1180px, 88%). */
    padding: clamp(56px, 8vh, 96px) max(6vw, calc((100vw - 1180px) / 2)) 170px;
    flex-direction: column;
    justify-content: flex-start;
    background-position: center 58%;
  }
  .marketplace-app .store-hero:before {
    background:
      linear-gradient(90deg, rgba(8, 22, 16, .82) 0%, rgba(8, 22, 16, .62) 34%, rgba(8, 22, 16, .18) 64%, rgba(8, 22, 16, 0) 82%),
      linear-gradient(0deg, rgba(8, 22, 16, .55) 0%, rgba(8, 22, 16, 0) 42%);
  }
  .marketplace-app .hero-copy { max-width: 1180px; text-shadow: 0 2px 14px rgba(0, 0, 0, .35); }
  .marketplace-app .hero-copy .eyebrow { letter-spacing: .32em; font-size: 14px !important; margin-bottom: 18px; color: #f5c45f; }
  .marketplace-app .hero-copy h1 { font-size: clamp(44px, 3.8vw, 62px) !important; line-height: 1.04 !important; margin-bottom: 20px; }
  .marketplace-app .hero-copy em { color: #ffd27a; }
  .marketplace-app .hero-copy > p:last-child { font-size: 19px !important; line-height: 1.55; max-width: 700px; color: rgba(255, 255, 255, .92); }

  /* Trust row (added by hero-enhance.js, outside .hero-copy so the CMS subtitle keeps working). */
  .marketplace-app .hero-trust { position: relative; display: flex !important; flex-wrap: wrap; gap: 10px 22px; margin: 26px 0 0; padding: 0; list-style: none; color: #fff; }
  .marketplace-app .hero-trust li { display: inline-flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 600; text-shadow: 0 1px 8px rgba(0, 0, 0, .4); }
  .marketplace-app .hero-trust i { color: #f5c45f; }

  /* Category tabs on the photo, directly above the search. */
  .marketplace-app .category-strip {
    display: flex !important; gap: 8px; position: relative; z-index: 2;
    width: min(1180px, 88%); margin: -150px auto 0; padding: 0; background: none; border: 0; box-shadow: none; overflow: visible;
  }
  .marketplace-app .category-strip button {
    display: inline-flex; align-items: center; gap: 9px; width: auto; min-height: 44px; padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, .45); border-radius: 999px; background: rgba(8, 22, 16, .45); color: #fff;
    font-size: 15px !important; font-weight: 600; backdrop-filter: blur(6px); cursor: pointer;
  }
  .marketplace-app .category-strip button:hover { background: rgba(8, 22, 16, .65); }
  .marketplace-app .category-strip button.active,
  .marketplace-app .category-strip button[aria-pressed="true"] { background: #fffdf5; color: #183c32; border-color: #fffdf5; }
  .marketplace-app .category-strip button:focus-visible { outline: 3px solid #f5c45f; outline-offset: 2px; }
  .marketplace-app .category-strip [data-action="ai-entry"] { display: none; } /* AI planner: coming soon; still in the header */

  /* Search: one clean bar overlapping the bottom of the photo. */
  .marketplace-app .store-search {
    position: relative; z-index: 2;
    width: min(1180px, 88%); max-width: none; margin: 12px auto 18px;
    grid-template-columns: 1.4fr .95fr .95fr 1.35fr .95fr auto;
    align-items: stretch; gap: 0; padding: 10px; border: 0; border-radius: 16px;
    background: #fffdf5; box-shadow: 0 18px 50px rgba(8, 22, 16, .28);
  }
  .marketplace-app .store-search .search-field { min-height: 66px; padding: 6px 14px; border-right: 1px solid #ece6d6; }
  .marketplace-app .store-search .search-field:nth-of-type(5) { border-right: 0; }
  .marketplace-app .store-search label { font-size: 13px !important; font-weight: 700; color: #183c32; letter-spacing: .01em; margin-bottom: 2px; }
  .marketplace-app .store-search input,
  .marketplace-app .store-search select { font-size: 15px !important; color: #42504a; min-height: 26px; }
  .marketplace-app .store-search #query { font-size: 13px !important; color: #6d776f; }
  .marketplace-app .store-search .primary { min-height: 66px; padding: 0 30px; border-radius: 12px; font-size: 16px !important; font-weight: 700; white-space: nowrap; }
  .marketplace-app .store-search .date-note { grid-column: 1 / -1; text-align: left; font-size: 12px !important; color: #7a7f73; margin: 8px 16px 0; }

  /* Popular destinations (added by hero-enhance.js). */
  .marketplace-app .hero-popular { width: min(1180px, 88%); margin: 0 auto 26px; display: flex !important; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 14px; color: #55605a; }
  .marketplace-app .hero-popular strong { color: #183c32; margin-right: 4px; }
  .marketplace-app .hero-popular button { border: 1px solid #ddd5c2; background: #fffdf5; color: #183c32; border-radius: 999px; padding: 6px 14px; font-size: 14px !important; cursor: pointer; }
  .marketplace-app .hero-popular button:hover { border-color: #183c32; }

  /* The category tabs now live in the hero: hide the duplicate transport/package chips below. */
  .marketplace-app .store-filters .chip[data-store-category] { display: none; }
  .marketplace-app .store-filters > span:empty { display: none; }
}
