/* ============================================================
   HOME — Landing page pública (ReservaFácil)
   ============================================================ */

/* Prevent horizontal scroll globally */
html, body { max-width: 100%; overflow-x: hidden; }
/* Prevent iOS auto-zoom on inputs */
input, select, textarea { font-size: 16px; }

/* Nav */
.h-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px; height: 64px;
  background: #ffffff;
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow 200ms ease;
}
.h-nav.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,0.08); }
.h-nav-logo {
  display: flex; align-items: center; gap: 8px;
  color: var(--black); font-size: 15px; font-weight: 800;
  letter-spacing: 0.5px; cursor: pointer; white-space: nowrap;
  text-transform: uppercase;
}
.h-nav-cats { display: flex; align-items: center; gap: 24px; }
.h-nav-cats a {
  color: var(--gray-500); font-size: 14px; font-weight: 500;
  cursor: pointer; transition: color 150ms ease; white-space: nowrap;
}
.h-nav-cats a:hover,
.h-nav-cats a.h-nav-cat-active { color: var(--black); }
.h-nav-actions { display: flex; align-items: center; gap: 10px; }

/* Hamburger — hidden on desktop */
.h-nav-hamburger {
  display: none; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 8px;
  background: var(--gray-100); border: 1px solid var(--gray-200);
  cursor: pointer; color: var(--black); flex-shrink: 0;
  transition: background 0.15s;
}
.h-nav-hamburger:hover { background: var(--gray-200); }

/* Mobile side drawer */
.h-mobile-drawer {
  display: none;
  position: fixed; top: 0; left: 0; bottom: 0; width: 290px;
  background: #ffffff; z-index: 9999;
  transform: translateX(-100%); transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 8px 0 32px rgba(0,0,0,0.18);
}
.h-mobile-drawer.open { transform: translateX(0); }
.h-mobile-drawer-backdrop {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.55); z-index: 9998;
  opacity: 0; transition: opacity 0.28s; pointer-events: none;
}
.h-mobile-drawer-backdrop.open { opacity: 1; pointer-events: all; }
.h-mobile-drawer-inner {
  display: flex; flex-direction: column; height: 100%;
  padding: 0; overflow-y: auto;
}
.h-mobile-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid var(--gray-100);
  background: var(--white); position: sticky; top: 0; z-index: 1;
}
.h-mobile-drawer-logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 800; letter-spacing: -0.3px; color: var(--black);
}
.h-mobile-drawer-close {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--gray-100); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-500); transition: background 0.15s;
}
.h-mobile-drawer-close:hover { background: var(--gray-200); }
.h-mobile-drawer-section-label {
  padding: 16px 20px 8px; font-size: 11px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; color: var(--gray-400);
}
.h-mobile-drawer-nav { display: flex; flex-direction: column; gap: 2px; padding: 0 12px; }
.h-mobile-drawer-nav a {
  display: flex; align-items: center; padding: 12px 12px; border-radius: 10px;
  font-size: 15px; font-weight: 500; color: var(--gray-700); cursor: pointer;
  transition: background 0.15s;
}
.h-mobile-drawer-nav a:hover,
.h-mobile-drawer-nav a.active { background: var(--gray-100); color: var(--black); font-weight: 600; }
.h-mobile-drawer-divider { height: 1px; background: var(--gray-100); margin: 12px 20px; }
.h-mobile-drawer-btn-primary {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 0 12px; padding: 13px; border-radius: 10px;
  background: var(--black); color: white; border: none;
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background 0.15s;
}
.h-mobile-drawer-btn-primary:hover { background: var(--gray-800); }
.h-btn-pro {
  padding: 8px 18px; border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-full); color: var(--black); font-size: 13px;
  font-weight: 500; cursor: pointer; background: transparent;
  transition: all 150ms ease; white-space: nowrap;
}
.h-btn-pro:hover { background: var(--gray-100); border-color: var(--gray-400); }
.h-btn-account {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 14px; background: var(--black); border-radius: 50%;
  color: var(--white); font-size: 13px; font-weight: 600;
  cursor: pointer; border: none; transition: background 150ms ease; white-space: nowrap;
  width: 38px; height: 38px; justify-content: center;
}
.h-btn-account:hover { background: var(--gray-800); }
.h-btn-account-label { display: none; }
.h-nav-user-avatar {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--white); color: var(--black);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
}
/* Botão só com avatar (quando logado) */
.h-btn-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--black); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 150ms; padding: 0; flex-shrink: 0;
}
.h-btn-avatar:hover { opacity: 0.85; }
.h-btn-avatar .h-nav-user-avatar {
  width: 38px; height: 38px; font-size: 14px; font-weight: 700;
  background: var(--black); color: var(--white);
}

/* Hero */
.h-hero {
  min-height: 88vh;
  background-color: var(--black);
  background-image: url('https://images.unsplash.com/photo-1560066984-138dadb4c035?auto=format&fit=crop&w=1920&q=80');
  background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; padding-top: 64px;
}
.h-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.55) 60%, rgba(0,0,0,0.75) 100%);
}
.h-hero-inner {
  position: relative; z-index: 1;
  text-align: center; max-width: 680px; padding: 48px 24px 64px;
}
.h-hero-tag {
  display: inline-block; color: rgba(255,255,255,0.45);
  font-size: 11px; font-weight: 600;
  letter-spacing: 2.5px; text-transform: uppercase; margin-bottom: 22px;
}
.h-hero-title {
  font-size: clamp(44px, 7.5vw, 84px); font-weight: 800;
  color: var(--white); letter-spacing: -2.5px; line-height: 1.02; margin-bottom: 20px;
}
.h-hero-sub {
  font-size: 17px; color: rgba(255,255,255,0.5);
  margin-bottom: 40px; line-height: 1.6;
}

