/* Base styles for Villa Maravistah */
/* ---- Reset ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Work Sans", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #333;
  background-color: #F5F1E8;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
/* Bouton hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.3rem 0.45rem;
  margin-left: auto;
  cursor: pointer;
  border-radius: 999px;
  border: 1px solid rgba(27, 58, 87, 0.25);
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #1B3A57;
}

.nav-toggle-bar+.nav-toggle-bar {
  margin-top: 4px;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 241, 232, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #1B3A57;
  font-family: "Josefin Sans", sans-serif;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid #C9A36A;
  font-size: 18px;
  margin-right: 0.5rem;
}

.logo-text {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

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

.main-nav a {
  text-decoration: none;
  color: #444;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: "Josefin Sans", sans-serif;
}

.main-nav a:hover,
.main-nav a.active {
  color: #1B3A57;
}

.btn-nav {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #1B3A57;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
  font-family: "Josefin Sans", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lang-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  text-decoration: none;
  color: #666;
  opacity: 0.85;
  transition: opacity 0.15s ease, color 0.15s ease;
}

.lang-link:hover {
  opacity: 1;
  color: #1B3A57;
}

.lang-link.active {
  color: #1B3A57;
  opacity: 1;
}

.lang-sep {
  opacity: 0.5;
}

.flag {
  font-size: 1rem;
  line-height: 1;
}

/* Hero */
.hero {
  position: relative;
  height: min(88vh, 720px);
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}

/* Container des slides */
.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* Chaque slide (image ou vidéo) */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide img,
.hero-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 5rem 0;
  display: flex;
  align-items: center;
}

.hero-content-inner {
  background: radial-gradient(circle at top left,
      rgba(15, 34, 54, 0.4),
      rgba(15, 34, 54, 0.75));
  border-radius: 0.5rem;
  padding: 1.8rem 2.1rem;
  max-width: 40rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.4);
}

.hero-tagline {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
  font-family: "Josefin Sans", sans-serif;
}

