/* =========================================
   1. IMPORTS & VARIÁVEIS GLOBAIS
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&family=Parkinsans:wght@300..800&display=swap');

:root {
  /* Cores da Marca */
  --brand: #e2725b;
  --brand-strong: #d45f47;
  --ink: #1f2937;
  --muted: #6b7280;
  --bg: #f3f4f6;
  --white: #fff;

  /* UI Elements */
  --radius: 14px;
  --shadow: 0 6px 18px rgba(15, 23, 42, .06);
  --line: #e5e7eb;
  --chip: #fff0ec;
  --chip-border: #ffd8cf;

  /* Animações */
  --transition: 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* =========================================
   2. RESET & BASE
   ========================================= */
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Nunito', system-ui, Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(226, 114, 91, .14), transparent 55%),
    radial-gradient(circle at bottom right, rgba(252, 211, 77, .15), transparent 55%),
    var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* =========================================
   3. HEADER & NAVEGAÇÃO
   ========================================= */
header {
  display: flex;
  justify-content: center;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 3px rgba(15, 23, 42, .06);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}

nav {
  max-width: 1320px;
  width: 100%;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* ===== Header agrupado (para o hambúrguer sem jogar perfil no menu) ===== */
header nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.pp-nav-left{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}
.pp-nav-right{
  display:flex;
  align-items:center;
  gap:10px;
  flex-shrink:0;
}
ul.pp-nav-links{
  display:flex;
  align-items:center;
  gap:24px;
  list-style:none;
  margin:0;
  padding:0;
}

/* Botão hambúrguer */
.pp-menu-toggle{
  width:23px;
  height:23px;
  border-radius:10px;
  border:1px solid rgba(229,231,235,1);
  background:#fff;
  color:#374151;
  cursor:pointer;
  display:none;
  align-items:center;
  justify-content:center;
}
.pp-menu-toggle i{ font-size:1.1rem; }

/* Painel dropdown do menu no mobile */
.pp-mobile-menu{
  display:none;
  position:absolute;
  left:12px;
  right:12px;
  top:64px;
  background:#fff;
  border:1px solid rgba(229,231,235,1);
  border-radius:16px;
  box-shadow:0 14px 40px rgba(15,23,42,.12);
  padding:10px;
  z-index:9999;
}
.pp-mobile-menu a{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 12px;
  border-radius:12px;
  text-decoration:none;
  color:#111827;
  font-weight:600;
}
.pp-mobile-menu a:hover{ background:#f3f4f6; }
.pp-mobile-menu .pp-mobile-sep{
  height:1px;
  background:#e5e7eb;
  margin:8px 6px;
}
header.pp-menu-open .pp-mobile-menu{ display:block; }

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--brand);
  font-family: 'Parkinsans', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}
.logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.15));
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
}

nav ul a {
  font-family: 'Parkinsans', sans-serif;
  font-weight: 600;
  color: #4b5563;
  font-size: 0.98rem;
  transition: color var(--transition), transform .15s;
}
nav ul a:hover {
  color: var(--brand);
  transform: translateY(-1px);
}

.pill {
  color: var(--brand);
  background: var(--chip);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  transition: background var(--transition), box-shadow var(--transition), transform .15s;
  box-shadow: 0 4px 10px rgba(226, 114, 91, 0.15);
}
.pill:hover {
  background: #ffe4de;
  box-shadow: 0 6px 14px rgba(226, 114, 91, 0.25);
  transform: translateY(-1px);
}

/* =========================================
   4. USER MENU & DROPDOWN
   ========================================= */
.user-menu { position: relative; }

.user-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 6px 12px 6px 6px;
  border-radius: 40px;
  transition: background var(--transition), box-shadow var(--transition), border-color var(--transition), transform .15s;
  border: 1px solid transparent;
}
.user-trigger:hover {
  background: #fff;
  border-color: var(--line);
  box-shadow: 0 8px 18px rgba(15, 23, 42, .08);
  transform: translateY(-1px);
}

.user-avatar-img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  background: #eee;
  display: none;
}

.user-initials-badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--chip);
  color: var(--brand);
  border: 1px solid var(--chip-border);
  display: none;
  place-items: center;
  font-weight: 800;
  font-size: 1.1rem;
}

.user-trigger strong {
  font-size: 0.98rem;
  color: #374151;
}

.user-trigger svg {
  width: 12px;
  height: 12px;
  fill: #9ca3af;
  transition: transform .2s;
}

