:root {
  --bg: #fff7fb;
  --surface: #ffffff;
  --surface-alt: #ffeef2;
  --text: #2d2530;
  --muted: #6d6273;
  --primary: #ff4f9a;
  --primary-dark: #d6367b;
  --secondary: #7d5bff;
  --accent: #2cc6c9;
  --separator: linear-gradient(90deg, #ff87bd 0%, #8b6bff 50%, #42d4d7 100%);
  --shadow: 0 10px 28px rgba(50, 20, 40, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  padding-top: 110px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 130px;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.hero {
  min-height: 58vh;
  background: linear-gradient(130deg, #ffd8eb 0%, #d8ccff 50%, #c9f6f6 100%);
  border-bottom: 1px solid #e6c9ef;
}

.nav {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1200;
  width: min(1120px, 94%);
  margin: 0 auto;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-radius: 18px;
  background: linear-gradient(120deg, rgba(255, 116, 184, 0.82) 0%, rgba(126, 93, 255, 0.8) 35%, rgba(66, 211, 214, 0.78) 70%, rgba(255, 174, 88, 0.78) 100%);
  background-size: 240% 240%;
  border: 1px solid rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(8px);
  box-shadow: 0 14px 36px rgba(81, 32, 93, 0.28);
  animation: gradientFlow 11s ease-in-out infinite;
  transition: transform 0.28s ease, opacity 0.22s ease;
}

.nav.nav-hidden {
  transform: translate(-50%, -145%);
  opacity: 0;
  pointer-events: none;
}

.logo {
  width: 138px;
  height: auto;
  display: block;
}

.menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.menu-toggle {
  display: none;
  border: 0;
  border-radius: 10px;
  width: 44px;
  height: 40px;
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.45);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
}

.menu a {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.2px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.menu a:hover {
  color: #fff;
  background: linear-gradient(90deg, #ff4f9a 0%, #7d5bff 55%, #2cc6c9 100%);
  box-shadow: 0 8px 18px rgba(49, 14, 60, 0.3);
  transform: translateY(-1px);
}

@keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.hero-content {
  padding: 62px 0 48px;
  text-align: center;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.3rem);
  margin-bottom: 12px;
}

.hero-content p {
  max-width: 720px;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 1.07rem;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 60%, var(--accent) 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  background: linear-gradient(90deg, var(--primary-dark) 0%, #6547e8 55%, #22aeb1 100%);
  transform: translateY(-1px);
}

.section {
  position: relative;
  padding: 62px 0;
  scroll-margin-top: 130px;
}

.section + .section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1100px, 92%);
  height: 3px;
  border-radius: 999px;
  background: var(--separator);
}

.section h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin-bottom: 16px;
  text-align: center;
}

.section p {
  color: var(--muted);
  max-width: 780px;
}

.section-sobre {
  background: linear-gradient(180deg, #fff6fb 0%, #ffe8f4 100%);
}

.section-estrutura {
  background: linear-gradient(180deg, #fff2f9 0%, #ebddff 100%);
}

.section-galeria {
  background: linear-gradient(180deg, #f6f0ff 0%, #e6f8ff 100%);
}

.section-videos {
  background: linear-gradient(180deg, #eff8ff 0%, #e8fff9 100%);
}

.section-disponibilidade {
  background: linear-gradient(180deg, #eefcff 0%, #eaf3ff 100%);
}

.section-localizacao {
  background: linear-gradient(180deg, #f5f8ff 0%, #eef6ff 100%);
}

.map-container {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(143, 125, 202, 0.25);
  box-shadow: var(--shadow);
  max-width: 720px;
  margin: 0 auto;
}

.map-pin-label {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  max-width: min(100%, 300px);
  z-index: 2;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 20px rgba(80, 60, 120, 0.18);
  border: 1px solid rgba(143, 125, 202, 0.2);
  pointer-events: none;
}

.map-pin-title {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

.map-pin-address {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}

.map-frame {
  display: block;
  width: 100%;
  height: min(320px, 55vw);
  border: 0;
}

.map-hint {
  margin-top: 12px;
  text-align: center;
}

.map-link {
  color: var(--primary-dark);
  font-weight: 700;
  text-decoration: none;
}

.map-link:hover {
  text-decoration: underline;
}

.section-admin {
  background: linear-gradient(180deg, #f7f0ff 0%, #f1e8ff 100%);
}

body.admin-mode {
  padding-top: 0;
  overflow-x: hidden;
}

body.admin-mode .hero,
body.admin-mode #sobre,
body.admin-mode #estrutura,
body.admin-mode #galeria,
body.admin-mode #videos,
body.admin-mode #localizacao,
body.admin-mode #disponibilidade,
body.admin-mode .footer {
  display: none !important;
}

body.admin-mode #admin {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  padding: 36px 0;
}

.availability-box {
  margin-top: 16px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(143, 125, 202, 0.25);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.availability-box h3 {
  margin-bottom: 12px;
}

.days-list {
  list-style: none;
  display: grid;
  gap: 8px;
}

.day-item {
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 600;
}

.day-item.available {
  background: #e8fff1;
  border: 1px solid #b7efcd;
}

.day-item.booked {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #ffe9f2;
  border: 1px solid #ffc5dc;
}

.remove-booking {
  border: 0;
  border-radius: 999px;
  background: #cf2d6f;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 7px 12px;
  cursor: pointer;
}

.remove-booking:hover {
  background: #b81f5d;
}

.admin-form {
  margin-top: 18px;
  display: grid;
  gap: 10px;
  max-width: 360px;
}

.admin-form label {
  font-weight: 700;
}

.admin-form input[type="date"] {
  border: 1px solid #d9cbe7;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 1rem;
  background: #fff;
}

.admin-form input[type="text"] {
  border: 1px solid #d9cbe7;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 1rem;
  background: #fff;
}

.admin-form input[type="password"] {
  border: 1px solid #d9cbe7;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 1rem;
  background: #fff;
}

.btn-secondary {
  background: linear-gradient(90deg, #4d8dff 0%, #2cc6c9 100%);
}

.btn-secondary:hover {
  background: linear-gradient(90deg, #3676e2 0%, #21a8aa 100%);
}

.booking-info {
  display: inline-block;
  line-height: 1.4;
}

.admin-hidden {
  display: none !important;
}

.admin-login-card,
.admin-panel-card {
  max-width: 520px;
}

.admin-panel-card {
  max-width: 100%;
}

.admin-login-form {
  margin-top: 12px;
}

.admin-login-error {
  color: #b81f5d;
  font-weight: 700;
  font-size: 0.95rem;
}

.admin-login-hint {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

.admin-login-hint code {
  font-size: 0.8rem;
  background: #f0e8ff;
  padding: 2px 6px;
  border-radius: 6px;
}

.admin-login-modal {
  position: fixed;
  inset: 0;
  background: rgba(19, 10, 30, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
}

.admin-login-modal.open {
  display: flex;
}

.admin-login-dialog {
  position: relative;
  width: min(460px, 96vw);
  background: linear-gradient(180deg, #fff5fb 0%, #f4ecff 100%);
  border-radius: 18px;
  border: 1px solid rgba(171, 132, 218, 0.35);
  box-shadow: 0 18px 40px rgba(47, 22, 63, 0.3);
  padding: 22px;
}

.admin-login-dialog h2 {
  margin-bottom: 8px;
}

.admin-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.admin-panel-header h2 {
  margin-bottom: 0;
}

.btn-logout {
  background: linear-gradient(90deg, #6b6b7a 0%, #4a4a58 100%);
  font-size: 0.95rem;
  padding: 10px 18px;
}

.btn-logout:hover {
  background: linear-gradient(90deg, #555563 0%, #3a3a45 100%);
}

.calendar-wrap {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.calendar-title {
  margin: 0;
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  text-align: center;
  flex: 1;
}

.cal-nav-btn {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(90, 40, 120, 0.25);
}

.cal-nav-btn:hover {
  filter: brightness(1.08);
}

.calendar-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.calendar-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.calendar-row-head {
  margin-bottom: 4px;
}

.calendar-cell {
  aspect-ratio: 1;
  min-height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid transparent;
}

.calendar-cell-head {
  aspect-ratio: auto;
  min-height: auto;
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 0;
}

.calendar-cell-empty {
  background: transparent;
  border: 0;
}

.calendar-day-num {
  line-height: 1;
}

.calendar-day-available {
  background: linear-gradient(180deg, #e4ffef 0%, #c8f5dc 100%);
  border-color: #8fd9ae;
  color: #1d5c3a;
}

.calendar-day-booked {
  background: linear-gradient(180deg, #ffe0ee 0%, #ffc9df 100%);
  border-color: #f08ab5;
  color: #8a1f4d;
}

.calendar-day-past {
  background: #ececf0;
  border-color: #d5d5dc;
  color: #8a8790;
  font-weight: 600;
}

.calendar-day-action {
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.calendar-day-action:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  margin-top: 16px;
  justify-content: center;
  font-size: 0.88rem;
  color: var(--muted);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.legend-available {
  background: linear-gradient(180deg, #e4ffef 0%, #c8f5dc 100%);
}

.legend-booked {
  background: linear-gradient(180deg, #ffe0ee 0%, #ffc9df 100%);
}

.legend-past {
  background: #ececf0;
}

.cards {
  margin-top: 28px;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  position: relative;
  background: linear-gradient(155deg, #ffffff 0%, #fcf7ff 100%);
  border-radius: 16px;
  padding: 22px;
  border: 1px solid rgba(145, 117, 206, 0.22);
  box-shadow: 0 12px 28px rgba(56, 35, 90, 0.12);
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: -70% 40% auto -30%;
  height: 180px;
  background: radial-gradient(circle, rgba(255, 128, 186, 0.2) 0%, rgba(255, 128, 186, 0) 72%);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(118, 92, 206, 0.4);
  box-shadow: 0 18px 34px rgba(56, 35, 90, 0.2);
}

.card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  color: #3a2960;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(130deg, #ffe4f1 0%, #ece1ff 100%);
  box-shadow: inset 0 0 0 1px rgba(144, 120, 206, 0.2);
  font-size: 1.05rem;
}

.card p {
  position: relative;
  color: #5f5366;
}

.gallery-slider {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 54px 1fr 54px;
  align-items: center;
  gap: 10px;
}

.slide-image {
  width: 100%;
  height: min(60vh, 460px);
  object-fit: cover;
  border-radius: 14px;
  box-shadow: var(--shadow);
  cursor: zoom-in;
  touch-action: pan-y;
}

.slide-btn {
  height: 54px;
  width: 54px;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  color: var(--primary-dark);
  font-size: 1.5rem;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.slide-btn:hover {
  background: linear-gradient(90deg, #ffe2f0 0%, #ede5ff 100%);
}

.slide-dots {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.slide-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: #d5c6cf;
  cursor: pointer;
}

.slide-dot.active {
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
}

.video-grid {
  margin-top: 24px;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.media-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  padding: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px dashed rgba(131, 112, 188, 0.35);
}

.video-grid video {
  width: 100%;
  border-radius: 14px;
  background: #000;
  box-shadow: var(--shadow);
  cursor: zoom-in;
}

.media-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 24px;
}

.media-modal.open {
  display: flex;
}

.media-modal-content {
  max-width: min(1000px, 95vw);
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

#modalImage,
#modalVideo {
  display: none;
}

#modalVideo {
  width: min(1000px, 95vw);
}

.media-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  border: 0;
  background: #ffffff;
  color: #222;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.15rem;
  cursor: pointer;
}

.footer {
  position: relative;
  background: linear-gradient(180deg, #352331 0%, #291a26 100%);
  color: #fff;
  padding: 48px 0;
  text-align: center;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1100px, 92%);
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffd7e7 0%, #e4d5ff 50%, #ffd7e7 100%);
}

.footer p {
  color: #efdeea;
}

.whatsapp-booking-form {
  margin: 18px auto 8px;
  max-width: 420px;
  display: grid;
  gap: 10px;
}

.whatsapp-booking-form label {
  color: #f6ecf3;
  font-weight: 700;
}

.whatsapp-booking-form input[type="date"] {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 1rem;
}

.whatsapp-float-btn {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9500;
  border: 0;
  border-radius: 50%;
  width: 62px;
  height: 62px;
  color: #fff;
  background: linear-gradient(90deg, #1fa855 0%, #27d366 100%);
  box-shadow: 0 12px 24px rgba(22, 103, 54, 0.35);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.whatsapp-float-btn:hover {
  filter: brightness(1.06);
}

.chat-icon {
  font-size: 1.65rem;
  line-height: 1;
}

.whatsapp-calendar-modal {
  position: fixed;
  inset: 0;
  background: rgba(18, 13, 34, 0.76);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  padding: 18px;
}

.whatsapp-calendar-modal.open {
  display: flex;
}

.whatsapp-calendar-dialog {
  position: relative;
  width: min(560px, 96vw);
  background: linear-gradient(180deg, #fff9fc 0%, #f2f0ff 100%);
  border: 1px solid rgba(155, 121, 201, 0.28);
  border-radius: 16px;
  box-shadow: 0 20px 45px rgba(31, 20, 55, 0.32);
  padding: 22px;
}

.whatsapp-calendar-dialog h2 {
  margin-bottom: 8px;
}

.footer .small {
  margin-top: 10px;
  font-size: 0.9rem;
  opacity: 0.9;
}

@media (max-width: 720px) {
  body {
    padding-top: 126px;
  }

  .nav {
    flex-direction: row;
    align-items: center;
    top: 8px;
    gap: 12px;
    padding: 14px 12px;
    position: fixed;
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .menu {
    width: 100%;
    display: none;
    flex-direction: column;
    gap: 8px;
    padding-top: 4px;
  }

  .menu.open {
    display: flex;
  }

  .menu a {
    width: 100%;
    text-align: center;
    padding: 10px 13px;
    font-size: 0.95rem;
  }

  .gallery-slider {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .slide-btn {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav {
    animation: none;
  }
}
