/* ============================================================
   Modern App — Global Design System
   Brand Color: #69B39F (Mint Green / Prev.Pet)
   ============================================================ */

:root {
  --color-brand:        #69B39F;
  --color-brand-dark:   #4e9484;
  --color-brand-light:  #ddecd7;
  --color-bg:           #EDEFF2;
  --color-surface:      #ffffff;
  --color-text:         #183153;
  --color-text-muted:   #6c757d;
  --color-danger:       #b81010;
  --color-warning:      #f7980a;
  --color-info:         #3dacf7;
  --radius-sm:          8px;
  --radius-md:          16px;
  --radius-pill:        100px;
  --shadow-card:        0 2px 12px rgba(0,0,0,0.08);
  --shadow-nav:         0 -2px 16px rgba(0,0,0,0.10);
  --bottom-nav-height:  64px;
  --header-height:      64px;
  --font-main:          'Montserrat', 'Inter', 'Segoe UI', Roboto, sans-serif;
}

/* ---- Typography ---- */
body {
  font-family: var(--font-main);
  padding-top: var(--header-height);
}

/* Full-screen map page — disable body scroll globally */
body.page-prestadores {
  overflow: hidden;
  padding-top: 0;
}

/* ---- Fixed Header ---- */
.cabecalho.fixed-top {
  z-index: 1030;
  background-color: #fff;
  /* Bootstrap fixed-top already sets: position:fixed; top:0; right:0; left:0 */
}

/* ---- Standardised Button ---- */
.btn-app {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background-color 0.18s, box-shadow 0.18s, transform 0.1s;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(105, 179, 159, 0.25);
  width: 100%;
}

.btn-app:active {
  transform: scale(0.97);
}

.btn-app-primary {
  background-color: var(--color-brand);
  color: #fff;
}

.btn-app-primary:hover {
  background-color: var(--color-brand-dark);
  color: #fff;
  box-shadow: 0 4px 14px rgba(105, 179, 159, 0.40);
}

.btn-app-secondary {
  background-color: var(--color-brand-light);
  color: var(--color-brand-dark);
}

.btn-app-secondary:hover {
  background-color: #c6dfc9;
  color: var(--color-brand-dark);
}

.btn-app-outline {
  background-color: transparent;
  color: var(--color-brand);
  border: 2px solid var(--color-brand);
  box-shadow: none;
}

.btn-app-outline:hover {
  background-color: var(--color-brand-light);
}

/* ---- Loading Overlay ---- */
#loading-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(3px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

#loading-overlay.active {
  display: flex;
}

.loading-spinner {
  width: 52px;
  height: 52px;
  border: 5px solid var(--color-brand-light);
  border-top-color: var(--color-brand);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

.loading-spinner-label {
  font-size: 14px;
  color: var(--color-brand);
  font-weight: 600;
  letter-spacing: 0.03em;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---- Bottom Navigation (mobile only) ---- */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-height);
  background-color: var(--color-surface);
  box-shadow: var(--shadow-nav);
  z-index: 1000;
  align-items: stretch;
}

@media (max-width: 768px) {
  .bottom-nav {
    display: flex;
    /* account for iOS home-indicator safe area */
    padding-bottom: env(safe-area-inset-bottom, 0px);
    height: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px));
  }

  /* Add padding so content isn't hidden behind the bottom nav */
  body {
    padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px) + 8px);
  }

  /* Full-screen map page: no extra padding so map bleeds edge-to-edge */
  body.page-prestadores {
    padding-bottom: 0;
    overflow: hidden;
  }
}

.bottom-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-decoration: none;
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 500;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s;
}

.bottom-nav__item:active {
  color: var(--color-brand);
}

.bottom-nav__item.active,
.bottom-nav__item:focus {
  color: var(--color-brand);
  outline: none;
}

.bottom-nav__item i {
  font-size: 20px;
}

.bottom-nav__item span {
  font-size: 10px;
}

/* ---- Horizontal Service Scroll ---- */
.services-scroll-wrap {
  width: 100%;
  overflow: hidden;
}

.services-scroll {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 12px;
  padding: 10px 4px 16px;
  scrollbar-width: none; /* Firefox */
}

.services-scroll::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 90px;
  height: 90px;
  background-color: var(--color-surface);
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  scroll-snap-align: start;
  transition: box-shadow 0.15s, transform 0.1s;
  position: relative;
  padding: 8px 4px;
}

.service-card:active {
  transform: scale(0.95);
}

