/*!
 * Quinta d'Alcateia - Custom Styles
 * Optimized and reorganized CSS
 */

/* ========================================================================
   1. BASE STYLES
   ======================================================================== */

:root {
  --primary-color: #FAA634;
  --secondary-color: #003768;
  --text-color: #003768;
  --white: #fff;
  --dark: #222;
  --gray: #999;
  --hover-color: #d87d01;
}

html,
body {
  width: 100%;
  height: 100%;
  scroll-behavior: smooth;
}

body {
  color: var(--text-color);
  font-family: 'Archivo Narrow', sans-serif;
}

/* ========================================================================
   2. TYPOGRAPHY
   ======================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto Slab', serif;
  font-weight: bold;
}

p {
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.5;
}

.titulo {
  font-family: 'Roboto Slab', serif;
  font-weight: bold;
  font-size: large;
}

a {
  color: var(--primary-color);
  transition: all .35s;
}

a:hover,
a:focus {
  color: var(--hover-color);
}

.text-link {
  color: var(--primary-color);
  cursor: pointer;
}

/* ========================================================================
   3. LAYOUT UTILITIES
   ======================================================================== */

section {
  padding: 70px 0;
}

aside {
  padding: 50px 0;
}

.no-padding {
  padding: 0;
}

.no-gutter > [class*=col-] {
  padding-right: 0;
  padding-left: 0;
}

.col-lg-4 {
  padding: 0;
}

/* ========================================================================
   4. COLORS & BACKGROUNDS
   ======================================================================== */

.bg-primary {
  background-color: var(--primary-color) !important;
}

.bg-primary a {
  color: var(--text-color);
}

.bg-primary p,
.bg-primary .titulo {
  color: var(--text-color);
}

.bg-dark {
  color: var(--white);
  background-color: var(--dark);
}

.text-primary {
  color: var(--primary-color) !important;
}

.text-secondary {
  color: var(--secondary-color);
}

.text-faded {
  color: rgba(255, 255, 255, .7);
}

/* ========================================================================
   5. HORIZONTAL RULES
   ======================================================================== */

hr {
  max-width: 150px;
  border-color: var(--primary-color);
  border-width: 3px;
}

hr.light {
  border-color: var(--white);
}

/* ========================================================================
   6. NAVIGATION
   ======================================================================== */

.navbar {
  border: none;
  font-family: 'Archivo Narrow', 'Helvetica Neue', Arial, sans-serif;
  background-color: transparent;
  box-shadow: none;
  transition: background-color .4s ease, box-shadow .4s ease;
}

.navbar.affix {
  background-color: var(--secondary-color);
  box-shadow: 0 2px 16px rgba(0,0,0,0.28);
}

.navbar .navbar-brand {
  height: 54px;
  padding: 6px 15px;
}

.navbar-brand > img {
  height: 100%;
}

.affix .navbar-brand {
  height: 54px;
}

.navbar-toggler {
  margin: 7px 15px;
  padding: 6px 11px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  color: var(--white);
  font-size: 19px;
}

.navbar .navbar-toggler:focus,
.navbar .navbar-toggler:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.navbar .navbar-nav > li > a,
.navbar .navbar-nav > li > a:focus {
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: rgba(255,255,255,0.75);
  padding-bottom: 16px;
  box-shadow: inset 0 -3px 0 transparent;
  transition: color .22s, box-shadow .22s;
}

.navbar .navbar-nav > li > a:hover,
.navbar .navbar-nav > li > a:focus:hover {
  color: var(--white);
  background-color: transparent;
  box-shadow: inset 0 -3px 0 var(--primary-color);
}

.navbar .navbar-nav > li.active > a,
.navbar .navbar-nav > li.active > a:focus {
  color: var(--white) !important;
  background-color: transparent;
  box-shadow: inset 0 -3px 0 var(--primary-color);
}

.navbar .navbar-nav > li.active > a:hover,
.navbar .navbar-nav > li.active > a:focus:hover {
  background-color: transparent;
  color: var(--white) !important;
  box-shadow: inset 0 -3px 0 var(--primary-color);
}

/* Reservar CTA button */
.navbar .navbar-nav > li.nav-reservar > a,
.navbar .navbar-nav > li.nav-reservar > a:focus {
  margin: 11px 0 11px 8px;
  padding: 8px 18px !important;
  background: var(--primary-color);
  color: var(--white) !important;
  border-radius: 100px;
  font-size: 13px !important;
  letter-spacing: 0.5px;
  box-shadow: 0 3px 10px rgba(250,166,52,0.30) !important;
  transition: background .22s, transform .18s, box-shadow .22s !important;
}

.navbar .navbar-nav > li.nav-reservar > a:hover,
.navbar .navbar-nav > li.nav-reservar > a:focus:hover {
  background: var(--hover-color) !important;
  color: var(--white) !important;
  box-shadow: 0 5px 16px rgba(250,166,52,0.48) !important;
  transform: translateY(-1px);
}

.navbar .navbar-nav > li.nav-reservar.active > a,
.navbar .navbar-nav > li.nav-reservar.active > a:focus {
  background: var(--primary-color) !important;
  color: var(--white) !important;
  box-shadow: 0 3px 10px rgba(250,166,52,0.30) !important;
}

/* Dropdown menu styling */
.navbar .navbar-nav .dropdown-menu {
  background-color: var(--secondary-color);
  border: none;
  border-top: 3px solid var(--primary-color);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.28);
  padding: 5px 0;
  min-width: 180px;
}

.navbar .navbar-nav .dropdown-menu > li > a {
  color: rgba(255,255,255,0.78);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 10px 20px;
  transition: color .2s, background .2s;
}

.navbar .navbar-nav .dropdown-menu > li > a:hover,
.navbar .navbar-nav .dropdown-menu > li > a:focus {
  color: var(--white);
  background-color: rgba(255,255,255,0.08);
}

.navbar .navbar-nav .open > a,
.navbar .navbar-nav .open > a:hover,
.navbar .navbar-nav .open > a:focus {
  background-color: transparent;
  color: var(--white);
}

/* Caret color */
.navbar .navbar-nav .dropdown-toggle .caret {
  border-top-color: rgba(255,255,255,0.75);
}
.navbar .navbar-nav .open .dropdown-toggle .caret,
.navbar .navbar-nav .dropdown-toggle:hover .caret {
  border-top-color: var(--white);
}

/* Inner pages (no hero header) – always show affixed navbar look */
.inner-page .navbar {
  background-color: var(--secondary-color);
  box-shadow: 0 2px 16px rgba(0,0,0,0.28);
}

.inner-page section:first-of-type {
  padding-top: 80px;
}

/* Inner page content wrapper (servicos, etc.) – matches reserva-page style */
.inner-page-content {
  padding-top: 90px;
  padding-bottom: 60px;
  background: #f5f7fa;
  min-height: 100vh;
}

/* Shared page title style – used on all inner pages */
.page-title {
  padding: 30px 0 10px;
}

.page-title .section-heading {
  margin-top: 0;
}

.page-title .section-subheading {
  font-size: 16px;
  color: #6c757d;
  margin-bottom: 0;
}

