/* POPUP FACILIDADES */
.facilities-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);

    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.facilities-overlay.active {
    opacity: 1;
    visibility: visible;
}

.facilities-modal {
    width: 100%;
    max-width: 340px;

    padding: 20px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);

    transform: translateY(10px);
    transition: transform 0.25s ease;
}

.facilities-overlay.active .facilities-modal {
    transform: translateY(0);
}

.facilities-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.facilities-subtitle {
    display: block;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: var(--muted);
    margin-bottom: 4px;
}

.facilities-header h3 {
    margin: 0;
    font-size: 19px;
    font-weight: 700;
    color: var(--text);
}

.facilities-close {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: var(--bg2);
    color: var(--muted);
    cursor: pointer;
}

.facility-item {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 13px;
    background: var(--bg2);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.facility-item+.facility-item {
    margin-top: 10px;
}

.facility-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;
    width: 38px;
    height: 38px;

    border-radius: 10px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 18px;
}

.facility-content {
    flex: 1;
    min-width: 0;
}

.facility-label {
    display: block;
    margin-bottom: 3px;

    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--muted);
}

.facility-name {
    display: block;
    margin-bottom: 7px;

    font-size: 13px;
    color: var(--text);
}

.facility-copy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;

    padding: 7px 9px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.facility-copy span {
    min-width: 0;
    overflow-wrap: anywhere;

    font-size: 11px;
    font-weight: 500;
    color: var(--text);
}

.facility-copy button {
    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;
    width: 25px;
    height: 25px;

    border: none;
    border-radius: 6px;
    background: var(--primary-soft);
    color: var(--primary);
    cursor: pointer;
}

.facilities-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    margin: 14px 0 0;
    font-size: 10px;
    color: var(--muted);
}

@media (max-width: 480px) {
    .facilities-modal {
        max-width: 310px;
        padding: 16px;
    }
}

.facility-item .bi-copy, .bi-wifi, .bi-qr-code {
    display: flex;
    justify-content: center;
    align-items: center;
}


.facility-copy button {
    transition: color 0.2s ease, background 0.2s ease;
}

.facility-copy button.copied {
    color: var(--primary);
    background: var(--primary-soft);
}

/* Layout adaptativo: celular, tablet e telas maiores */
html, body { background: var(--bg); }
body { background-color: var(--bg); }
.bio-page { width: 100%; max-width: 1200px; background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%); }
.section-highlight { background: var(--primary-dark); color: var(--white); }
.footer-main { background: var(--primary-dark); }

/* Avaliação ocupa toda a largura do conteúdo */
.google-review-section { width: 100%; }
.google-review-card { width: 100%; max-width: none; }

/* Os dois cards de localização usam as superfícies invertidas solicitadas */
.info-hours { background: var(--bg2); }
.info-location { background: var(--card); }
.info-grid { align-items: stretch; }
.info-card { min-width: 0; }
.hours-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.hours-header .info-heading { flex: 1; min-width: 0; }
.hours-toggle { display: none; }
.hours-arrow { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 36px; border: 1px solid var(--primary-border); border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-size: 22px; line-height: 1; transition: transform .2s ease; }
.hours-content { display: grid; grid-template-rows: 1fr; margin-top: 20px; opacity: 1; }
.hours-content > .hours-list { min-height: 0; overflow: visible; }

@media (min-width: 768px) {
  body { padding-bottom: 30px; }
  .bio-page { padding: 48px 40px 0; }
  .hours-toggle { display: none !important; }
  .hours-content { grid-template-rows: 1fr; margin-top: 20px; opacity: 1; }
  .hours-content > .hours-list { overflow: visible; }
  .info-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
}

@media (max-width: 767px) {
  .bio-page { padding-inline: 16px; }
  .hours-header { align-items: flex-start; }
  .hours-toggle { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; padding: 0; border: 0; background: transparent; cursor: pointer; }
  .hours-content { grid-template-rows: 0fr; margin-top: 0; opacity: 0; overflow: hidden; transition: grid-template-rows .3s ease, opacity .2s ease, margin-top .3s ease; }
  .hours-content > .hours-list { min-height: 0; overflow: hidden; }
  .info-hours.open .hours-content { grid-template-rows: 1fr; margin-top: 20px; opacity: 1; }
  .info-hours.open .hours-arrow { transform: rotate(180deg); }
}

@media (min-width: 1200px) {
  .bio-page { padding-inline: 56px; }
  .section { margin-inline: 0; }
  .service-card { flex-basis: 190px; }
  .profile-photo-wrap { width: 88px; height: 88px; }
  .profile-main h1 { font-size: 30px; }
}

