/* Perigiali Villas — modern Ionian aesthetic */
:root {
  --color-deep: #0c2d33;
  --color-sea: #1a5c66;
  --color-sand: #d4c4a8;
  --color-gold: #b8956a;
  --color-cream: #f6f1e8;
  --color-white: #faf9f6;
  --color-muted: rgba(246, 241, 232, 0.72);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 24px 48px rgba(12, 45, 51, 0.18);
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--color-cream);
  background: var(--color-deep);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-sand);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--color-white);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: linear-gradient(180deg, rgba(12, 45, 51, 0.92) 0%, rgba(12, 45, 51, 0.65) 70%, transparent 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.35s var(--ease);
}

.site-header.scrolled {
  background: rgba(12, 45, 51, 0.94);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-white);
}

.logo span {
  font-weight: 400;
  color: var(--color-sand);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
}

.site-nav a {
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--color-white);
}

.nav-cta {
  padding: 0.45rem 1rem;
  border: 1px solid var(--color-gold);
  border-radius: 999px;
  color: var(--color-gold) !important;
}

.nav-cta:hover {
  background: var(--color-gold);
  color: var(--color-deep) !important;
}

.lang-switch {
  display: flex;
  border: 1px solid rgba(212, 196, 168, 0.35);
  border-radius: 999px;
  overflow: hidden;
}

.lang-switch button {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.4rem 0.65rem;
  border: none;
  background: transparent;
  color: var(--color-muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.lang-switch button.active {
  background: var(--color-sea);
  color: var(--color-white);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-cream);
  transition: transform 0.25s var(--ease);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 1.5rem;
    background: rgba(12, 45, 51, 0.98);
    border-bottom: 1px solid rgba(212, 196, 168, 0.12);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s var(--ease), opacity 0.25s, visibility 0.25s;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + 2rem) 1.5rem 4rem;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    url("https://images.unsplash.com/photo-1613490493576-7fde63acd811?w=1920&q=80") center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(12, 45, 51, 0.75) 0%,
    rgba(12, 45, 51, 0.45) 45%,
    rgba(26, 92, 102, 0.35) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  text-align: center;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-sand);
  margin: 0 0 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 600;
  line-height: 1.12;
  color: var(--color-white);
  margin: 0 0 1.25rem;
  text-wrap: balance;
}

.hero-lead {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--color-muted);
  margin: 0 0 2rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, color 0.2s, box-shadow 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--color-gold);
  color: var(--color-deep);
}

.btn-primary:hover {
  background: #c9a67a;
  color: var(--color-deep);
  box-shadow: 0 8px 28px rgba(184, 149, 106, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--color-white);
  border: 1px solid rgba(246, 241, 232, 0.45);
}

.btn-ghost:hover {
  background: rgba(246, 241, 232, 0.1);
  border-color: var(--color-cream);
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 44px;
  border: 2px solid rgba(246, 241, 232, 0.4);
  border-radius: 14px;
  z-index: 1;
}

.scroll-hint::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  background: var(--color-sand);
  border-radius: 2px;
  animation: scroll-dot 2s var(--ease) infinite;
}

@keyframes scroll-dot {
  0%,
  100% {
    opacity: 1;
    transform: translateY(0);
  }
  50% {
    opacity: 0.4;
    transform: translateY(12px);
  }
}

/* Sections */
.section {
  padding: clamp(4rem, 10vw, 6.5rem) 1.5rem;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.container.narrow {
  max-width: 720px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  color: var(--color-white);
  margin: 0 0 1.25rem;
  line-height:1.2;
}

.section-title.centered {
  text-align: center;
}

.section-sub {
  text-align: center;
  color: var(--color-muted);
  margin: -0.5rem 0 2.5rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.prose p {
  margin: 0 0 1rem;
  color: var(--color-muted);
}

.prose p:last-child {
  margin-bottom: 0;
}

/* Welcome */
.section-welcome {
  background: linear-gradient(180deg, var(--color-deep) 0%, #0f383e 100%);
}

/* Villas */
.section-villas {
  background: #0a2529;
}

.villa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.villa-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(246, 241, 232, 0.04);
  border: 1px solid rgba(212, 196, 168, 0.12);
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease), border-color 0.25s;
}

.villa-card:hover {
  transform: translateY(-6px);
  border-color: rgba(184, 149, 106, 0.35);
}

.villa-card-media {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
}

.villa-villy {
  background-image: url("https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?w=800&q=80");
}

.villa-vassia {
  background-image: url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?w=800&q=80");
}

.villa-card-body {
  padding: 1.75rem 1.5rem 2rem;
}

.villa-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin: 0 0 0.5rem;
  color: var(--color-white);
}