/* Page title hero banner – used on inner pages (servicos, contactos, etc.) */
.page-hero {
  background-color: var(--secondary-color);
  padding: 56px 0 46px;
  text-align: center;
  color: var(--white);
}

.page-hero .section-heading {
  color: var(--white);
  margin-top: 0;
  letter-spacing: 2px;
}

.page-hero hr.primary {
  border-color: var(--primary-color);
}

.page-hero p {
  color: rgba(255,255,255,0.80);
  font-size: 18px;
  margin: 6px 0 0;
}

/* ---------- Info pages (hotel.html, treino.html) ---------- */
.info-section {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 14px rgba(0,55,104,0.08);
  padding: 32px 36px;
  margin-bottom: 24px;
}

.info-section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--secondary-color, #003768);
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-color, #FAA634);
}

.info-section-title i {
  color: var(--primary-color, #FAA634);
  margin-right: 8px;
}

.info-section p {
  font-size: 16px;
  line-height: 1.7;
  color: #444;
}

/* Feature cards inside info sections */
.info-feature {
  padding: 20px 16px;
  margin-bottom: 16px;
  border-radius: 8px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  min-height: 160px;
}

.info-feature i {
  margin-bottom: 12px;
}

.info-feature h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--secondary-color, #003768);
  margin: 0 0 8px;
}

.info-feature p {
  font-size: 14px;
  color: #6c757d;
  margin: 0;
  line-height: 1.5;
}

/* Step numbers (treino page) */
.info-step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-color, #FAA634);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

/* Gallery grid */
.info-gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

.info-gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.info-gallery-item:hover img {
  transform: scale(1.05);
}

.info-gallery-item span {
  display: block;
  padding: 8px 12px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--secondary-color, #003768);
  text-align: center;
}

/* CTA buttons group */
.info-cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.info-cta-buttons .btn {
  min-width: 200px;
}

@media (max-width: 767px) {
  .info-section {
    padding: 24px 18px;
  }

  .info-feature {
    min-height: auto;
  }

  .info-gallery-item img {
    height: 150px;
  }

  .info-cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .info-cta-buttons .btn {
    width: 100%;
  }
}

/* ---- Hotel page — includes icon grid ---- */
.hotel-includes-grid {
  gap: 0;
}

.hotel-include-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 8px;
  margin-bottom: 16px;
  border-radius: 10px;
  background: #f4f7fb;
  border: 1px solid #e4eaf3;
  min-height: 110px;
  justify-content: center;
}

