/* ==========================================================================
   Home hero — smart search card (Venues / Vendors tabs, free-sentence search)
   Markup: resources/views/layouts/partials/hero-smart-search.blade.php
   Script: public/frontassets/js/hero-smart-search.js
   ========================================================================== */

.mms {
  --mms-brand: var(--crimson, #c0204c);
  --mms-brand-d: #9c164a;
  --mms-soft: #fdeef3;
  --mms-soft2: #fff6f9;
  --mms-ink: #1f1720;
  --mms-muted: #7a6f77;
  --mms-line: #ece2e6;
  --mms-gold: #c9a227;
  position: relative;
  background: #fff;
  color: var(--mms-ink);
  border-radius: 20px;
  box-shadow: 0 24px 60px -18px rgba(60, 6, 24, .55), 0 6px 18px -6px rgba(60, 6, 24, .22);
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  text-align: left;
  line-height: 1.4;
}
.mms *, .mms *::before, .mms *::after { box-sizing: border-box; }
/* family only: a `font` shorthand here would out-rank the sizes set per class below */
.mms button { font-family: inherit; line-height: 1.3; cursor: pointer; }
.mms input { font-family: inherit; }
.mms .msi {
  font-family: 'Material Symbols Outlined';
  font-weight: normal; font-style: normal; line-height: 1; letter-spacing: normal;
  text-transform: none; white-space: nowrap; direction: ltr;
  -webkit-font-feature-settings: 'liga'; font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  display: inline-block; width: 1em; height: 1em; overflow: hidden;
  font-size: 22px; vertical-align: middle; flex: none;
}
.mms :focus-visible { outline: 3px solid #ffb3cf; outline-offset: 2px; }

/* ---------- head: tabs + "Try:" ---------- */
.mms-head { display: flex; align-items: center; gap: 10px; padding: 8px 10px 0; }
.mms-back { display: none; border: 0; background: var(--mms-soft); color: var(--mms-brand); width: 40px; height: 40px; border-radius: 12px; place-items: center; flex: none; }
.mms-tabs { display: inline-flex; gap: 4px; background: #f6eff2; border-radius: 13px; padding: 4px; }
.mms-tab { border: 0; background: none; display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px 6px 11px; border-radius: 10px; font-weight: 600; font-size: 14.5px; color: var(--mms-muted); transition: background .15s, color .15s, box-shadow .15s; white-space: nowrap; }
.mms-tab .msi { font-size: 20px; }
.mms-tab small { font-weight: 500; font-size: 11px; color: var(--mms-muted); background: #f1e4ea; border-radius: 6px; padding: 1px 6px; }
.mms-tab[aria-selected="true"] { background: #fff; color: var(--mms-brand); box-shadow: 0 2px 8px -2px rgba(156, 22, 74, .3); }
.mms-tab[aria-selected="true"] small { background: var(--mms-soft); color: var(--mms-brand); }
.mms-hint { margin-left: auto; font-size: 12.5px; color: var(--mms-muted); display: flex; align-items: center; gap: 6px; min-width: 0; padding-right: 6px; }
.mms-hint .msi { font-size: 17px; color: var(--mms-gold); }
.mms-hint button { border: 0; background: none; color: var(--mms-brand); font-weight: 600; padding: 0; font-size: 12.5px; text-decoration: underline dotted; text-underline-offset: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- fields ---------- */
.mms-form { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) auto; align-items: stretch; padding: 8px 10px; margin: 0; }
.mms-f { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 6px 12px 6px 14px; border-radius: 14px; min-height: 58px; cursor: text; transition: background .15s; min-width: 0; }
.mms-f + .mms-f::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 1px; background: var(--mms-line); }
.mms-f:hover { background: #fbf6f8; }
.mms-f.is-open { background: #fff; box-shadow: 0 0 0 2px var(--mms-brand) inset; }
.mms-f.is-open::before, .mms-f.is-open + .mms-f::before { opacity: 0; }
.mms-lab { font-size: 11px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: var(--mms-muted); display: flex; align-items: center; gap: 6px; margin: 0; cursor: text; white-space: nowrap; }
.mms-lab .msi { font-size: 16px; color: var(--mms-brand); }
.mms-tag { display: inline-flex; align-items: center; font-size: 10.5px; font-weight: 600; padding: 1px 7px; border-radius: 6px; background: var(--mms-soft); color: var(--mms-brand); text-transform: none; letter-spacing: 0; }
.mms-in { display: flex; align-items: center; gap: 4px; margin-top: 1px; }
.mms-in > .msi { display: none; color: var(--mms-brand); font-size: 18px; }
.mms .mms-in input { flex: 1; min-width: 0; width: 100%; border: 0 !important; outline: 0 !important; box-shadow: none !important; background: none !important; font-size: 16px; font-weight: 500; color: var(--mms-ink); padding: 3px 0; height: auto; text-overflow: ellipsis; border-radius: 0; }
.mms .mms-in input::placeholder { color: #9a8f96; font-weight: 400; opacity: 1; }
.mms-ib { border: 0; background: none; color: var(--mms-muted); width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; padding: 0; }
.mms-ib:hover { background: var(--mms-soft); color: var(--mms-brand); }
.mms-ib .msi { font-size: 20px; }
.mms-ib.is-rec { color: #fff; background: var(--mms-brand); animation: mmsPulse 1.2s infinite; }
@keyframes mmsPulse { 0% { box-shadow: 0 0 0 0 rgba(192, 32, 76, .5); } 100% { box-shadow: 0 0 0 12px rgba(192, 32, 76, 0); } }
.mms-go { align-self: center; margin-left: 8px; border: 0; background: linear-gradient(135deg, var(--mms-brand), var(--mms-brand-d)); color: #fff; font-weight: 600; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 54px; padding: 0 26px; border-radius: 16px; box-shadow: 0 10px 22px -10px rgba(156, 22, 74, .85); transition: transform .12s, filter .12s; white-space: nowrap; }
.mms-go:hover { filter: brightness(1.07); color: #fff; }
.mms-go:active { transform: scale(.97); }
.mms-go .msi { font-size: 23px; }

/* inline "pick a city" notice */
.mms-err { display: none; align-items: center; gap: 6px; margin: -2px 18px 6px; color: #b8203f; font-size: 12.5px; font-weight: 600; }
.mms-err.show { display: flex; }
.mms-err .msi { font-size: 17px; }

/* ---------- popular chips ---------- */
.mms-quick { display: flex; align-items: center; gap: 8px; padding: 0 18px 12px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.mms-quick::-webkit-scrollbar { display: none; }
.mms-quick > span { font-size: 12.5px; color: var(--mms-muted); font-weight: 500; flex: none; }
.mms-chip { border: 1px solid var(--mms-line); background: #fff; color: var(--mms-ink); border-radius: 999px; padding: 4px 12px 4px 9px; font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; flex: none; transition: border-color .15s, background .15s, color .15s; }
.mms-chip .msi { font-size: 17px; color: var(--mms-brand); }
.mms-chip:hover { border-color: var(--mms-brand); background: var(--mms-soft2); color: var(--mms-brand); }

/* ---------- popovers ---------- */
.mms-pop { position: absolute; top: calc(100% + 8px); left: 0; z-index: 1060; background: #fff; border-radius: 18px; box-shadow: 0 26px 60px -16px rgba(40, 5, 20, .45), 0 0 0 1px rgba(0, 0, 0, .04); padding: 8px; display: none; max-height: min(62vh, 520px); overflow: auto; overscroll-behavior: contain; color: var(--mms-ink); }
.mms-f.is-open > .mms-pop { display: block; }
.mms-pop-what { width: min(660px, calc(100vw - 40px)); }
.mms-pop-where { width: min(430px, calc(100vw - 40px)); }
.mms-sec { padding: 4px 2px 2px; }
.mms-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--mms-muted); padding: 6px 10px; }
.mms-h button { border: 0; background: none; color: var(--mms-brand); font-size: 12px; font-weight: 600; text-transform: none; letter-spacing: 0; padding: 0; }
.mms-h em { font-style: normal; text-transform: none; letter-spacing: 0; font-weight: 500; }
.mms-opt { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; width: 100%; border: 0; background: none; text-align: left; color: var(--mms-ink); }
.mms-oi { width: 36px; height: 36px; border-radius: 11px; background: var(--mms-soft2); color: var(--mms-brand); display: grid; place-items: center; flex: none; }
.mms-oi.v { background: #fff4dc; color: #a77a00; }
.mms-oi .msi { font-size: 20px; }
.mms-ot { min-width: 0; flex: 1; }
.mms-on { display: block; font-size: 14.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mms-on mark { background: none; color: var(--mms-brand); font-weight: 700; padding: 0; }
.mms-os { display: block; font-size: 12.5px; color: var(--mms-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mms-oa { font-size: 11px; font-weight: 600; border-radius: 6px; padding: 2px 7px; background: #fff4dc; color: #8a6500; flex: none; }
.mms-opt .mms-goi { color: #c7b9c0; font-size: 19px; }
.mms-opt[aria-selected="true"], .mms-opt:hover { background: #f8eef2; }
.mms-opt[aria-selected="true"] .mms-goi { color: var(--mms-brand); }
.mms-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 2px 6px 6px; }
.mms-tile { border: 1px solid var(--mms-line); background: #fff; border-radius: 14px; padding: 11px 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; text-align: left; font-size: 13px; font-weight: 500; color: var(--mms-ink); line-height: 1.25; min-height: 82px; transition: border-color .15s, transform .12s, box-shadow .15s; }
.mms-tile .msi { width: 32px; height: 32px; border-radius: 10px; background: var(--mms-soft2); color: var(--mms-brand); display: grid; place-items: center; font-size: 19px; }
.mms-tile:hover, .mms-tile[aria-selected="true"] { border-color: var(--mms-brand); box-shadow: 0 8px 18px -12px rgba(156, 22, 74, .6); transform: translateY(-1px); }
.mms-foot { display: flex; gap: 6px; flex-wrap: wrap; border-top: 1px solid var(--mms-line); margin-top: 4px; padding: 8px 4px 0; }
.mms-lnk { border: 0; background: none; color: var(--mms-brand); font-weight: 600; font-size: 13.5px; display: inline-flex; align-items: center; gap: 4px; padding: 6px; }
.mms-lnk .msi { font-size: 19px; }
.mms-understood { margin: 2px 2px 8px; background: linear-gradient(135deg, #fff7e6, #fff1f6); border: 1px dashed #e9b6c9; border-radius: 14px; padding: 9px 10px; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.mms-understood .ul { font-size: 12.5px; font-weight: 600; color: var(--mms-brand-d); display: flex; align-items: center; gap: 5px; }
.mms-understood .ul .msi { font-size: 18px; color: var(--mms-gold); }
.mms-uchip { display: inline-flex; align-items: center; gap: 5px; background: #fff; border: 1px solid #ecd3dd; border-radius: 999px; padding: 3px 10px 3px 7px; font-size: 12.5px; font-weight: 500; }
.mms-uchip .msi { font-size: 16px; color: var(--mms-brand); }
.mms-apply { margin-left: auto; border: 0; background: var(--mms-brand); color: #fff; font-weight: 600; font-size: 13px; border-radius: 10px; padding: 6px 12px; display: inline-flex; gap: 4px; align-items: center; }
.mms-apply .msi { font-size: 18px; }
.mms-zero { padding: 14px 12px 8px; text-align: center; }
.mms-zero .zi { width: 50px; height: 50px; border-radius: 16px; margin: 2px auto 8px; background: var(--mms-soft); color: var(--mms-brand); display: grid; place-items: center; }
.mms-zero .zi .msi { font-size: 27px; }
.mms-zero h4 { margin: 0 0 4px; font-size: 15px; font-weight: 600; color: var(--mms-ink); }
.mms-zero p { margin: 0 auto 4px; font-size: 13px; color: var(--mms-muted); max-width: 46ch; }
.mms-filter { display: flex; align-items: center; gap: 8px; border: 1px solid var(--mms-line); border-radius: 12px; padding: 6px 10px; margin: 0 4px 8px; }
.mms .mms-filter input { border: 0 !important; outline: 0 !important; box-shadow: none !important; flex: 1; font-size: 14px; min-width: 0; padding: 2px 0; background: none; }
.mms-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 6px; }
.mms-grid2 .mms-opt { padding: 6px 10px; }
.mms-grid2 .mms-oi { width: 30px; height: 30px; border-radius: 9px; }
.mms-grid2 .mms-oi .msi { font-size: 18px; }
.mms-grid2 .mms-on { font-size: 13.5px; }
.mms-pchips { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 8px 8px; }
.mms-pchips .mms-chip { font-size: 12.5px; }
.mms-empty { padding: 10px 12px; color: var(--mms-muted); font-size: 13px; }

/* keep the hero's stacking above later sections while a list is open */
.mms-raise { z-index: 40 !important; }
.mms-raise-top { z-index: 100001 !important; }

/* desktop/tablet: the "pick a city" notice sits in the tabs row, right above
   the Where field (in place of the "Try:" hint), so it never changes the
   card's height and is never hidden under an open list */
.mms-desk .mms-err { position: absolute; right: 14px; top: 13px; z-index: 2; margin: 0; padding: 5px 12px; background: #fff5f7; border: 1px solid #f3c9d4; border-radius: 8px; }
.mms.has-err .mms-hint { visibility: hidden; }

/* the Where field blinks three times when a city is still needed */
@keyframes mmsBlink {
  0%, 100% { box-shadow: 0 0 0 2px var(--mms-brand) inset; background: #fff; }
  50% { box-shadow: 0 0 0 2px var(--mms-brand) inset, 0 0 0 5px rgba(192, 32, 76, .28); background: #fde3ec; }
}
.mms-f.mms-blink { animation: mmsBlink .45s ease-in-out 3; }

/* ---------- desktop hero: same height as before the redesign ----------
   The slider fills the hero, and the hero's height used to follow its
   content. Pin it to the height it had with the old one-row search
   (469px desktop, 581px tablet) and centre the copy + card inside it, so the
   taller card never changes the slider image area. */
@media (min-width: 768px) {
  .mm-redesign .hero.mms-hero { height: 581px; overflow: visible; overflow-x: clip; }
  .mm-redesign .hero.mms-hero .hero-bg { overflow: hidden; }
  .mm-redesign .hero.mms-hero .hero-inner { height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-top: 18px; padding-bottom: 18px; }
  .mm-redesign .hero.mms-hero .launch-tag { margin-bottom: 12px; }
  .mm-redesign .hero.mms-hero h1 { margin: 0; }
  .mm-redesign .hero.mms-hero .hero-inner > p { margin-top: 10px; max-width: 720px; }
  .mms-desk { margin-top: 18px; width: 100%; max-width: 980px; }
  .mm-redesign .hero.mms-hero .mms-trust { margin-top: 14px !important; }
}
@media (min-width: 992px) {
  .mm-redesign .hero.mms-hero { height: 469px; }
}

/* tablet: What + Where side by side, Search on its own row */
@media (min-width: 768px) and (max-width: 991.98px) {
  .mms-desk .mms-form { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
  .mms-desk .mms-go { grid-column: 1 / -1; margin: 8px 0 0; height: 50px; }
  .mms-desk .mms-hint { display: none; }
}

/* ---------- mobile card: same footprint as the old one (~172px) ---------- */
.mms-mob { border-radius: 14px; box-shadow: 0 8px 32px rgba(0, 0, 0, .2); overflow: visible; }
.mms-mob .mms-head { padding: 8px 8px 0; }
.mms-mob .mms-tabs { display: flex; width: 100%; padding: 3px; border-radius: 11px; }
.mms-mob .mms-tab { flex: 1; justify-content: center; padding: 5px 8px; font-size: 13.5px; border-radius: 9px; }
.mms-mob .mms-tab .msi { font-size: 18px; }
.mms-mob .mms-tab small, .mms-mob .mms-hint, .mms-mob .mms-quick, .mms-mob .mms-lab { display: none; }
.mms-mob .mms-form { display: block; padding: 0; }
.mms-mob .mms-f { min-height: 45px; padding: 3px 10px 3px 14px; border-radius: 0; }
.mms-mob .mms-f + .mms-f::before { left: 14px; right: 14px; top: 0; bottom: auto; width: auto; height: 1px; }
.mms-mob .mms-f:hover { background: none; }
.mms-mob .mms-in { margin: 0; gap: 8px; }
.mms-mob .mms-in > .msi { display: inline-block; }
.mms-mob .mms-in input { font-size: 15px; }
.mms-mob .mms-ib { width: 30px; height: 30px; }
.mms-mob .mms-go { display: flex; width: 100%; margin: 0; height: 39px; border-radius: 0 0 14px 14px; background: #e6b94d; color: #1a0a0f; font-size: 15px; font-weight: 700; box-shadow: none; }
.mms-mob .mms-go:hover { color: #1a0a0f; background: #d8a836; filter: none; }
.mms-mob .mms-go .msi { font-size: 21px; }
.mms-mob .mms-err { margin: 0; padding: 6px 14px; background: #fff; }
.mms-mob .mms-err.show + .mms-go { border-radius: 0 0 14px 14px; }

/* phones: a field turns the card into a full-screen sheet */
html.mms-lock, html.mms-lock body { overflow: hidden !important; }
.mms.is-sheet { position: fixed !important; inset: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important; z-index: 100001; margin: 0; border-radius: 0; box-shadow: none; overflow: auto; display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
.mms.is-sheet .mms-head { position: sticky; top: 0; background: #fff; z-index: 5; padding: 10px 12px; padding-top: calc(10px + env(safe-area-inset-top)); border-bottom: 1px solid var(--mms-line); }
.mms.is-sheet .mms-back { display: grid; }
.mms.is-sheet .mms-tabs { flex: 1; width: auto; }
.mms.is-sheet .mms-form { display: flex; flex-direction: column; flex: 1; padding: 10px 12px 84px; }
.mms.is-sheet .mms-f { border: 1px solid var(--mms-line); border-radius: 14px; margin-bottom: 10px; min-height: 52px; }
.mms.is-sheet .mms-f + .mms-f::before { display: none; }
.mms.is-sheet .mms-f.is-open { order: -1; }
.mms.is-sheet .mms-pop { position: static; width: auto !important; box-shadow: none; padding: 6px 0 0; max-height: none; margin: 6px -10px 0 -14px; border-radius: 0; border-top: 1px solid var(--mms-line); }
.mms.is-sheet .mms-go { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 6; width: auto; height: 50px; border-radius: 14px; }
.mms.is-sheet .mms-err { position: fixed; left: 12px; right: 12px; bottom: calc(68px + env(safe-area-inset-bottom)); z-index: 6; border-radius: 10px; box-shadow: 0 4px 14px rgba(0, 0, 0, .12); }
.mms.is-sheet .mms-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mms.is-sheet .mms-grid2 { grid-template-columns: 1fr; }
.mms.is-sheet .mms-in input { font-size: 16px; } /* no iOS zoom-on-focus */

@media (max-width: 767.98px) {
  .mms-pop-what, .mms-pop-where { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .mms *, .mms *::before, .mms *::after { transition: none !important; animation: none !important; }
}