.villa-card-body p {
  margin: 0 0 1rem;
  color: var(--color-muted);
  font-size: 0.98rem;
}

.text-link {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.text-link:hover {
  color: var(--color-sand);
}

/* Gallery */
.section-gallery {
  background: var(--color-deep);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(4, minmax(100px, 140px));
  gap: 0.65rem;
}

.gallery-item {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.gallery-item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  padding: 0.65rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-white);
  background: linear-gradient(transparent, rgba(12, 45, 51, 0.85));
}

.gallery-item:has(.glightbox) {
  background-image: none !important;
}

.gallery-item .glightbox {
  position: absolute;
  inset: 0;
  display: block;
  line-height: 0;
}

.home-gallery {
  margin-top: 0.25rem;
}

.gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.gallery-tab {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 196, 168, 0.35);
  background: rgba(246, 241, 232, 0.06);
  color: var(--color-sand);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.gallery-tab:hover {
  border-color: rgba(212, 196, 168, 0.55);
  color: var(--color-white);
}

.gallery-tab[aria-selected="true"] {
  background: rgba(184, 149, 106, 0.25);
  border-color: var(--color-gold);
  color: var(--color-white);
}

.g1 {
  grid-column: 1 / 4;
  grid-row: 1 / 3;
  background-image: url("https://images.unsplash.com/photo-1506929562872-bb421503ef21?w=900&q=80");
}

.g2 {
  grid-column: 4 / 7;
  grid-row: 1 / 2;
  background-image: url("https://images.unsplash.com/photo-1576013551627-0cc20b96c2a7?w=800&q=80");
}

.g3 {
  grid-column: 4 / 6;
  grid-row: 2 / 3;
  background-image: url("https://images.unsplash.com/photo-1519046904884-53103b34b206?w=600&q=80");
}

.g4 {
  grid-column: 6 / 7;
  grid-row: 2 / 4;
  background-image: url("https://images.unsplash.com/photo-1566073771259-6a8506099945?w=600&q=80");
}

.g5 {
  grid-column: 1 / 3;
  grid-row: 3 / 5;
  background-image: url("https://images.unsplash.com/photo-1439066615861-d1af74d74000?w=700&q=80");
}

.g6 {
  grid-column: 3 / 7;
  grid-row: 3 / 5;
  background-image: url("https://images.unsplash.com/photo-1520250497591-112f2f40a3f4?w=1000&q=80");
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
  }

  .g1,
  .g2,
  .g3,
  .g4,
  .g5,
  .g6 {
    grid-column: auto;
    grid-row: auto;
    min-height: 160px;
  }

  .g1 {
    grid-column: 1 / -1;
    min-height: 220px;
  }
}

/* Facilities */
.section-facilities {
  background: linear-gradient(135deg, #0f383e 0%, var(--color-deep) 100%);
}

.facilities-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  max-width: none;
  width: 100%;
}

.facilities-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(1.75rem, 4vw, 3rem);
}

.facilities-stack__text {
  width: 100%;
  max-width: none;
}

.facilities-stack__media {
  width: 100%;
  min-width: 0;
}

/* Facilities only: title + list left, slider right (vertically centered vs text block) */
.facilities-stack.facilities-stack--slider-right {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.facilities-stack.facilities-stack--slider-right > * {
  min-width: 0;
}

@media (max-width: 900px) {
  .facilities-stack.facilities-stack--slider-right {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }
}

.facilities-list li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--color-muted);
}

.facilities-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(184, 149, 106, 0.25);
}

/* Region */
.section-region {
  background: #0a2529;
}

.region-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(1.75rem, 4vw, 3rem);
}

