:root {
  --primary: #6f42c1;
  --primary-dark: #56309a;
  --primary-light: #8b5cf6;
  --accent: #f59e0b;
  --ink: #252232;
  --muted: #696575;
  --surface: #ffffff;
  --surface-soft: #f8f7fb;
  --border: #e8e4f0;
  --success: #1f7a4d;
  --danger: #b42318;
  --shadow: 0 12px 34px rgba(56, 38, 92, 0.1);
  --radius: 18px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface-soft);
  color: var(--ink);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.65;
}

body.lightbox-open {
  overflow: hidden;
}

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

a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 3000;
  padding: 10px 16px;
  border-radius: 10px;
  background: white;
  color: var(--primary-dark);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  box-shadow: 0 5px 24px rgba(48, 25, 91, 0.22);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  color: white;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
  white-space: nowrap;
}

.brand span {
  color: #ffe7a7;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav a {
  color: white;
  font-weight: 650;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: #ffe7a7;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  color: white;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 560px;
  display: grid;
  place-items: center;
  color: white;
  background-position: center;
  background-size: cover;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, rgba(53, 27, 98, 0.88), rgba(111, 66, 193, 0.55) 58%, rgba(21, 18, 29, 0.25));
}

.hero-home {
  background-image: url("../images/zamorei/zamorei-01.webp");
}

.hero-content {
  max-width: 790px;
  padding-block: 90px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #ffe7a7;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(2.3rem, 5.8vw, 4.75rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.hero p {
  max-width: 700px;
  margin: 24px 0 30px;
  font-size: clamp(1.08rem, 2vw, 1.3rem);
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--primary);
  color: white;
  font-weight: 750;
  text-decoration: none;
  box-shadow: 0 7px 18px rgba(75, 39, 139, 0.2);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(75, 39, 139, 0.28);
}

.button-light {
  background: white;
  color: var(--primary-dark);
}

.button-light:hover {
  background: #f5efff;
}

.button-outline {
  border-color: var(--primary);
  background: transparent;
  color: var(--primary);
  box-shadow: none;
}

.button-outline:hover {
  color: white;
}

.button-full {
  width: 100%;
}

.section {
  padding-block: 76px;
}

.section-tight {
  padding-block: 46px;
}

.section-white {
  background: white;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 38px;
  text-align: center;
}

.section-heading h2,
.content-card h2,
.booking-panel h2 {
  margin: 0 0 14px;
  color: var(--primary-dark);
  font-size: clamp(1.8rem, 4vw, 2.65rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.card,
.content-card,
.booking-panel,
.property-card,
.feature-card,
.review-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

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

.feature-card {
  padding: 25px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 15px;
  border-radius: 14px;
  background: #f0e9ff;
  font-size: 1.5rem;
}

.feature-card h3,
.property-card h3,
.content-card h3 {
  margin: 0 0 8px;
  color: var(--primary-dark);
  font-size: 1.22rem;
}

.feature-card p,
.property-card p {
  margin: 0;
  color: var(--muted);
}

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

.property-card {
  overflow: hidden;
}

.property-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.property-card-body {
  padding: 28px;
}

.property-card-topline {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.price {
  flex: 0 0 auto;
  color: var(--primary-dark);
  font-size: 1.2rem;
  font-weight: 800;
}

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

.check-list,
.plain-list {
  margin: 22px 0;
  padding: 0;
  list-style: none;
}

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

.check-list li::before {
  content: "✓";
  margin-right: 9px;
  color: var(--success);
  font-weight: 900;
}

.booking-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 30px;
  align-items: start;
}

.booking-copy,
.booking-panel,
.content-card {
  padding: clamp(24px, 4vw, 42px);
}

.booking-copy {
  position: sticky;
  top: 104px;
}

.booking-copy h2 {
  margin-top: 0;
  color: var(--primary-dark);
  font-size: clamp(1.8rem, 4vw, 2.55rem);
  line-height: 1.15;
}

.booking-copy .contact-links {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

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

.field {
  display: grid;
  gap: 7px;
}

.field-full {
  grid-column: 1 / -1;
}

.field label,
.field-label {
  color: #373142;
  font-weight: 700;
}

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

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #cfc8dc;
  border-radius: 11px;
  background: white;
  color: var(--ink);
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--primary-light);
  outline: none;
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 0.94rem;
}

.consent input {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  margin-top: 3px;
  accent-color: var(--primary);
}

.form-status,
.calendar-status {
  grid-column: 1 / -1;
  margin: 0;
  padding: 11px 13px;
  border-radius: 10px;
  background: #f2eef9;
  color: var(--primary-dark);
  font-size: 0.94rem;
}

.form-status:empty,
.calendar-status:empty {
  display: none;
}

.form-status[data-state="error"],
.calendar-status[data-state="error"] {
  background: #fff0ef;
  color: var(--danger);
}

.form-status[data-state="success"] {
  background: #eaf7f0;
  color: var(--success);
}

.booking-summary {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid #ded6ec;
  border-radius: 12px;
  background: #fbf9ff;
}

.booking-summary strong {
  color: var(--primary-dark);
}

.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
  border-color: #f4dddd;
  background: #f4dddd;
  color: #a77777;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover {
  border-color: var(--primary);
  background: var(--primary);
}

