/* ===== RESET & VARIABLES ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #f7f7f7;        /* Airbnb off-white base */
  --bg2: #f0f0f0;
  --card: #ffffff;
  --border: rgba(0,0,0,0.08);
  --primary: #5e5ce6;   /* Brand indigo-violet */
  --primary-fg: #fff;
  --accent: #2ecc71;    /* Brand green */
  --accent-fg: #fff;
  --warning: #f59e0b;
  --warning-fg: #000;
  --fg: #222222;        /* Near-black — Airbnb body text */
  --muted: #717171;     /* Airbnb secondary text */
  --secondary: #efefef;
  --radius: .75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --shadow-glow: 0 0 20px rgba(94,92,230,0.12);
  --gradient-cta: linear-gradient(135deg, #5e5ce6 0%, #4b48d9 100%);
  --font-body: system-ui, -apple-system, sans-serif;
  --font-display: 'Inter', system-ui, sans-serif;
  /* Elevation: very soft diffuse shadows (Airbnb style) */
  --card-shadow: 0 1px 2px rgba(0,0,0,.06), 0 4px 14px rgba(0,0,0,.08);
  --card-shadow-hover: 0 4px 8px rgba(0,0,0,.08), 0 12px 36px rgba(0,0,0,.12);
  --input-bg: #ffffff;
  --row-even: rgba(0,0,0,0.025);
  --row-hover: rgba(94,92,230,0.04);
  /* Named aliases for extended compatibility */
  --bg-primary: var(--bg);
  --bg-card: var(--card);
  --text-main: var(--fg);
  --text-muted: var(--muted);
  --border-color: var(--border);
}

/* ── Dark theme overrides ── */
[data-theme="dark"] {
  --bg: #0f1117;
  --bg2: #161b25;
  --card: #1c2030;
  --border: rgba(255,255,255,0.08);
  --fg: #f0f0f0;
  --muted: #a0aec0;
  --secondary: #1e2640;
  --shadow-glow: 0 0 20px rgba(94,92,230,0.18);
  --card-shadow: 0 4px 24px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.04);
  --card-shadow-hover: 0 8px 40px rgba(0,0,0,.55);
  --input-bg: var(--secondary);
  --row-even: rgba(255,255,255,0.025);
  --row-hover: rgba(94,92,230,0.07);
  --bg-primary: #0f1117;
  --bg-card: #1c2030;
  --text-main: #f0f0f0;
  --text-muted: #a0aec0;
  --border-color: rgba(255,255,255,0.08);
}