/* Search card */
.h-search-card {
  background: var(--white); border-radius: 14px;
  padding: 8px; display: flex; align-items: center;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5);
  max-width: 680px; margin: 0 auto 28px;
}
.h-search-field {
  flex: 1; padding: 12px 20px;
  display: flex; flex-direction: column; gap: 3px;
  border-right: 1px solid var(--gray-200);
}
.h-search-field label {
  font-size: 10px; font-weight: 700;
  color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.8px;
}
.h-search-field input {
  border: none; outline: none; font-size: 16px;
  color: var(--black); font-weight: 500; background: transparent; width: 100%;
}
.h-search-field input::placeholder { color: var(--gray-400); font-weight: 400; }
.h-search-btn {
  flex-shrink: 0; background: var(--black); color: var(--white);
  border: none; border-radius: 10px; padding: 15px 24px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  transition: background 150ms ease; white-space: nowrap;
}
.h-search-btn:hover { background: var(--gray-800); }
/* New hero search */
.h-hero-search-row { margin-bottom: 16px; }
.h-hero-search-box {
  display: flex; align-items: center; gap: 10px;
  background: var(--white); border-radius: 50px;
  padding: 10px 10px 10px 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  max-width: 540px; margin: 0 auto;
}
.h-hero-search-box input {
  flex: 1; border: none; outline: none;
  font-size: 16px; color: var(--black); background: transparent;
}
.h-hero-search-btn {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--black); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: white; flex-shrink: 0; transition: background 0.15s;
}
.h-hero-search-btn:hover { background: var(--gray-800); }
.h-hero-pro-btn {
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 28px; padding: 13px 28px;
  background: rgba(255,255,255,0.12); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50px; color: white;
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background 0.15s; max-width: 320px; width: 100%;
}
.h-hero-pro-btn:hover { background: rgba(255,255,255,0.22); }

.h-hero-cats {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center;
}
.h-hero-cat {
  padding: 6px 16px; border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,0.2); color: rgba(255,255,255,0.65);
  font-size: 13px; font-weight: 500; cursor: pointer; background: transparent;
  transition: all 150ms ease;
}
.h-hero-cat:hover,
.h-hero-cat.active { background: var(--white); color: var(--black); border-color: var(--white); }

/* Sections */
.h-section { padding: 88px 0; }
.h-container { max-width: 1140px; margin: 0 auto; padding: 0 40px; }
.h-section-label {
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--gray-400); margin-bottom: 12px;
}
.h-section-title {
  font-size: clamp(28px, 4vw, 46px); font-weight: 700;
  letter-spacing: -1px; line-height: 1.1; margin-bottom: 12px;
}

