/*
 * Marketplace home page (/) styles. Card-based layout imported from the Claude
 * Design "Marketplace Home" mock. Namespaced under .mkt-home so nothing collides
 * with marketplace-public.css (which also loads the shared footer + the
 * places-autocomplete dropdown base).
 */

.mkt-home {
  margin: 0;
  background: #fff;
  color: #111111;
  font-family: 'Figtree', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.mkt-home a { color: #111111; text-decoration: none; }
.mkt-home a:hover { color: #FF6E19; }
.mkt-home input::placeholder { color: #9a9a92; }
.mkt-home img { display: block; max-width: 100%; }
.mkt-home *, .mkt-home *::before, .mkt-home *::after { box-sizing: border-box; }

/* ---- Section shells ---- */
.hm-sec { width: min(1140px, calc(100% - 48px)); margin: 0 auto; }
.hm-sec--rail { padding: 20px 0 16px; }
.hm-sec--card { margin-bottom: 20px; border-radius: 24px; padding: 36px 40px; background: #fff; border: 1px solid #ececdf; }
.hm-sec--peach { margin-bottom: 20px; border-radius: 24px; padding: 36px 40px; background: #FFEEDF; }
.hm-sec--faq { padding: 28px 0 24px; }

/* ---- Section / rail headings ---- */
.hm-h2 { font-weight: 800; font-size: 28px; margin: 0; }
.hm-head { margin-bottom: 24px; }
.hm-head-sub { font-size: 15px; color: #77776d; margin: 4px 0 0; }
.hm-head-sub-dark { color: #55554a; }
.hm-rail-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.hm-title-link { display: flex; align-items: center; gap: 12px; color: inherit; min-width: 0; }
.hm-title-arrow { width: 32px; height: 32px; border-radius: 999px; background: #f4f4f4; display: flex; align-items: center; justify-content: center; color: #111111; flex-shrink: 0; }
.hm-sec--peach .hm-title-arrow { background: #FFDFC6; }
.hm-rail-nav { display: flex; gap: 8px; flex-shrink: 0; }
.hm-rail-btn { width: 36px; height: 36px; border-radius: 999px; border: 1px solid #ececdf; background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #55554a; }
.hm-rail-btn:hover { border-color: #FF6E19; color: #FF6E19; }

/* ---- Header (pill nav) ---- */
.hm-nav { position: sticky; top: 12px; z-index: 50; }
.hm-nav-inner {
  width: min(1140px, calc(100% - 48px));
  margin: 12px auto 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px 12px 28px;
  background: rgba(255,255,255,0.97);
  border: 1px solid #ececdf;
  backdrop-filter: blur(8px);
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(30,30,5,0.08);
}
.hm-nav-logo { display: flex; align-items: center; }
.hm-nav-logo img { height: 24px; display: block; }
.hm-nav-right { display: flex; align-items: center; gap: 12px; }
.hm-nav-link { font-size: 14px; font-weight: 600; color: #444440; padding: 10px 16px; border-radius: 999px; }
.hm-nav-signin { font-size: 14px; font-weight: 700; color: #fff !important; background: #111111; padding: 10px 20px; border-radius: 999px; }
.hm-nav-signin:hover { color: #fff !important; background: #000; }
.hm-nav-account-loading { width: 72px; height: 36px; border-radius: 999px; background: #f0f0e8; display: block; }
.hm-nav-account-loading[hidden] { display: none; }

/* Account chip */
.hm-account { position: relative; }
.hm-account-trigger {
  display: flex; align-items: center; gap: 9px; padding: 4px 8px 4px 4px;
  border: 1px solid #ececdf; border-radius: 999px; background: #fff; cursor: pointer; font: inherit;
}
.hm-account-trigger:hover { border-color: #d6d6ca; background: #fafaf2; }
.hm-account-avatar {
  width: 34px; height: 34px; border-radius: 999px; overflow: hidden; background: #111111; color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 12px;
  flex-shrink: 0; letter-spacing: 0.5px;
}
.hm-account-avatar img { width: 100%; height: 100%; object-fit: cover; }
.hm-account-name { font-size: 14px; font-weight: 700; color: #111111; padding-right: 2px; }
.hm-account-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 190px; background: #fff;
  border: 1px solid #ececdf; border-radius: 14px; box-shadow: 0 12px 32px rgba(30,30,5,0.14);
  padding: 6px; z-index: 60;
}
.hm-account-menu a, .hm-account-menu button {
  display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 9px;
  font-weight: 700; font-size: 14px; background: transparent; border: none; cursor: pointer; font-family: inherit; color: #111111;
}
.hm-account-menu .account-menu-item:hover { background: #f6f6ef; color: #111111; }
.hm-account-menu .account-menu-logout { color: #b42318; }
.hm-account-menu .account-menu-logout:hover { background: #fff1ef; color: #b42318; }
.hm-account-divider { height: 1px; background: #ececdf; margin: 5px 6px; }

/* ---- Hero ---- */
.hm-hero { width: min(1140px, calc(100% - 48px)); margin: 16px auto 12px; border-radius: 24px; padding: 44px 0 24px; background: #fff; }
.hm-hero-inner { max-width: 980px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hm-hero-title {
  margin: 0 0 36px; max-width: 760px; color: #111111;
  font-family: 'Manrope', 'Figtree', system-ui, sans-serif;
  font-weight: 800; letter-spacing: -1.4px; line-height: 1.08;
  font-size: clamp(30px, 5vw, 52px);
}
.hm-accent { color: #FF6E19; }

.hm-search {
  background: #fff; border-radius: 20px; padding: 12px; box-shadow: 0 14px 36px rgba(80,60,0,0.14);
  width: 100%; display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch;
}
.hm-search-field {
  flex: 1.3; min-width: 0; display: flex; flex-direction: column; gap: 2px;
  padding: 10px 16px; border-right: 1px solid #eeeee6; text-align: left;
}
.hm-search-field-last { flex: 0.7; border-right: none; }
.hm-search-label { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.6px; color: #8a8a80; }
.hm-search-field input, .hm-search-field select {
  border: none; outline: none; width: 100%; min-width: 0; font-family: inherit; font-size: 15px;
  font-weight: 600; color: #111111; padding: 0; background: transparent;
}
.hm-search-field input[type="date"], .hm-search-field select { cursor: pointer; }
.hm-search-field select { appearance: none; }
.hm-place-field { position: relative; display: block; }
.hm-search-btn {
  background: #1668e3; color: #fff; border: none; border-radius: 999px; flex-shrink: 0;
  width: 54px; height: 54px; align-self: center; padding: 0; font-family: inherit; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.hm-search-btn:hover { background: #1158c4; }

/* Places autocomplete dropdown (own copy so it renders regardless of marketplace-public.css). */
.mkt-home .mkt-place-results {
  position: absolute; top: calc(100% + 12px); left: -12px; z-index: 80; min-width: min(430px, 80vw);
  background: #fff; border-radius: 20px; box-shadow: 0 16px 44px rgba(30,30,5,0.18);
  padding: 14px 10px; max-height: 320px; overflow-y: auto; text-align: left;
}
.mkt-home .mkt-place-result {
  display: block; width: 100%; text-align: left; padding: 10px 12px; border: none; background: transparent;
  border-radius: 14px; font-family: inherit; font-size: 14.5px; font-weight: 500; color: #111111; cursor: pointer;
}
.mkt-home .mkt-place-result:hover { background: #f6f6ef; }

/* ---- Recent activity ---- */
.hm-recent-title { font-weight: 800; font-size: 22px; margin: 0 0 6px; }
.hm-recent-sub { font-size: 14px; color: #77776d; margin: 0 0 22px; }
.hm-grid-recent { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hm-recent-card { display: flex; align-items: center; gap: 12px; border: 1px solid #ececdf; border-radius: 14px; padding: 14px 16px; min-width: 0; color: inherit; transition: border-color .15s; }
.hm-recent-card:hover { border-color: #FF6E19; }
.hm-recent-avatar { width: 44px; height: 44px; border-radius: 999px; background: #FFEEDF; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; color: #FF6E19; flex-shrink: 0; letter-spacing: .5px; overflow: hidden; }
.hm-recent-avatar img { width: 100%; height: 100%; object-fit: cover; }
.hm-recent-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.hm-recent-name { display: flex; align-items: center; gap: 6px; min-width: 0; }
.hm-recent-op-name { font-weight: 800; font-size: 15px; color: #111111; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-recent-verified { flex-shrink: 0; }
.hm-recent-meta { font-size: 13px; color: #77776d; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-recent-arrow { color: #77776d; font-size: 16px; flex-shrink: 0; }

/* ---- City rail ---- */
.hm-city-rail { display: flex; gap: 18px; overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x mandatory; padding-bottom: 4px; scrollbar-width: none; }
.hm-city-rail::-webkit-scrollbar { display: none; }
.hm-city-card { flex: 0 0 200px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px; color: inherit; }
.hm-city-img { display: block; border-radius: 16px; overflow: hidden; background: #efefe6; }
.hm-city-img img { width: 100%; height: 150px; object-fit: cover; object-position: center 70%; display: block; }
.hm-city-name { font-weight: 800; font-size: 15px; color: #111111; }
.hm-city-meta { font-size: 13px; color: #77776d; margin-top: -7px; }

/* ---- Recommended operators ---- */
.hm-op-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.hm-op-card { position: relative; display: flex; flex-direction: column; gap: 10px; cursor: pointer; }
.hm-op-cover { position: absolute; inset: 0; z-index: 1; }
.hm-op-img { position: relative; display: block; border-radius: 16px; overflow: hidden; background: #efefe6; }
.hm-op-img img { width: 100%; height: 180px; object-fit: cover; display: block; }
.hm-op-photo-slot { width: 100%; height: 180px; background: #efefe6; }
.hm-op-verified { position: absolute; top: 12px; left: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.95); padding: 5px 10px 5px 8px; border-radius: 999px; font-size: 12px; font-weight: 800; color: #111111; }
.hm-op-verified svg { flex-shrink: 0; }
.hm-op-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hm-op-name { font-weight: 800; font-size: 16px; color: #111111; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-op-rating { display: flex; align-items: center; gap: 4px; flex-shrink: 0; font-size: 13.5px; color: #111111; }
.hm-op-star { color: #FF6E19; }
.hm-op-rating-value { font-weight: 800; }
.hm-op-rating-count { color: #8a8a80; font-weight: 500; }
.hm-op-area { font-size: 13px; color: #77776d; margin-top: -7px; }
.hm-op-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.hm-op-tag { font-size: 12px; font-weight: 700; color: #555550; background: #f4f4f4; padding: 4px 10px; border-radius: 999px; }

/* ---- Media cards (ride types / vehicles / airports) ---- */
.hm-media-grid { display: grid; gap: 18px; }
.hm-media-grid.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.hm-media-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hm-media-card { display: flex; flex-direction: column; gap: 10px; color: inherit; }
.hm-media-img { position: relative; display: block; border-radius: 16px; overflow: hidden; background: #efefe6; }
.hm-media-img img { width: 100%; height: 150px; object-fit: cover; display: block; }
.hm-media-title { font-weight: 800; font-size: 15px; color: #111111; }
.hm-media-desc { font-size: 13px; color: #77776d; line-height: 1.45; margin-top: -7px; }
.hm-code-badge { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.95); padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 800; color: #111111; letter-spacing: 0.3px; }

.hm-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: 0.8px; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; align-self: flex-start; }
.hm-badge-lime { background: #f0fad6; color: #3a6610; letter-spacing: 0.6px; }

/* ---- Verify ---- */
.hm-verify-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.hm-verify-card { background: #fafaf2; border-radius: 16px; padding: 22px 20px; display: flex; flex-direction: column; gap: 12px; }
.hm-verify-num { width: 32px; height: 32px; border-radius: 999px; background: #97d426; color: #143a06; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; flex-shrink: 0; }
.hm-verify-title { font-weight: 800; font-size: 15px; color: #111111; }
.hm-verify-desc { font-size: 13.5px; color: #77776d; line-height: 1.5; }

/* ---- Service areas ---- */
.hm-area-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 24px; }
.hm-area-link { font-size: 15px; font-weight: 700; color: #111111; padding: 10px 0; border-bottom: 1px solid #f5d9be; display: flex; justify-content: space-between; align-items: center; }
.hm-area-link:hover { color: #FF6E19; }
.hm-area-arrow { color: #e05f0e; }

/* ---- FAQ ---- */
.hm-faq-list { display: flex; flex-direction: column; max-width: 820px; }
.hm-faq-q { width: 100%; display: flex; align-items: center; gap: 14px; padding: 12px 0; background: transparent; border: none; cursor: pointer; text-align: left; font-family: inherit; color: #111111; }
.hm-faq-q:hover { color: #FF6E19; }
.hm-faq-icon { flex-shrink: 0; display: flex; color: #55554a; transition: transform .18s; }
.hm-faq-q[aria-expanded="true"] .hm-faq-icon { transform: rotate(180deg); }
.hm-faq-question { font-size: 16px; font-weight: 600; color: inherit; flex: 1; }
.hm-faq-a p { margin: 0; padding: 0 0 14px 32px; font-size: 14.5px; line-height: 1.6; color: #55554a; max-width: 720px; }

/* ---- Final CTA ---- */
.hm-cta { width: min(1140px, calc(100% - 48px)); margin: 24px auto 8px; padding: 44px 0 8px; border-top: 1px solid #ececdf; text-align: center; }
.hm-cta-inner { max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.hm-cta-title { font-weight: 800; font-size: 28px; color: #111111; margin: 0; letter-spacing: -0.4px; }
.hm-cta-btn { background: #111111; color: #fff !important; padding: 14px 32px; border-radius: 999px; font-size: 15px; font-weight: 800; }
.hm-cta-btn:hover { background: #000; }
.hm-cta-note { font-size: 13.5px; color: #77776d; }

/* ---- Responsive ---- */
@media (max-width: 760px) {
  .hm-sec, .hm-cta { width: 100% !important; }
  .hm-sec--card, .hm-sec--peach { margin-bottom: 8px; padding: 16px 20px 24px; background: transparent; border: none; border-radius: 0; }
  .hm-sec--rail, .hm-sec--faq { padding: 16px 20px 24px; }
  .hm-hero { width: 100% !important; padding: 24px 20px 20px; }
  .hm-cta { margin: 16px auto 0; padding: 32px 20px 8px; }
  .main-nav { display: none !important; }
  .hm-nav-inner { padding: 10px 12px 10px 18px; }
  .hm-account-name { display: none !important; }
  .hm-search { flex-direction: column; margin-top: 14px; }
  .hm-search-field { flex: none !important; width: 100%; border-right: none; border-bottom: 1px solid #eeeee6; }
  .hm-search-field-last { border-bottom: none; }
  .hm-search-btn { width: 100%; height: 52px; }
  .hm-grid-recent { grid-template-columns: minmax(0, 1fr); }
  .hm-op-grid, .hm-media-grid { display: flex !important; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding-bottom: 4px; }
  .hm-op-grid::-webkit-scrollbar, .hm-media-grid::-webkit-scrollbar { display: none; }
  .hm-op-grid > .hm-op-card { flex: 0 0 80%; scroll-snap-align: start; }
  .hm-media-grid > .hm-media-card { flex: 0 0 165px; scroll-snap-align: start; }
  .hm-city-card { flex: 0 0 165px; }
  .hm-verify-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-area-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-h2 { font-size: 23px; }
  .hm-cta-title { font-size: 24px; }
}

/* ===== ChatGPT app banner ===== */
.hm-gpt {
  width: min(1140px, calc(100% - 48px));
  margin: 8px auto 20px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid #ececdf;
  overflow: hidden;
}
.hm-gpt-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: stretch; }
.hm-gpt-body { display: flex; align-items: center; gap: 20px; padding: 26px 32px; min-width: 0; }
.hm-gpt-icon { width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0; object-fit: cover; }
.hm-gpt-text { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.hm-gpt-text .hm-badge { align-self: flex-start; font-size: 10.5px; padding: 4px 10px; }
.hm-gpt-title { font-weight: 800; font-size: 20px; color: #111111; letter-spacing: -0.3px; }
.hm-gpt-sub { font-size: 14px; color: #77776d; line-height: 1.5; }
.hm-gpt-cta {
  flex-shrink: 0; margin-left: auto;
  display: inline-flex; align-items: center; gap: 8px;
  background: #111111; color: #fff !important;
  padding: 13px 24px; border-radius: 999px;
  font-size: 14.5px; font-weight: 800; white-space: nowrap;
}
.hm-gpt-cta:hover { background: #000; }
.hm-gpt-img { position: relative; background: #efefe6; height: 100%; min-height: 150px; max-height: 190px; overflow: hidden; }
.hm-gpt-img img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 760px) {
  .hm-gpt { width: 100%; border-radius: 0; border-left: 0; border-right: 0; }
  .hm-gpt-grid { grid-template-columns: minmax(0, 1fr); }
  .hm-gpt-img { display: none; }
  .hm-gpt-body { flex-wrap: wrap; padding: 20px; }
  .hm-gpt-cta { margin-left: 0; width: 100%; justify-content: center; }
}