.hero h1 {
  font-family: "Josefin Sans", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

.hero-name {
  font-weight: 300;
}

.hero-price {
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: 0.95rem;
  max-width: 34rem;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-extra .hero-scroll {
  font-size: 0.85rem;
  text-decoration: none;
  color: #f5f1e8;
  opacity: 0.85;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.6);
  background: rgba(10, 20, 35, 0.35);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  backdrop-filter: blur(4px);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  z-index: 2;
}

.hero-arrow--prev {
  left: 1.25rem;
}

.hero-arrow--next {
  right: 1.25rem;
}

.hero-arrow:hover {
  background: rgba(10, 20, 35, 0.55);
  border-color: #fff;
  transform: translateY(-50%) translateX(0);
}

/* Dots en bas du hero */
.hero-dots {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.4rem;
  z-index: 2;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  transition: background 0.15s ease, width 0.15s ease;
}

.hero-dot.is-active {
  background: #C9A36A;
  width: 18px;
}

/* Focus accessible */
.hero-dot:focus-visible,
.hero-arrow:focus-visible {
  outline: 2px solid #C9A36A;
  outline-offset: 2px;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-outline-light,
.btn-primary-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  font-size: 0.9rem;
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: "Josefin Sans", sans-serif;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: #1B3A57;
  color: #F5F1E8;
}

.btn-secondary {
  background: transparent;
  color: #1B3A57;
  border-color: #1B3A57;
}

.btn-outline-light {
  background: transparent;
  color: #F5F1E8;
  border-color: rgba(255,255,255,0.85);
}

.btn-primary-light {
  background: #C9A36A;
  color: #1B2A3A;
}

/* Sections */
.section {
  padding: 3.5rem 0;
}

.section-light {
  background: #F5F1E8;
}

.section-dark {
  background: #1B3A57;
  color: #F5F1E8;
}

.section-cta {
  background: #1B3A57;
  color: #F5F1E8;
}

.section-title {
  font-family: "Josefin Sans", sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  margin-bottom: 2rem;
}

.section-title-light {
  color: #F5F1E8;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
  padding: 10px;
}

.feature-card {
  background: rgba(255,255,255,0.7);
  border-radius: 1.25rem;
  padding: 1.5rem 1.4rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.feature-card-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.feature-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  background: #1B3A57;
  color: #F5F1E8;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.feature-card h3 {
  font-family: "Josefin Sans", sans-serif;
  font-size: 1.2rem;
  margin-top: 0;
}

.visit-teaser {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.visit-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.visit-preview-box {
  border-radius: 1.5rem;
  border: 1px dashed rgba(255,255,255,0.4);
  padding: 1rem;
}

.visit-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  opacity: 0.8;
}

.visit-preview-inner {
  margin-top: 0.75rem;
  padding: 1.5rem;
  border-radius: 1rem;
  background: rgba(0,0,0,0.25);
  font-size: 0.9rem;
}

.visit-preview-media {
  margin: 0 0 0.75rem;
}

.visit-preview-media img {
  display: block;
  width: 100%;
  border-radius: 1rem;
  object-fit: cover;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: #fff;
  border-radius: 1.25rem;
  padding: 1.4rem 1.2rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.stat-value {
  display: block;
  font-family: "Josefin Sans", sans-serif;
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
}

.stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #777;
}

.section-cta-center {
  text-align: center;
}

.page-hero {
  padding: 3rem 0 1.5rem;
  background: white;
}

.page-hero h1 {
  font-family: "Josefin Sans", sans-serif;
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}

.page-intro {
  max-width: 100%;
}

.two-columns {
  display: grid;
  grid-template-columns: minmax(0,1.1fr) minmax(0,1fr);
  gap: 2.5rem;
  align-items: center;
}

.two-columns.reverse {
  grid-template-columns: minmax(0,1fr) minmax(0,1.1fr);
}

.img-block img {
  width: 100%;
  border-radius: 1.5rem;
  display: block;
}

.inline-link {
  display: inline-flex;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  text-decoration: none;
  color: #1B3A57;
  border-bottom: 1px solid rgba(27,58,87,0.4);
}

/* Carte contact */
.contact-card {
  background: #FFFFFF;
  border-radius: 1.75rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.06);
  padding: 2.25rem 2.25rem;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.contact-card-left {
  max-width: 32rem;
}

.contact-kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  margin: 0 0 0.5rem;
  font-family: "Josefin Sans", sans-serif;
  color: #7A7A7A;
}

.contact-title {
  font-family: "Josefin Sans", sans-serif;
  font-size: 1.4rem;
  margin: 0 0 1rem;
}

.contact-text-main {
  margin: 0 0 0.75rem;
}

.contact-text-note {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: #555;
}

.contact-extra .small-text {
  color: #777;
}

.contact-card-right {
  width: 100%;
}

.contact-form {
  background: #FAF7F0;
  border-radius: 1.25rem;
  padding: 1.5rem 1.4rem 1.5rem;
  box-shadow: none;
}

.contact-person {
  margin-top: 3.5rem;
  padding-top: 3.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.contact-person-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #888;
  margin: 0 0 0.4rem;
  font-family: "Josefin Sans", sans-serif;
}

.contact-person-name {
  margin: 0;
  font-weight: 600;
}

.contact-person-role {
  margin: 0.15rem 0 0.6rem;
  font-size: 0.9rem;
  color: #555;
}

.contact-person-coords {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
}

.contact-person-coords li {
  margin-bottom: 0.2rem;
}

.contact-person-coords a {
  color: #1B3A57;
  text-decoration: none;
}

.contact-person-coords a:hover {
  text-decoration: underline;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.9rem;
}

.form-row label {
  font-size: 0.85rem;
  font-weight: 500;
}

.form-row input,
.form-row select,
.form-row textarea {
  border-radius: 0.75rem;
  border: 1px solid rgba(0,0,0,0.12);
  padding: 0.5rem 0.75rem;
  font-family: inherit;
  font-size: 0.9rem;
  background: #FAF7F0;
}