.hotel-include-tile i {
  font-size: 26px;
  color: var(--primary-color, #FAA634);
  margin-bottom: 10px;
}

.hotel-include-tile span {
  font-size: 14px;
  font-weight: 600;
  color: var(--secondary-color, #003768);
  line-height: 1.4;
}

/* ---- Hotel page — includes checklist ---- */
.hotel-includes-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hotel-includes-list li {
  padding: 8px 0;
  font-size: 15px;
  color: #444;
  line-height: 1.5;
  border-bottom: 1px solid #f0f0f0;
}

.hotel-includes-list li:last-child {
  border-bottom: none;
}

.hotel-includes-list li i {
  margin-right: 10px;
  font-size: 14px;
}

/* ---- Hotel page — stat bar ---- */
.hotel-stats-row {
  background: #f4f7fb;
  border-radius: 8px;
  padding: 20px 0;
  margin-bottom: 4px;
}

.hotel-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hotel-stat-num {
  font-size: 32px;
  font-weight: 800;
  color: var(--secondary-color, #003768);
  line-height: 1.1;
}

.hotel-stat-label {
  font-size: 13px;
  color: #6c757d;
  margin-top: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---- Hotel page — sub-headings and tables ---- */
.hotel-sub-heading {
  font-size: 16px;
  font-weight: 700;
  color: var(--secondary-color, #003768);
  margin: 0 0 14px;
}

.hotel-alas-table {
  font-size: 14px;
}

.hotel-alas-table thead th {
  background: var(--secondary-color, #003768);
  color: #fff;
  font-weight: 600;
  border-color: #002a50;
}

/* ---- Hotel page — recreation list ---- */
.hotel-recreation-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hotel-recreation-list li {
  padding: 9px 0;
  font-size: 15px;
  color: #444;
  border-bottom: 1px solid #f0f0f0;
  line-height: 1.5;
}

.hotel-recreation-list li:last-child {
  border-bottom: none;
}

.hotel-recreation-list li i {
  margin-right: 10px;
  font-size: 13px;
}

/* ========================================================================
   7. HEADER
   ======================================================================== */

header {
  position: relative;
  width: 100%;
  min-height: 100vh;
  text-align: center;
  color: var(--white);
  background-image: url(../img/header.jpg);
  background-position: center center;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
}

header .header-content {
  position: relative;
  width: 100%;
  padding: 80px 15px 40px;
  text-align: center;
}

header .header-content .header-content-inner h1 {
  margin-top: 0;
  margin-bottom: 0;
  text-transform: uppercase;
  font-weight: 700;
  font-size: clamp(35px, 5vw, 65px);
}

header .header-content .header-content-inner hr {
  margin: 30px auto;
}

header .header-content .header-content-inner p {
  margin-bottom: 50px;
  font-size: 16px;
  font-weight: 300;
  color: rgba(255, 255, 255, .7);
}

.header-logo {
  width: 200px;
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}

.header-tagline {
  font-size: 28px;
  font-weight: 300;
  color: var(--white);
  margin-bottom: 30px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.header-stats {
  display: flex;
  justify-content: center;
  gap: 38px;
  margin-top: 25px;
  margin-bottom: 38px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 34px;
  font-weight: 700;
  color: var(--primary-color);
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.stat-label {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.9);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.header-cta {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.header-cta .btn {
  padding: 14px 33px;
  font-size: 15px;
}

.btn-outline-light {
  background: var(--white);
  border: 2px solid var(--white);
  color: var(--secondary-color);
}

.btn-outline-light:hover,
.btn-outline-light:focus,
.btn-outline-light:active {
  background: #e8e8e8;
  border-color: #e8e8e8;
  color: var(--secondary-color);
}

.scroll-indicator {
  display: inline-block;
  color: var(--white);
  opacity: 0.7;
  transition: opacity 0.3s;
  animation: bounce 2s infinite;
}

.scroll-indicator:hover {
  opacity: 1;
  color: var(--primary-color);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

.header-slogan {
  width: 240px;
  display: block;
  margin: 0 auto 35px auto;
}

/* ========================================================================
   8. SECTIONS
   ======================================================================== */

.section-heading {
  margin-top: 0;
}

.service-box {
  background: #fff;
  border-radius: 10px;
  padding: 36px 24px 28px;
  box-shadow: 0 3px 16px rgba(0, 55, 104, 0.08);
  border: 1px solid #e3eaf2;
  margin: 0 0 28px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0, 55, 104, 0.16);
}

.service-box i {
  margin-bottom: 4px;
}

.service-box h3 {
  color: var(--secondary-color);
  font-weight: 700;
  margin-top: 14px;
  margin-bottom: 12px;
}

.service-box p {
  margin-bottom: 0;
  font-size: 14px;
  color: #555;
}

.service-box p.text-muted {
  flex: 1;
}

.services-row {
  display: flex;
  flex-wrap: wrap;
}

.services-row > [class*="col-"] {
  display: flex;
  margin-bottom: 28px;
}

.services-row > [class*="col-"] .service-box {
  margin-bottom: 0;
}

.service-box a {
  color: var(--primary-color);
  font-weight: 600;
}

.service-box a:hover {
  color: var(--hover-color);
}

/* ========================================================================
   9. CARDS
   ======================================================================== */

/* Reduzir espaço entre cards de serviços */
#servicosComplementares .col-lg-4,
#servicosComplementares .col-md-4,
#servicosComplementares .col-sm-6 {
  padding-left: 8px;
  padding-right: 8px;
  margin-bottom: 16px;
}

.card {
  border: thin solid var(--gray);
  margin: 0;
  border-radius: 6px;
}

.card-body {
  padding: 20px 10px;
}

.card-title {
  font-size: 19px;
  font-weight: 600;
  color: #003768;
  margin-bottom: 14px;
}

.card-text {
  font-size: 14px;
  line-height: 1.6;
  color: #4a5568;
}

.h-105 {
  padding: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.h-105:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.h-105 .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.h-105 .card-text {
  flex: 1;
  min-height: 95px;
}

/* Garantir que colunas de complementos tenham mesma altura */
#hotelForm .row > [class*='col-'] {
  display: flex;
  flex-direction: column;
}

/* Espaçamento específico para campos de transporte */
.card-body .row {
  margin-left: -10px;
  margin-right: -10px;
}

.card-body .row .col-sm-6 {
  padding-left: 10px;
  padding-right: 10px;
}

/* Layout do formulário de transporte */
.transport-form {
  margin-top: 15px;
}

.transport-fields-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.transport-field {
  flex: 1;
}

.transport-field label {
  font-size: 15px;
  margin-bottom: 5px;
  display: block;
}

.transport-field input[type="text"] {
  width: 100%;
}

.complement-price {
	  font-weight: 800;
	  font-size: 24px;
	  color: #FAA634;
	  margin-top: 16px;
	  margin-bottom: 18px;
	  line-height: 1;
	  text-align: right;
	  background: #ffffff;
	  padding: 8px 12px;
	  border-radius: 6px;
	  border: 1px solid #f0f0f0;
	  display: block;
	}

/* No modal, o preço deve ler-se imediatamente (menos "laranja") */
#servicosComplementares .complement-price {
  color: #003768;
}
	
	/* Complement buttons */
	.card .complement-add {
	  background: #f6a623;
	  color: #fff;
	  border: 0;
	  padding: 12px 28px;
	  border-radius: 30px;
	  font-weight: 800;
	  text-transform: uppercase;
	}
	.card .complement-add:hover {
	  background: #e89300;
	}
	.card .complement-remove {
	  background: transparent;
	  color: #34495e;
	  border: 1px solid #cfcfcf;
	  padding: 10px 22px;
	  border-radius: 30px;
	}
	.card .complement-remove:hover {
	  background: #f5f5f5;
	}

	/* Apply pill CTA style to small primary buttons inside cards within modal */
	#form-hotel .card .btn-primary.btn-sm,
	#form-treino .card .btn-primary.btn-sm,
	#hotel-app .card .btn-primary.btn-sm,
	#treino-app .card .btn-primary.btn-sm {
	  background: #f6a623;
	  color: #fff;
	  border: 0;
	  padding: 12px 26px;
	  border-radius: 30px;
	  font-weight: 800;
	  text-transform: uppercase;
	  font-size: 14px;
	  white-space: nowrap;
	}
	#form-hotel .card .btn-primary.btn-sm:hover,
	#form-treino .card .btn-primary.btn-sm:hover,
	#hotel-app .card .btn-primary.btn-sm:hover,
	#treino-app .card .btn-primary.btn-sm:hover {
	  background: #e89300;
	}
	/* Remove button style - same size as btn-primary to prevent card height change */
	#form-hotel .card .btn-remove,
	#form-treino .card .btn-remove,
	#hotel-app .card .btn-remove,
	#treino-app .card .btn-remove {
	  background: transparent;
	  color: #34495e;
	  border: 1px solid #cfcfcf;
	  padding: 12px 26px;
	  border-radius: 30px;
	  font-weight: 800;
	  text-transform: uppercase;
	  font-size: 14px;
	  white-space: nowrap;
	}
	#form-hotel .card .btn-remove:hover,
	#form-treino .card .btn-remove:hover,
	#hotel-app .card .btn-remove:hover,
	#treino-app .card .btn-remove:hover { background:#f5f5f5; }

  /* Complement badge (Option B) */
  /* IMPORTANTE: estes estilos só devem aplicar-se aos cards do modal (evita desformatar o resto do site) */
  #hotelForm .card,
  #servicosComplementares .card {
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
  }
  #hotelForm .card:hover,
  #servicosComplementares .card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    transform: translateY(-2px);
  }
	.complement-badge {
	  position: absolute;
	  top: 8px; /* sit over the image */
	  right: 8px;
	  z-index: 40;
	  background: #FAA634;
	  color: #fff;
	  padding: 8px 14px;
	  border-radius: 999px;
	  font-weight: 700;
	  font-size: 0.95rem;
	  box-shadow: 0 3px 8px rgba(250,166,52,0.3);
	  display: inline-block;
	  transform: translateY(0);
	  transition: opacity .2s ease, transform .2s ease;
	  border: 2px solid rgba(255,255,255,0.95);
	  animation: badge-pulse 0.4s ease-out;
	}
	@keyframes badge-pulse {
	  0% { transform: scale(0.8); opacity: 0; }
	  50% { transform: scale(1.1); }
	  100% { transform: scale(1); opacity: 1; }
	}
	@media (max-width:576px){
	  .complement-badge { position: static; display:inline-block; margin-left:0; margin-top:6px; border: none; box-shadow: none; }
	}

	/* "RECOMENDADO" badge for popular services */
	.card-popular::before {
	  content: "⭐ RECOMENDADO";
	  position: absolute;
	  top: 140px;
	  left: 0;
	  background: #FAA634;
	  color: white;
	  padding: 4px 12px;
	  font-size: 11px;
	  font-weight: 800;
	  letter-spacing: 0.5px;
	  z-index: 10;
	  box-shadow: 0 2px 6px rgba(250,166,52,0.4);
	}

	/* Hide duplicate badges if accidentally inserted twice (keeps first only) */
	.card .complement-badge ~ .complement-badge { display: none; }

	/* Hide duplicate badges if accidentally inserted twice (keeps first only) */
	.card .complement-badge ~ .complement-badge { display: none; }

	/* Micro-badge transition (for transient variants) */
	.micro-badge-enter-active, .micro-badge-leave-active { transition: all .23s cubic-bezier(.2,.8,.2,1); }
	.micro-badge-enter { opacity: 0; transform: scale(.85) translateY(-6px); }
	.micro-badge-enter-to { opacity: 1; transform: scale(1) translateY(0); }
	.micro-badge-leave { opacity: 1; transform: scale(1); }
	.micro-badge-leave-to { opacity: 0; transform: scale(.95) translateY(-6px); }

	.micro-feedback {
	  display: inline-block;
	  background: #28a745;
	  color: #fff;
	  padding: 4px 10px;
	  border-radius: 999px;
	  font-weight: 700;
	  font-size: 0.9rem;
	  margin-left: 8px;
	}

	@media (max-width:576px){
	  .card .btn-primary.btn-sm, .card .complement-add, .card .btn-remove{display:block;width:100%;box-sizing:border-box;text-align:center;margin-bottom:8px}
	}

/* ========================================================================
   PROMOÇÕES E DESCONTOS
   ======================================================================== */

/* Badge de promoção no card */
.promo-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, #e53935 0%, #c62828 100%);
  color: white;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 4px;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(229, 57, 53, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Card com promoção ativa */
.card.card-promo {
  position: relative;
}

/* Bloco de preços com desconto */
.price-block {
  position: relative;
  margin-top: 16px;
  margin-bottom: 18px;
}

/* Dentro do bloco em promoção, o preço final usa o layout normal */
.price-block .complement-price {
  margin: 0;
}

/* Preço original (riscado) discreto, sem mexer no layout */
.price-original-top {
  position: absolute;
  top: -18px;
  right: 6px;
  font-size: 16px;
  color: #888;
  text-decoration: line-through;
  line-height: 1;
}

/* (mantemos as classes antigas caso sejam reutilizadas noutros sítios) */

/* Preço normal (sem desconto) */
.price-normal {
  font-weight: 800;
  font-size: 24px;
  color: #FAA634;
}

/* Tabela - linha com desconto */
.table-price-original {
  font-size: 13px;
  color: #999;
  text-decoration: line-through;
}

.table-price-discount {
  display: inline-block;
  background: #ffebee;
  color: #c62828;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 3px;
  margin-left: 4px;
}

.table-discount-info {
  font-size: 12px;
  color: #666;
  display: block;
  margin-top: 2px;
}

/* Espaçamento entre linhas de cards (apenas no bloco de complementos) */
#servicosComplementares .row > [class*='col-'] {
  margin-bottom: 30px;
  display: flex;
}

/* Garantir que os cards dentro das colunas ocupem toda a altura disponível */
#servicosComplementares .row > [class*='col-'] > .card {
  width: 100%;
  height: 100%;
}

/* Garantir altura mínima consistente para o card-text em todos os cards */
#servicosComplementares .h-105 .card-text {
  min-height: 110px;
}