/* Establishments grid */
.h-est-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 24px; margin-top: 40px;
}
.h-est-card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200); overflow: hidden;
  transition: all 200ms ease; cursor: pointer;
}
.h-est-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--gray-300); }
.h-est-card-header { background: var(--gray-900); height: 120px; position: relative; overflow: hidden; }
.h-est-cover { display: flex; align-items: flex-end; padding-bottom: 30px; }
.h-est-cover::before { content:''; position:absolute; inset:0; opacity:0.18; }
.h-est-cover-barbearia { background: linear-gradient(135deg,#1a1a2e 0%,#16213e 50%,#0f3460 100%); }
.h-est-cover-barbearia::before { background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.4'%3E%3Cpath d='M0 38.59l2.83-2.83 1.41 1.41L1.41 40H0v-1.41zM0 1.4l2.83 2.83 1.41-1.41L1.41 0H0v1.41zM38.59 40l-2.83-2.83 1.41-1.41L40 38.59V40h-1.41zM40 1.41l-2.83 2.83-1.41-1.41L38.59 0H40v1.41z'/%3E%3C/g%3E%3C/svg%3E"); }
.h-est-cover-salao { background: linear-gradient(135deg,#4a0e8f 0%,#7b2d8b 50%,#c45c8a 100%); }
.h-est-cover-spa { background: linear-gradient(135deg,#134e4a 0%,#0d9488 50%,#2dd4bf 100%); }
.h-est-cover-estetica { background: linear-gradient(135deg,#7c2d12 0%,#c2410c 50%,#fb923c 100%); }
.h-est-cover-nails { background: linear-gradient(135deg,#831843 0%,#be185d 50%,#f472b6 100%); }
.h-est-cover-tag {
  position: absolute; top: 12px; right: 12px;
  background: rgba(255,255,255,0.2); backdrop-filter: blur(8px);
  color: #fff; font-size: 11px; font-weight: 600; letter-spacing: 0.5px;
  padding: 3px 10px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.3);
}
.h-est-card-avatar {
  width: 56px; height: 56px; border-radius: var(--radius-md);
  background: var(--white); color: var(--black);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800;
  position: absolute; bottom: -26px; left: 22px;
  border: 3px solid var(--white); box-shadow: var(--shadow-md);
}
.h-est-card-body { padding: 34px 22px 22px; }
.h-est-card-name { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.h-est-card-meta {
  display: flex; align-items: center; gap: 14px;
  color: var(--gray-500); font-size: 13px; margin-bottom: 12px;
}
.h-est-services { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.h-est-svc-tag {
  padding: 3px 10px; background: var(--gray-100);
  border-radius: var(--radius-full); font-size: 12px; color: var(--gray-600); font-weight: 500;
}
.h-est-card-actions { display: flex; gap: 8px; border-top: 1px solid var(--gray-100); padding-top: 14px; }
.h-btn-ver {
  flex: 1; padding: 9px; border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm); font-size: 13px; font-weight: 600;
  color: var(--black); cursor: pointer; background: transparent; transition: all 150ms ease;
}
.h-btn-ver:hover { border-color: var(--black); }
.h-btn-book {
  flex: 1; padding: 9px; background: var(--black); border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600; color: var(--white);
  cursor: pointer; border: none; transition: background 150ms ease;
}
.h-btn-book:hover { background: var(--gray-800); }

/* Steps */
.h-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; }
.h-step { text-align: center; padding: 40px 20px; }
.h-step-num {
  width: 52px; height: 52px; border-radius: 50%; background: var(--black);
  color: var(--white); display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; margin: 0 auto 20px;
}
.h-step-title { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.h-step-desc { font-size: 14px; color: var(--gray-500); line-height: 1.65; }

/* Stats grid */
.h-stats-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg); overflow: hidden; margin-top: 48px;
}
.h-stat {
  padding: 44px 36px;
  border-right: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.h-stat:nth-child(3n) { border-right: none; }
.h-stat:nth-child(4), .h-stat:nth-child(5), .h-stat:nth-child(6) { border-bottom: none; }
.h-stat-num { font-size: 38px; font-weight: 800; color: var(--white); letter-spacing: -1px; margin-bottom: 8px; }
.h-stat-label { font-size: 14px; color: rgba(255,255,255,0.45); line-height: 1.5; }
.h-btn-cta-white {
  padding: 14px 36px; background: var(--white); color: var(--black);
  border: none; border-radius: var(--radius-full); font-size: 15px; font-weight: 700;
  cursor: pointer; transition: background 150ms ease;
}
.h-btn-cta-white:hover { background: var(--gray-200); }

/* Categories section */
.h-cats-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 40px; }
.h-cat-card {
  background: var(--gray-900); border-radius: var(--radius-lg);
  overflow: hidden; cursor: pointer; transition: transform 200ms ease;
}
.h-cat-card:hover { transform: translateY(-3px); }
.h-cat-card-img {
  height: 180px; display: flex; align-items: center; justify-content: center;
  background: var(--gray-800);
}
.h-cat-card-info { padding: 22px; background: var(--white); }
.h-cat-card-info h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.h-cat-card-info p { font-size: 13px; color: var(--gray-500); line-height: 1.6; margin-bottom: 14px; }
.h-pro-link { font-size: 13px; font-weight: 600; color: var(--black); cursor: pointer; }

/* FAQ */
.h-faq { max-width: 700px; margin: 0 auto; }
.h-faq-item { border-bottom: 1px solid var(--gray-200); }
.h-faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0; cursor: pointer; font-size: 15px; font-weight: 500; gap: 16px;
}
.h-faq-q svg { flex-shrink:0; width:18px; height:18px; color:var(--gray-400); transition: transform 200ms ease; }
.h-faq-item.open .h-faq-q svg { transform: rotate(180deg); }
.h-faq-a { display: none; padding: 0 0 18px; font-size: 14px; color: var(--gray-500); line-height: 1.7; }
.h-faq-item.open .h-faq-a { display: block; }

/* Footer */
.h-footer { background: var(--black); padding: 64px 0 32px; }
.h-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.h-footer-logo { display: flex; align-items: center; gap: 8px; color: var(--white); font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.h-footer-tagline { font-size: 13px; color: rgba(255,255,255,0.4); line-height: 1.6; margin-bottom: 20px; }
.h-footer-socials { display: flex; gap: 8px; }
.h-footer-social {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5); cursor: pointer; transition: all 150ms ease;
}
.h-footer-social:hover { border-color: rgba(255,255,255,0.4); color: var(--white); }
.h-footer-col h4 { color: var(--white); font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.h-footer-col ul li { margin-bottom: 9px; }
.h-footer-col ul li a { font-size: 13px; color: rgba(255,255,255,0.4); cursor: pointer; transition: color 150ms ease; }
.h-footer-col ul li a:hover { color: rgba(255,255,255,0.8); }
.h-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 22px; display: flex; align-items: center; justify-content: space-between;
}
.h-footer-copy { font-size: 12px; color: rgba(255,255,255,0.25); }

/* Detail */
.h-det-header { background: var(--black); padding: 100px 0 44px; }
.h-det-back {
  display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.55); font-size: 13px; font-weight: 500;
  cursor: pointer; margin-bottom: 28px; transition: color 150ms ease; width: fit-content;
}
.h-det-back:hover { color: var(--white); }
.h-det-info { display: flex; align-items: flex-end; gap: 22px; flex-wrap: wrap; }
.h-det-logo {
  width: 76px; height: 76px; border-radius: var(--radius-lg);
  background: var(--white); color: var(--black);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 800; flex-shrink: 0;
}
.h-det-title { flex: 1; min-width: 200px; }
.h-det-name { font-size: 30px; font-weight: 800; color: var(--white); letter-spacing: -0.5px; margin-bottom: 8px; }
.h-det-meta { display: flex; align-items: center; gap: 18px; color: rgba(255,255,255,0.5); font-size: 13px; flex-wrap: wrap; }
.h-det-grid { display: grid; grid-template-columns: 1fr 310px; gap: 36px; align-items: start; }
.h-det-section-title { font-size: 20px; font-weight: 700; margin-bottom: 20px; }
.h-det-sidebar { position: sticky; top: 88px; }
.h-sidebar-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 22px; margin-bottom: 14px;
}
.h-sidebar-card h3 { font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.h-hours-list { font-size: 13px; }
.h-hours-row {
  display: flex; justify-content: space-between; padding: 6px 0;
  border-bottom: 1px solid var(--gray-100); color: var(--gray-600);
}
.h-hours-row:last-child { border-bottom: none; }
.h-svc-list { display: flex; flex-direction: column; gap: 10px; }
.h-svc-item {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-md); padding: 18px 22px;
  display: flex; align-items: center; gap: 14px; transition: border-color 150ms ease;
}
.h-svc-item:hover { border-color: var(--gray-400); }
.h-svc-icon {
  width: 42px; height: 42px; border-radius: var(--radius-sm);
  background: var(--gray-100); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.h-svc-info { flex: 1; }
.h-svc-name { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.h-svc-meta { font-size: 12px; color: var(--gray-400); }
.h-svc-right { text-align: right; flex-shrink: 0; }
.h-svc-price { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.h-svc-btn {
  padding: 7px 16px; background: var(--black); color: var(--white);
  border-radius: var(--radius-sm); font-size: 13px; font-weight: 600;
  cursor: pointer; border: none; transition: background 150ms ease;
}
.h-svc-btn:hover { background: var(--gray-800); }

/* Booking overlay */
.bk-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.65); z-index: 2000;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.bk-overlay.open { display: flex; }
.bk-modal {
  background: var(--white); border-radius: var(--radius-xl);
  width: 100%; max-width: 500px; max-height: 90vh; overflow-y: auto;
  animation: hSlideUp 200ms ease;
}
@keyframes hSlideUp {
  from { transform: translateY(16px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.bk-header {
  padding: 22px 26px; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--gray-100);
  position: sticky; top: 0; background: var(--white); z-index: 1;
}
.bk-header h3 { font-size: 16px; font-weight: 700; }
.bk-close {
  width: 30px; height: 30px; border-radius: 50%; background: var(--gray-100);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: none; color: var(--gray-600);
  transition: background 150ms ease; flex-shrink: 0;
}
.bk-close:hover { background: var(--gray-200); }
.bk-body { padding: 22px 26px; }
.bk-steps { display: flex; margin-bottom: 24px; border: 1px solid var(--gray-200); border-radius: 6px; overflow: hidden; }
.bk-step-dot {
  flex: 1; padding: 7px 4px; text-align: center;
  font-size: 11px; font-weight: 600; color: var(--gray-400);
  background: var(--gray-50); border-right: 1px solid var(--gray-200);
}
.bk-step-dot:last-child { border-right: none; }
.bk-step-dot.active { background: var(--black); color: var(--white); }
.bk-step-dot.done { background: var(--gray-800); color: rgba(255,255,255,0.6); }
.bk-section-title {
  font-size: 11px; font-weight: 700; color: var(--gray-400);
  text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 12px;
}
.bk-options { display: flex; flex-direction: column; gap: 8px; }
.bk-option {
  padding: 12px 16px; border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md); cursor: pointer;
  transition: all 150ms ease; display: flex; align-items: center; justify-content: space-between;
}
.bk-option:hover { border-color: var(--gray-400); }
.bk-option.selected { border-color: var(--black); background: var(--gray-50); }
.bk-option-name { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.bk-option-meta { font-size: 12px; color: var(--gray-400); }
.bk-option-price { font-size: 15px; font-weight: 700; flex-shrink: 0; }
.bk-dates { display: grid; grid-template-columns: repeat(7,1fr); gap: 6px; margin-bottom: 20px; }
.bk-date-btn {
  aspect-ratio: 1; border-radius: 6px; border: 1.5px solid var(--gray-200);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  cursor: pointer; background: transparent; transition: all 150ms ease; padding: 4px 2px;
}
.bk-date-btn:hover { border-color: var(--gray-400); }
.bk-date-btn.selected { background: var(--black); border-color: var(--black); color: var(--white); }
.bk-date-day { font-size: 9px; font-weight: 600; text-transform: uppercase; opacity: 0.6; }
.bk-date-num { font-size: 15px; font-weight: 700; }
.bk-times { display: grid; grid-template-columns: repeat(4,1fr); gap: 7px; }
.bk-time-btn {
  padding: 10px; border-radius: 6px; border: 1.5px solid var(--gray-200);
  font-size: 13px; font-weight: 600; cursor: pointer;
  background: transparent; transition: all 150ms ease;
}
.bk-time-btn:hover { border-color: var(--gray-400); }
.bk-time-btn.selected { background: var(--black); border-color: var(--black); color: var(--white); }
.bk-footer { padding: 0 26px 24px; display: flex; gap: 10px; }
.bk-btn-back {
  padding: 12px 20px; border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md); font-size: 14px; font-weight: 600;
  color: var(--black); cursor: pointer; background: transparent; transition: all 150ms ease;
}
.bk-btn-back:hover { border-color: var(--gray-400); }
.bk-btn-next {
  flex: 1; padding: 12px; background: var(--black); border: none;
  border-radius: var(--radius-md); font-size: 14px; font-weight: 600;
  color: var(--white); cursor: pointer; transition: background 150ms ease;
}
.bk-btn-next:hover { background: var(--gray-800); }
.bk-btn-next:disabled { background: var(--gray-300); cursor: not-allowed; }
.bk-summary { background: var(--gray-50); border-radius: 8px; padding: 14px 16px; margin-bottom: 16px; }
.bk-summary-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 0; font-size: 13px; border-bottom: 1px solid var(--gray-200);
}
.bk-summary-row:last-child { border-bottom: none; }
.bk-summary-row .label { color: var(--gray-500); }
.bk-summary-row .value { font-weight: 600; }
.bk-confirm-success { text-align: center; padding: 16px 0; }
.bk-success-icon {
  width: 60px; height: 60px; border-radius: 50%; background: var(--black); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px; font-size: 24px;
}
.bk-success-title { font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.bk-success-sub { font-size: 14px; color: var(--gray-500); line-height: 1.7; margin-bottom: 24px; }

/* Auth overlay */
.auth-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 210;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.auth-overlay.open { display: flex; }
.auth-modal-box {
  background: var(--white); border-radius: var(--radius-xl);
  width: 100%; max-width: 400px; overflow: hidden; animation: hSlideUp 200ms ease;
}
.auth-close-btn {
  position: absolute; top: -16px; right: -16px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--white); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-600); box-shadow: var(--shadow-md); transition: background 150ms ease;
}
.auth-close-btn:hover { background: var(--gray-100); }
.auth-tabs { display: flex; border-bottom: 1px solid var(--gray-200); }
.auth-tab {
  flex: 1; padding: 15px; font-size: 14px; font-weight: 600; text-align: center;
  cursor: pointer; color: var(--gray-400); background: transparent;
  border-left: none; border-right: none; border-top: none;
  border-bottom: 2px solid transparent; transition: all 150ms ease;
}
.auth-tab.active { color: var(--black); border-bottom-color: var(--black); }
.auth-body { padding: 24px; }
.auth-field { margin-bottom: 14px; }
.auth-field label {
  display: block; font-size: 11px; font-weight: 700; color: var(--gray-500);
  margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.5px;
}
.auth-field input {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm); font-size: 14px; outline: none; transition: border-color 150ms ease;
}
.auth-field input:focus { border-color: var(--black); }
.auth-err { color: var(--error); font-size: 12px; margin-bottom: 10px; display: none; }
.auth-submit {
  width: 100%; padding: 13px; background: var(--black); color: var(--white);
  border: none; border-radius: var(--radius-md); font-size: 14px; font-weight: 700;
  cursor: pointer; transition: background 150ms ease;
}
.auth-submit:hover { background: var(--gray-800); }

/* Responsive */
@media (max-width: 960px) {
  .h-nav-cats { display: none; }
  .h-btn-pro-desktop { display: none; }
  .h-nav-hamburger { display: flex; }
  .h-nav-logo { position: absolute; left: 50%; transform: translateX(-50%); }
  .h-mobile-drawer, .h-mobile-drawer-backdrop { display: block; }
  .h-nav { padding: 0 20px; height: 60px; }
  .h-det-new, .h-client-screen, .h-hero { padding-top: 60px; }
  .h-container { padding: 0 24px; }
  .h-steps { grid-template-columns: 1fr; gap: 0; }
  .h-step { padding: 28px 0; border-bottom: 1px solid var(--gray-200); }
  .h-step:last-child { border-bottom: none; }
  .h-stats-grid { grid-template-columns: 1fr 1fr; }
  .h-cats-grid { grid-template-columns: 1fr; }
  .h-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .h-det-grid { grid-template-columns: 1fr; }
  .h-det-sidebar { position: static; }
}
@media (max-width: 600px) {
  .h-nav { padding: 0 16px; height: 56px; }
  .h-det-new, .h-client-screen, .h-hero { padding-top: 56px; }
  .h-nav-logo { font-size: 14px; }
  .h-btn-pro { padding: 7px 13px; font-size: 12px; }
  .h-btn-account { padding: 7px 13px; }
  .h-section { padding: 56px 0; }
  .h-hero { min-height: 100svh; padding-bottom: 0; }
  .h-hero-inner { padding: 24px 20px 56px; }
  .h-hero-sub { font-size: 14px; margin-bottom: 28px; }
  .h-hero-search-box { border-radius: 14px; padding: 6px 6px 6px 14px; }
  .h-hero-search-box input { font-size: 16px; }
  .h-hero-pro-btn { font-size: 13px; padding: 11px 20px; margin-bottom: 20px; }
  .h-hero-title { font-size: 38px; letter-spacing: -1.5px; }
  .h-search-card { flex-direction: column; border-radius: 12px; }
  .h-search-field { border-right: none; border-bottom: 1px solid var(--gray-200); padding: 14px 16px; }
  .h-search-field:last-of-type { border-bottom: none; }
  .h-search-btn { width: 100%; justify-content: center; margin: 4px; }
  .h-est-grid { grid-template-columns: 1fr; }
  .h-stats-grid { grid-template-columns: 1fr; }
  .h-stat { border-right: none !important; }
  .h-footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .bk-dates { grid-template-columns: repeat(4,1fr); }
  .h-det-info { flex-direction: column; align-items: flex-start; }
  .h-hero-art { display: none; }
}

/* ============================================================
   PAINEL DO CLIENTE
   ============================================================ */
.cp-page { display:flex; flex-direction:column; min-height:100vh; background:var(--gray-100); }

/* Header */
.cp-header { background:var(--black); position:sticky; top:0; z-index:100; }
.cp-header-inner {
  width:100%; padding:0 20px; height:60px;
  display:flex; align-items:center; justify-content:space-between;
}
.cp-header-logo {
  display:flex; align-items:center; gap:9px;
  color:var(--white); font-size:14px; font-weight:700; cursor:pointer;
  transition:opacity 150ms;
}
.cp-header-logo:hover { opacity:0.8; }
.cp-header-right { display:flex; align-items:center; gap:12px; }
.cp-back-btn {
  width:36px; height:36px; border-radius:50%;
  background:rgba(255,255,255,0.08); border:1px solid rgba(255,255,255,0.12);
  display:flex; align-items:center; justify-content:center;
  color:rgba(255,255,255,0.7); cursor:pointer; transition:all 150ms; flex-shrink:0;
}
.cp-back-btn:hover { background:rgba(255,255,255,0.15); color:var(--white); }
.cp-header-user { display:flex; align-items:center; gap:8px; }
.cp-header-avatar {
  width:30px; height:30px; border-radius:50%; background:var(--gray-700);
  display:flex; align-items:center; justify-content:center;
  font-size:12px; font-weight:700; color:var(--white);
}
.cp-header-user span { font-size:13px; font-weight:600; color:rgba(255,255,255,0.8); }

/* Main */
.cp-main { flex:1; padding:32px 28px 60px; }
.cp-main-inner { max-width:900px; margin:0 auto; }

/* Profile card */
.cp-profile-card {
  background:var(--white); border:1px solid var(--gray-200);
  border-radius:var(--radius-lg); padding:24px 28px;
  display:flex; align-items:center; gap:20px; flex-wrap:wrap;
  margin-bottom:32px;
}
.cp-profile-avatar {
  width:56px; height:56px; border-radius:50%;
  background:var(--black); color:var(--white);
  display:flex; align-items:center; justify-content:center;
  font-size:18px; font-weight:700; flex-shrink:0;
}
.cp-profile-info { flex:1; min-width:0; }
.cp-profile-name { font-size:17px; font-weight:700; color:var(--black); margin-bottom:3px; }
.cp-profile-email { font-size:13px; color:var(--gray-500); }
.cp-profile-stats { display:flex; align-items:center; gap:16px; flex-shrink:0; }
.cp-pstat { display:flex; flex-direction:column; align-items:center; gap:1px; }
.cp-pstat span { font-size:20px; font-weight:800; color:var(--black); letter-spacing:-0.5px; }
.cp-pstat { font-size:11px; color:var(--gray-500); }
.cp-pstat-div { width:1px; height:28px; background:var(--gray-200); }
.cp-logout-btn {
  display:flex; align-items:center; gap:6px; padding:8px 16px;
  background:none; border:1.5px solid var(--gray-200);
  border-radius:var(--radius-md); font-size:13px; font-weight:600;
  color:var(--gray-600); cursor:pointer; font-family:var(--font);
  transition:all 150ms; flex-shrink:0;
}
.cp-logout-btn:hover { border-color:var(--black); color:var(--black); }

/* Section title */
.cp-section-title {
  display:flex; align-items:center; gap:8px;
  font-size:13px; font-weight:700; color:var(--black);
  letter-spacing:0.2px; text-transform:uppercase; margin-bottom:14px;
}
.cp-section-title svg { color:var(--gray-500); flex-shrink:0; }

/* Empty state */
.cp-empty {
  background:var(--white); border:1px solid var(--gray-200);
  border-radius:var(--radius-lg); padding:40px 20px;
  text-align:center; color:var(--gray-400);
  display:flex; flex-direction:column; align-items:center; gap:12px;
}
.cp-empty svg { color:var(--gray-300); }
.cp-empty p { font-size:14px; }
.cp-empty button {
  margin-top:4px; padding:9px 22px; background:var(--black);
  color:var(--white); border:none; border-radius:var(--radius-md);
  font-size:13px; font-weight:600; cursor:pointer; font-family:var(--font);
}

/* Booking cards grid */
.cp-bk-grid { display:flex; flex-direction:column; gap:10px; }
.cp-bk-card {
  background:var(--white); border:1px solid var(--gray-200);
  border-radius:var(--radius-lg); padding:18px 20px;
  display:flex; align-items:center; gap:16px;
  transition:box-shadow 150ms;
}
.cp-bk-card:hover { box-shadow:0 2px 12px rgba(0,0,0,0.06); }
.cp-bk-date {
  width:48px; text-align:center; flex-shrink:0;
  background:var(--black); border-radius:var(--radius-md);
  padding:8px 4px; display:flex; flex-direction:column; gap:1px;
}
.cp-bk-day { font-size:20px; font-weight:800; color:var(--white); line-height:1; }
.cp-bk-month { font-size:9px; font-weight:700; color:rgba(255,255,255,0.5); letter-spacing:0.5px; }
.cp-bk-info { flex:1; min-width:0; }
.cp-bk-service { font-size:14px; font-weight:700; color:var(--black); margin-bottom:3px; }
.cp-bk-est { font-size:12px; color:var(--gray-500); margin-bottom:4px; }
.cp-bk-meta { display:flex; align-items:center; gap:4px; font-size:12px; color:var(--gray-400); }
.cp-bk-right { display:flex; flex-direction:column; align-items:flex-end; gap:6px; flex-shrink:0; }
.cp-bk-price { font-size:14px; font-weight:700; color:var(--black); }

/* Badges */
.cp-badge { font-size:11px; font-weight:700; padding:3px 9px; border-radius:var(--radius-full); }
.cp-badge-ok   { background:#dcfce7; color:#15803d; }
.cp-badge-warn { background:#fef9c3; color:#a16207; }
.cp-badge-err  { background:#fee2e2; color:#dc2626; }
.cp-badge-done { background:var(--gray-100); color:var(--gray-600); }

/* History table */
.cp-history-table {
  background:var(--white); border:1px solid var(--gray-200);
  border-radius:var(--radius-lg); overflow:hidden;
}
.cp-th, .cp-tr {
  display:grid; grid-template-columns:2fr 2fr 1.5fr 1fr 1fr;
  gap:12px; padding:11px 18px; align-items:center;
}
.cp-th {
  background:var(--gray-50); border-bottom:1px solid var(--gray-200);
  font-size:11px; font-weight:700; color:var(--gray-500);
  text-transform:uppercase; letter-spacing:0.5px;
}
.cp-tr { border-bottom:1px solid var(--gray-100); font-size:13px; color:var(--gray-700); }
.cp-tr:last-child { border-bottom:none; }
.cp-tr:hover { background:var(--gray-50); }
.cp-td-bold { font-weight:600; color:var(--black); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* Responsive */
@media (max-width: 700px) {
  .cp-profile-card { flex-direction:column; align-items:flex-start; }
  .cp-profile-stats { order:3; }
  .cp-logout-btn { order:4; align-self:stretch; justify-content:center; }
  .cp-main { padding:20px 16px 40px; }
  .cp-header-inner { padding:0 16px; }
  /* History: vira card por linha */
  .cp-th { display:none; }
  .cp-tr {
    display:flex; flex-direction:column; gap:4px;
    padding:12px 16px; align-items:flex-start;
  }
  .cp-tr span { font-size:13px; }
  .cp-tr span:nth-child(2)::before { content:'📍 '; font-size:11px; }
  .cp-tr span:nth-child(3) { font-size:11px; color:var(--gray-500); }
  .cp-tr span:nth-child(4) { font-weight:600; }
  .cp-back-btn span { display:none; }
  .cp-bk-card { flex-wrap:wrap; }
}

/* ============================================================
   BOTÃO VOLTAR AO PAINEL
   ============================================================ */
.h-btn-back-panel {
  display: flex; align-items: center;
  padding: 7px 14px; border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-full); color: var(--black); font-size: 13px;
  font-weight: 500; cursor: pointer; background: transparent;
  transition: all 150ms ease; white-space: nowrap;
}
.h-btn-back-panel:hover { background: var(--gray-100); border-color: var(--gray-400); }

/* ============================================================
   MAPA — Busca com mapa ao lado (estilo Planity)
   ============================================================ */

/* Wrapper do modo mapa — ocupa exatamente o viewport sem overflow */
.h-map-wrapper {
  display: flex; flex-direction: column;
  height: 100vh; padding-top: 64px; overflow: hidden;
}
@media (max-width: 960px) { .h-map-wrapper { padding-top: 60px; } }
@media (max-width: 600px) { .h-map-wrapper { padding-top: 56px; } }

/* Botão voltar na barra de mapa */
.h-back-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 7px 14px; border-radius: var(--radius-md);
  border: 1px solid var(--gray-300); background: var(--white);
  color: var(--black); font-size: 13px; font-weight: 600;
  cursor: pointer; white-space: nowrap; flex-shrink: 0;
  transition: background 0.15s;
}
.h-back-btn:hover { background: var(--gray-100); }

/* Barra de filtros quando em modo mapa */
.h-search-bar-top {
  flex-shrink: 0; z-index: 90;
  background: var(--white); border-bottom: 1px solid var(--gray-200);
  padding: 12px 24px;
}
/* Pills row only visible on mobile */
.h-search-bar-pills-row { display: none; }
.h-search-bar-inner {
  max-width: 1400px; margin: 0 auto;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.h-search-bar-field {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--gray-200); border-radius: var(--radius-md);
  padding: 7px 12px; background: var(--gray-50);
  color: var(--gray-500);
}
.h-search-bar-field input {
  border: none; background: transparent; font-size: 13px; color: var(--black);
  outline: none; min-width: 180px;
}
.h-search-bar-cats { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.h-filter-pill {
  display: flex; align-items: center; gap: 5px;
  padding: 6px 14px; border: 1px solid var(--gray-200);
  border-radius: var(--radius-full); font-size: 13px; font-weight: 500;
  color: var(--gray-600); background: var(--white); cursor: pointer;
  transition: all 150ms ease; white-space: nowrap;
}
.h-filter-pill:hover { border-color: var(--black); color: var(--black); }
.h-filter-pill.active {
  background: var(--black); color: var(--white); border-color: var(--black);
}

/* Layout principal com mapa — flex:1 ocupa espaço restante abaixo do filtro */
.h-map-layout {
  display: flex;
  flex: 1;
  min-height: 0; /* necessário para flex children com overflow */
}

/* Lista de estabelecimentos */
.h-map-list {
  width: 44%; min-width: 320px; max-width: 520px;
  display: flex; flex-direction: column;
  overflow: hidden;
  border-right: 1px solid var(--gray-200);
}
.h-map-list-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px 10px; flex-shrink: 0;
  border-bottom: 1px solid var(--gray-100);
}
.h-map-count { font-size: 13px; font-weight: 600; color: var(--gray-700); }
#hMapListCards { flex: 1; overflow-y: auto; padding: 8px 12px 16px; }
.h-map-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 64px 24px; text-align: center; color: var(--gray-400);
  font-size: 14px;
}

/* Card de estabelecimento na vista mapa */
.h-map-est-card {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 12px; border-radius: var(--radius-md); cursor: pointer;
  transition: background 150ms ease; border-bottom: 1px solid var(--gray-100);
}
.h-map-est-card:last-child { border-bottom: none; }
.h-map-est-card:hover, .h-map-est-active { background: var(--gray-50); }
.h-map-est-left { flex-shrink: 0; }
.h-map-est-avatar {
  width: 44px; height: 44px; border-radius: var(--radius-md);
  background: var(--black); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; flex-shrink: 0;
}
.h-map-est-avatar-barbearia { background: linear-gradient(135deg,#1a1a2e,#0f3460); }
.h-map-est-avatar-salao { background: linear-gradient(135deg,#4a0e8f,#c45c8a); }
.h-map-est-avatar-spa { background: linear-gradient(135deg,#134e4a,#2dd4bf); color: #fff; }
.h-map-est-avatar-estetica { background: linear-gradient(135deg,#7c2d12,#fb923c); }
.h-map-est-avatar-nails { background: linear-gradient(135deg,#831843,#f472b6); }
.h-map-est-body { flex: 1; min-width: 0; }
.h-map-est-name { font-size: 14px; font-weight: 600; color: var(--black); margin-bottom: 4px; }
.h-map-est-meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 12px; color: var(--gray-500); margin-bottom: 6px;
}
.h-map-est-meta span { display: flex; align-items: center; gap: 4px; }
.h-map-est-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.h-map-tag {
  padding: 2px 8px; background: var(--gray-100); border-radius: var(--radius-full);
  font-size: 11px; font-weight: 500; color: var(--gray-600);
}
.h-map-est-action { flex-shrink: 0; }

/* Coluna do mapa */
.h-map-col {
  flex: 1;
  position: relative;
  overflow: hidden;
}
#homeMap { width: 100%; height: 100%; }

/* Pin customizado no mapa */
.h-map-pin {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--black); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; border: 2px solid var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  cursor: pointer; transition: all 150ms ease;
}
.h-map-pin.active, .h-map-pin:hover {
  background: var(--white); color: var(--black);
  border-color: var(--black); transform: scale(1.15);
}

/* ── Pin popup card (aparece ao tocar um pin no mobile) ─────── */
.h-pin-popup {
  position: absolute; bottom: 10px; left: 12px; right: 12px;
  z-index: 800; animation: popupSlideUp 0.22s ease;
}
@keyframes popupSlideUp {
  from { opacity:0; transform: translateY(12px); }
  to   { opacity:1; transform: translateY(0); }
}
.h-pin-popup-inner {
  background: var(--white); border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18); overflow: hidden;
  position: relative;
}
.h-pin-popup-close {
  position: absolute; top: 10px; right: 10px; z-index: 1;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--gray-100); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-600);
}
.h-pin-popup-card {
  display: flex; align-items: center; gap: 12px;
  padding: 16px; cursor: pointer;
}
.h-pin-popup-card:active { background: var(--gray-50); }

/* ── Bottom tab bar (mobile only, hidden on desktop) ─────────── */
.h-mobile-tabs { display: none; }

/* ── Responsive mapa ─────────────────────────────────────────── */
@media (max-width: 900px) {
  /* Keep full-height locked layout on mobile */
  .h-map-wrapper { height: 100vh; overflow: hidden; }

  /* Search bar — two rows: search field then scrollable pills */
  .h-search-bar-top { padding: 10px 14px 0; }
  .h-search-bar-inner { flex-wrap: nowrap; gap: 8px; align-items: center; }
  .h-back-btn { padding: 7px 10px; font-size: 12px; }
  .h-search-bar-field { flex: 1; min-width: 0; }
  .h-search-bar-field input { min-width: 0; width: 100%; }
  .h-search-bar-cats {
    display: none; /* hidden in main row; shown as separate scrollable row below */
  }
  /* Pills row as second line */
  .h-search-bar-top::after { display: none; }
  .h-search-bar-pills-row {
    display: flex; gap: 6px; overflow-x: auto;
    padding: 8px 14px 10px;
    scrollbar-width: none; -ms-overflow-style: none;
  }
  .h-search-bar-pills-row::-webkit-scrollbar { display: none; }
  .h-filter-pill { white-space: nowrap; flex-shrink: 0; font-size: 12px; padding: 5px 12px; }

  /* Layout fills remaining space */
  .h-map-layout {
    position: relative; flex: 1; min-height: 0;
    flex-direction: row; /* override any column */
  }

  /* List panel — absolute, fills layout */
  .h-map-list {
    position: absolute; inset: 0; bottom: 60px;
    width: 100%; max-width: 100%;
    overflow: hidden; border-right: none;
    display: flex; flex-direction: column;
    background: var(--white);
    transition: opacity 0.22s ease, transform 0.22s ease;
    z-index: 2;
  }
  .h-map-list.h-panel-hidden {
    opacity: 0; pointer-events: none; transform: translateX(-16px);
  }
  #hMapListCards {
    flex: 1; overflow-y: auto; padding: 8px 12px 20px;
    -webkit-overflow-scrolling: touch;
  }

  /* Map column — absolute, fills layout, hidden by default on mobile */
  .h-map-col {
    display: block;
    position: absolute; inset: 0; bottom: 60px;
    width: 100%; height: auto;
    opacity: 0; pointer-events: none;
    transform: translateX(16px);
    transition: opacity 0.22s ease, transform 0.22s ease;
    z-index: 1;
  }
  .h-map-col.h-panel-visible {
    opacity: 1; pointer-events: all; transform: translateX(0); z-index: 3;
  }

  /* Bottom tab bar */
  .h-mobile-tabs {
    display: flex;
    position: absolute; bottom: 0; left: 0; right: 0; height: 60px;
    background: var(--white); border-top: 1px solid var(--gray-200);
    box-shadow: 0 -4px 16px rgba(0,0,0,0.07);
    z-index: 10;
  }
  .h-mobile-tab {
    flex: 1; display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 4px;
    font-size: 11px; font-weight: 600; letter-spacing: 0.3px;
    color: var(--gray-400); background: transparent; border: none;
    cursor: pointer; transition: color 0.15s; position: relative;
  }
  .h-mobile-tab svg { stroke: var(--gray-400); transition: stroke 0.15s; }
  .h-mobile-tab.active { color: var(--black); }
  .h-mobile-tab.active svg { stroke: var(--black); }
  .h-mobile-tab.active::after {
    content: ''; position: absolute; top: 0; left: 25%; right: 25%;
    height: 2px; background: var(--black); border-radius: 0 0 2px 2px;
  }

  /* List header compact */
  .h-map-list-header { padding: 10px 14px 8px; }
  .h-map-count { font-size: 12px; }
}

@media (max-width: 600px) {
  .h-search-bar-top { padding: 8px 12px; }
  .h-search-bar-pills-row { padding-left: 12px; padding-right: 12px; margin: 0 -12px; }
}

/* ── New Planity-style detail page ──────────────────────────── */
.h-det-new { display: flex; flex-direction: column; min-height: 100vh; padding-top: 64px; }

.h-det-topbar {
  position: sticky; top: 68px; z-index: 90;
  background: white; border-bottom: 1px solid var(--gray-200);
  display: flex; align-items: center; gap: 12px; padding: 0 24px; height: 52px;
}
.h-det-topbar-back {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px;
  border: 1px solid var(--gray-200); background: white;
  cursor: pointer; color: var(--black); flex-shrink: 0;
  transition: background 0.15s;
}
.h-det-topbar-back:hover { background: var(--gray-100); }
.h-det-tabs-row { display: flex; gap: 0; flex: 1; }
.h-det-tab {
  padding: 0 16px; height: 52px; border: none; background: transparent;
  font-size: 14px; font-weight: 500; color: var(--gray-400); cursor: pointer;
  border-bottom: 2px solid transparent; transition: all 0.15s;
  white-space: nowrap;
}
.h-det-tab:hover { color: var(--black); }
.h-det-tab.active { color: var(--black); font-weight: 600; border-bottom-color: var(--black); }
.h-det-book-btn {
  flex-shrink: 0; padding: 9px 20px; border-radius: var(--radius-full);
  font-size: 13px;
}

.h-det-cover {
  height: 240px; position: relative;
  display: flex; align-items: flex-end;
}
.h-det-cover-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.1) 60%);
}
.h-det-cover-content {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 14px;
  padding: 20px 24px; width: 100%;
}
.h-det-cover-avatar {
  width: 52px; height: 52px; border-radius: 12px;
  background: white; color: var(--black);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800; flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.h-det-cover-name { font-size: 22px; font-weight: 800; color: white; margin-bottom: 4px; }
.h-det-cover-addr { font-size: 13px; color: rgba(255,255,255,0.7); display: flex; align-items: center; gap: 4px; margin-bottom: 4px; }
.h-det-cover-rating { font-size: 13px; color: rgba(255,255,255,0.85); display: flex; align-items: center; gap: 4px; font-weight: 600; }

.h-det-body { flex: 1; }
.h-det-tab-panel { max-width: 720px; margin: 0 auto; padding: 0 0 80px; }
.h-det-body-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px 14px; border-bottom: 1px solid var(--gray-100);
}
.h-det-body-header h2 { font-size: 17px; font-weight: 700; }
.h-det-rating-badge { display: flex; align-items: center; gap: 6px; }
.h-det-rating-badge strong { font-size: 20px; }
.h-det-rating-badge span { color: var(--gray-400); font-size: 14px; }

/* Accordion */
.h-acc-group { border-bottom: 1px solid var(--gray-100); }
.h-acc-header {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; background: white; border: none; cursor: pointer;
  font-size: 15px; font-weight: 600; color: var(--black); text-align: left;
  transition: background 0.15s;
}
.h-acc-header:hover { background: var(--gray-50); }
.h-acc-header svg { transition: transform 0.2s; flex-shrink: 0; }
.h-acc-header.open svg { transform: rotate(180deg); }
.h-acc-body { display: none; }
.h-acc-body.open { display: block; }
.h-svc-row {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 24px; border-top: 1px solid var(--gray-50);
  cursor: pointer; transition: background 0.15s;
}
.h-svc-row:hover { background: var(--gray-50); }
.h-svc-row-info { flex: 1; min-width: 0; }
.h-svc-row-name { font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.h-svc-row-meta { font-size: 12px; color: var(--gray-400); }
.h-svc-row-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.h-svc-row-price { font-size: 15px; font-weight: 700; }

/* Reviews */
.h-reviews-list { display: flex; flex-direction: column; }
.h-review-card { padding: 20px 24px; border-bottom: 1px solid var(--gray-100); }
.h-review-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.h-review-author { display: flex; align-items: center; gap: 10px; }
.h-review-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--gray-200); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.h-review-stars { display: flex; gap: 2px; }
.h-review-text { font-size: 14px; color: var(--gray-600); line-height: 1.6; }
.h-review-reply { margin-top: 10px; padding: 10px 14px; background: var(--gray-50); border-radius: 8px; font-size: 13px; color: var(--gray-500); border-left: 3px solid var(--gray-300); }

/* About */
.h-det-about-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.h-info-card { border: 1px solid var(--gray-100); border-radius: 0; overflow: hidden; }
.h-info-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; border-bottom: 1px solid var(--gray-50); font-size: 14px; gap: 12px; }
.h-info-row:last-child { border-bottom: none; }

@media (max-width: 720px) {
  .h-det-new { padding-top: 56px; }
  .h-det-topbar { top: 56px; padding: 0 14px; }
  .h-det-tab { padding: 0 10px; font-size: 13px; }
  .h-det-book-btn { padding: 8px 14px; font-size: 12px; }
  .h-det-cover { height: 200px; }
  .h-det-cover-name { font-size: 18px; }
  .h-det-tab-panel { padding-bottom: 60px; }
  .h-det-body-header { padding: 16px 16px 12px; }
  .h-acc-header { padding: 14px 16px; }
  .h-svc-row { padding: 14px 16px; }
  .h-review-card { padding: 16px; }
  .h-det-about-wrap { grid-template-columns: 1fr; }
  .h-info-row { padding: 12px 16px; }
}