.service-card i {
  font-size: 24px;
  color: var(--color-brand);
  margin-bottom: 6px;
}

.service-card label {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text);
  text-align: center;
  line-height: 1.2;
  cursor: pointer;
  pointer-events: none;
}

.service-card.disabled-card {
  opacity: 0.55;
  cursor: not-allowed;
}

.service-card.disabled-card i {
  color: #c0c0c0;
}

.service-card .embreve {
  position: absolute;
  top: -8px;
  right: -2px;
  width: 50px;
  border-radius: 0;
}

/* ---- Notícias / Banner Section ---- */
.banner-noticias {
  margin-top: 24px;
  padding: 0 4px;
}

.banner-noticias h1 {
  margin-bottom: 10px;
}

.banner-noticias__img-wrap {
  width: 100%;
  text-align: center;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.banner-noticias__img-wrap img {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ---- "Voltar" / Back Button (ghost style) ---- */
.btnVoltar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--color-brand-light);
  color: var(--color-brand-dark);
  border: none;
  text-decoration: none;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.15s, transform 0.1s;
  box-shadow: 0 2px 6px rgba(105, 179, 159, 0.20);
}

.btnVoltar:hover {
  background-color: #c6dfc9;
  color: var(--color-brand-dark);
  text-decoration: none;
}

.btnVoltar:active {
  transform: scale(0.93);
}

/* ---- Prestadores — Full-screen Uber-style map ---- */

/* Wrapper fills flex space between header and bottom nav */
.prestadores-wrapper {
  flex: 1 1 0;
  width: 100%;
  position: relative;
  overflow: hidden;
  min-height: 0;
  background: var(--color-bg);
}

/* Map covers the entire wrapper */
#prestadores-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Floating cards overlay pinned above bottom nav */
.prestadores-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  pointer-events: none;
}

@media (max-width: 768px) {
  .prestadores-overlay {
    bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px));
  }
}

.prestadores-overlay__title {
  padding: 8px 16px 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  pointer-events: auto;
}

/* Horizontal scroll of provider cards */
.prestadores-cards-scroll {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 10px;
  padding: 8px 16px 14px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  scrollbar-width: none;
  pointer-events: auto;
}

.prestadores-cards-scroll::-webkit-scrollbar {
  display: none;
}

/* Individual provider card */
.prestador-card {
  flex: 0 0 auto;
  width: 220px;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 12px;
  cursor: pointer;
  scroll-snap-align: start;
  transition: transform 0.15s, box-shadow 0.15s;
  display: flex;
  align-items: center;
  gap: 10px;
  border: none;
  text-align: left;
}

.prestador-card:active {
  transform: scale(0.97);
  box-shadow: 0 1px 6px rgba(0,0,0,0.10);
}

.prestador-card.highlighted {
  border: 2px solid var(--color-brand);
  box-shadow: 0 0 0 3px rgba(105, 179, 159, 0.20);
}

.prestador-card__icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--color-brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-brand);
  font-size: 16px;
}

.prestador-card__info {
  flex: 1;
  min-width: 0;
}

.prestador-card__name {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.prestador-card__address {
  font-size: 10px;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.prestador-card__distance {
  font-size: 10px;
  font-weight: 700;
  color: var(--color-brand);
}

/* Geo-status centered overlay on map */
.geo-status-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 200;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  padding: 28px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--color-text-muted);
  font-size: 13px;
  text-align: center;
  box-shadow: var(--shadow-card);
  max-width: 80vw;
}

.geo-status-overlay i {
  font-size: 36px;
  color: var(--color-brand);
}

/* Dynamic-load indicator pill */
.map-loading-pill {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 150;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-pill);
  padding: 7px 18px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-brand);
  display: none;
  align-items: center;
  gap: 7px;
  box-shadow: var(--shadow-card);
  white-space: nowrap;
  pointer-events: none;
}

.map-loading-pill.active {
  display: flex;
}