.user-menu:hover .user-trigger svg { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.18);
  width: 230px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.18s ease-out;
  z-index: 30;
  overflow: hidden;
  border: 1px solid var(--line);
}
.dropdown::before{
  content:'';
  position:absolute;
  top:-20px;
  left:0;
  width:100%;
  height:20px;
  background:transparent;
}
.user-menu:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: #4b5563;
  font-weight: 600;
  font-size: 0.85rem;
  transition: background var(--transition), color var(--transition), padding-left .15s;
}
.dropdown a:hover {
  background: #f9fafb;
  color: var(--brand);
  padding-left: 18px;
}
.dropdown i { width: 16px; text-align: center; }

/* =========================================
   5. LAYOUT PRINCIPAL
   ========================================= */
.wrap {
  max-width: 1320px;
  margin: 24px auto 32px;
  padding: 0 24px;
}

.hello-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.hello {
  color: #1f2937;
  font-size: 1.4rem;
  font-family: 'Parkinsans', sans-serif;
  font-weight: 700;
}
.hello strong { color: var(--brand); }

.mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.mini-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  border: 1px solid rgba(148, 163, 184, 0.18);
}
.mini-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, .16);
  border-color: var(--chip-border);
}

.mini-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fff, var(--chip));
  display: grid;
  place-items: center;
  color: var(--brand);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.mini-text b {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 2px;
}
.mini-text small {
  color: #6b7280;
  font-size: 0.8rem;
}

/* Grid Principal */
.cols {
  display: grid;
  grid-template-columns: 240px minmax(0, 2fr) 360px;
  gap: 24px;
}

/* Card Genérico */
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
}
.card .hd {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  color: #111;
  font-family: 'Parkinsans', sans-serif;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.95rem;
}

.filters {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chip-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #e5e7eb;
  color: #4b5563;
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  font-size: 0.85rem;
  width: 100%;
}
.chip-btn i { font-size: 0.9rem; }

.chip-btn:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  transform: translateY(-1px);
}
.chip-btn.active {
  background: var(--chip);
  color: var(--brand);
  border-color: var(--chip-border);
  box-shadow: 0 6px 14px rgba(226, 114, 91, .25);
}

.select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-family: 'Nunito', sans-serif;
  color: #374151;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background .2s;
  font-size: 0.9rem;
  background: #f9fafb;
}
.select:focus {
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(226, 114, 91, 0.18);
}

.field-label {
  display: block;
  font-size: 0.8rem;
  color: #6b7280;
  margin-bottom: 4px;
}
.field-help {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 4px;
}

.feed {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* =========================================
   6. CARD DO HOST (FEED)
   ========================================= */
.host {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  grid-template-columns: 190px 1fr 130px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  border: 1px solid rgba(148, 163, 184, 0.24);
  min-height: 120px;
}
.host:hover {
  transform: translateY(-3px);
  border-color: var(--chip-border);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.18);
}

.host .photo-container {
  height: 160px;
  background: #f3f4f6;
  position: relative;
  overflow: hidden;
}

.photo-scroll {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  height: 100%;
  width: 100%;
  scrollbar-width: none;
}
.photo-scroll::-webkit-scrollbar { display: none; }

.photo-scroll img {
  flex-shrink: 0;
  min-width: 100%;
  height: 100%;
  object-fit: cover;
  scroll-snap-align: center;
}

.photo-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(15, 23, 42, 0.75);
  color: #fff;
  font-size: 0.65rem;
  padding: 3px 7px;
  border-radius: 999px;
  font-weight: 600;
  pointer-events: none;
  backdrop-filter: blur(6px);
}

.host .body {
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.host .body h3 {
  margin: 0 0 3px;
  font: 700 1rem 'Parkinsans', sans-serif;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 6px;
}

.host .body h3 span {
  font-size: 0.78rem;
  color: #6b7280;
  font-weight: 400;
  font-family: 'Nunito', sans-serif;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: #4b5563;
  font-size: 0.72rem;
  margin-top: 2px;
}
.meta .tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f3f4f6;
  border-radius: 999px;
  padding: 2px 8px;
  font-weight: 600;
  color: #555;
}