html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--fg); font-family: var(--font-body); min-height: 100vh; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ===== UTILITIES ===== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1rem; }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-muted { color: var(--muted); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.w-full { width: 100%; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-auto { margin-left: auto; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.flex { display: flex; }
.items-center { align-items: center; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeInUp 0.4s ease both; }
.delay-1 { animation-delay: 0.15s; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.4rem; padding: 0.5rem 1rem; border-radius: var(--radius);
  font-size: 0.875rem; font-weight: 600; cursor: pointer;
  border: none; transition: opacity .2s, background .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn-primary { background: var(--gradient-cta); color: var(--primary-fg); box-shadow: var(--shadow-glow); }
.btn-primary:hover { opacity: 0.88; }
.btn-accent  { background: var(--accent); color: var(--accent-fg); }
.btn-accent:hover { opacity: 0.88; }
.btn-outline { background: transparent; color: var(--fg); border: 1px solid var(--border); }
.btn-outline:hover { background: var(--secondary); }
.btn-ghost   { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--fg); background: var(--secondary); }
.btn-sm  { padding: 0.35rem 0.75rem; font-size: 0.8rem; }
.btn-lg  { padding: 0.75rem 1.5rem; font-size: 1rem; }
.btn-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.2rem; height: 2.2rem; border-radius: var(--radius); border: none;
  background: transparent; color: var(--muted); cursor: pointer; transition: color .2s, background .2s;
}
.btn-icon:hover { color: var(--fg); background: var(--secondary); }
.btn-icon svg { width: 1.1rem; height: 1.1rem; }
.btn-icon-sm {
  width: 2rem; height: 2rem; display: inline-flex; align-items: center;
  justify-content: center; border: none; cursor: pointer;
  border-radius: var(--radius); background: var(--gradient-cta); color: #fff;
}
.btn-icon-sm svg { width: 0.875rem; height: 0.875rem; }

/* ===== INPUTS ===== */
.input {
  width: 100%; padding: 0.5rem 0.75rem; background: var(--secondary);
  border: 1px solid var(--border); border-radius: var(--radius); color: var(--fg);
  font-size: 0.875rem; transition: border-color .2s;
}
.input:focus { outline: none; border-color: var(--primary); }
.input::placeholder { color: var(--muted); }

/* ===== CARD ===== */
.card {
  background: var(--card);
  /* Airbnb: shadow instead of border */
  border: none;
  box-shadow: var(--card-shadow);
  border-radius: 1.25rem;
  padding: 1.5rem;
}
.card-section-title { font-size: 1rem; font-weight: 700; margin-bottom: 0.75rem; }

/* ===== BADGES ===== */
.badge {
  display: inline-block; padding: 0.2rem 0.6rem; border-radius: 9999px;
  font-size: 0.7rem; font-weight: 600;
}
.badge-primary { background: var(--primary); color: #fff; }
.badge-accent   { background: var(--accent);  color: #fff; }
.badge-warning  { background: var(--warning); color: var(--warning-fg); }
.badge-outline  { background: var(--card); border: 1px solid var(--border); color: var(--fg); }

/* ===== ICON SIZES ===== */
.icon-xs { width: 0.8rem; height: 0.8rem; display: inline-block; vertical-align: middle; }
.fill-warning { fill: var(--warning); }
.text-warning  { color: var(--warning); }

/* ===== HEADER ===== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; gap: 1rem; height: 4rem;
}
.logo { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.logo-icon {
  width: 2.6rem; height: 2.6rem; border-radius: var(--radius);
  background: transparent; display: flex; align-items: center;
  justify-content: center; overflow: hidden;
}
.logo-icon img {
  width: 100%; height: 100%; object-fit: cover; border-radius: inherit;
}
.logo-text { font-size: 1.22rem; font-weight: 800; display: none; }
.logo-accent { color: var(--primary); }
@media(min-width:640px){ .logo-text { display: inline; } }

.search-form { display: none; flex: 1; max-width: 28rem; position: relative; }
@media(min-width:768px){ .search-form { display: flex; align-items: center; } }
.search-icon {
  position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%);
  width: 1rem; height: 1rem; color: var(--muted); pointer-events: none;
}
.search-input { padding-left: 2.25rem; }

.header-actions { display: none; align-items: center; gap: 0.5rem; }
@media(min-width:768px){ .header-actions { display: flex; } }
.mobile-menu-btn { display: flex; }
@media(min-width:768px){ .mobile-menu-btn { display: none; } }

.mobile-menu { border-top: 1px solid var(--border); background: var(--bg2); }
.mobile-menu-inner { padding: 1rem 0; display: flex; flex-direction: column; gap: 0.75rem; }
.search-wrapper-mobile { position: relative; }
.mobile-actions { display: flex; align-items: center; gap: 0.5rem; }

/* ===== CATEGORY BAR — Airbnb icon+label style ===== */
.category-bar {
  background: var(--bg);
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--border);
}
.category-bar::-webkit-scrollbar { display: none; }
.category-inner {
  display: flex;
  gap: .1rem;
  padding: .5rem 1rem;
  white-space: nowrap;
}
.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .7rem 1.1rem;
  font-size: .68rem;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  transition: color .18s, border-color .18s;
  cursor: pointer;
  flex-shrink: 0;
  text-decoration: none;
  min-width: 72px;
  text-align: center;
  border-radius: .4rem .4rem 0 0;
}
/* Icon */
.category-item i,
.category-item svg {
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
  stroke-width: 1.75;
}
.category-item:hover { color: var(--fg); }
.category-item.active {
  color: #5e5ce6;
  font-weight: 700;
  border-bottom-color: #5e5ce6;
}
/* Theme active overrides */
[data-theme="light"] .category-item.active { border-bottom-color: #5e5ce6; color: #5e5ce6; }
[data-theme="dark"]  .category-item.active { border-bottom-color: #7c7aed; color: #7c7aed; }

/* ===== HERO ===== */
.hero {
  padding: 4rem 0 3rem;
  background: radial-gradient(ellipse at 50% 0%, rgba(59,130,246,0.08) 0%, transparent 70%);
}
.hero-inner { text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.35rem 0.85rem; border-radius: 9999px;
  background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.25);
  color: var(--primary); font-size: 0.8rem; font-weight: 600; margin-bottom: 1.5rem;
}
.hero-badge svg { width: 0.875rem; height: 0.875rem; }
.hero-title {
  font-size: clamp(2rem, 5vw, 3rem); font-weight: 800;
  line-height: 1.15; margin-bottom: 1rem;
}
.hero-sub { color: var(--muted); font-size: 1.1rem; margin-bottom: 2rem; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ===== LISTINGS ===== */
.listings-section { padding: 2.5rem 0 4rem; }
.listings-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.5rem;
}
.section-title { font-size: 1.25rem; font-weight: 700; }
.listings-count { font-size: 0.875rem; color: var(--muted); }
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

/* ===== LISTING CARD ===== */
.listing-card {
  display: block; border-radius: var(--radius-lg);
  border: 1px solid var(--border); background: var(--card);
  overflow: hidden; transition: border-color .3s, box-shadow .3s;
  cursor: pointer;
}
.listing-card:hover {
  border-color: rgba(59,130,246,0.4);
  box-shadow: 0 8px 30px rgba(59,130,246,0.08);
}
.card-image { position: relative; aspect-ratio: 3/2; overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.listing-card:hover .card-image img { transform: scale(1.05); }
.card-badges { position: absolute; top: 0.5rem; left: 0.5rem; display: flex; gap: 0.35rem; }
.card-body { padding: 1rem; display: flex; flex-direction: column; gap: 0.6rem; }
.card-title { font-size: 0.95rem; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.listing-card:hover .card-title { color: var(--primary); }
.card-desc { font-size: 0.8rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-price { font-size: 1.2rem; font-weight: 700; color: var(--primary); }

.card-seller { display: flex; align-items: center; gap: 0.5rem; padding-top: 0.6rem; border-top: 1px solid var(--border); }
.seller-avatar-wrap { position: relative; flex-shrink: 0; }
.seller-avatar { width: 2rem; height: 2rem; border-radius: 9999px; background: var(--secondary); display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 600; }
.seller-avatar.lg { width: 3rem; height: 3rem; font-size: 1rem; }
.online-dot { position: absolute; bottom: -1px; right: -1px; width: 0.7rem; height: 0.7rem; background: var(--accent); border-radius: 9999px; border: 2px solid var(--card); }
.online-dot.lg { width: 0.875rem; height: 0.875rem; }
.seller-info { flex: 1; min-width: 0; }
.seller-name { font-size: 0.75rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seller-name-lg { font-size: 0.95rem; font-weight: 600; }
.seller-meta { display: flex; align-items: center; gap: 0.6rem; font-size: 0.7rem; color: var(--muted); }
.seller-meta span { display: flex; align-items: center; gap: 0.2rem; }
.upvotes { display: flex; align-items: center; gap: 0.2rem; font-size: 0.75rem; color: var(--muted); }

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 4rem 1rem; color: var(--muted); }
.empty-icon { width: 3rem; height: 3rem; margin: 0 auto 1rem; }

/* ===== CHAT PANEL ===== */
.chat-panel {
  position: fixed; right: 0; top: 4rem; bottom: 0; width: 20rem; z-index: 40;
  background: rgba(255,255,255,0.96); backdrop-filter: blur(12px);
  border-left: 1px solid var(--border); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform 0.3s cubic-bezier(.4,0,.2,1);
}
.chat-panel.open { transform: translateX(0); }
.chat-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.chat-title { font-size: 0.875rem; font-weight: 600; }
.chat-messages { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 1rem; }
.chat-msg { display: flex; gap: 0.5rem; }
.chat-avatar { width: 1.75rem; height: 1.75rem; border-radius: 9999px; background: var(--secondary); display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 600; flex-shrink: 0; margin-top: 0.1rem; }
.chat-content { min-width: 0; }
.chat-meta { display: flex; align-items: baseline; gap: 0.5rem; }
.chat-user { font-size: 0.75rem; font-weight: 600; }
.chat-time { font-size: 0.65rem; color: var(--muted); }
.chat-text { font-size: 0.75rem; color: var(--muted); margin-top: 0.15rem; word-break: break-word; }
.chat-input-row { display: flex; gap: 0.5rem; padding: 0.75rem; border-top: 1px solid var(--border); }
.chat-input-row .input { font-size: 0.75rem; height: 2rem; padding: 0.25rem 0.6rem; }

/* ===== LISTING DETAIL ===== */
.breadcrumb-bar {
  position: sticky; top: 4rem; z-index: 40;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.breadcrumb-inner { display: flex; align-items: center; gap: 0.5rem; height: 3.5rem; }
.breadcrumb-title { font-size: 0.875rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.detail-grid {
  display: grid; gap: 2rem; padding: 2rem 1rem;
  grid-template-columns: 1fr;
}
@media(min-width:1024px){ .detail-grid { grid-template-columns: 3fr 2fr; } }
.detail-left { display: flex; flex-direction: column; gap: 1.5rem; }
.detail-image-wrap { position: relative; border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 4/3; }
.detail-image { width: 100%; height: 100%; object-fit: cover; }
.detail-image-actions { position: absolute; top: 0.75rem; right: 0.75rem; display: flex; gap: 0.5rem; }
.glass-btn { background: rgba(255,255,255,0.1); backdrop-filter: blur(6px); border: none; }
.glass-btn:hover { background: rgba(255,255,255,0.2); }
.detail-image-badges { position: absolute; bottom: 0.75rem; left: 0.75rem; display: flex; gap: 0.5rem; }
.detail-info { display: flex; flex-direction: column; gap: 0.75rem; }
.detail-title { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; }
.detail-meta { display: flex; align-items: center; gap: 1rem; font-size: 0.875rem; color: var(--muted); }
.detail-meta span { display: flex; align-items: center; gap: 0.25rem; }
.detail-desc { color: var(--text-main); line-height: 1.6; }
.detail-reviews { display: flex; flex-direction: column; gap: 0.5rem; }
.stars-row { display: flex; align-items: center; gap: 0.2rem; }
.star { width: 1.1rem; height: 1.1rem; color: var(--muted); }
.star.filled { color: var(--warning); fill: var(--warning); }

.detail-right { display: flex; flex-direction: column; gap: 1.25rem; }
@media(min-width:1024px){ .detail-right > div:first-child { position: sticky; top: 8rem; } }
.price-card { display: flex; flex-direction: column; gap: 0.75rem; }
.detail-price { font-size: 2rem; font-weight: 800; color: var(--primary); }

.trust-card { display: flex; flex-direction: column; gap: 0.75rem; }
.trust-item { display: flex; align-items: flex-start; gap: 0.75rem; }
.trust-icon {
  width: 2rem; height: 2rem; background: rgba(59,130,246,0.1); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  color: var(--primary);
}
.trust-icon svg { width: 1rem; height: 1rem; }
.trust-label { font-size: 0.875rem; font-weight: 600; }
.trust-desc { font-size: 0.75rem; }

.seller-card .seller-row { display: flex; align-items: center; gap: 0.75rem; }

/* ===== AUTH PAGE ===== */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.auth-card { width: 100%; max-width: 26rem; display: flex; flex-direction: column; gap: 1.5rem; }
.back-link { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.875rem; color: var(--muted); }
.back-link:hover { color: var(--fg); }
.back-link svg { width: 1rem; height: 1rem; }
.auth-icon {
  width: 3.5rem; height: 3.5rem; border-radius: 1rem; background: var(--gradient-cta);
  display: flex; align-items: center; justify-content: center; margin: 0 auto;
  box-shadow: var(--shadow-glow);
}
.auth-icon svg { width: 1.75rem; height: 1.75rem; color: #fff; }
.auth-heading { text-align: center; }
.auth-heading h1 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.25rem; }
.auth-toggle {
  display: flex; background: var(--secondary); border-radius: var(--radius); padding: 0.25rem;
}
.toggle-btn {
  flex: 1; padding: 0.4rem; border: none; background: transparent; color: var(--muted);
  border-radius: calc(var(--radius) - 2px); font-size: 0.875rem; font-weight: 500; cursor: pointer;
  transition: background .2s, color .2s;
}
.toggle-btn.active { background: var(--primary); color: #fff; }
.auth-form { display: flex; flex-direction: column; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.35rem; }
.form-label { font-size: 0.875rem; font-weight: 500; }

/* wrap auth-card in a border card */
.auth-card > form, .auth-card > .auth-toggle, .auth-card > .auth-heading, .auth-card > .auth-icon {
  /* these are inside the white card wrapper — handled by flex gap */
}
/* create the bordered container */
.auth-card::after { content: none; }
.auth-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 2rem;
}
.auth-card .back-link {
  background: none; border: none; padding: 0; margin-bottom: 0;
  /* break out of card visual, placed outside card visually by sibling trick */
}

/* ===== ALERTS ===== */
.alert {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.65rem 0.9rem; border-radius: var(--radius); font-size: 0.875rem;
}
.alert svg { width: 1rem; height: 1rem; flex-shrink: 0; }
.alert-warning { background: rgba(245,158,11,0.15); border: 1px solid rgba(245,158,11,0.35); color: #fbbf24; }
.alert-error   { background: rgba(239,68,68,0.15);  border: 1px solid rgba(239,68,68,0.35);  color: #f87171; }
.alert-success { background: rgba(16,185,129,0.15); border: 1px solid rgba(16,185,129,0.35); color: #34d399; }

/* ===== LIGHT THEME COMPONENT OVERRIDES ===== */
[data-theme="light"] .header {
  background: rgba(255,255,255,0.92);
}
[data-theme="light"] .breadcrumb-bar {
  background: rgba(255,255,255,0.92);
}
[data-theme="light"] .chat-panel {
  background: rgba(255,255,255,0.97);
}
[data-theme="light"] .detail-desc {
  color: var(--muted);
}
[data-theme="light"] .badge-outline {
  background: rgba(0,0,0,0.04);
}
[data-theme="light"] .mobile-menu {
  background: var(--bg2);
}
/* Alert colors — legible on white background */
[data-theme="light"] .alert-warning {
  background: rgba(245,158,11,0.10);
  border-color: rgba(245,158,11,0.30);
  color: #b45309;
}
[data-theme="light"] .alert-error {
  background: rgba(239,68,68,0.09);
  border-color: rgba(239,68,68,0.28);
  color: #b91c1c;
}
[data-theme="light"] .alert-success {
  background: rgba(5,150,105,0.08);
  border-color: rgba(5,150,105,0.28);
  color: #047857;
}

/* ── Agenda (Gestão de Agenda) light overrides ── */
[data-theme="light"] .ag-slot.s-available {
  border-color: rgba(37,99,235,.45);
  background: rgba(239,246,255,.6);
}
[data-theme="light"] .ag-slot.s-available:hover {
  border-color: var(--primary);
  background: rgba(239,246,255,.9);
  box-shadow: 0 0 14px rgba(59,130,246,.12);
}
[data-theme="light"] .ag-slot.s-booked {
  border-color: rgba(217,119,6,.4);
  background: rgba(255,251,235,.6);
}
[data-theme="light"] .ag-slot.s-empty {
  border-color: var(--border);
  background: var(--bg);
}
[data-theme="light"] .ag-slot-actions {
  background: linear-gradient(to top, rgba(240,244,248,.98) 70%, transparent);
}
[data-theme="light"] .ag-action-del {
  border-color: rgba(239,68,68,.35);
  background: rgba(254,242,242,.8);
  color: #dc2626;
}
[data-theme="light"] .ag-btn-new {
  box-shadow: 0 4px 18px rgba(37,99,235,.25);
}

/* ── Personalizar Vitrine (edit_profile) light overrides ── */
[data-theme="light"] .pv-input::placeholder,
[data-theme="light"] .pv-textarea::placeholder {
  color: var(--muted);
}
[data-theme="light"] .pv-chip {
  background: rgba(99,102,241,.08);
  border-color: rgba(99,102,241,.2);
  color: #4338ca;
}
[data-theme="light"] .pv-chip:hover {
  background: rgba(99,102,241,.16);
}

/* ===== LEAFLET MAP — dark mode tile inversion ===== */
[data-theme="dark"] .leaflet-tile-pane {
  filter: invert(100%) hue-rotate(180deg) brightness(95%) contrast(90%);
}

/* ======================================================================
   MOBILE-FIRST ENHANCEMENTS — global touch / responsive
   ====================================================================== */

/* ── Touch targets ≥ 48px on all interactive elements ── */
@media (max-width: 767px) {
  .btn, .btn-sm, .btn-lg {
    min-height: 48px;
    padding-top: .65rem;
    padding-bottom: .65rem;
  }
  .btn-icon {
    width: 48px;
    height: 48px;
  }
  .category-item {
    min-height: 48px;
    padding-top: .65rem;
    padding-bottom: .65rem;
  }
  .nav-user-btn {
    min-height: 44px;
    padding-top: .55rem;
    padding-bottom: .55rem;
  }
  .toggle-btn { min-height: 44px; }
  /* Listing detail breadcrumb */
  .breadcrumb-inner { height: 3.25rem; }
  /* Cart CTA */
  .cart-cta { min-height: 52px; }
}

/* ── Mobile search trigger button ── */
.mobile-search-btn {
  display: none;
}
@media (max-width: 767px) {
  .mobile-search-btn {
    display: inline-flex;
  }
}

/* ── Mobile right-side action group in header ── */
.mobile-right-actions {
  display: flex;
  align-items: center;
  gap: .25rem;
}
@media (min-width: 768px) {
  .mobile-right-actions { display: none; }
}

/* ── Fullscreen search overlay ── */
.mobile-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 620;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  transform: translateY(-100%);
  transition: transform .3s cubic-bezier(.4, 0, .2, 1);
  pointer-events: none;
}
.mobile-search-overlay.mso-open {
  transform: translateY(0);
  pointer-events: all;
}
.mso-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--card);
}
.mso-back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: none;
  border-radius: .6rem;
  background: var(--secondary);
  color: var(--fg);
  cursor: pointer;
  transition: background .15s;
}
.mso-back-btn:hover { background: var(--border); }
.mso-back-btn svg, .mso-back-btn i { width: 1.1rem; height: 1.1rem; }
.mso-search-form {
  flex: 1;
  display: flex;
  align-items: center;
  gap: .5rem;
  position: relative;
}
.mso-search-icon {
  position: absolute;
  left: .75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: var(--muted);
  pointer-events: none;
}
.mso-search-input {
  width: 100%;
  height: 48px;
  padding: 0 1rem 0 2.5rem;
  background: var(--secondary);
  border: 1.5px solid var(--border);
  border-radius: .8rem;
  color: var(--fg);
  font-size: .95rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color .2s;
}
.mso-search-input:focus { border-color: var(--primary); }
.mso-search-input::placeholder { color: var(--muted); }
.mso-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border: none;
  border-radius: .75rem;
  background: #5e5ce6;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(94, 92, 230, .35);
  transition: opacity .18s;
}
.mso-submit-btn:hover { opacity: .88; }
.mso-submit-btn svg, .mso-submit-btn i { width: 1.1rem; height: 1.1rem; }

/* Clear (×) button inside search input */
.mso-clear-btn {
  display: flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%;
  border: none; background: var(--muted); color: var(--card);
  cursor: pointer; flex-shrink: 0; padding: 0;
  opacity: .7; transition: opacity .15s;
}
.mso-clear-btn:hover { opacity: 1; }
.mso-clear-btn svg, .mso-clear-btn i { width: .75rem; height: .75rem; }

.mso-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1rem .5rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.mso-section-label {
  display: flex; align-items: center;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--muted);
  padding: .45rem 0 .25rem;
}
.mso-section-label--gap { margin-top: .9rem; }

/* ── Recent searches list ── */
.mso-recents {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: .05rem;
}
.mso-recent-item {
  display: flex; align-items: center; gap: .7rem;
  padding: .7rem .5rem;
  border-radius: .65rem;
  cursor: pointer;
  transition: background .14s;
}
.mso-recent-item:hover { background: var(--secondary); }
.mso-recent-icon {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--secondary); flex-shrink: 0;
  color: var(--muted);
}
.mso-recent-icon svg, .mso-recent-icon i { width: .85rem; height: .85rem; }
.mso-recent-text {
  flex: 1; font-size: .9rem; font-weight: 500; color: var(--fg);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mso-recent-del {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  border: none; background: none; color: var(--muted);
  cursor: pointer; opacity: 0; transition: opacity .15s;
  flex-shrink: 0;
}
.mso-recent-item:hover .mso-recent-del { opacity: 1; }
.mso-recent-del:hover { background: var(--secondary); color: var(--fg); }
.mso-recent-del svg, .mso-recent-del i { width: .8rem; height: .8rem; }

/* ── Suggestion chips ── */
.mso-suggest-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  padding: .25rem 0 .5rem;
}
.mso-chip {
  display: inline-flex; align-items: center; gap: .38rem;
  padding: .52rem .9rem;
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: 9999px;
  font-size: .8rem; font-weight: 600;
  color: var(--fg); text-decoration: none;
  transition: background .14s, border-color .14s, color .14s;
}
.mso-chip:hover, .mso-chip.active {
  background: rgba(94,92,230,.09);
  border-color: rgba(94,92,230,.35);
  color: #5e5ce6;
}
.mso-chip svg, .mso-chip i {
  width: .85rem; height: .85rem; flex-shrink: 0;
  color: #5e5ce6;
}

/* Old grid chips kept for backward compat (now hidden) */
.mso-category-grid { display: none; }
.mso-cat-chip { display: none; }

/* ── Fixed footer ── */
.mso-footer {
  flex-shrink: 0;
  padding: .85rem 1.25rem calc(.85rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: var(--card);
  display: flex;
  align-items: center;
  gap: .75rem;
}
/* “Limpar tudo” ghost button — left side */
.mso-limpar-btn {
  flex-shrink: 0;
  min-height: 52px;
  padding: .65rem 1rem;
  background: none;
  color: var(--fg);
  font-size: .9rem;
  font-weight: 700;
  border: none;
  border-radius: 0;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity .15s;
}
.mso-limpar-btn:hover { opacity: .65; }
.mso-buscar-btn {
  flex: 1;
  min-height: 52px;
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  background: #5e5ce6;
  color: #fff;
  font-size: 1rem; font-weight: 700;
  border: none; border-radius: .85rem;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(94,92,230,.4);
  transition: background .18s, transform .14s, box-shadow .14s;
}
.mso-buscar-btn:hover {
  background: #4b48d9;
  box-shadow: 0 6px 28px rgba(94,92,230,.55);
  transform: translateY(-1px);
}
.mso-buscar-btn:active { transform: scale(.97); }
.mso-buscar-btn svg, .mso-buscar-btn i { width: 1.1rem; height: 1.1rem; }

/* Safe-area / notch support */
@supports (padding-top: env(safe-area-inset-top)) {
  @media (max-width: 767px) {
    .header { padding-top: env(safe-area-inset-top); }
    .mobile-search-overlay { padding-top: env(safe-area-inset-top); }
  }
}

/* ── Mobile overlay: header title ── */
.mso-header-title {
  flex: 1;
  font-size: 1rem;
  font-weight: 700;
  color: var(--fg);
}

/* ── Airbnb accordion cards ── */
.mso-air-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow .2s, border-color .2s;
}
.mso-air-card--active {
  box-shadow: 0 4px 24px rgba(0,0,0,.13);
  border-color: rgba(0,0,0,.18);
}
[data-theme="light"] .mso-air-card--active { border-color: rgba(0,0,0,.22); }

/* collapsed summary (hidden when active) */
.mso-air-card-summary {
  display: flex;
  flex-direction: column;
  padding: 14px 18px;
  cursor: pointer;
  user-select: none;
  gap: 2px;
}
.mso-air-card--active .mso-air-card-summary { display: none; }
.mso-air-card-label {
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
}
.mso-air-card-value {
  font-size: .9rem;
  font-weight: 600;
  color: var(--fg);
}

/* expanded content (hidden when collapsed) */
.mso-air-card-content {
  display: none;
  padding: 18px 18px 20px;
}
.mso-air-card--active .mso-air-card-content { display: block; }
.mso-air-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 14px;
  color: var(--fg);
}

/* ── Air input (location + care search) ── */
.mso-air-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}
.mso-air-input-icon {
  position: absolute;
  left: .85rem;
  width: .95rem; height: .95rem;
  color: var(--muted);
  pointer-events: none;
  flex-shrink: 0;
}
.mso-air-input {
  width: 100%;
  height: 48px;
  padding: 0 2.5rem 0 2.6rem;
  background: var(--secondary);
  border: 1.5px solid var(--border);
  border-radius: .85rem;
  color: var(--fg);
  font-size: .95rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color .2s;
}
.mso-air-input:focus { border-color: var(--primary); }
.mso-air-input::placeholder { color: var(--muted); }
.mso-air-input-clear {
  position: absolute;
  right: .7rem;
  display: flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%;
  border: none; background: var(--muted); color: var(--card);
  cursor: pointer; opacity: .7;
}
.mso-air-input-clear:hover { opacity: 1; }
.mso-air-input-clear svg, .mso-air-input-clear i { width: .7rem; height: .7rem; }

/* ── Calendar inside "Quando" card ── */
.mso-cal-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.mso-cal-month-label {
  font-size: .95rem;
  font-weight: 700;
  color: var(--fg);
}
.mso-cal-nav-btn {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--secondary);
  color: var(--fg); cursor: pointer;
  transition: background .14s;
}
.mso-cal-nav-btn:hover { background: var(--border); }
.mso-cal-nav-btn svg, .mso-cal-nav-btn i { width: .9rem; height: .9rem; }

.mso-cal-grid-wrap { margin-bottom: 12px; }
.mso-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  margin-bottom: 4px;
}
.mso-cal-weekdays span {
  font-size: .68rem; font-weight: 700;
  color: var(--muted); padding: 3px 0;
  text-transform: uppercase;
}
.mso-cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.mso-cal-day {
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  font-size: .82rem; font-weight: 500;
  border-radius: 50%;
  border: none; background: transparent; color: var(--fg);
  cursor: pointer;
  transition: background .12s, color .12s;
}
.mso-cal-day--empty { pointer-events: none; }
.mso-cal-day--disabled { color: var(--muted); opacity: .35; cursor: not-allowed; }
.mso-cal-day--today:not(.mso-cal-day--start):not(.mso-cal-day--end) {
  color: var(--primary); font-weight: 800;
}
.mso-cal-day--start, .mso-cal-day--end {
  background: #5e5ce6 !important;
  color: #fff !important;
  font-weight: 800;
  box-shadow: 0 2px 10px rgba(94,92,230,.45);
}
.mso-cal-day--inrange {
  background: rgba(94,92,230,.12);
  border-radius: 0;
}
.mso-cal-day:hover:not(:disabled):not(.mso-cal-day--disabled):not(.mso-cal-day--start):not(.mso-cal-day--end) {
  background: var(--secondary);
}

