:root {
  --bg: #f3f4ef;
  --panel: #ffffff;
  --ink: #1d2a2a;
  --muted: #5d6a68;
  --teal: #0f766e;
  --teal-soft: #d9f0ec;
  --sand: #d9bf93;
  --danger: #f5d6d4;
  --success: #d6efe0;
  --line: #dce4df;
  --selected: #c7e2ff;
  --shadow: 0 10px 26px rgba(25, 50, 48, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: Manrope, "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 15% 20%, #e7efe6 0%, transparent 38%),
    radial-gradient(circle at 80% 8%, #f6ebda 0%, transparent 42%),
    var(--bg);
}

.aurora {
  position: fixed;
  inset: -20% -20% auto;
  height: 300px;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(15, 118, 110, 0.2), rgba(217, 191, 147, 0.28));
  filter: blur(38px);
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
  max-width: 1220px;
  margin: 0 auto;
  padding: 36px 18px 40px;
}

.hero {
  text-align: center;
  margin-bottom: 26px;
}

.hero-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 12px auto 0;
}

.control-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.control-label {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.lang-btn,
.currency-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 7px 11px;
  cursor: pointer;
}

.lang-btn.active,
.currency-btn.active {
  background: var(--teal-soft);
  color: var(--teal);
}

h1,
h2 {
  font-family: "DM Serif Display", Georgia, serif;
  margin: 0;
  font-weight: 400;
}

h1 {
  margin-top: 8px;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.02;
}

.hero-copy {
  max-width: 720px;
  margin: 10px auto 0;
  text-align: center;
  color: var(--muted);
}

.layout {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 16px;
  align-items: start;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.calendar-panel,
.booking-panel {
  padding: 16px;
}

.main-site-link-wrap {
  margin: 6px 0 12px;
  font-size: 13px;
  color: var(--muted);
}

.main-site-link {
  color: var(--teal);
  font-weight: 700;
  text-decoration: none;
}

.main-site-link:hover {
  text-decoration: underline;
}

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

.month-nav {
  display: flex;
  gap: 8px;
}

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--teal);
  font-size: 24px;
  cursor: pointer;
}

.icon-btn:hover {
  border-color: var(--teal);
  transform: translateY(-1px);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 8px 0 12px;
  font-size: 12px;
  color: var(--muted);
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chip {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.chip.available {
  background: var(--success);
}

.chip.unavailable {
  background: var(--danger);
}

.chip.selected {
  background: var(--selected);
}

.months-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.month {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px;
  background: #fff;
}

.month h3 {
  margin: 0 0 8px;
  font-size: 14px;
  text-align: center;
  color: #223331;
}

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

.weekdays span {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
}

.day {
  min-height: 0;
  aspect-ratio: 1 / 1;
  border-radius: 9px;
  border: 0.5px solid #d8e2dc;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  padding: 2px;
  overflow: hidden;
  transition: transform 120ms ease, border-color 120ms ease;
}

.day:hover {
  transform: translateY(-1px);
  border-color: var(--teal);
}

.day .price {
  font-size: 9px;
  font-weight: 700;
  color: #2e4d48;
  line-height: 1;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.day.empty {
  visibility: hidden;
  pointer-events: none;
}

.day.past {
  background: #f2f4f2;
  color: #94a39f;
  cursor: not-allowed;
}

.day.unavailable {
  background: var(--danger);
  color: #7f4340;
  cursor: not-allowed;
}

.day.available {
  background: var(--success);
}

.day.range {
  background: #e4f0ff;
}

.day.selected {
  border-color: #2680ff;
  background: var(--selected);
  color: #13437f;
  font-weight: 700;
}

.units {
  display: grid;
  gap: 8px;
  margin: 12px 0 14px;
}

.units-title {
  margin: 8px 0 6px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.units-section.hidden {
  display: none;
}

.unit-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  text-align: left;
  padding: 10px 12px;
  cursor: pointer;
  color: var(--ink);
}

.unit-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.unit-card.active {
  border-color: var(--teal);
  background: var(--teal-soft);
}

.unit-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 14px;
}

.unit-gallery.hidden {
  display: none;
}

.unit-photo {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 0;
  overflow: hidden;
}

.unit-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.summary-grid label {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.summary-grid p {
  margin: 2px 0 0;
  font-weight: 700;
}

.summary-grid select {
  width: 100%;
  margin-top: 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  height: 34px;
  padding: 4px 8px;
  font: inherit;
}

.price-box {
  border: 1px solid #e8eee9;
  border-radius: 12px;
  padding: 10px;
  background: #fbfdfb;
}

.price-box .line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  font-size: 14px;
}

.price-box .total {
  margin-top: 7px;
  padding-top: 8px;
  border-top: 1px solid #dbe5de;
  font-size: 16px;
}

.tax-note {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.booking-form {
  margin-top: 12px;
  display: grid;
  gap: 6px;
}

.booking-form label {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
}

.booking-form input,
.booking-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  font: inherit;
}

.booking-form input:focus,
.booking-form textarea:focus {
  outline: 2px solid rgba(15, 118, 110, 0.2);
  border-color: var(--teal);
}

#submitBtn {
  margin-top: 8px;
  height: 42px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(92deg, #1e8b7f, #12655e);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
}

#submitBtn:hover {
  filter: brightness(1.02);
}

#submitBtn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.form-note {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  background: #162826;
  color: #fff;
  padding: 10px 12px;
  border-radius: 10px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
  max-width: min(460px, calc(100vw - 32px));
  z-index: 10;
  pointer-events: none;
  font-size: 13px;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

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

@media (max-width: 680px) {
  .months-grid {
    gap: 8px;
  }

  .hero-controls {
    justify-content: center;
  }

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

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

  .page {
    padding: 24px 12px 28px;
  }
}