.map-loading-pill .mini-spin {
  width: 13px;
  height: 13px;
  border: 2px solid var(--color-brand-light);
  border-top-color: var(--color-brand);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* ============================================================
   Home2 — Modern App Redesign
   ============================================================ */

/* Override cabecalho on home2 to match purple hero */
body.page-home2 .cabecalho {
  background-color:#fff;
  border-bottom: none;
}

body.page-home2 .cabecalho i {
  color: #3EB29D;
}

body.page-home2 .cabecalho a {
  color: #3EB29D;
}

/* Hero greeting section */
.home2-hero {
  width: 100%;
  background-color:#fff;
  padding: 16px 24px 52px;
  color: #B9F6D9;
}

.home2-hero__greeting {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 4px;
  color: #183153;
}

.home2-hero__greeting b {
  font-weight: 800;
}

.home2-hero__subtitle {
  font-size: 14px;
  font-weight: 400;
  opacity: 0.82;
  margin: 0;
  color: #183153;
}

/* Main content card — overlaps hero with rounded top */
.home2-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 600px;
  background: var(--color-bg);
  border-radius: 24px 24px 0 0;
  margin-top: -28px;
  padding: 24px 20px 16px;
  position: relative;
  z-index: 1;
  min-height: 60vh;
}

/* Meus Pets form wrapper */
.home2-pets-form {
  display: block;
  width: 100%;
  margin-bottom: 0;
}

/* Meus Pets wide banner button */
.home2-pets-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  background: var(--color-surface);
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 14px 18px;
  cursor: pointer;
  text-align: left;
  transition: transform 0.1s, box-shadow 0.15s;
  text-decoration: none;
}

.home2-pets-banner:active {
  transform: scale(0.98);
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
}

.home2-pets-banner__icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #69B39F, #9333EA);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  flex-shrink: 0;
}

.home2-pets-banner__label {
  flex: 1;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
}

.home2-pets-banner__arrow {
  color: var(--color-text-muted);
  font-size: 16px;
}

/* Section titles */
.home2-section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
  width: 100%;
  margin: 24px 0 14px;
  padding: 0;
  display: block;
  text-align: left;
}

/* Service grid — 3 equal columns */
.home2-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
}

/* Large service card */
.home2-service-card-lg {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--color-surface);
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 0 8px 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.15s;
  position: relative;
  text-align: center;
}

.home2-service-card-lg:active:not([disabled]) {
  transform: scale(0.95);
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
}

/* Icon area (top section of card with colored bg) */
.home2-service-card-lg__icon-wrap {
  width: calc(100% + 16px);
  margin-left: -8px;
  margin-right: -8px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  font-size: 30px;
}