.region-stack__text {
  width: 100%;
  max-width: none;
}

.region-stack__media {
  width: 100%;
  min-width: 0;
}

/* Slider frame: soft shadow only (no hard border lines) */
.region-stack .region-slider.pv-home-media-swiper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: none;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  background: rgba(6, 22, 25, 0.2);
}

.region-stack .region-slider .swiper-slide img {
  border-radius: 0;
}

.region-stack .region-slider .swiper-pagination {
  bottom: 14px !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  display: flex !important;
  justify-content: center;
  gap: 0.35rem;
  transform: none !important;
  pointer-events: none;
}

.region-stack .region-slider .swiper-pagination-bullet {
  pointer-events: auto;
  opacity: 0.65;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
}


.region-stack .region-slider .swiper-pagination-bullet-active {
  opacity: 1;
  box-shadow: 0 0 0 1px rgba(184, 149, 106, 0.8);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

/* Allow equal grid tracks to shrink; avoids one column collapsing to a “ribbon”. */
.split > * {
  min-width: 0;
}

.split.split--region-text-only {
  grid-template-columns: minmax(0, 1fr);
}

.split-text .section-title {
  margin-bottom: 1rem;
}

.split-text p {
  color: var(--color-muted);
  margin: 0 0 1rem;
  overflow-wrap: break-word;
}

.split-media {
  border-radius: var(--radius-lg);
  min-height: 320px;
  background: url("https://images.unsplash.com/photo-1533105079780-92b9be482077?w=900&q=80") center / cover no-repeat;
  box-shadow: var(--shadow);
}

.split-media--region-swiper {
  background: none !important;
  min-height: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
}

.pv-home-media-swiper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: none;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
  --swiper-theme-color: var(--color-gold);
  --swiper-navigation-size: 22px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: rgba(6, 22, 25, 0.15);
}

/* Full-bleed slides (no side “gutters”); cover crop */
.pv-home-media-swiper .swiper-slide {
  position: relative;
  overflow: hidden;
  border-radius: inherit;
  aspect-ratio: 16 / 10;
  min-height: 220px;
  max-height: min(70vh, 560px);
}

.pv-home-media-swiper .swiper-slide .glightbox {
  position: absolute;
  inset: 0;
  display: block;
  line-height: 0;
}

.pv-home-media-swiper .swiper-slide .glightbox img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pv-home-media-swiper .swiper-slide > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Navigation: circular gold-accent controls */
.pv-home-media-swiper .swiper-button-prev,
.pv-home-media-swiper .swiper-button-next {
  width: 2.75rem;
  height: 2.75rem;
  margin-top: 0 !important;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(12, 45, 51, 0.72);
  border: 1px solid rgba(184, 149, 106, 0.55);
  border-radius: 50%;
  color: var(--color-gold);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.pv-home-media-swiper .swiper-button-prev:hover,
.pv-home-media-swiper .swiper-button-next:hover {
  background: rgba(12, 45, 51, 0.88);
  border-color: var(--color-gold);
}

.pv-home-media-swiper .swiper-button-prev::after,
.pv-home-media-swiper .swiper-button-next::after {
  font-size: 0.65rem !important;
  font-weight: 700;
}

.pv-home-media-swiper .swiper-button-prev {
  left: 12px;
}

.pv-home-media-swiper .swiper-button-next {
  right: 12px;
}

.pv-home-media-swiper .swiper-pagination-bullet {
  background: var(--color-white);
  opacity: 0.45;
}

.pv-home-media-swiper .swiper-pagination-bullet-active {
  opacity: 1;
  background: var(--color-gold);
}

@media (max-width: 768px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .split-media {
    order: -1;
    min-height: 240px;
  }
}

/* Access — accordion */
.section-access {
  background: var(--color-deep);
}

.access-accordion {
  max-width: 42rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.access-accordion__item {
  border-radius: var(--radius);
  background: rgba(246, 241, 232, 0.05);
  border: 1px solid rgba(212, 196, 168, 0.12);
  overflow: hidden;
}

.access-accordion__heading {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}

.access-accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  margin: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: left;
  color: var(--color-sand);
  transition: background 0.15s ease;
}

.access-accordion__trigger:hover,
.access-accordion__trigger:focus-visible {
  background: rgba(246, 241, 232, 0.06);
  outline: none;
}

.access-accordion__trigger:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(212, 196, 168, 0.45);
}