.rating {
  color: #f59e0b;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 3px;
}
.rating-count { color: #6b7280; font-weight: 500; }

.meta-details {
  margin-top: 6px;
  font-size: 0.7rem;
  color: #6b7280;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.meta-details div { display: flex; align-items: center; gap: 6px; }
.meta-details i { color: #9ca3af; width: 12px; text-align: center; }

.published { font-size: 0.68rem; color: #9ca3af; }

.about-text {
  margin-top: 6px;
  font-size: 0.75rem;
  color: #6b7280;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.host .cta {
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10px;
  gap: 8px;
  background: #fafafa;
}

.price {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--brand);
}
.price small {
  font-size: 0.72rem;
  color: #6b7280;
  font-weight: 400;
}

.btn {
  all: unset;
  display: inline-block;
  background: #fff;
  color: var(--brand);
  border: 1px solid var(--brand);
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  font-size: 0.74rem;
  transition: all 0.18s;
  min-width: 90px;
}
.btn:hover {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 14px rgba(226, 114, 91, 0.4);
  transform: translateY(-1px);
}
.btn.btn-chat {
  border-color: #e5e7eb;
  background: #fff;
  color: #4b5563;
}
.btn.btn-chat:hover {
  border-color: #d1d5db;
  background: #f9fafb;
  color: #111827;
}

.empty {
  padding: 40px 24px;
  text-align: center;
  color: #6b7280;
  font-size: 0.95rem;
}
.empty i {
  display: block;
  font-size: 2.3rem;
  margin-bottom: 8px;
  color: #d1d5db;
}

.help { padding: 18px; }
.help h4 {
  margin: 0 0 6px;
  font-weight: 700;
  color: #111;
  font-size: 0.95rem;
}
.help p {
  margin: 0 0 10px;
  color: #4b5563;
  font-size: 0.85rem;
  line-height: 1.4;
}
.help a {
  color: var(--brand);
  font-weight: 700;
  font-size: 0.85rem;
}
.help a:hover { text-decoration: underline; }

/* =========================================
   6.1 MINHAS RESERVAS (CARD DIREITO)
   ========================================= */
.tutor-bookings-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}
.tutor-bookings-filter{
  display:flex;
  gap:6px;
}
.tb-filter-btn{
  border-radius:999px;
  padding:3px 10px;
  font-size:0.7rem;
  border:1px solid #e5e7eb;
  background:#fff;
  cursor:pointer;
  color:#6b7280;
  font-weight:600;
  transition:all .15s;
}
.tb-filter-btn:hover{ background:#f3f4f6; }
.tb-filter-btn.active{
  background:#fee2e2;
  border-color:#f97373;
  color:#b91c1c;
  box-shadow:0 1px 4px rgba(248,113,113,.4);
}

/* Lista */
.tutor-bookings {
  max-height: 260px;
  overflow-y: auto;
  padding: 4px 0;
  scrollbar-width: thin;
}
.tutor-bookings::-webkit-scrollbar { width: 6px; }
.tutor-bookings::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 999px;
}

/* Seus cards de reserva detalhados (do HTML) */
.tutor-booking-row{
  padding:10px 12px;
  border-bottom:1px solid #e5e7eb;
  font-size:0.85rem;
  display:flex;
  flex-direction:column;
  gap:4px;
}
.tutor-booking-row:last-child{ border-bottom:none; }

.tb-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}
.tb-host{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
}
.tb-avatar{
  width:40px;
  height:40px;
  border-radius:999px;
  object-fit:cover;
  flex-shrink:0;
}
.tb-host-text{
  display:flex;
  flex-direction:column;
  gap:2px;
}
.tb-name{ font-weight:600; font-size:0.9rem; }
.tb-city{
  font-size:0.78rem;
  color:#6b7280;
  display:flex;
  align-items:center;
  gap:4px;
}
.tb-status-pill{
  border-radius:999px;
  padding:3px 10px;
  font-size:0.75rem;
  font-weight:700;
  white-space:nowrap;
}

.tb-meta{
  margin-left:48px;
  display:flex;
  flex-direction:column;
  gap:2px;
  font-size:0.78rem;
  color:#4b5563;
}
.tb-dates{ font-weight:500; }
.tb-pets{ display:flex; align-items:center; gap:4px; }
.tb-amount{ font-weight:500; }

.tb-actions{
  margin-left:48px;
  margin-top:6px;
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}
.tb-btn{
  border-radius:999px;
  padding:4px 10px;
  font-size:0.75rem;
  font-weight:600;
  cursor:pointer;
  border:1px solid #e5e7eb;
  background:#fff;
  color:#374151;
  white-space:nowrap;
}
.tb-btn-danger{
  border-color:#ef4444;
  color:#ef4444;
  background:#fef2f2;
}
.tb-btn-pay{
  border-color:#10b981;
  color:#059669;
  background:#ecfdf5;
}

/* Foto do host no card do feed (do HTML) */
.host-header{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:6px;
}
.host-header-avatar{
  width:40px;
  height:40px;
  border-radius:999px;
  object-fit:cover;
  flex-shrink:0;
}
.host-header-info h3{
  margin:0;
  font-size:1rem;
}
.host-header-info span{
  display:block;
  font-size:0.85rem;
  color:#6b7280;
}

/* =========================================
   7. MODAIS
   ========================================= */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  background: rgba(15, 23, 42, .55);
  z-index: 50;
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.2s;
}
.modal.show { display: grid; opacity: 1; }