/* Ajustes finais do checklist de layout */
html, body { background: var(--bg); }
body { width: 100%; max-width: 900px; min-height: 100vh; margin: 0 auto; box-sizing: border-box; background: var(--bg); }
.bio-page { display: flex; flex-direction: column; width: 100%; max-width: none; min-height: 100vh; margin: 0; background: var(--bg); }
.section-highlight { width: 100%; max-width: 100%; margin-inline: 0; align-self: center; }
.footer-main { width: 100%; max-width: 100%; margin: auto 0 0; }
.google-review-section { display: block; width: 100%; max-width: 100%; margin-inline: auto; }
.google-review-card { width: 100%; max-width: 100%; }
.google-review-overlay .google-review-section { width: min(calc(100% - 32px), 380px); max-width: 380px; margin-inline: auto; }
.result-card, .feedback-card { flex: 0 0 min(300px, 77%); width: min(300px, 77%); max-width: 300px; max-height: 300px; aspect-ratio: 1; }
.result-card img, .feedback-card img { width: 100%; height: 100%; max-width: 300px; max-height: 300px; object-fit: cover; }
.sticky-actions { border-radius: 18px; }
@media (min-width: 768px) {
  .hours-toggle { display: none !important; }
  .hours-content { grid-template-rows: 1fr; margin-top: 20px; opacity: 1; }
}
body { padding-bottom: 0; }
.footer-main { flex-shrink: 0; padding-bottom: 32px; }
@media (max-width: 767px) {
  .footer-main { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}

/* Faixas escuras em largura total, mantendo o conteúdo na coluna de 900px */
.section-highlight {
  position: relative;
  z-index: 0;
  isolation: isolate;
  background: transparent;
}
.section-highlight::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  pointer-events: none;
}
.footer-main {
  position: relative;
  z-index: 0;
  isolation: isolate;
  background: transparent;
}
.footer-main::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: var(--primary-dark);
  pointer-events: none;
}

/* Ações de interesse consistentes para uma ou várias profissionais */
.professional-options { display: grid; grid-template-columns: 1fr; gap: 12px; }
.professional-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px 14px;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--text-border);
  border-radius: 16px;
  background: var(--card);
}
.professional-option > strong { grid-column: 1; grid-row: 1; min-width: 0; font-size: 14px; }
.professional-option > .professional-services { grid-column: 1; grid-row: 2; min-width: 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.professional-option > .service-interest {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: auto;
  min-width: 148px;
  min-height: 46px;
  padding-inline: 16px;
  white-space: normal;
  text-align: center;
}
.service-professionals.multiple-professionals .professional-option { grid-template-columns: minmax(0, 1fr) auto; }
.service-professionals.single-professional .professional-option { display: block; padding: 0; border: 0; background: transparent; }
.service-professionals.single-professional .service-interest { display: flex; width: 100%; }
.professionals-dialog .professional-options .professional-option { grid-template-columns: minmax(0, 1fr) auto; }

@media (max-width: 520px) {
  .professional-option { grid-template-columns: 1fr; gap: 6px; }
  .professional-option > strong,
  .professional-option > .professional-services,
  .professional-option > .service-interest { grid-column: 1; grid-row: auto; }
  .professional-option > .service-interest { width: 100%; min-width: 0; margin-top: 6px; }
}

/* Contatos exibidos dentro do serviço: WhatsApp e Instagram da profissional */
.service-professionals .professional-option .professional-contact-links {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  align-items: center;
  gap: 8px;
}
.service-professionals .professional-option .professional-contact-links .service-interest {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: var(--primary);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}
.service-professionals .professional-option .professional-contact-links .professional-instagram {
  display: grid;
  place-items: center;
  width: 46px;
  min-width: 46px;
  height: 46px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--text-border);
  border-radius: 12px;
  background: var(--card);
  color: var(--text);
}
.professional-instagram svg { width: 20px; height: 20px; }
.service-professionals.single-professional .professional-option .professional-contact-links {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  width: 100%;
}
.service-professionals.single-professional .professional-option .professional-contact-links:not(.has-instagram) {
  display: block;
}
.service-professionals.single-professional .professional-option .professional-contact-links:not(.has-instagram) .service-interest {
  width: 100%;
}
@media (max-width: 520px) {
  .service-professionals .professional-option .professional-contact-links {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
  }
  .service-professionals.multiple-professionals .professional-option .professional-contact-links {
    grid-template-columns: minmax(0, 1fr) 46px;
  }
  .service-professionals.multiple-professionals .professional-option .service-interest {
    width: 100%;
    min-width: 0;
    min-height: 46px;
  }
}

/* Navegação e área de respiro para evitar que as sombras dos cards sejam cortadas. */
.rail {
  padding: 18px 14px 22px;
}
.results-rail,
.feedbacks-rail,
#serviceRail {
  scroll-padding-inline: 14px;
}
.carousel-with-arrows {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
}
.carousel-with-arrows > .rail,
.carousel-with-arrows > .video-rail {
  grid-column: 2;
  min-width: 0;
  width: 100%;
}
.carousel-arrow {
  display: grid;
  place-items: center;
  width: 32px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--text);
  box-shadow: 0 3px 10px rgba(35, 20, 15, .10);
  cursor: pointer;
  transition: background .18s ease, color .18s ease, opacity .18s ease, transform .18s ease;
}
.carousel-arrow svg { width: 20px; height: 20px; }
.carousel-arrow:hover:not(:disabled) { background: var(--primary); color: var(--white); transform: scale(1.04); }
.carousel-arrow:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.carousel-arrow:disabled { opacity: .32; cursor: default; box-shadow: none; }
.carousel-arrow-previous { grid-column: 1; grid-row: 1; }
.carousel-arrow-next { grid-column: 3; grid-row: 1; }
.footer-main { margin-top: 40px; padding-bottom: 200px; }
@media (max-width: 767px) {
  .rail { padding: 14px 8px 18px; }
  .carousel-with-arrows { display: block; }
  .carousel-arrow { display: none; }
  .footer-main { padding-bottom: 200px; }
}

