@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Playfair+Display:wght@600;700&display=swap');

:root {
  --cvx-navy: #12324a;
  --cvx-forest: #5f7f6b;
  --cvx-gold: #c8a96b;
  --cvx-sand: #f7f3ec;
  --cvx-ink: #14212b;
  --cvx-muted: #667085;
  --cvx-line: rgba(18, 50, 74, 0.08);
  --cvx-shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--cvx-ink);
  background:
    radial-gradient(circle at top left, rgba(200, 169, 107, 0.12), transparent 28%),
    linear-gradient(180deg, #fff 0%, #fcfbf8 100%);
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}

img,
iframe,
video,
svg {
  max-width: 100%;
}

h1, h2, h3, h4, .font-display {
  font-family: 'Playfair Display', serif;
}

.glass {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
}

.premium-card {
  border: 1px solid var(--cvx-line);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--cvx-shadow);
}

.section-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding-inline: 1rem;
  width: 100%;
}

@media (min-width: 768px) {
  .section-shell {
    padding-inline: 1.5rem;
  }
}

.hero-overlay {
  background: linear-gradient(135deg, rgba(18, 50, 74, 0.82), rgba(18, 50, 74, 0.45), rgba(95, 127, 107, 0.35));
}

.image-mask {
  position: relative;
  overflow: hidden;
}

.image-mask img {
  transition: transform 0.7s ease;
}

.image-mask:hover img {
  transform: scale(1.05);
}

.badge-premium {
  background: rgba(200, 169, 107, 0.14);
  color: #8f6b28;
  border: 1px solid rgba(200, 169, 107, 0.25);
}

.badge-soft {
  background: rgba(18, 50, 74, 0.06);
  color: var(--cvx-navy);
  border: 1px solid rgba(18, 50, 74, 0.08);
}

.text-balance {
  text-wrap: balance;
}

.cta-ring {
  box-shadow: 0 10px 24px rgba(18, 50, 74, 0.14), inset 0 0 0 1px rgba(255,255,255,0.2);
}

.skeleton {
  background: linear-gradient(90deg, rgba(226,232,240,0.9) 25%, rgba(241,245,249,1) 50%, rgba(226,232,240,0.9) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.fade-up {
  animation: fadeUp 0.5s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-nav-safe {
  padding-bottom: calc(1rem + env(safe-area-inset-bottom));
}

.sticky-summary {
  top: 6rem;
}

.range-input {
  accent-color: var(--cvx-navy);
}

dialog::backdrop {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
}

.leaflet-map,
.map-frame {
  min-height: 320px;
  border-radius: 1.5rem;
  overflow: hidden;
}

.prose-premium p {
  color: #475467;
  line-height: 1.8;
}

.prose-premium li {
  color: #475467;
  line-height: 1.7;
}

.form-field {
  border: 1px solid rgba(18, 50, 74, 0.12);
  background: rgba(255,255,255,0.95);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.form-field:focus,
.form-field:focus-within {
  border-color: rgba(18, 50, 74, 0.45);
  box-shadow: 0 0 0 4px rgba(18, 50, 74, 0.08);
}

#app {
  width: 100%;
  overflow-x: clip;
}

#search-form {
  width: 100%;
}

#search-form .grid {
  align-items: end;
}

#search-form label {
  min-width: 0;
}

#search-form input,
#search-form select,
#search-form button {
  min-width: 0;
}

#children-ages {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

table {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

dialog {
  max-width: calc(100vw - 1rem);
  margin: auto;
}

@media (max-width: 1279px) {
  #search-form > .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .premium-card {
    border-radius: 1.5rem !important;
  }

  .page-hero .section-shell {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  #search-form {
    padding: 1rem;
  }

  #search-form > .grid {
    grid-template-columns: 1fr;
    gap: 0.875rem;
  }

  #search-form .form-field,
  #search-form input,
  #search-form select,
  #search-form button {
    height: 3.5rem;
  }

  #search-form .cta-ring,
  #search-form button {
    width: 100%;
  }

  #search-form .inline-flex.rounded-full {
    width: 100%;
    justify-content: center;
  }

  .sticky-summary {
    position: static !important;
    top: auto;
  }

  dialog {
    width: calc(100vw - 1rem);
    border-radius: 1.25rem;
  }
}

@media (max-width: 479px) {
  .section-shell {
    padding-inline: 0.75rem;
  }

  h1,
  h2,
  h3 {
    word-break: break-word;
  }

  #search-form {
    border-radius: 1.25rem !important;
  }

  #search-form .mt-4.flex {
    flex-direction: column;
    align-items: stretch;
  }

  #search-form .mt-4.flex > span {
    width: 100%;
  }
}

.btn-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.88;
}

.btn-loading::after {
  content: '';
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.45);
  border-top-color: white;
  position: absolute;
  right: 1rem;
  top: 50%;
  margin-top: -.5rem;
  animation: spin .8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.page-hero {
  background: linear-gradient(180deg, rgba(18,50,74,0.96), rgba(18,50,74,0.82)), url('https://images.unsplash.com/photo-1505693416388-ac5ce068fe85?auto=format&fit=crop&w=1600&q=80') center/cover;
}

.floating-whatsapp {
  box-shadow: 0 16px 32px rgba(34, 197, 94, 0.28);
}

.toast-progress {
  background: linear-gradient(90deg, var(--cvx-gold), var(--cvx-navy)) !important;
}

.swal2-popup {
  border-radius: 1.5rem !important;
}