/* Texto pequeno nos cards */
.card-text small {
  font-size: 13px;
  color: #999;
  display: block;
  margin-top: 8px;
  font-style: italic;
}

/* Nota de promoção por estadia longa (Banho) */
.promo-longstay-note {
  font-size: 12px;
  color: #777;
  font-style: normal;
  margin-top: 6px;
  line-height: 1.35;
}

/* ========================================================================
   10. BUTTONS
   ======================================================================== */

.btn {
  display: inline-block;
  width: auto;
  border: 0;
  border-radius: 300px;
  text-transform: uppercase;
  font-family: 'Archivo Narrow', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  padding: 15px 30px;
  transition: all .35s;
}

.btn-block {
  width: 100%;
  align-self: stretch;
}

#reservations .btn-secondary {
  align-self: center;
}

.btn-xl {
  padding: 30px 30px;
  font-size: 24px;
}

.btn-default {
  border-color: var(--white);
  color: var(--dark);
  background-color: var(--white);
  border-radius: 30px;
}

.btn-default:hover,
.btn-default:focus,
.btn-default:active {
  border-color: #ededed;
  color: var(--dark);
  background-color: #f2f2f2;
}

.btn-primary {
  border-color: var(--primary-color);
  color: var(--white);
  background-color: var(--primary-color);
  border-radius: 30px;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  border-color: var(--hover-color);
  color: var(--white);
  background-color: var(--hover-color);
}

.btn-secondary {
  border-color: var(--primary-color);
  color: var(--white);
  background-color: var(--secondary-color);
  border-radius: 30px;
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active {
  border-color: var(--hover-color);
  color: var(--white);
  background-color: var(--hover-color);
}

.btn-remove {
  border-color: #9D9797;
  color: var(--white);
  background-color: #9D9797;
  margin-bottom: 15px;
}

.btn-close {
  border-color: #9D9797;
  background-color: #9D9797;
}

/* ========================================================================
   11. FOOTER
   ======================================================================== */

footer {
  padding: 80px 0 40px;
  background: url(../img/bg-footer.jpg) var(--secondary-color) center center no-repeat;
  background-size: cover;
  color: var(--white);
}

footer .btn-primary {
  margin-bottom: 15px;
}

/* ---- Footer ---- */

/* Address block */
.footer-address {
  margin-bottom: 20px;
}

.footer-address h4 {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

.footer-address h4 i {
  color: var(--primary-color);
  margin-right: 6px;
}

.footer-address p {
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
  margin: 0;
}

/* Map inside footer */
.footer-map-container {
  margin-bottom: 28px;
}

.footer-map-container iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: 4px solid rgba(255,255,255,0.2);
  border-radius: 8px;
}

/* Contact rows below map */
.footer-contacts {
  margin-bottom: 24px;
}

.footer-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255,255,255,0.9);
}

.footer-contact-row > i {
  color: var(--primary-color);
  font-size: 18px;
  width: 22px;
  flex-shrink: 0;
  margin-top: 3px;
  text-align: center;
}

.footer-link {
  color: var(--primary-color);
  font-size: 16px;
  text-decoration: none;
}
.footer-link:hover {
  color: var(--white);
  text-decoration: underline;
}

/* Social icons */
.footer-social {
  margin-top: 16px;
  text-align: right;
}
.footer-social a {
  color: var(--white);
  margin-right: 14px;
  transition: color 0.2s;
}
.footer-social a:hover {
  color: var(--primary-color);
}

/* ---- Footer minimal (páginas internas) ---- */

footer.footer-minimal {
  padding: 20px 0;
}

.footer-minimal-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-minimal-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.55);
  font-size: 13px;
}

.footer-minimal-brand img {
  height: 32px;
  opacity: 0.8;
}

.footer-minimal-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
}

.footer-minimal-links a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-minimal-links a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-minimal-links .sep {
  color: rgba(255,255,255,0.3);
}

.footer-minimal-social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-minimal-social a {
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}

.footer-minimal-social a:hover {
  color: var(--white);
}

@media (max-width: 768px) {
  .footer-minimal-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }
}

/* ---- Footer bottom bar (index) ---- */

.footer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 8px;
  padding-top: 18px;
  padding-bottom: 4px;
}