.form-row textarea {
  resize: vertical;
}

.form-actions {
  margin-top: 1.2rem;
}

.form-note {
  margin-top: 0.75rem;
}

.small-text {
  font-size: 0.8rem;
  color: #555;
}

.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.site-footer {
  padding: 1.5rem 0 2rem;
  background: #F5F1E8;
  border-top: 1px solid rgba(0,0,0,0.04);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-links a {
  color: #666;
  text-decoration: none;
}

.immersive-player {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 1.5rem auto 0;
  border-radius: 1.4rem;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  aspect-ratio: 16 / 9;
  background: #000;
}

.immersive-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.cta-immersive-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.immersive-player-links {
  display: flex;
  justify-content: center;
  margin-top: 0.75rem;
}

.subnav {
  position: sticky;
  top: 60px;
  z-index: 40;
  background: rgba(245, 241, 232, 0.98);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(8px);
}

.subnav-inner {
  display: flex;
  gap: 1.5rem;
  padding: 0.6rem 0;
  overflow-x: auto;
}

.subnav a {
  text-decoration: none;
  font-family: "Josefin Sans", sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #555;
  white-space: nowrap;
  padding-bottom: 0.2rem;
  border-bottom: 2px solid transparent;
}

.subnav a:hover {
  color: #1B3A57;
  border-bottom-color: rgba(201, 163, 106, 0.7);
}

.section-tight {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.overview-ribbon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
}

.overview-ribbon-title {
  font-family: "Josefin Sans", sans-serif;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin: 0;
  color: #1B3A57;
}

.overview-ribbon-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
}

.overview-ribbon-list li {
  font-size: 0.85rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.overview-intro {
  margin: 0 auto 2rem;
}

.overview-thumbs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 1fr);
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  padding-top: 1.25rem;
}

.overview-thumb {
  scroll-snap-align: start;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  background: #fff;
}

.overview-thumb img {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: cover;
}

@media (min-width: 900px) {
  .overview-thumb img {
    height: 190px;
  }
}

.villa-list {
  list-style: disc;
  padding-left: 1.2rem;
  margin-top: 0.75rem;
}

