@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Space+Grotesk:wght@300;400;500;600&display=swap");

:root {
  color-scheme: light;
  --sand: #f7efe6;
  --foam: #edf6f5;
  --sea: #1d5961;
  --deep: #0b262b;
  --terracotta: #d77c62;
  --olive: #6c7a5a;
  --sun: #f4c36a;
  --ink: #0a1c1f;
  --muted: rgba(10, 28, 31, 0.68);
  --glass: rgba(255, 255, 255, 0.72);
  --stroke: rgba(10, 28, 31, 0.12);
  --shadow: 0 18px 40px rgba(11, 38, 43, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--sand);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(244, 195, 106, 0.35), transparent 45%),
    radial-gradient(circle at 80% 0%, rgba(215, 124, 98, 0.35), transparent 38%),
    radial-gradient(circle at 10% 90%, rgba(29, 89, 97, 0.32), transparent 50%),
    linear-gradient(140deg, #f7efe6 0%, #f2f7f6 45%, #e5f1f0 100%);
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(11, 38, 43, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 38, 43, 0.05) 1px, transparent 1px);
  background-size: 120px 120px;
  opacity: 0.4;
  z-index: -1;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--sea);
}

.page {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 24px 24px 48px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand img {
  width: 54px;
  height: 54px;
}

.brand-name {
  display: block;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 1.6rem;
  letter-spacing: 0.02em;
}

.brand-tag {
  display: block;
  font-size: 0.88rem;
  color: var(--muted);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.7);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
}

.site-nav {
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 0.95rem;
}

.site-nav.simple {
  gap: 12px;
}

.site-nav a {
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover {
  border-bottom-color: var(--terracotta);
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.7);
}

.lang-btn {
  border: none;
  background: transparent;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  font-weight: 600;
  cursor: pointer;
  color: var(--muted);
}

.lang-btn.is-active {
  background: var(--sea);
  color: #fff;
}

.hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  align-items: center;
  margin-bottom: 64px;
}

.hero-copy h1 {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  line-height: 1.05;
  margin: 14px 0 18px;
}

.lead {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 520px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--sea);
  font-weight: 600;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 16px;
}

.hero-link {
  margin-bottom: 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn.primary {
  background: var(--sea);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--stroke);
}

.btn.outline {
  background: transparent;
  border-color: var(--sea);
  color: var(--sea);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.is-disabled {
  opacity: 0.5;
  pointer-events: none;
}

.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.contact-mini {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.contact-mini .label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.hero-panel .panel {
  padding: 24px;
}

.panel {
  background: var(--glass);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.badge {
  background: rgba(215, 124, 98, 0.15);
  color: var(--terracotta);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.quick-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 20px;
  display: grid;
  gap: 10px;
}

.quick-list li {
  padding-left: 18px;
  position: relative;
}

.quick-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--sun);
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 7px;
}

.availability-card {
  background: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid var(--stroke);
}

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

.status {
  font-size: 0.78rem;
  color: var(--olive);
}

.availability-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.availability-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(29, 89, 97, 0.08);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  color: var(--sea);
  font-weight: 600;
}

.section {
  margin: 72px 0;
}

.section-header {
  max-width: 640px;
  margin-bottom: 28px;
}

.section-header h2 {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin: 12px 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.feature {
  padding: 22px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--stroke);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.room-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  background: rgba(255, 255, 255, 0.9);
  aspect-ratio: 4 / 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.room-card {
  background: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-md);
  border: 1px solid var(--stroke);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.room-card[data-room-card] {
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.room-card[data-room-card]:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(11, 38, 43, 0.16);
}

.room-card[data-room-card]:focus-visible {
  outline: 2px solid rgba(29, 89, 97, 0.5);
  outline-offset: 4px;
}

.room-photo {
  height: 220px;
  background: linear-gradient(135deg, rgba(29, 89, 97, 0.2), rgba(215, 124, 98, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
}

.room-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.room-body {
  padding: 18px;
}

.room-body h3 {
  margin: 0 0 6px;
}

.room-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 12px;
}

.room-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 20;
}

.room-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.room-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 38, 43, 0.5);
  backdrop-filter: blur(6px);
}

.room-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(980px, 92vw);
  max-height: 90vh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: translateY(12px);
  transition: transform 0.3s ease;
}

.room-modal.is-open .room-modal-dialog {
  transform: translateY(0);
}

.room-modal-media {
  position: relative;
  background: linear-gradient(135deg, rgba(29, 89, 97, 0.15), rgba(215, 124, 98, 0.18));
  min-height: 320px;
}

.room-modal-media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.room-modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.85);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.4rem;
  color: var(--deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.room-modal-nav.is-prev {
  left: 16px;
}

.room-modal-nav.is-next {
  right: 16px;
}

.room-modal-nav:disabled {
  opacity: 0.4;
  cursor: default;
}

.room-modal-count {
  position: absolute;
  bottom: 14px;
  right: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(10, 28, 31, 0.7);
  color: #fff;
  font-size: 0.8rem;
}

.room-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.9);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.2rem;
  color: var(--deep);
  cursor: pointer;
}