.footer-copyright {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.footer-bottom-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom-links a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-bottom-links span {
  color: rgba(255,255,255,0.3);
}

@media (max-width: 576px) {
  .footer-bottom-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* Legacy map class (used in other pages) */
.map {
  width: 100%;
  height: 420px;
  border: 6px solid var(--white);
  margin-bottom: 25px;
}

.contact-info {
  margin-bottom: 10px;
}

.phone-number,
.email,
.opening_hours,
.opening_hours_hotel,
.opening_hours_other_services {
  font-size: 17px;
  color: var(--white);
}

.note_call_type {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
}

.terms_conditions {
  margin-top: 4px;
  font-size: 14px;
  color: rgba(255,255,255,0.65);
}

.terms_conditions a {
  color: rgba(255,255,255,0.85);
  text-decoration: underline;
}

.terms_conditions a:hover {
  color: var(--primary-color);
}

.terms_conditions a {
  color: var(--white);
  text-decoration: underline;
}

.terms_conditions a:hover {
  color: var(--primary-color);
}

@media (max-width: 991px) {
  .footer-info {
    min-height: auto;
    padding: 40px 30px !important;
  }
  .map-full {
    min-height: 360px;
  }
}

.call-to-action h2 {
  margin: 0 auto 20px;
}

/* ========================================================================
   12. MODALS
   ======================================================================== */

.modal-content {
  color: var(--text-color);
  font-size: 17px;
}

.modal-header,
.modal-body,
.modal-footer {
  border-top: none;
  border-bottom: none;
  padding: 15px 25px;
}

/* Aumentar tamanho de fonte do formulário de reserva */
#form-hotel .modal-body {
  font-size: 16px;
}

#form-hotel .form-control {
  font-size: 16px;
  padding: 10px 14px;
  height: auto;
}

#form-hotel label,
#form-hotel .control-label {
  font-size: 17px;
  font-weight: 600;
}

#form-hotel select.form-control {
  font-size: 16px;
  padding: 10px 14px;
}

.modal-header {
  background: var(--primary-color);
}

.modal-header .close {
  margin: 0;
  padding: 10px 0;
}

.modal-body hr {
  max-width: inherit;
  border-top: 1px solid #CCC;
}

/* Neutralizar margin negativa das rows para alinhar com padding do modal */
.modal-body > form > .row,
.modal-body > form > div > .row {
  margin-left: 0;
  margin-right: 0;
}

/* Secções do formulário - cards com fundo e borda */
.form-section {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 20px 20px 10px 20px;
  margin-bottom: 20px;
}

/* Labels de secção do formulário - alinhados à esquerda */
.form-section-label {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #003768;
  margin-bottom: 12px;
  margin-top: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: left;
  padding-bottom: 8px;
  border-bottom: 2px solid #FAA634;
}

/* Secção Tipo de Alojamento - cards */
.accommodation-type-cards {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.accommodation-card {
  flex: 0 0 auto;
  width: 200px;
  box-sizing: border-box;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #ffffff;
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.accommodation-card:hover {
  border-color: #003768;
  box-shadow: 0 3px 8px rgba(0, 55, 104, 0.15);
  transform: translateY(-1px);
}

.accommodation-card input[type="radio"] {
  position: absolute;
  opacity: 0;
}

.accommodation-card input[type="radio"]:checked + .card-content .card-title {
  color: #003768;
}

.accommodation-card input[type="radio"]:checked ~ .card-icon {
  background: #003768;
  color: white;
}

.accommodation-card.selected {
  border-color: #003768;
  background: #f0f7ff;
  box-shadow: 0 3px 8px rgba(0, 55, 104, 0.2);
}

.accommodation-card .card-icon {
  width: 40px;
  height: 40px;
  background: #e9ecef;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #6c757d;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.accommodation-card .card-content {
  flex: 1;
  text-align: left;
}

.accommodation-card .card-title {
  font-size: 17px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 2px;
  line-height: 1.2;
}

.accommodation-card .card-subtitle {
  font-size: 14px;
  color: #6c757d;
  line-height: 1.2;
}

/* Time selector - pill button style */
.time-selector-cards {
  display: flex;
  gap: 8px;
  flex-direction: column;
}

.time-card {
  position: relative;
  cursor: pointer;
  border: 1.5px solid #ddd;
  border-radius: 20px;
  padding: 8px 16px;
  background-color: #fff;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.time-card:hover {
  border-color: #003768;
  box-shadow: 0 3px 8px rgba(0, 55, 104, 0.15);
  transform: translateY(-1px);
}

.time-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.time-card.selected {
  border-color: #003768;
  background-color: #f0f7ff;
  transform: translateX(0);
  box-shadow: 0 3px 8px rgba(0, 55, 104, 0.2);
}

.time-card .time-title {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  line-height: 1;
}

.time-card.selected .time-title {
  color: #003768;
}

.time-card .time-subtitle {
  font-size: 14px;
  color: #888;
  line-height: 1;
  margin-left: auto;
  padding-left: 12px;
}

.time-card.selected .time-subtitle {
  color: #003768;
}

/* Secção Tipo de Alojamento - info incluída */
.accommodation-info {
  margin-top: 10px;
}

.accommodation-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 15px;
  color: #555;
}

.accommodation-item i {
  color: #003768;
  width: 20px;
  text-align: center;
}

/* Lista do que está incluído na estadia */
.included-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.included-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 16px;
  color: #444;
  line-height: 1.5;
  margin-bottom: 10px;
}

.included-item i {
  flex-shrink: 0;
  margin-top: 3px;
  font-size: 16px;
}

.included-item i.fa-circle-check {
  color: #2e7d32;
}

.included-item i.fa-circle-xmark {
  color: #e65100;
}

.included-item.not-included {
  color: #555;
}

/* Secção "O Que Está Incluído" */
.included-section-label {
  border-bottom: none;
  margin-bottom: 15px;
  font-size: 16px;
}

/* Secção "Estadia Base" */
.estadia-base-label {
  border-bottom: none;
  margin-bottom: 0;
}

.estadia-base-desc {
  margin: 0;
  font-size: 15px;
  color: #666;
}

.included-block {
  margin-bottom: 18px;
}

.included-details {
  margin-left: 26px;
  font-size: 14px;
  color: #555;
  line-height: 1.7;
}

.included-details-item {
  margin-bottom: 6px;
  display: flex;
  align-items: center;
}

.included-details-item i {
  font-size: 13px;
  margin-right: 8px;
  color: #888;
  width: 16px;
  text-align: center;
}

/* Descrição da secção de extras */
.extras-description {
  font-size: 16px;
  color: #666;
  margin-bottom: 25px;
}

/* Subtítulo dos extras por cão */
.extras-subtitle {
  font-size: 18px;
  font-weight: 600;
  color: #003768;
  margin-top: 15px;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e9ecef;
}

/* Row sem margens laterais */
.row-no-margin {
  margin-left: 0;
  margin-right: 0;
}

/* Garantir que cards extras na mesma row tenham mesma altura */
#servicosComplementares .row-no-margin {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.row-align-center {
  align-items: center;
}

.row-mt-15 {
  margin-top: 15px;
}

/* Imagens dos cards de serviços */
.card .card-img-top {
  height: 150px;
  width: 100%;
  display: block;
  object-fit: cover;
}

/* Preview visual do alojamento */
.accommodation-preview {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  height: 100%;
  min-height: 160px;
  flex-direction: column;
}

.accommodation-gallery {
  width: 100%;
}