/* tolerance pills */
.mso-tol-pills {
  display: flex; flex-wrap: wrap; gap: .4rem;
  margin-bottom: 14px;
}
.mso-tol-pill {
  padding: .4rem .8rem;
  border: 1.5px solid var(--border);
  border-radius: 9999px;
  background: none; color: var(--fg);
  font-size: .78rem; font-weight: 600;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.mso-tol-pill:hover { border-color: var(--primary); }
.mso-tol-pill--active {
  border-color: var(--fg);
  background: var(--fg);
  color: var(--card);
}

/* card footer row (skip / next) */
.mso-card-footer-row {
  display: flex; align-items: center; justify-content: flex-end; gap: .75rem;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.mso-card-skip {
  background: none; border: none; color: var(--muted);
  font-size: .88rem; font-weight: 600;
  cursor: pointer; text-decoration: underline; text-underline-offset: 2px;
  padding: .45rem .5rem;
}
.mso-card-next {
  padding: .5rem 1.2rem;
  background: var(--fg); color: var(--card);
  border: none; border-radius: .75rem;
  font-size: .9rem; font-weight: 700;
  cursor: pointer;
  transition: opacity .15s;
}
.mso-card-next:hover { opacity: .8; }

/* ── Care card extras ── */
.mso-type-pills {
  display: flex; gap: .5rem; flex-wrap: wrap;
  margin-bottom: 14px;
}
.mso-top-pill {
  padding: .45rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 9999px;
  background: none; color: var(--fg);
  font-size: .82rem; font-weight: 600;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.mso-top-pill:hover { border-color: var(--primary); }
.mso-top-pill--active {
  border-color: var(--fg);
  background: var(--fg);
  color: var(--card);
}
.mso-suggest-label {
  font-size: .7rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); margin: 0 0 8px;
}
.mso-chip--selected {
  background: rgba(94,92,230,.14);
  border-color: #5e5ce6;
  color: #5e5ce6;
}

/* ── Location section label ── */
.mso-loc-section-label {
  font-size: .68rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted);
  padding: 10px 0 4px;
  margin: 0;
}

/* ── Quick date shortcuts ── */
.mso-date-shortcuts {
  display: flex; flex-wrap: wrap; gap: .4rem;
  margin-bottom: 4px;
}
.mso-date-shortcut {
  padding: .42rem .9rem;
  border: 1.5px solid var(--border);
  border-radius: 9999px;
  background: none; color: var(--fg);
  font-size: .8rem; font-weight: 600;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.mso-date-shortcut:hover { border-color: var(--primary); }
.mso-date-shortcut--active {
  background: var(--fg); color: var(--card);
  border-color: var(--fg);
}

/* ── Subfilter row (Presencial/Telemedicina etc.) ── */
.mso-subfilter-row {
  display: flex; flex-wrap: wrap; gap: .4rem;
  margin-bottom: 12px;
}
.mso-subfilter-pill {
  padding: .4rem .85rem;
  border: 1.5px solid var(--border);
  border-radius: 9999px;
  background: none; color: var(--fg);
  font-size: .78rem; font-weight: 600;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.mso-subfilter-pill:hover { border-color: var(--primary); }
.mso-subfilter-pill--active {
  border-color: var(--primary);
  background: rgba(94,92,230,.1);
  color: var(--primary);
}

/* ========================================================
   AIR BOTTOM SHEET � for mobile detail page price panel
   ======================================================== */

/* Thin hairline wrapper used by listing_detail on mobile */
.air-sheet-trigger {
  display: none; /* shown via media query on phone */
}

/* Fixed bottom price bar on phones */
.air-price-bar {
  display: none;
}
@media (max-width: 767px) {
  .air-price-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 800;
    background: var(--card);
    padding: .85rem 1.25rem calc(.85rem + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 24px rgba(0,0,0,.12);
    gap: 1rem;
  }
  .air-price-bar__price {
    display: flex;
    flex-direction: column;
    gap: .1rem;
  }
  .air-price-bar__amount {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--fg);
    line-height: 1;
  }
  .air-price-bar__label {
    font-size: .7rem;
    color: var(--muted);
  }
  .air-price-bar__btn {
    flex-shrink: 0;
    background: #5e5ce6;
    color: #fff;
    font-weight: 700;
    font-size: .9rem;
    padding: .75rem 1.5rem;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(94,92,230,.4);
    min-height: 48px;
    transition: background .18s, transform .14s, box-shadow .14s;
  }
  .air-price-bar__btn:hover {
    background: #4b48d9;
    box-shadow: 0 6px 24px rgba(94,92,230,.55);
    transform: translateY(-1px);
  }
  .air-price-bar__btn:active { transform: scale(.97); }
}

/* Bottom sheet panel */
.air-bottom-sheet {
  display: none;
}
@media (max-width: 767px) {
  .air-bottom-sheet {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 810;
    pointer-events: none; /* off by default */
  }
  .air-bottom-sheet.abs-open { pointer-events: all; }

  /* Scrim (tap-to-close backdrop) */
  .abs-scrim {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.45);
    opacity: 0;
    transition: opacity .28s ease;
  }
  .air-bottom-sheet.abs-open .abs-scrim { opacity: 1; }

  /* The panel itself */
  .abs-panel {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: var(--card);
    border-radius: 1.5rem 1.5rem 0 0;
    padding: 0 1.25rem calc(1.5rem + env(safe-area-inset-bottom));
    max-height: 85vh;
    overflow-y: auto;
    transform: translateY(110%);
    transition: transform .35s cubic-bezier(.4, 0, .2, 1);
    box-shadow: 0 -4px 40px rgba(0,0,0,.2);
  }
  .air-bottom-sheet.abs-open .abs-panel {
    transform: translateY(0);
  }

  /* Drag handle */
  .abs-handle {
    width: 36px; height: 4px;
    background: var(--border);
    border-radius: 9999px;
    margin: .9rem auto .5rem;
    flex-shrink: 0;
    cursor: grab;
  }

  /* Offset detail right column so it doesn't show on mobile */
  .detail-right { display: none; }
  /* Padding so content isn't hidden behind fixed bar */
  .detail-grid { padding-bottom: 5rem; }
}

/* ================================================================
   MOBILE BOTTOM NAVIGATION BAR  (Airbnb-style)
   ================================================================ */
.mobile-bottom-nav {
  display: none; /* hidden on desktop */
}
@media (max-width: 767px) {
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 600;
    background: var(--card);
    border-top: 1px solid var(--border);
    box-shadow: 0 -2px 16px rgba(0,0,0,.10);
    padding: .35rem 0 calc(.35rem + env(safe-area-inset-bottom));
    align-items: stretch;
  }
  .mbn-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .22rem;
    padding: .4rem .25rem;
    min-height: 52px;
    color: var(--muted);
    text-decoration: none;
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .01em;
    transition: color .15s;
    position: relative;
    border: none;
    background: none;
    cursor: pointer;
  }
  .mbn-item i,
  .mbn-item svg {
    width: 1.4rem;
    height: 1.4rem;
    stroke-width: 1.75;
    flex-shrink: 0;
  }
  .mbn-item:hover { color: var(--primary); }
  .mbn-item.mbn-active { color: var(--primary); }
  .mbn-item.mbn-active i,
  .mbn-item.mbn-active svg { stroke-width: 2.5; }

  /* Search item: special brand pill */
  .mbn-item--search {
    background: #5e5ce6;
    color: #fff;
    border-radius: 1.1rem;
    margin: .2rem .4rem;
    flex: 1.2;
    box-shadow: 0 4px 16px rgba(94,92,230,.4);
  }
  .mbn-item--search:hover { color: #fff; background: #4b48d9; }

  /* Badge on agendamentos */
  .mbn-badge {
    position: absolute;
    top: .25rem; right: calc(50% - .9rem);
    background: #e74c3c;
    color: #fff;
    font-size: .5rem;
    font-weight: 800;
    min-width: 16px; height: 16px;
    border-radius: 9999px;
    display: flex; align-items: center; justify-content: center;
    padding: 0 3px;
  }

  /* Give body breathing room so content isn't hidden behind the nav */
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
}