.home2-service-card-lg__icon-wrap--teal {
  background: linear-gradient(145deg, #D1FAE5, #A7F3D0);
  color: #059669;
}

.home2-service-card-lg__icon-wrap--purple {
  background: linear-gradient(145deg, #EDE9FE, #DDD6FE);
  color: #7C3AED;
}

.home2-service-card-lg__icon-wrap--blue {
  background: linear-gradient(145deg, #DBEAFE, #BFDBFE);
  color: #2563EB;
}

.home2-service-card-lg__icon-wrap--amber {
  background: linear-gradient(145deg, #FEF3C7, #FDE68A);
  color: #D97706;
}

.home2-service-card-lg__icon-wrap--green {
  background: linear-gradient(145deg, #DCFCE7, #BBF7D0);
  color: #16A34A;
}

.home2-service-card-lg__icon-wrap--red {
  background: linear-gradient(145deg, #FEE2E2, #FECACA);
  color: #DC2626;
}

/* Card name */
.home2-service-card-lg__name {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
  line-height: 1.2;
}

/* Action badge/pill */
.home2-service-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.home2-service-badge--teal   { background: #059669; color: #fff; }
.home2-service-badge--purple { background: #7C3AED; color: #fff; }
.home2-service-badge--blue   { background: #2563EB; color: #fff; }
.home2-service-badge--amber  { background: #D97706; color: #fff; }
.home2-service-badge--green  { background: #16A34A; color: #fff; }
.home2-service-badge--red    { background: #DC2626; color: #fff; }
.home2-service-badge--muted  { background: #e5e7eb; color: #6b7280; }

/* Disabled card */
.home2-service-card-lg.disabled-card {
  opacity: 0.52;
  cursor: not-allowed;
}

/* "Em breve" badge overlay */
.home2-embreve {
  position: absolute;
  top: 0;
  right: 0;
  width: 46px;
  border-radius: 0 var(--radius-md) 0 0;
}

/* News banner */
.home2-banner {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: 8px;
}

.home2-banner img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
}

/* Responsive: 2-col grid on very small screens */
@media (max-width: 360px) {
  .home2-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Keep old list-item styles for desktop fallback */
.prestador-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-bg);
  cursor: pointer;
  transition: background-color 0.12s;
}

.prestador-item:last-child { border-bottom: none; }

.prestador-item__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--color-brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-brand);
  font-size: 18px;
}

.prestador-item__info { flex: 1; min-width: 0; }

.prestador-item__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prestador-item__address {
  font-size: 11px;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prestador-item__distance {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-brand);
  flex-shrink: 0;
}

/* ---- Store Detail Modal ---- */
.prestador-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(24, 49, 83, 0.45);
  z-index: 2000;
  align-items: flex-end;
  justify-content: center;
}

.prestador-modal-overlay.active {
  display: flex;
}

.prestador-modal {
  background: var(--color-surface);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  padding: 24px 20px 32px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 -4px 32px rgba(0,0,0,0.18);
  animation: slideUp 0.22s ease;
}

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.prestador-modal__handle {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background-color: var(--color-bg);
  margin: 0 auto 20px;
}

.prestador-modal__close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 20px;
  color: var(--color-text-muted);
  cursor: pointer;
}

.prestador-modal__name {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 6px;
}

.prestador-modal__row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

.prestador-modal__row i {
  color: var(--color-brand);
  width: 16px;
  text-align: center;
}

.prestador-modal__actions {
  margin-top: 20px;
}

/* ---- Geolocation error/loading states ---- */
.geo-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  gap: 12px;
  color: var(--color-text-muted);
  font-size: 14px;
  text-align: center;
}

.geo-status i {
  font-size: 40px;
  color: var(--color-brand-light);
}

/* ---- Notification Badge ---- */
.notification-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 50%;
  background-color: #ef4444;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  z-index: 10;
  pointer-events: none;
}

/* ---- Header Actions Container (inner pages) ---- */
.cabecalho__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.cabecalho__actions a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-brand);
  font-size: 20px;
  text-decoration: none;
  transition: color 0.15s;
}

.cabecalho__actions a:hover,
.cabecalho__actions a:focus {
  color: var(--color-brand-dark);
}

/* ---- Header — Back Button Layout (non-home pages) ---- */
.cabecalho--nav {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  padding: 12px 16px;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

.cabecalho--nav .cabecalho__logo-link {
  display: flex;
  justify-content: center;
  align-items: center;
}

.cabecalho--nav .cabecalho__logo-link img {
  max-width: 86px;
  width: auto;
  height: auto;
}

.cabecalho__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: #FFF!important;
  border-radius: 50%;
  color: var(--color-brand-dark);
  border: none;
  cursor: pointer;
  font-size: 15px;
  text-decoration: none;
}

.cabecalho__back:hover,
.cabecalho__back:focus {
  color: var(--color-brand-dark);
  text-decoration: none;
  outline: 2px solid var(--color-brand);
  outline-offset: 2px;
}

.cabecalho__back:active {
  transform: scale(0.92);
}

/* .cabecalho__spacer removed — replaced by .cabecalho__actions */

/* ---- Desktop Blocker (mobile-only enforcement for home2) ---- */
.desktop-blocker {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #ffffff;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 40px 32px;
  text-align: center;
}

@media (min-width: 501px) {
  .desktop-blocker {
    display: flex;
  }
}

.desktop-blocker__logo {
  max-width: 160px;
  height: auto;
}

.desktop-blocker__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
  max-width: 340px;
  line-height: 1.5;
}

.desktop-blocker__qr {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

/* ---- Promotions Carousel (home2) ---- */
.home2-promo-carousel {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.home2-promo-track {
  display: flex;
  transition: transform 0.4s ease;
  will-change: transform;
}

.home2-promo-slide-group {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.home2-promo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.12s, box-shadow 0.15s;
}

.home2-promo-card:active {
  transform: scale(0.97);
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
}

.home2-promo-card:hover {
  text-decoration: none;
  color: inherit;
}

.home2-promo-card__img-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.home2-promo-card__body {
  padding: 8px 6px;
  width: 100%;
  text-align: center;
}

.home2-promo-card__name {
  font-size: 10px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
  margin-bottom: 6px;
  display: block;
}

.home2-promo-card__btn {
  display: inline-block;
  background: var(--color-brand);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  text-decoration: none;
}

.home2-promo-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}

.home2-promo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-brand-light);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.home2-promo-dot.active {
  background: var(--color-brand);
}

/* ============================================================
   Meus Pets — Modern Redesign
   ============================================================ */

/* Floating Action Button */
.fab-button {
  position: fixed;
  bottom: calc(var(--bottom-nav-height) + 24px);
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--color-brand);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 500;
  transition: background-color 0.18s, transform 0.1s, box-shadow 0.15s;
}

.fab-button:hover {
  background-color: var(--color-brand-dark);
}

.fab-button:active {
  transform: scale(0.93);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

/* On desktop (no bottom-nav), keep FAB at standard bottom spacing */
@media (min-width: 769px) {
  .fab-button {
    bottom: 24px;
  }
}

/* Modern Pet Card */
.pet-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 16px;
  width: 100%;
  gap: 12px;
}

.pet-card__top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pet-card__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background-color: var(--color-brand-light);
}