.gallery-main {
  width: 100%;
  height: 220px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 10px;
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.gallery-thumbs {
  display: flex;
  gap: 8px;
}

.gallery-thumb {
  width: 65px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.gallery-thumb:hover {
  opacity: 0.9;
}

.gallery-thumb.active {
  opacity: 1;
  border-color: #FAA634;
}

.accommodation-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feature-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
}

.feature-badge.included {
  background: #e8f5e9;
  color: #2e7d32;
}

.feature-badge.included i {
  color: #2e7d32;
}

.feature-badge.not-included {
  background: #fff3e0;
  color: #e65100;
}

.feature-badge.not-included i {
  color: #e65100;
}

/* Status cards - disponibilidade */
.status-card {
  background: #fff;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 15px;
  border-left: 4px solid;
}

.status-card.success {
  border-left-color: #28a745;
  background: #f0fff4;
}

/* Status inline - ao lado das datas */
.status-inline {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-radius: 8px;
  margin-top: 24px;
}

.status-inline > i {
  font-size: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.status-inline > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.status-inline strong {
  font-size: 15px;
  font-weight: 600;
  color: #333;
}

.status-inline span {
  font-size: 14px;
  color: #666;
}

.status-inline.success {
  background: #f0fff4;
}

.status-inline.success > i {
  color: #28a745;
}

.status-inline.error {
  background: #fff5f5;
}

.status-inline.error > i {
  color: #dc3545;
}

.status-inline.info {
  background: #f8f9fa;
}

.status-inline.info > i {
  color: #FAA634;
}

/* Labels de campos - visíveis e consistentes */
#hotelForm .form-group > label[for] {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #003768;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Manter radio buttons inline e alinhados à esquerda */
#hotelForm .radio-inline {
  display: inline-block !important;
  margin-right: 20px;
  font-size: 16px;
  font-weight: 500;
  color: #333;
}

#hotelForm .form-group-radios {
  text-align: left;
  margin-bottom: 5px;
}

/* Ícones de info inline com label */
#hotelForm span[id^="tooltip"] {
  display: inline;
  margin-left: 3px;
  font-size: 14px;
  color: #666;
}

/* Espaçamento entre campos do formulário */
#hotelForm .form-group {
  margin-bottom: 15px;
}

/* Inputs e selects mais legíveis */
#hotelForm .form-control {
  font-size: 16px;
  padding: 10px 14px;
  height: auto;
}

#hotelForm .form-control::placeholder {
  font-size: 15px;
}

/* Inputs dentro de secções */
#hotelForm .form-section .row {
  margin-left: -5px;
  margin-right: -5px;
}

#hotelForm .form-section .row > div[class*="col-"] {
  padding-left: 5px;
  padding-right: 5px;
}

/* Mobile: mais espaço entre elementos */
@media (max-width: 767px) {
  #hotelForm .col-sm-4 {
    margin-bottom: 10px;
  }
  
  .form-section {
    padding: 15px 15px 5px 15px;
  }
  
  .form-section-label {
    font-size: 13px;
    margin-bottom: 12px;
  }

  /* Tipo de Alojamento: impedir overflow no mobile */
  .accommodation-type-cards {
    flex-wrap: wrap;
    gap: 10px;
  }

  .accommodation-card {
    width: auto;
    flex: 1 1 calc(50% - 5px);
    min-width: 0;
    padding: 10px 12px;
  }

  .accommodation-card .card-title {
    font-size: 15px;
  }

  .accommodation-card .card-subtitle {
    font-size: 12px;
  }
  
  #hotelForm .form-group {
    margin-bottom: 12px;
  }
  
  .status-inline {
    margin-top: 10px;
    padding: 12px;
  }
  
  .status-inline > i {
    font-size: 20px;
  }
  
  .status-inline strong {
    font-size: 14px;
  }
  
  .status-inline span {
    font-size: 12px;
  }
  
  .accommodation-preview {
    flex-direction: column;
    text-align: center;
    margin-top: 15px;
    min-height: auto;
    padding: 15px;
  }
  
  .gallery-main {
    height: 120px;
  }
  
  .gallery-thumb {
    width: 40px;
    height: 30px;
  }
  
  .accommodation-features {
    justify-content: center;
  }
  
  .feature-badge {
    font-size: 11px;
    padding: 5px 10px;
  }
}

/* ========================================================================
   13. CAROUSEL
   ======================================================================== */

/* Modern Photo Gallery Modal */
#modal-fotos {
  text-align: center;
}

#modal-fotos.modal.in {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

#modal-fotos .modal-dialog {
  display: inline-block;
  width: auto;
  max-width: 95%;
  margin: 0;
  text-align: left;
  vertical-align: middle;
}

#modal-fotos .modal-content {
  background: #000;
  border: none;
  border-radius: 8px;
  overflow: hidden;
}

#modal-fotos .modal-body {
  padding: 0;
  background: #000;
  position: relative;
}

#modal-fotos .carousel {
  position: relative;
}

#modal-fotos .carousel-inner {
  background: #000;
  position: relative;
  overflow: hidden;
  width: 100%;
}

#modal-fotos .carousel-inner > .item {
  display: none;
  position: relative;
  text-align: center;
  -webkit-transition: .6s ease-in-out left;
  -o-transition: .6s ease-in-out left;
  transition: .6s ease-in-out left;
}

#modal-fotos .carousel-inner > .item.active {
  display: block;
  left: 0;
}

#modal-fotos .carousel-inner > .item.next,
#modal-fotos .carousel-inner > .item.prev {
  display: block;
  position: absolute;
  top: 0;
  width: 100%;
}

#modal-fotos .carousel-inner > .item.next {
  left: 100%;
}

#modal-fotos .carousel-inner > .item.prev {
  left: -100%;
}

#modal-fotos .carousel-inner > .item.next.left,
#modal-fotos .carousel-inner > .item.prev.right {
  left: 0;
}

#modal-fotos .carousel-inner > .item.active.left {
  left: -100%;
}

#modal-fotos .carousel-inner > .item.active.right {
  left: 100%;
}

#modal-fotos .carousel-inner > .item > img {
  display: block;
  max-width: 90vw;
  max-height: 75vh;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
}

#modal-fotos .carousel-caption {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  color: var(--white);
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  transform: none;
  width: 100%;
  max-width: 100%;
  margin-top: 15px;
  text-align: center;
}

/* Carousel Controls */
#modal-fotos .carousel-control {
  background: none;
  width: 60px;
  opacity: 0.7;
  transition: opacity 0.3s;
}

#modal-fotos .carousel-control:hover {
  opacity: 1;
}

#modal-fotos .carousel-control .glyphicon {
  font-size: 48px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.8);
  top: 50%;
  margin-top: -24px;
}

/* Carousel Indicators */
#modal-fotos .carousel-indicators {
  position: relative;
  bottom: auto;
  left: auto;
  width: 100%;
  margin: 15px 0 10px 0;
}

#modal-fotos .carousel-indicators li {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  margin: 0 5px;
}

#modal-fotos .carousel-indicators li.active {
  width: 12px;
  height: 12px;
  background: #FAA634;
  border-color: #FAA634;
}

/* Close button */
#modal-fotos .close {
  position: absolute;
  top: 10px;
  right: 15px;
  z-index: 1050;
  color: #fff;
  opacity: 0.8;
  font-size: 40px;
  font-weight: 300;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
  transition: opacity 0.3s;
}