.flatpickr-day.inRange {
  border-color: #e8dcff;
  background: #e8dcff;
  box-shadow: -5px 0 0 #e8dcff, 5px 0 0 #e8dcff;
}

.page-hero {
  padding: 76px 0 42px;
  color: white;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
}

.page-hero h1 {
  max-width: 880px;
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.page-hero p {
  max-width: 780px;
  margin: 18px 0 0;
  font-size: 1.15rem;
}

.breadcrumbs {
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.92rem;
}

.breadcrumbs a {
  color: white;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.fact {
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 700;
}

.gallery {
  display: grid;
  grid-template-columns: 1.65fr 1fr 1fr;
  grid-template-rows: repeat(2, 220px);
  gap: 10px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #e8e5ec;
  box-shadow: var(--shadow);
}

.gallery-item {
  position: relative;
  min-width: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: #ded8e8;
  cursor: zoom-in;
}

.gallery-item:first-child {
  grid-row: 1 / 3;
}

.gallery-item:nth-of-type(n + 6) {
  display: none;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.gallery-more {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(29, 22, 39, 0.82);
  color: white;
  font-size: 0.88rem;
  font-weight: 750;
}

.property-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 30px;
  align-items: start;
}

.property-main {
  display: grid;
  gap: 26px;
}

.property-sidebar {
  position: sticky;
  top: 102px;
}

.price-card {
  padding: 28px;
}

.price-card .price-large {
  color: var(--primary-dark);
  font-size: 2rem;
  font-weight: 850;
}

.price-card .price-large small {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.detail-item {
  padding: 14px;
  border-radius: 12px;
  background: #f7f3fd;
}

.detail-item strong,
.detail-item span {
  display: block;
}

.detail-item span {
  color: var(--muted);
  font-size: 0.9rem;
}

.amenity-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.amenity-group h3 {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.amenity-group ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.amenity-group li::before {
  content: "✓";
  margin-right: 8px;
  color: var(--success);
  font-weight: 900;
}

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

.review-card {
  padding: 24px;
}

.stars {
  color: #e7a20a;
  letter-spacing: 0.12em;
}

.review-card blockquote {
  margin: 13px 0 16px;
  color: #464050;
}

.review-card cite {
  color: var(--muted);
  font-style: normal;
  font-weight: 700;
}

.terms-layout {
  max-width: 850px;
  margin-inline: auto;
}

.terms-layout .content-card + .content-card {
  margin-top: 22px;
}

.terms-layout h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.notice {
  padding: 18px 20px;
  border-left: 4px solid var(--primary);
  border-radius: 0 12px 12px 0;
  background: #f4effd;
}

.site-footer {
  padding: 58px 0 24px;
  background: #292431;
  color: #d8d3df;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 36px;
}

.site-footer h2,
.site-footer h3 {
  margin-top: 0;
  color: white;
}

.site-footer a {
  display: block;
  margin: 7px 0;
  color: #eee9f5;
  text-decoration: none;
}

.site-footer a:hover {
  color: #ffe7a7;
}

.footer-bottom {
  margin-top: 38px;
  padding-top: 20px;
  border-top: 1px solid #474150;
  color: #aaa4b2;
  font-size: 0.92rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 70px;
  align-items: center;
  padding: 24px;
  background: rgba(15, 11, 21, 0.96);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-figure {
  max-width: 1180px;
  max-height: calc(100vh - 90px);
  margin: auto;
}

.lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 130px);
  margin: auto;
  object-fit: contain;
}

.lightbox figcaption {
  margin-top: 10px;
  color: white;
  text-align: center;
}

.lightbox button {
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 1.6rem;
  cursor: pointer;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
}

@media (max-width: 980px) {
  .feature-grid,
  .reviews-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .booking-wrap,
  .property-layout {
    grid-template-columns: 1fr;
  }

  .booking-copy,
  .property-sidebar {
    position: static;
  }

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

@media (max-width: 760px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .main-nav {
    position: absolute;
    top: 76px;
    right: 14px;
    left: 14px;
    display: none;
    padding: 16px;
    border-radius: 14px;
    background: var(--primary-dark);
    box-shadow: var(--shadow);
  }

  .main-nav[data-open="true"] {
    display: block;
  }

  .main-nav ul {
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
  }

  .main-nav a {
    display: block;
    padding: 10px;
  }

  .hero {
    min-height: 520px;
  }

  .hero-content {
    padding-block: 70px;
  }

  .section {
    padding-block: 56px;
  }

  .property-grid,
  .feature-grid,
  .reviews-grid,
  .amenity-groups {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 280px 150px;
  }

  .gallery-item:first-child {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .gallery-item:nth-of-type(4),
  .gallery-item:nth-of-type(5) {
    display: none;
  }

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

  .booking-form {
    grid-template-columns: 1fr;
  }

  .field,
  .field-full {
    grid-column: 1;
  }

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

@media (max-width: 520px) {
  .hero-actions,
  .button-row {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .field-row,
  .check-list,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-rows: 250px 130px;
  }

  .lightbox {
    grid-template-columns: 46px minmax(0, 1fr) 46px;
    padding: 10px;
  }

  .lightbox button {
    width: 40px;
    height: 40px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