/* ✅ CORREÇÃO PRINCIPAL: modal precisa permitir scroll vertical do conteúdo */
.modal .box {
  background: #fff;
  border-radius: 20px;
  max-width: 800px;
  width: 92%;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.4);
  max-height: 90vh;             /* limita no viewport */
  overflow: auto;               /* permite rolar */
  -webkit-overflow-scrolling: touch;
  transform: translateY(20px);
  transition: transform 0.2s;
}
.modal.show .box { transform: translateY(0); }

.box .box-hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(226, 114, 91, .05), #fff);
  position: sticky;
  top: 0;
  z-index: 5;
}
.box .box-hd h3 { margin: 0; font: 700 1.25rem 'Parkinsans', sans-serif; }
.box .box-bd { padding: 22px 24px; }

.x {
  cursor: pointer;
  border: none;
  background: transparent;
  font-size: 22px;
  color: #9ca3af;
  transition: color 0.2s, transform .15s;
}
.x:hover { color: #111; transform: scale(1.05); }

.modal-city {
  font-size: 0.85rem;
  font-weight: 500;
  color: #6b7280;
  margin-left: 6px;
}

.modal-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
  align-items: flex-start;
}

/* Carrossel do seu HTML */
.modal-photos{
  position:relative;
  border-radius:16px;
  overflow:hidden;
  background:#000;
}
.modal-photo{
  width:100%;
  max-height:320px;
  object-fit:cover;
  display:block;
}
.modal-photo-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:32px;
  height:32px;
  border-radius:999px;
  border:none;
  background:rgba(15,23,42,.8);
  color:#f9fafb;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  padding:0;
}
.modal-photo-arrow.left{ left:10px; }
.modal-photo-arrow.right{ right:10px; }
.modal-photo-arrow i{ font-size:0.9rem; }
.modal-photo-counter{
  position:absolute;
  right:12px;
  bottom:10px;
  padding:3px 10px;
  border-radius:999px;
  background:rgba(15,23,42,.85);
  color:#e5e7eb;
  font-size:0.8rem;
}