.pet-card__info {
  flex: 1;
  min-width: 0;
}

.pet-card__name {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pet-card__meta {
  font-size: 12px;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.4;
}

.pet-card__actions {
  display: flex;
  gap: 8px;
}

/* Pet action buttons */
.btn-pet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 12px;
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background-color 0.15s, transform 0.1s;
  flex: 1;
}

.btn-pet:active {
  transform: scale(0.96);
}

.btn-pet--card {
  background-color: var(--color-brand-light);
  color: var(--color-brand-dark);
}

.btn-pet--card:hover {
  background-color: #c6dfc9;
}

.btn-pet--edit {
  background-color: var(--color-brand);
  color: #fff;
}

.btn-pet--edit:hover {
  background-color: var(--color-brand-dark);
  color: #fff;
}

.btn-pet--delete {
  background-color: #FEE2E2;
  color: var(--color-danger);
}

.btn-pet--delete:hover {
  background-color: #FECACA;
}

/* Pet cards list */
.pets-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

/* Empty state */
.pets-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  gap: 12px;
  color: var(--color-text-muted);
  text-align: center;
}

.pets-empty i {
  font-size: 48px;
  color: var(--color-brand-light);
}

.pets-empty p {
  font-size: 14px;
  margin: 0;
}

/* ============================================================
   Scheduling Flow — Shared Page Components
   ============================================================ */

.page-content {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 20px 16px 32px;
  display: flex;
  flex-direction: column;
}

.page-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 4px;
}

.page-subtitle {
  font-size: 12px;
  color: var(--color-text-muted);
  margin: 0 0 20px;
  font-weight: 500;
}

/* ---- Selection card lists ---- */
.selection-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.selection-card-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  background: var(--color-surface);
  border: 2px solid transparent;
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-card);
  padding: 14px 16px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
  font-family: var(--font-main);
}

.selection-card-btn:active {
  transform: scale(0.98);
}

.selection-card-btn:hover {
  border-color: var(--color-brand);
  box-shadow: 0 4px 16px rgba(105, 179, 159, 0.18);
}

.selection-card-btn__icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: var(--color-brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-brand);
  font-size: 18px;
  flex-shrink: 0;
}

.selection-card-btn__body {
  flex: 1;
  min-width: 0;
}

.selection-card-btn__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 2px;
  display: block;
}

.selection-card-btn__meta {
  font-size: 11px;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.5;
}

.selection-card-btn__arrow {
  color: var(--color-text-muted);
  font-size: 14px;
  flex-shrink: 0;
}

/* ---- Day/Period grid ---- */
.day-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
  margin-bottom: 20px;
}

.day-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--color-surface);
  border: 2px solid transparent !important;
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-card);
  padding: 14px 8px;
  cursor: pointer;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
  width: 100%;
}

.day-btn:active {
  transform: scale(0.96);
}

.day-btn:hover {
  border-color: var(--color-brand) !important;
}

.day-btn.selecionado {
  border-color: var(--color-brand) !important;
  background: var(--color-brand);
  color: #fff;
}

.period-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
}

.period-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--color-surface);
  border: 2px solid transparent !important;
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-card);
  padding: 20px 12px;
  cursor: pointer;
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
  width: 100%;
}

.period-btn:hover {
  border-color: var(--color-brand) !important;
  background: var(--color-brand-light);
}

.period-btn:active {
  transform: scale(0.97);
}

.period-btn i {
  font-size: 24px;
  color: var(--color-brand);
}

/* ---- Modern select wrapper ---- */
.select-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 12px;
}

.select-wrapper::after {
  content: '\f078';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-brand);
  pointer-events: none;
  font-size: 12px;
}

.select-modern {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: var(--color-surface);
  border: 2px solid var(--color-brand-light) !important;
  border-radius: var(--radius-md) !important;
  padding: 14px 40px 14px 16px;
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: border-color 0.15s;
}

.select-modern:focus {
  outline: none;
  border-color: var(--color-brand) !important;
}