/* ================================================================
   MAP PIN POPUP � bottom sheet preview card (mobile)
   ================================================================ */
/* Leaflet popup container overrides for Airbnb bottom-sheet feel */
.mm-leaflet-popup .leaflet-popup-content-wrapper {
  border-radius: 1.25rem;
  padding: 0;
  overflow: hidden;
  border: none;
  box-shadow: 0 8px 40px rgba(0,0,0,.18);
}
.mm-leaflet-popup .leaflet-popup-tip-container { display: none; }
.mm-leaflet-popup .leaflet-popup-content { margin: 0; }

/* Info window card */
.mm-infowin {
  display: flex;
  flex-direction: column;
  width: 260px;
  background: var(--card, #fff);
  font-family: 'Inter', system-ui, sans-serif;
}
.mm-iw-top {
  display: flex;
  gap: .65rem;
  padding: .9rem .9rem .55rem;
}
.mm-iw-thumb-wrap {
  position: relative;
  flex-shrink: 0;
}
.mm-iw-thumb {
  width: 56px; height: 56px;
  border-radius: 50%;     /* CIRCULAR thumbnail */
  object-fit: cover;
  display: block;
  border: 2px solid rgba(0,0,0,.06);
}
.mm-iw-thumb-badge {
  position: absolute;
  bottom: -2px; right: -2px;
  background: #5e5ce6;
  color: #fff;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .6rem; font-weight: 800;
  border: 2px solid var(--card, #fff);
}
.mm-iw-texts { flex: 1; min-width: 0; }
.mm-iw-spec {
  font-size: .75rem; font-weight: 700;
  color: #111;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  line-height: 1.3; margin: 0;
}
[data-theme="dark"] .mm-iw-spec { color: #f0f0f0; }
.mm-iw-name {
  font-size: .68rem; color: #717171;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin: .15rem 0 0;
}

.mm-iw-pills {
  display: flex; gap: .35rem; flex-wrap: wrap;
  padding: 0 .9rem .5rem;
}
.mm-iw-pill {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .22rem .6rem;
  background: #f3f4f6;
  border-radius: 9999px;
  font-size: .65rem; font-weight: 700; color: #222;
}
.mm-iw-pill--price { color: #27ae60; background: rgba(46,204,113,.1); }
.mm-iw-avail-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #2ecc71; flex-shrink: 0;
}
.mm-iw-actions {
  display: flex; gap: .5rem;
  padding: .5rem .9rem .9rem;
  border-top: 1px solid rgba(0,0,0,.07);
}
.mm-iw-btn-primary {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  min-height: 40px;
  background: #5e5ce6;
  color: #fff;
  font-size: .8rem; font-weight: 700;
  border-radius: .75rem;
  text-decoration: none;
  box-shadow: 0 3px 12px rgba(94,92,230,.4);
  transition: background .15s;
}
.mm-iw-btn-primary:hover { background: #4b48d9; }
.mm-iw-btn-secondary {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; flex-shrink: 0;
  border: 1.5px solid rgba(0,0,0,.1);
  border-radius: .75rem;
  color: var(--muted, #717171);
  text-decoration: none;
  transition: border-color .15s, background .15s;
}
.mm-iw-btn-secondary:hover { border-color: #5e5ce6; color: #5e5ce6; }

/* -- Search overlay: Airbnb section blocks -- */
.mso-section-block {
  padding: 1rem 0 .25rem;
  border-bottom: 1px solid var(--border);
}
.mso-section-block:last-child { border-bottom: none; }

.mso-section-heading {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--fg);
  margin-bottom: .65rem;
  line-height: 1.2;
}

/* Location list */
.mso-location-list {
  display: flex; flex-direction: column; gap: .05rem;
}
.mso-loc-item {
  display: flex; align-items: center; gap: .75rem;
  padding: .7rem .4rem;
  border-radius: .75rem;
  text-decoration: none;
  color: var(--fg);
  background: none; border: none; cursor: pointer; text-align: left; width: 100%;
  transition: background .13s;
}
.mso-loc-item:hover { background: var(--secondary); }
.mso-loc-icon {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--secondary); flex-shrink: 0;
  color: var(--muted);
}
.mso-loc-icon svg, .mso-loc-icon i { width: 1rem; height: 1rem; }
.mso-loc-icon--blue {
  background: rgba(94,92,230,.1); color: #5e5ce6;
}
/* Explorar arredores: green tint */
.mso-loc-icon--map {
  background: rgba(46,204,113,.12); color: #2ecc71;
}
.mso-loc-text {
  display: flex; flex-direction: column; gap: .05rem;
}
.mso-loc-text strong { font-size: .9rem; font-weight: 700; }
.mso-loc-text small  { font-size: .72rem; color: var(--muted); }

.mso-top-pills {
  display: flex;
  gap: .55rem;
  flex-wrap: wrap;
}

.mso-top-pill {
  appearance: none;
  border: 1.5px solid var(--border);
  background: var(--secondary);
  color: var(--fg);
  min-height: 42px;
  padding: .62rem 1rem;
  border-radius: 9999px;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .16s, border-color .16s, color .16s, transform .16s;
}

.mso-top-pill:hover {
  border-color: #5e5ce6;
  color: #5e5ce6;
}

.mso-top-pill--active {
  background: rgba(94,92,230,.12);
  border-color: rgba(94,92,230,.45);
  color: #4b48d9;
  box-shadow: 0 10px 24px rgba(94,92,230,.12);
}

.mso-section-copy {
  margin: -.2rem 0 .8rem;
  font-size: .82rem;
  color: var(--muted);
}

/* Quick filter pills row */
.mso-filter-row {
  display: flex; gap: .45rem; flex-wrap: wrap; margin-top: .75rem;
}
.mso-filter-pill {
  display: inline-flex; align-items: center; gap: .38rem;
  padding: .55rem 1rem;
  background: var(--secondary);
  border: 1.5px solid var(--border);
  border-radius: 9999px;
  font-size: .8rem; font-weight: 700; color: var(--fg);
  text-decoration: none; min-height: 40px;
  transition: background .13s, border-color .13s, color .13s;
}
.mso-filter-pill i, .mso-filter-pill svg { width: .85rem; height: .85rem; color: #5e5ce6; }
.mso-filter-pill:hover {
  background: rgba(94,92,230,.09);
  border-color: #5e5ce6; color: #5e5ce6;
}

.mso-filter-pill--active {
  background: rgba(94,92,230,.12);
  border-color: rgba(94,92,230,.45);
  color: #4b48d9;
  box-shadow: 0 10px 24px rgba(94,92,230,.12);
}