/* Foto do host no modal */
.modal-host-header{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:12px;
}
.modal-host-avatar{
  width:44px;
  height:44px;
  border-radius:999px;
  object-fit:cover;
  flex-shrink:0;
}
.modal-host-name{ font-weight:600; font-size:0.95rem; }
.modal-host-city{ font-size:0.85rem; color:#6b7280; }

.modal-content {
  font-size: 0.9rem;
  color: #4b5563;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-about { margin: 0 0 8px; line-height: 1.5; }

.modal-infos {
  font-size: 0.85rem;
  color: #6b7280;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.modal-infos div { display: flex; align-items: center; gap: 6px; }
.modal-infos i { color: #9ca3af; }

/* Extras do modal: qtd + pets */
.modal-field{
  display:flex;
  flex-direction:column;
  gap:4px;
  font-size:.85rem;
}
.modal-field label{
  font-weight:600;
  color:#374151;
}
.modal-extra-row{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:10px;
}
.modal-field input[type="number"]{
  border-radius:8px;
  border:1px solid #e5e7eb;
  padding:6px 10px;
  font-size:.9rem;
}
.pets-checkbox-list{
  display:flex;
  flex-direction:column;
  gap:6px;
  max-height:120px;
  overflow:auto;
  border:1px solid #e5e7eb;
  border-radius:8px;
  padding:8px;
  background:#fff;
}
.pets-checkbox-list label{
  font-size:.85rem;
  display:flex;
  gap:6px;
  align-items:center;
}
.pets-checkbox-list small{
  font-size:.8rem;
  color:#6b7280;
}

.modal-reserve-box {
  margin-top: 12px;
  padding: 10px 12px;
  background: #f9fafb;
  border-radius: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.modal-date-field label {
  display: block;
  font-size: 0.75rem;
  color: #6b7280;
  margin-bottom: 4px;
}

.modal-date-field input[type="date"] {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  font-family: 'Nunito', sans-serif;
  font-size: 0.85rem;
  outline: none;
  background: #fff;
}
.modal-date-field input[type="date"]:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(226, 114, 91, 0.14);
}

.modal-error {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  color: #b91c1c;
  margin-top: 4px;
}

.modal-footer {
  border-top: 1px solid var(--line);
  padding: 14px 24px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.modal-price { font-size: 1.1rem; font-weight: 800; color: var(--brand); }
.modal-actions { display: flex; gap: 8px; }

.btn.btn-primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn.btn-primary:hover { background: var(--brand-strong); border-color: var(--brand-strong); }

/* Modal de Exclusão (Delete) */
.pp-wrap {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 60;
  backdrop-filter: blur(6px);
}

.pp-card {
  width: min(420px, 92vw);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 26px 80px rgba(15, 23, 42, .45);
  overflow: hidden;
  transform: scale(0.95);
  opacity: 0;
  transition: all 0.2s;
}

.pp-card.show { transform: scale(1); opacity: 1; }

.pp-card header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid #fee2e2;
  background: #fff5f5;
}

.pp-card header .ic {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fee2e2;
  color: #b91c1c;
  font-weight: 900;
  font-size: 0.9rem;
}

.pp-card h4 {
  margin: 0;
  font-weight: 700;
  color: #991b1b;
  font-size: 1.1rem;
}

.pp-body {
  padding: 20px;
  font-size: .95rem;
  color: #374151;
}
.pp-body p { margin: 0 0 12px; }

.pp-body input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-family: 'Nunito', sans-serif;
  font-size: .95rem;
  margin-top: 8px;
  outline: none;
}
.pp-body input:focus { border-color: #b91c1c; }

.pp-ft {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding: 16px 20px;
  background: #f9fafb;
  border-top: 1px solid #f3f4f6;
}

.pp-btn {
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 700;
  border: 1px solid #d1d5db;
  background: #fff;
  cursor: pointer;
  font-size: .9rem;
  transition: all 0.2s;
}
.pp-btn:hover { background: #f3f4f6; }

.pp-ok { background: #dc2626; color: #fff; border-color: #dc2626; }
.pp-ok:hover { background: #b91c1c; }

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #111827;
  color: #fff;
  padding: 12px 24px;
  border-radius: 30px;
  box-shadow: 0 14px 35px rgba(15, 23, 42, .6);
  font-size: .9rem;
  display: none;
  z-index: 70;
  font-weight: 600;
}

/* =========================================
   8. CHAT WIDGET
   ========================================= */
.pp-chat-fab {
  position: fixed;
  right: 25px;
  bottom: 25px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(226, 114, 91, 0.4);
  z-index: 120;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.pp-chat-fab:hover {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 12px 28px rgba(226, 114, 91, 0.6);
}
.pp-chat-fab i { font-size: 1.6rem; }

.pp-badge {
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 20px;
  background: #dc2626;
  color: #fff;
  border-radius: 50%;
  font-size: 0.7rem;
  display: none;
  place-items: center;
  justify-content: center;
  border: 2px solid #fff;
  font-weight: 800;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  animation: pulseBadge 2s infinite;
}
.pp-badge.show { display: flex; }

@keyframes pulseBadge {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.pp-chat-widget {
  position: fixed;
  right: 25px;
  bottom: 100px;
  width: 420px;
  max-height: 600px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.03);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 130;
  font-family: 'Nunito', sans-serif;
  animation: chatSlideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes chatSlideUp {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.pp-chat-header {
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(212, 95, 71, 0.2);
  z-index: 2;
}

.pp-chat-header strong {
  font-family: 'Parkinsans', sans-serif;
  font-size: 1.1rem;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: #fff;
}

#ppChatSubtitle {
  display: block;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 2px;
  font-weight: 400;
}

.pp-chat-close {
  border: none;
  background: rgba(255, 255, 255, 0.2);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 0.9rem;
  cursor: pointer;
  color: #fff;
  display: grid;
  place-items: center;
  transition: background 0.2s;
}
.pp-chat-close:hover { background: rgba(255, 255, 255, 0.35); }

.pp-chat-body {
  display: grid;
  grid-template-columns: 140px 1fr;
  height: 450px;
  overflow: hidden;
  background: #fff;
}

.pp-chat-conversations {
  background: #f8f9fa;
  border-right: 1px solid #e5e7eb;
  overflow-y: auto;
  padding: 8px;
  scrollbar-width: thin;
}

.pp-chat-conversations::-webkit-scrollbar,
.pp-chat-messages::-webkit-scrollbar { width: 6px; }

.pp-chat-conversations::-webkit-scrollbar-track,
.pp-chat-messages::-webkit-scrollbar-track { background: transparent; }

.pp-chat-conversations::-webkit-scrollbar-thumb,
.pp-chat-messages::-webkit-scrollbar-thumb {
  background-color: #d1d5db;
  border-radius: 10px;
}

.pp-chat-conv-item {
  border-radius: 10px;
  padding: 12px 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.2s;
  border-left: 3px solid transparent;
  margin-bottom: 4px;
  position: relative;
  padding-right: 26px;
}
.pp-chat-conv-item:hover {
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
.pp-chat-conv-item.active {
  background: #fff;
  border-left-color: var(--brand);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.pp-chat-conv-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #374151;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pp-chat-conv-role {
  font-size: 0.65rem;
  color: var(--brand);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.pp-chat-conv-meta { font-size: 0.7rem; color: #9ca3af; }

.pp-chat-thread {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  background-color: #fff9f8;
  background-image: radial-gradient(rgba(226, 114, 91, 0.15) 1px, transparent 1px);
  background-size: 20px 20px;
  overflow: hidden;
}

.pp-chat-placeholder {
  display: none;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  text-align: center;
  padding: 20px;
}
.pp-chat-placeholder i {
  font-size: 3rem;
  margin-bottom: 15px;
  opacity: 0.3;
}
.pp-chat-placeholder p { font-size: 0.9rem; }

.pp-chat-thread.no-chat .pp-chat-messages,
.pp-chat-thread.no-chat .pp-chat-input-area { display: none !important; }
.pp-chat-thread.no-chat .pp-chat-placeholder { display: flex; }

.pp-chat-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}

.pp-chat-messages:empty::before {
  content: "👋 Selecione ou inicie uma conversa";
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}

.pp-chat-msg-row {
  display: flex;
  width: 100%;
  animation: fadeInMsg 0.2s ease-out;
}
@keyframes fadeInMsg {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
.pp-chat-msg-row.me { justify-content: flex-end; }

.pp-chat-bubble {
  max-width: 80%;
  padding: 10px 14px;
  font-size: 0.9rem;
  line-height: 1.45;
  position: relative;
  word-wrap: break-word;
  word-break: break-word;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.pp-chat-bubble.me {
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: #fff;
  border-radius: 16px 16px 2px 16px;
}
.pp-chat-bubble.other {
  background: #fff;
  color: #1f2937;
  border: 1px solid #eee;
  border-radius: 16px 16px 16px 2px;
}

.pp-chat-time {
  font-size: 0.65rem;
  margin-top: 4px;
  text-align: right;
  opacity: 0.8;
  font-weight: 500;
}
.pp-chat-bubble.other .pp-chat-time { color: #9ca3af; }

.pp-chat-input-area {
  display: flex;
  padding: 12px;
  gap: 10px;
  border-top: 1px solid #e5e7eb;
  background: #fff;
  flex-shrink: 0;
}
.pp-chat-input-area input {
  flex: 1;
  border-radius: 24px;
  border: 1px solid #e5e7eb;
  padding: 10px 16px;
  font-size: 0.9rem;
  outline: none;
  font-family: 'Nunito', sans-serif;
  background: #f9fafb;
  transition: all 0.2s;
}
.pp-chat-input-area input:focus {
  background: #fff;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(226, 114, 91, 0.1);
}
.pp-chat-input-area button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.pp-chat-input-area button:hover {
  background: var(--brand-strong);
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(226, 114, 91, 0.3);
}

/* =========================================
   9. FOOTER
   ========================================= */
footer {
  margin-top: 32px;
  background: #fff;
  border-top: 1px solid var(--line);
}

.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 14px 24px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
  color: #6b7280;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-links a {
  color: #6b7280;
  text-decoration: none;
  font-weight: 500;
}
.footer-links a:hover {
  text-decoration: underline;
  color: var(--brand);
}

/* =========================================
   10. RESPONSIVIDADE (MEDIA QUERIES)
   ========================================= */
@media (max-width: 1024px) {
  .cols { grid-template-columns: 1fr 280px; }
  .sidebar-left { display: none; }
}

/* Header: esconder links e mostrar hambúrguer */
@media (max-width: 860px){
  ul.pp-nav-links{ display:none; }
  .pp-menu-toggle{ display:flex; }
  header{ position:relative; }
}

/* FIX 1: NÃO esconder sidebar-right no mobile */
@media (max-width: 850px) {
  .cols {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .sidebar-left { display: none; }
  .sidebar-right { display: block; }
}

/* Modal ok em telas menores */
@media (max-width: 720px) {
  .modal .box { max-width: 100%; margin: 0 12px; }
  .modal-grid { grid-template-columns: 1fr; }
  .modal-photo { max-height: 260px; }
  .modal-footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .modal-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 600px) {
  header { padding: 0 16px; }

  .hello-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .host {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .host .photo-container { height: 190px; }
  .about-text { -webkit-line-clamp: 3; }

  .host .cta {
    border-left: none;
    border-top: 1px solid var(--line);
    flex-direction: row;
    justify-content: space-between;
    background: #fff;
    padding: 10px 14px;
    gap: 10px;
  }

  /* Chat Fullscreen Mobile + conversas visíveis */
  @media (max-width: 600px) {
  .pp-chat-widget {
    right: 12px;
    left: 12px;
    bottom: 90px;               /* sobe um pouco do FAB */
    width: auto;
    height: auto;
    max-height: 75vh;           /* NÃO tela cheia */
    border-radius: 18px;
  }

  /* mantém conversas visíveis */
  .pp-chat-body {
    grid-template-columns: 1fr;
    grid-template-rows: 140px 1fr;
    height: calc(75vh - 65px);  /* acompanha altura do widget */
  }

  .pp-chat-conversations {
    max-height: 140px;
    overflow-y: auto;
    border-bottom: 1px solid #e5e7eb;
  }

  .pp-chat-fab {
    bottom: 20px;
    right: 20px;
  }
}

  /* Modal sempre rolável no mobile */
  .modal .box {
    max-height: 92vh;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .modal-photo { max-height: 220px; }
}

/* Ajuste final no micro-mobile para não esmagar nome */
@media (max-width: 420px){
  #userName{ display:none; }
  .user-trigger svg{ display:none; }
}

/* ===== FIX: permitir clique no botão de excluir conversa no mobile ===== */
@media (max-width: 600px) {

  .pp-chat-conv-item {
    position: relative;
  }

  .pp-chat-delete {
    z-index: 10;
    pointer-events: auto;
    background: rgba(255,255,255,0.9);
  }

  .pp-chat-conversations {
    position: relative;
    z-index: 1;
  }
}
/* =====================================================
   FIX Z-INDEX — Modais acima do chat
   ===================================================== */
#ppChatDelete,
#ppCancelBooking,
#ppDelete {
  z-index: 9999 !important;
}

/* garante que o card do modal fique acima também */
#ppChatDelete .pp-card,
#ppCancelBooking .pp-card,
#ppDelete .pp-card {
  position: relative;
  z-index: 10000 !important;
}

/* =========================================
   PATCH MOBILE HEADER — logo menor + nome não some
   (colar no final do CSS)
   ========================================= */

/* Mobile geral */
@media (max-width: 600px){
  nav{
    padding: 10px 12px;   /* header mais baixo */
    gap: 10px;
  }

  /* Logo menor */
  .logo{
    font-size: 1.05rem;   /* antes 1.35rem */
    gap: 6px;
    letter-spacing: -0.02em;
  }
  .logo img{
    width: 26px;          /* antes 36px */
    height: 26px;
    filter: none;         /* opcional: deixa mais "clean" no mobile */
  }

  /* Botão hambúrguer menor (o seu está 23x23, mas o ícone está 1.1rem e "estoura") */
  .pp-menu-toggle{
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }
  .pp-menu-toggle i{
    font-size: 0.95rem;
  }

  /* Perfil: mantém e não deixa esmagar */
  .user-trigger{
    padding: 5px 10px 5px 6px;
    gap: 8px;
  }

   #userName{
    display: none !important;
  }

  /* seta pode ficar, mas menor */
  .user-trigger svg{
    display: inline-block !important;
    width: 10px;
    height: 10px;
  }
    .user-trigger{
    padding: 0 !important;
    gap: 0 !important;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    justify-content: center;
  }

  .user-trigger svg{
    display: none !important;
  }

}

/* Micro-mobile (bem pequeno): reduz mais, mas NÃO some */
@media (max-width: 420px){
  .logo{ font-size: 0.98rem; }
  .logo img{ width: 24px; height: 24px; }

  #userName{
    max-width: 70px; /* ainda aparece, só mais curto */
  }
}

/* =========================
   MODAL LEGAL (TERMOS / PRIVACIDADE)
   ========================= */
.pp-legal{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(17, 24, 39, .55);
  backdrop-filter: blur(6px);
  z-index: 999;
}

.pp-legal.show{ display: flex; }

.pp-legal__card{
  width: min(720px, 100%);
  max-height: min(72vh, 720px);
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(229, 231, 235, .9);
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
  overflow: hidden;
  transform: translateY(6px);
  opacity: 0;
  transition: transform .18s ease, opacity .18s ease;
}

.pp-legal.show .pp-legal__card{
  transform: translateY(0);
  opacity: 1;
}

.pp-legal__hd{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid #e5e7eb;
  background: rgba(255,255,255,.95);
}

.pp-legal__hd h3{
  margin: 0;
  font-family: Parkinsans, sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: #1f2937;
}

.pp-legal__x{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #fff;
  cursor: pointer;
  color: #6b7280;
  transition: transform .12s ease, border-color .2s, color .2s;
}
.pp-legal__x:hover{
  border-color: #ffd8cf;
  color: #e2725b;
  transform: translateY(-1px);
}

.pp-legal__bd{
  padding: 14px 16px 6px;
  overflow: auto;
  max-height: calc(min(72vh, 720px) - 120px);
  color: #374151;
  line-height: 1.55;
  font-size: .95rem;
}

.pp-legal__bd h4{
  margin: 10px 0 6px;
  font-size: .95rem;
  font-weight: 900;
  color: #111827;
}

.pp-legal__bd p{
  margin: 0 0 10px;
  color: #4b5563;
}

.pp-legal__bd ul{
  margin: 0 0 12px 18px;
  color: #4b5563;
}

.pp-legal__ft{
  display: flex;
  justify-content: flex-end;
  padding: 12px 16px 16px;
  border-top: 1px solid #e5e7eb;
  background: #fff;
}

.pp-legal__btn{
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 900;
  font-family: Parkinsans, sans-serif;
  background: #e2725b;
  color: #fff;
  box-shadow: 0 10px 25px rgba(226, 114, 91, .22);
  transition: transform .12s ease, background .2s;
}
.pp-legal__btn:hover{
  background: #d45f47;
  transform: translateY(-1px);
}

@media (max-width: 480px){
  .pp-legal__card{ border-radius: 16px; }
  .pp-legal__bd{ font-size: .92rem; }
}

/* =========================
   MOBILE FILTROS — bottom sheet (PATCH)
   ========================= */
.pp-filters-fab{ display:none; }
.pp-filters-overlay{ display:none; }

@media (max-width: 1024px){

  /* 1) desfaz o display:none que você colocou */
  .sidebar-left{
    display:block !important;      /* <-- isso é o principal */
  }

  /* 2) botão "Filtros" */
  .pp-filters-fab{
    display:flex;
    align-items:center;
    gap:10px;
    position:fixed;
    left:16px;
    bottom:16px;
    z-index:1400;
    border:1px solid rgba(0,0,0,.08);
    border-radius:999px;
    padding:10px 14px;
    background:#fff;
    box-shadow: 0 12px 28px rgba(0,0,0,.12);
    font-weight:800;
    color: var(--ink);
  }
  .pp-filters-fab i{ color: var(--brand); }

  /* 3) overlay */
  .pp-filters-overlay{
    position:fixed;
    inset:0;
    background:rgba(15,23,42,.35);
    z-index:1390;
    opacity:0;
    pointer-events:none;
    transition: opacity .2s ease;
  }

  /* 4) painel (o seu card de filtros) vira bottom sheet */
  #ppFiltersPanel{
    position:fixed;
    left:12px;
    right:12px;
    bottom:12px;
    z-index:1410;

    max-height:78vh;
    overflow:auto;

    border-radius:18px;
    box-shadow: 0 16px 40px rgba(0,0,0,.18);

    transform: translateY(120%);
    transition: transform .22s ease;
  }

  /* 5) aberto */
  body.pp-filters-open #ppFiltersPanel{
    transform: translateY(0);
  }
  body.pp-filters-open .pp-filters-overlay{
    display:block;
    opacity:1;
    pointer-events:auto;
  }

  /* 6) evita briga com o chat FAB (opcional) */
  .pp-chat-fab{ bottom: 16px; right: 16px; }
}