.access-accordion__trigger-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
}

.access-accordion__icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: grid;
  place-items: center;
  color: rgba(212, 196, 168, 0.85);
}

.access-accordion__icon::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.access-accordion__trigger[aria-expanded="true"] .access-accordion__icon::before {
  transform: rotate(-135deg);
}

.access-accordion__panel {
  padding: 0 1.25rem 1.15rem;
}

.access-accordion__panel[hidden] {
  display: none;
}

.access-accordion__prose--text {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.access-accordion__prose--text p {
  margin: 0 0 0.75rem;
}

.access-accordion__prose--text p:last-child {
  margin-bottom: 0;
}

.access-accordion__list {
  margin: 0;
  padding: 0 0 0 1.15rem;
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.access-accordion__list li {
  margin: 0.35rem 0;
}

.access-accordion__list li:first-child {
  margin-top: 0;
}

/* Contact */
.section-contact {
  background: linear-gradient(180deg, #0f383e 0%, var(--color-deep) 100%);
}

.contact-split {
  gap: 3rem;
  align-items: start;
}

.contact-split.contact-split--form-only {
  grid-template-columns: minmax(0, 1fr);
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.contact-lead {
  color: var(--color-muted);
  margin: 0 0 1.5rem;
  overflow-wrap: break-word;
}

.contact-details {
  margin: 0;
}

.contact-details dt {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-top: 1rem;
}

.contact-details dt:first-child {
  margin-top: 0;
}

.contact-details dd {
  margin: 0.25rem 0 0;
}

.contact-details a {
  color: var(--color-white);
}

.contact-card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: rgba(246, 241, 232, 0.06);
  border: 1px solid rgba(212, 196, 168, 0.12);
  min-width: 0;
  max-width: 100%;
}

.contact-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 1.25rem;
  color: var(--color-white);
}

.contact-form label {
  display: block;
  margin-bottom: 1rem;
}

.contact-form label span {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-sand);
  margin-bottom: 0.35rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-deep);
  background: var(--color-white);
  border: 1px solid rgba(12, 45, 51, 0.12);
  border-radius: 8px;
}

.contact-form textarea {
  resize: vertical;
  min-height: 100px;
}

.form-hint--dates {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin: 0 0 0.75rem;
  line-height: 1.45;
}

.form-note {
  font-size: 0.82rem;
  color: var(--color-muted);
  margin: 0 0 1rem;
  line-height: 1.5;
}

.contact-form--reservation .contact-form__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem 1.25rem;
  align-items: end;
  margin-bottom: 1.25rem;
}

.contact-form--reservation .contact-form__field--full {
  grid-column: 1 / -1;
}

.contact-form--reservation .contact-form__field span {
  margin-bottom: 0.35rem;
}

.contact-form__status {
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 0 0 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  white-space: pre-line;
}

.contact-form__status--ok {
  color: #0d3d2a;
  background: rgba(200, 230, 210, 0.95);
  border: 1px solid rgba(80, 160, 120, 0.35);
}

.contact-form__status--err {
  color: #4a1518;
  background: rgba(255, 220, 220, 0.95);
  border: 1px solid rgba(200, 90, 90, 0.4);
}