/* ---- Info cards (resumo / historico) ---- */
.info-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 16px;
  margin-bottom: 12px;
}

.info-card__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-bg);
}

.info-card__header-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-brand);
  font-size: 16px;
  flex-shrink: 0;
}

.info-card__header-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 7px 0;
  border-bottom: 1px solid var(--color-bg);
  gap: 12px;
}

.info-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.info-row__label {
  font-size: 12px;
  color: var(--color-text-muted);
  font-weight: 500;
  flex-shrink: 0;
}

.info-row__value {
  font-size: 13px;
  color: var(--color-text);
  font-weight: 600;
  text-align: right;
}

/* ---- Status badges ---- */
.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-badge--success { background: #D1FAE5; color: #065F46; }
.status-badge--warning { background: #FEF3C7; color: #92400E; }
.status-badge--danger  { background: #FEE2E2; color: #991B1B; }
.status-badge--info    { background: #DBEAFE; color: #1E40AF; }
.status-badge--pending { background: #F3F4F6; color: #374151; }

/* ---- Modern form fields ---- */
.form-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: var(--color-surface);
  border: 2px solid var(--color-brand-light) !important;
  border-radius: var(--radius-md) !important;
  padding: 12px 14px;
  font-family: var(--font-main);
  font-size: 15px;
  color: var(--color-text);
  box-shadow: var(--shadow-card);
  transition: border-color 0.15s;
  appearance: none;
  -webkit-appearance: none;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-brand) !important;
}

.form-field input[type="file"] {
  padding: 10px 14px;
  font-size: 13px;
}

/* ---- Pet select card (selecionaPet) ---- */
.pet-select-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 2px solid transparent;
}

.pet-select-card__avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--color-brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--color-brand);
  flex-shrink: 0;
}

.pet-select-card__info {
  flex: 1;
  min-width: 0;
}

.pet-select-card__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pet-select-card__meta {
  font-size: 11px;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.5;
}

.pet-select-card__actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

/* ---- Empty state ---- */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  gap: 12px;
  color: var(--color-text-muted);
  text-align: center;
}

.empty-state i {
  font-size: 48px;
  color: var(--color-brand-light);
}

.empty-state p {
  font-size: 14px;
  margin: 0;
  font-weight: 500;
}

/* ---- History order card ---- */
.order-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  border: none;
  width: 100%;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-main);
  transition: transform 0.1s, box-shadow 0.15s;
}

.order-card:active {
  transform: scale(0.98);
}

.order-card__body {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.order-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-brand);
  font-size: 18px;
  flex-shrink: 0;
}

.order-card__info {
  flex: 1;
  min-width: 0;
}

.order-card__pet {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 2px;
}

.order-card__meta {
  font-size: 11px;
  color: var(--color-text-muted);
  margin: 0;
}

.order-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: var(--color-bg);
}

.order-card__date {
  font-size: 11px;
  color: var(--color-text-muted);
}

/* ---- Notice / alert card ---- */
.notice-card {
  background: var(--color-brand-light);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 13px;
  color: var(--color-brand-dark);
  margin-bottom: 12px;
  line-height: 1.5;
}

/* ---- Section divider title ---- */
.section-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 20px 0 10px;
}

/* ============================================================
   selecionaPrestador — Map page body class
   (mirrors body.page-prestadores — full-screen, no scroll)
   ============================================================ */
body.page-selecionaPrestador {
  overflow: hidden;
  padding-top: 0;
}

@media (max-width: 768px) {
  body.page-selecionaPrestador .cabecalho {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
  }
}

/* ---- Internal provider card variant ---- */
.prestador-card--internal {
  border-left: 3px solid var(--color-brand);
}

.prestador-card__icon--internal {
  background-color: var(--color-brand);
  color: #fff;
}

/* ---- Price line inside card ---- */
.prestador-card__price {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-brand-dark);
  margin-top: 1px;
}

/* ---- Source badge (Parceiro / Google) ---- */
.prestador-card__badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.prestador-card__badge--parceiro {
  background: var(--color-brand);
  color: #fff;
}

.prestador-card__badge--google {
  background: #4285F4;
  color: #fff;
}

/* Make card position:relative so badge positions correctly */
.prestador-card {
  position: relative;
}

/* ---- Modal select-button loading spinner ---- */
.modal-btn-spin {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}

/* ---- Modal price row emphasis ---- */
.prestador-modal__row strong {
  font-size: 15px;
}