.villa-list li {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.villa-list-light {
  color: #F5F1E8;
}

.floating-visit-cta {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 30;
  background: rgba(27, 58, 87, 0.96);
  color: #F5F1E8;
  padding: 1rem 1.2rem;
  border-radius: 1.25rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
  max-width: 260px;
}

.floating-visit-title {
  font-family: "Josefin Sans", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 0.4rem;
}

.floating-visit-text {
  font-size: 0.85rem;
  margin: 0 0 0.7rem;
}

@media (max-width: 900px) {
  .floating-visit-cta {
    display: none;
  }
}

@media (max-width: 600px) {
  .subnav {
    top: 0;
  }

  .overview-ribbon {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Responsive */
@media (max-width: 900px) {

  .header-inner {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .main-nav ul {
    flex-wrap: wrap;
    justify-content: flex-end;
    row-gap: 0.3rem;
  }

  .hero {
    height: auto;
  }

  .visit-teaser,
  .stats-grid,
  .grid-3,
  .two-columns {
    grid-template-columns: 1fr;
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {

  .site-header {
    padding: 0.6rem 0;
  }

  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 10px;
  }

  .logo-text {
    font-size: 0.8rem;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
  }

  .main-nav {
    display: none;
    width: 100%;
  }

  .main-nav.is-open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    margin-top: 0.75rem
  }

  .main-nav a {
    padding: 0.2rem 0;
  }

  .lang-switch {
    order: 3;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.8rem;
  }

  .hero {
    display: block;
    padding: 0 0 2.5rem;
  }

  .hero-media {
    position: relative;
    inset: auto;
    height: auto;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
  }

  .hero-content {
    position: static;
    padding: 1.8rem 0 0;
  }

  .hero-content-inner {
    padding: 1.4rem 1.5rem;
    max-width: 100%;
  }

  .hero h1 {
    font-size: 1.9rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .hero-arrow {
    width: 30px;
    height: 30px;
    font-size: 1rem;
    top: 30%;
  }

  .hero-dots {
    bottom: 0.9rem;
  }

  .section {
    padding: 2.5rem 0;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.lightbox-content {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
  margin: 0;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.5);
}

#lightbox-image {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  background: #000;
}

.lightbox-close {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================
   Contact : responsive
   ========================= */
@media (max-width: 900px) {
  .contact-card {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding: 1.75rem 1.5rem;
  }

  .contact-card-left,
  .contact-card-right {
    max-width: 100%;
    width: 100%;
  }
}

@media (max-width: 600px) {
  .contact-card {
    padding: 1.4rem 1.1rem;
    border-radius: 1.4rem;
    margin: 0 -0.5rem;
  }

  .contact-title {
    font-size: 1.2rem;
  }

  .contact-text-main,
  .contact-text-note {
    font-size: 0.9rem;
  }

  .contact-form {
    padding: 1.1rem 1rem 1.2rem;
    border-radius: 1.1rem;
  }

  .form-row label {
    font-size: 0.8rem;
  }

  .form-row input,
  .form-row select,
  .form-row textarea {
    font-size: 0.9rem;
  }

  .form-actions {
    margin-top: 1rem;
  }
}

/* =========================================
   Page "La villa" – mobile only
   ========================================= */

@media (max-width: 768px) {

  .page-villa .villa-sections-nav-inner {
    flex-wrap: wrap;
    row-gap: 0.35rem;
    justify-content: flex-start;
    overflow-x: visible;
  }

  .page-villa .villa-sections-link {
    font-size: 0.8rem;
    padding: 0.25rem 0;
  }

  .page-villa .overview-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    overflow-x: visible;
    /* on enlève le scroll horizontal */
    justify-content: flex-start;
  }

  .page-villa .overview-thumb {
    flex: 0 0 calc(50% - 0.75rem);
    min-width: 0;
    padding: 0.75rem;
    margin: 0;
    transform: none;
  }

  .page-villa .overview-thumb::before,
  .page-villa .overview-thumb::after {
    display: none;
  }

  .page-villa .two-columns,
  .page-villa .two-columns.reverse {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: flex-start;
  }

  .page-villa .two-columns .img-block {
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 480px) {
  .page-villa .overview-thumb {
    flex: 0 0 calc(50% - 0.6rem);
  }
}

/* =========================
   Galerie photo
   ========================= */

.gallery-section-header {
  margin-bottom: 1.75rem;
}

.gallery-section-intro {
  max-width: 40rem;
  font-size: 0.95rem;
}

/* Grille responsive */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.gallery-item {
  border: none;
  padding: 0;
  margin: 0;
  border-radius: 1.25rem;
  overflow: hidden;
  background: #FFFDF8;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  display: block;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.2s ease, filter 0.2s ease;
  aspect-ratio: 4 / 3;
}

.gallery-item:hover img {
  transform: scale(1.04);
  filter: brightness(1.02);
}

/* Responsive */
@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .gallery-section-intro {
    font-size: 0.9rem;
  }
}

/* Nav interne Galerie / 360° */
.gallery-nav {
  padding-bottom: 1.5rem;
}

.gallery-nav-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.gallery-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(27, 58, 87, 0.18);
  background: #FFFFFF;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: "Josefin Sans", sans-serif;
  text-decoration: none;
  color: #1B3A57;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease,
    transform 0.1s ease;
}

.gallery-nav-link:hover {
  background: #1B3A57;
  color: #F5F1E8;
  border-color: #1B3A57;
  transform: translateY(-1px);
}

@media (max-width: 600px) {
  .gallery-nav-inner {
    gap: 0.5rem;
  }

  .gallery-nav-link {
    font-size: 0.78rem;
    padding: 0.4rem 0.9rem;
  }
}