.room-modal-content {
  padding: 32px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.room-modal-content h3 {
  margin: 0;
}

.room-modal-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--muted);
}

.room-modal-section h4 {
  margin-bottom: 6px;
}

.room-modal-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

body.modal-open {
  overflow: hidden;
}

.availability-layout,
.location-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.availability-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.availability-panel-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--muted);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.legend-item::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(29, 89, 97, 0.2);
  border: 1px solid rgba(11, 38, 43, 0.12);
}

.legend-item.is-available::before {
  background: rgba(29, 89, 97, 0.2);
}

.legend-item.is-partial::before {
  background: rgba(244, 195, 106, 0.3);
}

.legend-item.is-blocked::before {
  background: rgba(215, 124, 98, 0.25);
}

.calendar-wrapper {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.calendar-month {
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-md);
  border: 1px solid var(--stroke);
  padding: 16px;
}

.calendar-month-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-weight: 600;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.calendar-weekday {
  text-align: center;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 4px;
}

.calendar-day {
  border: 1px solid transparent;
  background: transparent;
  border-radius: 12px;
  padding: 8px 0;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.calendar-day.is-available {
  background: rgba(29, 89, 97, 0.14);
  color: #0f4f57;
}

.calendar-day.is-partial {
  background: rgba(244, 195, 106, 0.25);
  color: #8a5b00;
}

.calendar-day.is-blocked {
  background: rgba(215, 124, 98, 0.2);
  color: #9b4b3a;
}

.calendar-day.is-outside,
.calendar-day.is-disabled {
  opacity: 0.3;
  pointer-events: none;
}

.calendar-day.is-selected,
.calendar-day.is-in-range {
  border-color: rgba(29, 89, 97, 0.6);
  box-shadow: 0 0 0 2px rgba(29, 89, 97, 0.15);
}

.calendar-day.is-selected {
  transform: translateY(-1px);
}

.range-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.range-summary .label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.range-summary .range-text {
  font-weight: 600;
}

.range-summary .text-link {
  margin-top: 0;
}

.room-options {
  display: grid;
  gap: 12px;
}

.room-option {
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease;
}

.room-option .room-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.85rem;
  color: var(--muted);
}

.room-option .room-name {
  font-weight: 600;
  color: var(--ink);
  font-size: 1rem;
}

.room-option.is-selected {
  border-color: rgba(29, 89, 97, 0.6);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.availability-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.steps-title {
  margin: 8px 0 0;
}

.availability-how {
  margin-top: 24px;
}

.steps {
  padding-left: 20px;
  margin: 12px 0;
  color: var(--muted);
}

.cta-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.location-grid .panel {
  align-self: stretch;
}

.map-card {
  background: linear-gradient(160deg, rgba(29, 89, 97, 0.2), rgba(244, 195, 106, 0.2));
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke);
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.map-card::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px dashed rgba(11, 38, 43, 0.2);
  border-radius: var(--radius-md);
}

.map-overlay {
  text-align: center;
  color: var(--muted);
  position: relative;
  z-index: 1;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 32px 0 12px;
  border-top: 1px solid rgba(11, 38, 43, 0.08);
}

.footer-links {
  display: flex;
  gap: 16px;
}

.muted {
  color: var(--muted);
}

.note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 12px;
}

.page-hero {
  padding: 36px 0 12px;
}

.page-hero h1 {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: clamp(2.3rem, 4vw, 3.2rem);
  margin: 12px 0;
}

.room-detail {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  margin-bottom: 28px;
  align-items: center;
}

.room-detail-body h2 {
  margin-top: 0;
}

.amenities,
.guide-list {
  padding-left: 18px;
  margin: 12px 0;
  color: var(--muted);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

[data-animate] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

  .feature-grid,
  .room-grid,
  .guide-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .availability-layout,
  .location-grid,
  .contact-grid,
  .room-detail {
    grid-template-columns: 1fr;
  }

  .calendar-wrapper {
    grid-template-columns: 1fr;
  }

  .room-modal-dialog {
    grid-template-columns: 1fr;
    max-height: 92vh;
  }

  .room-modal-content {
    padding: 24px;
  }

  .room-modal-media img {
    min-height: 240px;
  }
}

@media (max-width: 760px) {
  .site-header {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    flex-direction: column;
    width: 100%;
    align-items: flex-start;
    gap: 10px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .site-nav.is-open {
    max-height: 260px;
  }

  .lang-toggle {
    width: 100%;
    justify-content: flex-start;
  }

  .contact-mini {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .room-modal {
    padding: 16px;
  }

  .room-modal-nav {
    width: 34px;
    height: 34px;
    font-size: 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  [data-animate] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn {
    transition: none;
  }
}