@media (max-width: 640px) {
  .contact-form--reservation .contact-form__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .contact-split {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Footer */
.site-footer {
  padding: 2rem 1.5rem;
  border-top: 1px solid rgba(212, 196, 168, 0.1);
  background: #081a1d;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-main {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: min(100%, 16rem);
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.footer-social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem;
  color: var(--color-sand);
  background: none;
  border: 0;
  border-radius: 0;
  overflow: visible;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.footer-social__link:hover {
  color: var(--color-white);
}

.footer-social__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  overflow: visible;
}

.footer-social__icon svg {
  display: block;
  width: 1.35rem;
  height: 1.35rem;
  overflow: visible;
  flex-shrink: 0;
}

.footer-mail {
  color: var(--color-sand);
  font-size: 0.95rem;
}

.footer-mail:hover {
  color: var(--color-white);
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 95;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(212, 196, 168, 0.35);
  border-radius: 999px;
  background: rgba(8, 26, 29, 0.92);
  color: var(--color-sand);
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease,
    color 0.2s ease, background 0.2s ease;
}

.back-to-top.back-to-top--visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  color: var(--color-white);
  background: rgba(15, 56, 62, 0.96);
}

/* Same icon font as Swiper arrows (.swiper-button-next::after); rotate so “next” points up */
.back-to-top::after {
  content: "next";
  font-family: swiper-icons;
  font-weight: 700;
  text-transform: none !important;
  letter-spacing: 0;
  font-variant: initial;
  line-height: 1;
  transform: rotate(-90deg);
  display: block;
  color: inherit;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0;
  color: var(--color-sand);
}

.footer-copy {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-muted);
}

/* Subpages */
.page-hero {
  padding: calc(var(--header-h) + 3rem) 1.5rem 3rem;
  text-align: center;
  background: linear-gradient(180deg, #0f383e 0%, var(--color-deep) 100%);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 0.5rem;
  color: var(--color-white);
}

.page-hero p {
  margin: 0;
  color: var(--color-muted);
}

.page-content {
  padding: 2rem 1.5rem 4rem;
  max-width: 720px;
  margin: 0 auto;
}

.page-content p {
  color: var(--color-muted);
}

.back-link {
  display: inline-block;
  margin-bottom: 2rem;
  font-weight: 500;
}

/* Hero background slider (WordPress homepage) */
.hero {
  position: relative;
  overflow: hidden;
}
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-image: var(--slide-img);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
.hero-slide.active {
  opacity: 1;
}
.hero-overlay {
  z-index: 1;
}
.hero-content {
  z-index: 2;
}
.hero-dots {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 2rem;
}
.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(246, 241, 232, 0.35);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease;
}
.hero-dots button[aria-selected="true"] {
  background: var(--color-gold);
  transform: scale(1.12);
}

.villa-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Villa modal + carousel (matches theme behaviour) */
.pv-villa-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}
.pv-villa-modal[hidden] {
  display: none !important;
}
.pv-villa-modal.is-open {
  display: flex !important;
}
body.pv-modal-open {
  overflow: hidden;
}
.pv-villa-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 45, 51, 0.72);
  backdrop-filter: blur(4px);
}
.pv-villa-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: min(92vh, 900px);
  overflow: auto;
  background: #0a2529;
  border: 1px solid rgba(212, 196, 168, 0.15);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.5rem 2rem;
}
.pv-villa-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 999px;
  background: rgba(246, 241, 232, 0.1);
  color: var(--color-cream);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.pv-villa-modal__panel[hidden] {
  display: none !important;
}
.pv-villa-modal__heading {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  margin: 0 2.5rem 1rem 0;
  color: var(--color-white);
}
.pv-villa-modal__prose {
  margin-top: 1.25rem;
  color: var(--color-muted);
}
.pv-villa-modal__prose p:first-child {
  margin-top: 0;
}
.pv-villa-carousel {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
}
.pv-villa-carousel__slides {
  position: relative;
  aspect-ratio: 16 / 10;
}
.pv-villa-carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
}
.pv-villa-carousel__slide.is-active {
  opacity: 1;
  z-index: 1;
}
.pv-villa-carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pv-villa-carousel__prev,
.pv-villa-carousel__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 999px;
  background: rgba(250, 249, 246, 0.95);
  color: var(--color-deep);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.pv-villa-carousel__prev {
  left: 0.5rem;
}
.pv-villa-carousel__next {
  right: 0.5rem;
}
.pv-villa-carousel__dots {
  position: absolute;
  bottom: 0.65rem;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
}
.pv-villa-carousel__dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}
.pv-villa-carousel__dots button[aria-selected="true"] {
  background: var(--color-white);
}

.gallery-grid .gallery-item {
  min-height: 100px;
}
.gallery-grid .gallery-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.split-media--has-img {
  background: none !important;
  padding: 0;
}
.split-media--has-img img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-lg);
}