#modal-fotos .close:hover {
  opacity: 1;
  color: #FAA634;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  #modal-fotos .modal-dialog {
    margin: 10px;
    max-width: calc(100% - 20px);
  }
  
  #modal-fotos .carousel-inner > .item > img {
    max-height: 50vh;
    max-width: calc(100vw - 40px);
  }
  
  #modal-fotos .carousel-caption {
    font-size: 14px;
    padding: 10px 16px;
    margin-top: 10px;
  }
  
  #modal-fotos .carousel-control {
    width: 50px;
  }
  
  #modal-fotos .carousel-control .glyphicon {
    font-size: 32px;
  }
  
  #modal-fotos .carousel-indicators {
    margin: 10px 0 8px 0;
  }
  
  #modal-fotos .carousel-indicators li {
    width: 8px;
    height: 8px;
  }
  
  #modal-fotos .carousel-indicators li.active {
    width: 10px;
    height: 10px;
  }
  
  #modal-fotos .close {
    font-size: 32px;
  }
}

/* ========================================================================
   14. FORMS
   ======================================================================== */

textarea {
  width: 100%;
}

.help-block {
  color: var(--gray);
  line-height: 1.2;
}

/* ========================================================================
   15. BOOKING & PRICING
   ======================================================================== */

.hasAvailability {
  color: #097C25;
  font-weight: bold;
}

.info-error-text {
  font-weight: bold;
  color: #BD070A;
}

.total-price {
  font-size: 24px;
  color: #FAA634;
  font-weight: 800;
  padding: 10px 16px;
  text-align: right;
  background: #ffffff;
  border-radius: 6px;
  border: 2px solid #FAA634;
  display: inline-block;
  margin-left: auto;
}

.signal-price {
  color: var(--dark);
  font-style: italic;
  text-align: right;
  padding-right: 20px;
}

.show-detail-price {
  margin-top: 0.5em;
  text-align: right;
}

#more-info-Vaccines {
  margin: 10px;
  padding: 10px;
  background-color: floralwhite;
}

#information-after-price {
  margin-bottom: 10px;
}

/* ========================================================================
   16. SELECTION
   ======================================================================== */

::selection {
  text-shadow: none;
  color: var(--white);
  background: var(--dark);
}

::-moz-selection {
  text-shadow: none;
  color: var(--white);
  background: var(--dark);
}

img::selection {
  color: var(--white);
  background: transparent;
}

img::-moz-selection {
  color: var(--white);
  background: transparent;
}

/* ========================================================================
   17. RESPONSIVE - MOBILE
   ======================================================================== */

@media (max-width: 768px) {
  table#id_table_explain td,
  table#id_table_explain th {
    font-size: 13px !important;
  }

  section {
    padding: 30px 0;
  }

  header {
    min-height: 100vh;
    background-position: 35% bottom;
  }
}

/* ========================================================================
   18. RESPONSIVE - TABLET & DESKTOP
   ======================================================================== */

@media (min-width: 768px) {
  /* Navbar always solid — no shrink effect on scroll */
  .navbar .navbar-nav > li > a,
  .navbar .navbar-nav > li > a:focus {
    padding-top: 17px;
    padding-bottom: 17px;
  }

  header {
    min-height: 100%;
    background-attachment: fixed;
  }

  header .header-content {
    position: absolute;
    top: 50%;
    padding: 0 50px;
    transform: translateY(-50%);
  }

  header .header-content .header-content-inner {
    margin-right: auto;
    margin-left: auto;
    max-width: 1000px;
  }

  header .header-content .header-content-inner p {
    margin-right: auto;
    margin-left: auto;
    max-width: 80%;
    font-size: 18px;
  }

  .header-logo,
  .header-slogan {
    width: 260px;
  }

  .header-slogan {
    width: 360px;
  }
}

@media (min-width: 992px) {
  .service-box {
    margin: 20px auto 0;
  }
}

/* Modern Compact Tables - Semantic & Space-Efficient */
.modern-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  font-size: 15px;
}

.modern-table thead {
  background: #f8f9fa;
  border-bottom: 2px solid #e9ecef;
}

.modern-table th {
  padding: 12px 15px;
  text-align: left;
  font-weight: 600;
  font-size: 15px;
  color: #495057;
}

.modern-table th:nth-child(3),
.modern-table th:nth-child(4),
.modern-table th:nth-child(5) {
  text-align: right;
}

.modern-table tbody tr {
  border-bottom: 1px solid #f0f0f0;
}

.modern-table tbody tr:last-child {
  border-bottom: none;
}

.modern-table td {
  padding: 12px 15px;
  font-size: 16px;
  color: #2c3e50;
  text-align: left;
}

.modern-table td.secondary-text {
  color: #6c757d;
}

.modern-table td.secondary-text:nth-child(n+3) {
  text-align: right;
}

.modern-table td.price {
  font-weight: 600;
  color: #2c3e50;
  text-align: right;
  white-space: nowrap;
}

.modern-table tfoot {
  background: #f8f9fa;
  font-weight: 700;
}

.modern-table tfoot td {
  padding: 14px 15px;
  font-size: 16px;
  color: #2c3e50;
  text-align: right;
}

.modern-table tfoot td:first-child {
  text-align: left;
}

.modern-table tfoot td.totals-label {
  text-align: right;
}

.modern-table tfoot td:last-child {
  font-size: 20px;
  color: #003768;
  font-weight: 800;
  white-space: nowrap;
}

@media (max-width: 768px) {
  /* Tabela "A SUA RESERVA": esconder Valor Uni em mobile */
  .modern-table th:nth-child(4),
  .modern-table td:nth-child(4) {
    display: none;
  }
}

/* Valor a pagar hoje */
.payment-summary {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 15px;
  padding: 12px 0;
}

.payment-summary-label {
  text-align: right;
  margin-right: 15px;
  font-size: 16px;
  color: #2c3e50;
}

.payment-summary-value {
  min-width: 120px;
  text-align: right;
  color: #003768;
  font-size: 20px;
  font-weight: 800;
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.bg-light {
  background-color: #f8f9fa;
}

#testimonials {
  padding: 80px 0;
  background: #fff;
}

.section-subheading {
  font-size: 18px;
  color: #666;
  margin-bottom: 50px;
  font-weight: 300;
}

.testimonial-card {
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

.testimonial-stars {
  color: var(--primary-color);
  font-size: 18px;
  margin-bottom: 15px;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 16px;
  line-height: 1.7;
  color: #555;
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-author {
  font-weight: 600;
  color: var(--secondary-color);
  font-size: 15px;
}

.social-proof {
  margin-top: 50px;
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.proof-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  padding: 15px 25px;
  border-radius: 50px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
  text-decoration: none;
}

.proof-badge:hover {
  text-decoration: none;
}

.proof-badge i {
  font-size: 24px;
}

.proof-badge i.fa-facebook {
  color: #1877f2;
}

.proof-badge i.fa-google {
  color: #4285f4;
}

.proof-badge span {
  font-weight: 600;
  color: var(--secondary-color);
}

/* ============================================
   FAQ SECTION
   ============================================ */
#faq {
  padding: 80px 0;
}

.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
}

.faq-accordion .panel {
  border: none;
  border-radius: 10px !important;
  margin-bottom: 15px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.faq-accordion .panel-heading {
  padding: 0;
  background: white;
  border-radius: 10px !important;
}

.faq-accordion .panel-title {
  margin: 0;
}

.faq-accordion .panel-title a {
  display: block;
  padding: 20px 25px;
  font-size: 16px;
  font-weight: 600;
  color: var(--secondary-color);
  text-decoration: none;
  position: relative;
  padding-right: 50px;
  transition: background 0.3s ease;
}

.faq-accordion .panel-title a:hover {
  background: #f8f9fa;
}

.faq-accordion .panel-title a::after {
  content: '\f107';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
  color: var(--primary-color);
}

.faq-accordion .panel-title a.collapsed::after {
  transform: translateY(-50%) rotate(-180deg);
}

.faq-accordion .panel-body {
  padding: 0 25px 25px;
  font-size: 15px;
  line-height: 1.7;
  color: #666;
  border-top: none !important;
}

/* ============================================
   FLOATING WHATSAPP BUTTON
   ============================================ */
.floating-whatsapp {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 32px;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: whatsapp-pulse 2s infinite;
}

.floating-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
  color: white;
  text-decoration: none;
}

@keyframes whatsapp-pulse {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6);
  }
}

/* ============================================
   MOBILE RESPONSIVE - NEW SECTIONS
   ============================================ */
@media (max-width: 768px) {
  /* Header mobile */
  .header-stats {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  /* Serviços (AO SEU DISPOR): dar margem lateral ao texto */
  #services .service-box {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .stat-item {
    text-align: center;
  }
  
  .header-cta {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
    align-items: center;
  }
  
  .header-cta .btn {
    width: 100%;
    text-align: center;
  }
  
  .header-tagline {
    font-size: 20px !important;
  }
  
  /* Testimonials mobile */
  #testimonials {
    padding: 60px 0;
  }
  
  .testimonial-card {
    margin-bottom: 20px;
  }
  
  .social-proof {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  
  /* FAQ mobile */
  #faq {
    padding: 60px 0;
  }
  
  .faq-accordion .panel-title a {
    font-size: 15px;
    padding: 15px 45px 15px 20px;
  }
  
  .faq-accordion .panel-body {
    padding: 0 20px 20px;
  }
  
  /* WhatsApp button mobile */
  .floating-whatsapp {
    width: 55px;
    height: 55px;
    font-size: 28px;
    bottom: 20px;
    right: 20px;
  }
}

/* ==========================================================================
   PREÇÁRIO — Pricing tables & collapsible panels
   ========================================================================== */

.precario-subtitle {
  font-size: 18px;
  font-weight: 700;
  color: var(--secondary-color, #003768);
  margin: 28px 0 8px;
  padding-bottom: 6px;
  border-bottom: 2px solid #eee;
}

.precario-subtitle small {
  font-weight: 400;
  color: #888;
  font-size: 14px;
}

.precario-subtitle i {
  margin-right: 6px;
}

/* Pricing tables */
.precario-table {
  margin-bottom: 0;
  font-size: 16px;
}

.precario-table thead th {
  background: var(--secondary-color, #003768);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border-color: var(--secondary-color, #003768);
  vertical-align: middle;
  padding: 13px 16px;
}

.precario-table tbody td {
  vertical-align: middle;
  padding: 11px 16px;
}

.precario-table tbody tr:hover {
  background-color: rgba(250, 166, 52, 0.06);
}

.precario-table tbody tr.info td {
  background-color: rgba(250, 166, 52, 0.10);
  font-weight: 600;
}

.precario-table-sm {
  font-size: 15px;
}

.precario-table-sm thead th {
  font-size: 14px;
  padding: 11px 14px;
}

.precario-table-sm tbody td {
  padding: 9px 14px;
}

/* Info note blocks */
.precario-note {
  background: #f0f5fb;
  border-left: 3px solid var(--primary-color, #FAA634);
  padding: 10px 14px;
  font-size: 13px;
  color: #444;
  margin-top: 16px;
  border-radius: 0 4px 4px 0;
}

.precario-note i {
  margin-right: 4px;
}

/* Accordion panels */
.precario-accordion {
  margin-top: 16px;
}

.precario-panel {
  border: 1px solid #e0e0e0;
  border-radius: 6px !important;
  margin-bottom: 6px;
  box-shadow: none;
  overflow: hidden;
}

.precario-panel .accordion-header {
  background: #fafbfc;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s;
}

.precario-panel .accordion-header:hover {
  background: #f0f5fb;
}

.precario-panel .accordion-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--secondary-color, #003768);
  padding: 14px 18px;
  margin: 0;
  position: relative;
}

.precario-panel .accordion-title i:first-child {
  margin-right: 8px;
}

.precario-panel .accordion-title small {
  font-weight: 400;
  color: #888;
}

.precario-chevron {
  transition: transform 0.3s;
  font-size: 12px;
  color: #999;
  margin-top: 3px;
}

.precario-panel .accordion-header[aria-expanded="true"] .precario-chevron,
.precario-panel .accordion-collapse.show ~ .accordion-header .precario-chevron {
  transform: rotate(180deg);
}

.precario-panel .accordion-body {
  padding: 16px 18px;
  border-top: 1px solid #eee;
  font-size: 14px;
  color: #555;
}

/* Price highlight */
.precario-price-highlight {
  display: inline-block;
  background: rgba(250, 166, 52, 0.12);
  color: var(--secondary-color, #003768);
  padding: 6px 16px;
  border-radius: 4px;
  font-size: 16px;
  margin-top: 8px;
}

/* T&C ordered lists */
.precario-tc ol {
  padding-left: 20px;
  margin: 0;
}

.precario-tc ol li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.precario-tc h5 {
  font-size: 14px;
  color: var(--secondary-color, #003768);
  margin-bottom: 6px;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .precario-subtitle {
    font-size: 16px;
  }

  .precario-table {
    font-size: 14px;
  }

  .precario-table thead th {
    font-size: 13px;
    padding: 10px 8px;
  }

  .precario-table tbody td {
    padding: 9px 8px;
  }

  .precario-panel .accordion-title {
    font-size: 14px;
    padding: 12px 14px;
  }

  .precario-panel .accordion-body {
    padding: 12px 14px;
  }
}

/* ========================================================================
   GALERIA DE FOTOS (#gallery)
   ======================================================================== */

#gallery {
  padding: 60px 0 50px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 0 6px;
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  background: #222;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease, filter 0.45s ease;
  filter: brightness(0.92);
}

.gallery-item:hover img {
  transform: scale(1.07);
  filter: brightness(0.65);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 16px 18px;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay span {
  color: #fff;
  font-family: 'Roboto Slab', serif;
  font-size: 15px;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0,0,0,0.7);
  letter-spacing: 0.02em;
}

/* Modal de fotos em fundo escuro */
#modal-fotos .modal-content {
  border: none;
  border-radius: 0;
}

#modal-fotos .carousel-item img {
  max-height: 80vh;
  object-fit: contain;
  background: #111;
}
