/* =============================================
   SPAIN APARTMENTS - LUXURY RENTAL WEBSITE
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500&family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

/* ── RESET & BASE ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0; 
  box-sizing: border-box;
}

:root {
  --black: #080808;
  --dark: #0f0f0f;
  --surface: #161616;
  --surface2: #1e1e1e;
  --border: rgba(201, 169, 110, 0.15);
  --gold: #C9A96E;
  --gold-light: #E8D5B0;
  --gold-dim: rgba(201, 169, 110, 0.4);
  --cream: #F5EDE0;
  --text: #E8DDD0;
  --text-muted: #8A7D6E;
  --text-dim: #5A5049;
  --white: #FFFFFF;
  --overlay: rgba(8, 8, 8, 0.55);

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, sans-serif;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 24px;
  --radius-xl: 40px;

  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slow: 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out-quint: cubic-bezier(0.23, 1, 0.32, 1);
  color-scheme: dark;
}


html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--black);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

::selection {
  background: var(--gold);
  color: var(--black);
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--dark);
}

::-webkit-scrollbar-thumb {
  background: var(--gold-dim);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

/* ── UTILITY ── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

.container--narrow {
  max-width: 900px;
}

.container--wide {
  max-width: 1920px;
}

.section {
  padding: 100px 0;
}

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

.section--sm {
  padding: 60px 0;
}

.gold-line {
  display: block;
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 24px;
}

.gold-line--left {
  margin-left: 0;
}

.tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--cream);
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn--gold {
  background: var(--gold);
  color: var(--black);
}

.btn--gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(201, 169, 110, 0.35);
}

.btn--outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold-dim);
}

.btn--outline:hover {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--cream);
  border: 1px solid rgba(255, 255, 255, 0.1);
  /* backdrop-filter removed — it creates a new stacking context and triggers repaint on every hover */
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.btn svg {
  flex-shrink: 0;
}

/* ── ACTUAL IMAGE (replaces placeholder) ── */
.actual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Force GPU compositing — prevents relayout on hover */
  transform: translateZ(0);
  will-change: transform;
}

/* ── PLACEHOLDER IMAGE ── */
.placeholder-img {
  width: 100%;
  height: 100%;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px dashed rgba(201, 169, 110, 0.3);
  position: relative;
  overflow: hidden;
}

.placeholder-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(-45deg,
      transparent,
      transparent 20px,
      rgba(201, 169, 110, 0.03) 20px,
      rgba(201, 169, 110, 0.03) 21px);
}

.placeholder-img__icon {
  width: 52px;
  height: 52px;
  border: 1.5px solid var(--gold-dim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.placeholder-img__icon svg {
  color: var(--gold);
}

.placeholder-img__label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  z-index: 1;
  text-align: center;
  padding: 0 20px;
}

.placeholder-img__sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
}

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

/* ── NAVIGATION ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 40px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.6);
  /* Darkened to 0.6 for better legibility */
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: background;
}

.nav.scrolled {
  background: #000000;
  border-bottom: 1px solid var(--border);
}

.nav__logo {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--cream);
  letter-spacing: 0.05em;
}

.nav__logo span {
  color: var(--gold);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav__links a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  transition: color 0.25s;
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav__links a:hover {
  color: var(--gold);
}

.nav__links a:hover::after,
.nav__links a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav__links a.active {
  color: var(--gold);
}

.nav__flags {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 24px;
}

.flag-link {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), border-color 0.3s;
  background: var(--surface);
  flex-shrink: 0;
}

.flag-link:hover {
  transform: scale(1.15) translateY(-2px);
  border-color: var(--gold);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

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

@media (max-width: 1100px) {
  .nav__links {
    gap: 16px;
  }

  .nav__flags {
    gap: 6px;
    margin-left: 12px;
  }

  .flag-link {
    width: 24px;
    height: 24px;
  }
}

/* Hamburger */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream);
  transition: all 0.3s ease;
}

.nav__burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__burger.open span:nth-child(2) {
  opacity: 0;
}

.nav__burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav__mobile {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(10px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.nav__mobile.open {
  opacity: 1;
  visibility: visible;
}

.nav__mobile-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 320px;
  padding: 0 40px;
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.nav__mobile.open .nav__mobile-links {
  transform: translateY(0);
}

.nav__mobile-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 18px 24px;
  background: transparent;
  border: 1px solid var(--gold);
  border-radius: 50px;
  color: var(--cream);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: all 0.3s ease;
}

.nav__mobile-link:hover,
.nav__mobile-link.active {
  background: var(--gold);
  color: var(--black);
  box-shadow: 0 8px 25px rgba(201, 169, 110, 0.25);
}

.nav__mobile .close-btn {
  display: none;
}

/* We will now use the hamburger to close */

/* Mobile Language Dropdown */
.nav__mobile-controls {
  display: none;
  align-items: center;
  margin-left: auto;
}

.nav__lang-mobile {
  position: relative;
  margin-right: 15px;
}


.nav__lang-mobile-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 12px;
  color: var(--cream);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.nav__lang-mobile-toggle img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav__lang-mobile-toggle .chevron {
  transition: transform 0.3s;
  color: var(--gold);
}

.nav__lang-mobile.open .nav__lang-mobile-toggle .chevron {
  transform: rotate(180deg);
}

.nav__lang-mobile-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 140px;
  padding: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 1001;
  max-height: 350px;
  overflow-y: auto;
}

.nav__lang-mobile.open .nav__lang-mobile-dropdown {
  display: block;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.lang-option:hover {
  background: rgba(201, 169, 110, 0.1);
  color: var(--gold);
}

.lang-option img {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .nav__flags {
    display: none;
  }

  .nav__mobile-controls {
    display: flex;
  }
}


/* ── HERO SPLIT ── */
.hero-split {
  height: 100vh;
  display: flex;
  overflow: hidden;
  position: relative;
  background: #000;
}

.hero-panel {
  position: relative;
  flex: 1;
  overflow: hidden;
  cursor: pointer;
  transition: opacity 0.6s ease;
  /* Isolate each panel into its own GPU composite layer */
  will-change: opacity;
  isolation: isolate;
}

/* Dim non-hovered panel */
.hero-split:hover .hero-panel:not(:hover) {
  opacity: 0.5;
}

.hero-panel__bg {
  position: absolute;
  inset: 0;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.hero-panel:hover .hero-panel__bg {
  transform: scale(1.04) translateZ(0);
}

.hero-panel .placeholder-img {
  border: none;
  background: var(--surface2);
}

.hero-panel--left .placeholder-img {
  background: linear-gradient(135deg, #1a1510 0%, #0d0b08 50%, #1a1205 100%);
}

.hero-panel--right .placeholder-img {
  background: linear-gradient(135deg, #08101a 0%, #0b0d10 50%, #0a1520 100%);
}

.hero-panel__overlay {
  position: absolute;
  inset: 0;
  /* Jeden, stały gradient, którego NIE animujemy */
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.15) 50%, transparent 100%);
  /* Animujemy tylko przezroczystość całej tej warstwy! */
  opacity: 0.85;
  transition: opacity 0.6s ease;
  will-change: opacity;
  pointer-events: none;
}

.hero-panel:hover .hero-panel__overlay {
  opacity: 1;
  /* Płynne przyciemnienie bez lagu */
}

.hero-divider {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(201, 169, 110, 0.6), transparent);
  z-index: 10;
  pointer-events: none;
}

.hero-panel__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 50px 50px 60px;
  z-index: 5;
  transform: translateY(8px);
  transition: transform var(--transition);
}

.hero-panel:hover .hero-panel__content {
  transform: translateY(0);
}

.hero-panel__number {
  font-family: var(--font-serif);
  font-size: 80px;
  font-weight: 300;
  color: rgba(201, 169, 110, 0.12);
  line-height: 1;
  position: absolute;
  top: 30px;
  right: 40px;
  transition: var(--transition);
}

.hero-panel:hover .hero-panel__number {
  color: rgba(201, 169, 110, 0.2);
}

.hero-panel__tag {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  display: block;
}

.hero-panel__title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 12px;
}

.hero-panel__subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 28px;
  letter-spacing: 0.05em;
  max-width: 320px;
}

.hero-panel__btn {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s, transform 0.35s;
}

.hero-panel:hover .hero-panel__btn {
  opacity: 1;
  transform: translateY(0);
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-scroll__line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--gold));
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {

  0%,
  100% {
    transform: scaleY(0);
    transform-origin: top;
  }

  50% {
    transform: scaleY(1);
    transform-origin: top;
  }
}

/* ── INTRO STRIP ── */
.intro-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 30px 40px;
  overflow: hidden;
}

.intro-strip__inner {
  display: flex;
  align-items: center;
  gap: 60px;
  justify-content: center;
  flex-wrap: wrap;
}

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

.strip-item__icon {
  width: 40px;
  height: 40px;
  border: 1px solid var(--gold-dim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}

.strip-item__text {
  font-size: 13px;
}

.strip-item__label {
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.strip-item__value {
  color: var(--cream);
  font-weight: 500;
  margin-top: 2px;
}

/* ── APT CARDS OVERVIEW ── */
.apt-overview {
  background: var(--dark);
}

.apt-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.apt-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.apt-card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.apt-card__img {
  height: 300px;
  overflow: hidden;
}

.apt-card:hover .apt-card__img .placeholder-img__icon {
  border-color: var(--gold);
}

.apt-card__body {
  padding: 32px;
}

.apt-card__tag {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.apt-card__title {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 300;
  color: var(--cream);
  margin-bottom: 10px;
}

.apt-card__location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.apt-card__location svg {
  color: var(--gold);
  flex-shrink: 0;
}

.apt-card__desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.apt-card__stats {
  display: flex;
  gap: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.apt-card__stat {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--text-muted);
}

.apt-card__stat svg {
  color: var(--gold);
}

.apt-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
}

.apt-card__price {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--gold);
}

.apt-card__price span {
  font-size: 0.75rem;
  font-family: var(--font-sans);
  color: var(--text-muted);
}

/* ── APT PAGE HERO ── */
.apt-hero {
  height: 90vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.apt-hero__bg {
  position: absolute;
  inset: 0;
}

.apt-hero__bg .placeholder-img {
  border: none;
  background: linear-gradient(135deg, #1a1510, #0d0b08);
}

.apt-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 60%, rgba(0, 0, 0, 0.4) 100%);
}

.apt-hero__content {
  position: relative;
  z-index: 2;
  padding: 0 80px 70px;
  max-width: 900px;
}

.apt-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 30px;
  transition: color 0.25s;
  cursor: pointer;
  background: none;
  border: none;
}

.apt-hero__back:hover {
  color: var(--gold);
}

.apt-hero__tag {
  display: block;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.apt-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 20px;
}

.apt-hero__meta {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.apt-hero__location {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.apt-hero__location svg {
  color: var(--gold);
}

.apt-hero__rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.stars {
  color: var(--gold);
  letter-spacing: 2px;
  font-size: 13px;
}

/* ── STICKY BAR ── */
.sticky-bar {
  position: sticky;
  top: 72px;
  z-index: 100;
  background: rgba(10, 10, 10, 0.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 80px;
}

.sticky-bar__inner {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 56px;
}

.sticky-bar__link {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 14px;
  height: 100%;
  display: flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}

.sticky-bar__link:hover {
  color: var(--cream);
}

.sticky-bar__link.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.sticky-bar__price {
  margin-left: auto;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--gold);
}

.sticky-bar__price span {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--text-muted);
}

/* ── APT OVERVIEW SECTION ── */
.apt-info {
  background: var(--dark);
}

.apt-info__grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 80px;
  align-items: start;
}

.apt-info__description p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.apt-info__description p:first-of-type {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--text);
  line-height: 1.65;
}

.apt-info__btns {
  margin-top: 36px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.apt-stats-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: sticky;
  top: 140px;
}

.apt-stats-card__price {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  color: var(--gold);
  margin-bottom: 4px;
}

.apt-stats-card__price-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.apt-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}

.apt-stat-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.apt-stat-item__label {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.apt-stat-item__value {
  font-size: 15px;
  color: var(--cream);
  font-weight: 500;
}

.apt-stats-card .btn {
  width: 100%;
  justify-content: center;
  margin-bottom: 12px;
}

.apt-stats-note {
  text-align: center;
  font-size: 11px;
  color: var(--text-dim);
}

/* ── AMENITIES ── */
.amenities {
  background: var(--black);
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.amenity-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: var(--transition);
}

.amenity-item:hover {
  border-color: var(--gold-dim);
  background: var(--surface2);
}

.amenity-item__icon {
  width: 38px;
  height: 38px;
  background: rgba(201, 169, 110, 0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}

.amenity-item__name {
  font-size: 14px;
  color: var(--text);
}

/* ── ACCORDION GALLERY ── */
.gallery {
  background: var(--dark);
  padding-bottom: 40px;
}

.gallery-accordion {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Keep gallery header restricted to normal width */
.gallery .container--wide>.fade-in:first-child {
  max-width: 1280px;
  margin: 0 auto;
}

.accordion-item {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
  transition: max-width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  /* Plynne, powolne rozszerzanie na boki */
}

.accordion-item:last-child {
  border-bottom: 1px solid var(--border);
}

.accordion-item.active {
  max-width: 100%;
  /* Rozszerzenie na cala szerokosc tylko aktywnej sekcji */
}

.accordion-header {
  width: 100%;
  padding: 24px 40px;
  background: transparent;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--cream);
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 300;
  cursor: pointer;
  transition: color var(--transition);
  text-align: left;
}

.accordion-header:hover {
  color: var(--gold);
}

.accordion-icon {
  font-size: 2rem;
  font-weight: 300;
  font-family: sans-serif;
  color: var(--gold);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
}

/* Accordion Open State */
.accordion-item.active .accordion-header {
  color: var(--gold);
}

.accordion-item.active .accordion-icon {
  transform: rotate(45deg);
  /* Turns "+" into "x", assuming we use plus icon */
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  /* Sync 1.2s duration with horizontal expansion */
  transition: max-height 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Height is now managed by JS scrollHeight to ensure perfect symmetry in speed */

.gallery-carousel-wrapper {
  position: relative;
  display: block;
}

.carousel-arrow {
  position: absolute;
  top: calc(50% - 16px);
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: var(--transition);
  opacity: 0.9;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.carousel-arrow:hover {
  background: var(--gold);
  color: var(--dark);
  border-color: var(--gold);
  opacity: 1;
}

.carousel-arrow--left {
  left: 8px;
}

.carousel-arrow--right {
  right: 8px;
}

@media (min-width: 768px) {
  .carousel-arrow--left {
    left: 16px;
  }

  .carousel-arrow--right {
    right: 16px;
  }
}

.gallery-scroll-container {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 40px 32px 40px;
  /* Hide scrollbar */
  scrollbar-width: none;
}

.gallery-scroll-container::-webkit-scrollbar {
  display: none;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  /* Elastyczna szerokość oparta na obrazku */
  flex: 0 0 auto;
  width: auto;
  height: 320px;
  scroll-snap-align: center;
  background-color: transparent;
  transition: transform 0.4s var(--transition);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
  isolation: isolate;
}

@media (min-width: 768px) {
  .accordion-header {
    font-size: 2.2rem;
  }

  .gallery-item {
    height: 500px;
    scroll-snap-align: start;
  }
}

.gallery-item img.actual-img {
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  display: block;
  border-radius: 24px !important;
  /* Ultimate mobile rounding fix */
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  mask-image: radial-gradient(white, black);
  transition: transform 0.8s var(--ease-out-quint);
}

/* Remove scale effect */

.gallery-item .placeholder-img {
  height: 100%;
}

.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--transition);
  opacity: 1; /* Początkowo widoczna - przyciemnia zdjęcie */
  z-index: 2;
  pointer-events: none;
  will-change: opacity;
  border-radius: 24px !important;
  /* Ultimate mobile rounding fix */
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  mask-image: radial-gradient(white, black);
}

/* Rozjaśnianie wybranego zdjęcia po najechaniu */
.gallery-item:hover .gallery-item__overlay {
  background: rgba(0, 0, 0, 0);
}

/* Combined with the block above to avoid duplication */

.gallery-item:hover img.actual-img {
  transform: scale(1.04);
  /* Gładkie powiększenie */
}

/* Cleaned up duplicate/broken block */

.gallery-item:hover .gallery-item__overlay {
  opacity: 0;
  /* Znika na hoverze - to da ten efekt rozjaśnienia! */
}

.gallery-item__zoom {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  opacity: 0;
  transform: scale(0.7);
  transition: var(--transition);
}

.gallery-item:hover .gallery-item__zoom {
  opacity: 1;
  transform: scale(1);
}

/* ── LIGHTBOX ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: #000; /* Solidny czarny dla efektu galerii */
  align-items: center;
  justify-content: center;
  padding: 0; /* Brak paddingu dla pełnego ekranu */
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.lightbox.open {
  display: flex;
}

.lightbox__inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
  /* Spaced out further as requested */
}

.lightbox__arrow {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2010;
  flex-shrink: 0;
}

.lightbox__arrow--prev {
  left: 40px;
}

.lightbox__arrow--next {
  right: 40px;
}

.lightbox__arrow svg {
  width: 30px;
  height: 30px;
}

.lightbox__arrow:hover {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
  transform: scale(1.1);
}

.lightbox__arrow:active {
  transform: scale(0.95);
}

.lightbox__close {
  position: absolute;
  top: 30px;
  right: 30px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  z-index: 2020;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  touch-action: manipulation;
}

.lightbox__close:hover {
  background: #ff4444;
  border-color: #ff4444;
  transform: rotate(90deg);
}

.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0 !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
  box-shadow: 0 40px 120px rgba(0,0,0,0.9);
  touch-action: pinch-zoom;
  /* Domyślna animacja przy otwarciu */
  animation: lightboxZoomIn 0.4s var(--ease-out-quint);
}

.lightbox__img.anim-next {
  animation: lightboxSlideInRight 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.lightbox__img.anim-prev {
  animation: lightboxSlideInLeft 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes lightboxZoomIn {
  from { opacity: 0; transform: scale(0.92) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes lightboxSlideInRight {
  from { opacity: 0; transform: translateX(40px) scale(0.98); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes lightboxSlideInLeft {
  from { opacity: 0; transform: translateX(-40px) scale(0.98); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

@media (max-width: 1024px) {
  .lightbox__inner {
    gap: 10px;
  }

  .lightbox__arrow {
    width: 50px;
    height: 50px;
  }

  .lightbox__img {
    max-width: 80vw;
  }
}

@media (max-width: 768px) {
  .lightbox__inner {
    padding: 0;
    gap: 0;
  }

  .lightbox__arrows-row {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2010;
  }

  .lightbox__arrow {
    position: absolute;
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: auto;
    width: 60px;
    height: 60px;
    -webkit-tap-highlight-color: transparent;
  }

  .lightbox__arrow--prev {
    left: 20px;
  }

  .lightbox__arrow--next {
    right: 20px;
  }

  .lightbox__img {
    max-width: 100vw;
    max-height: 100vh;
  }

  .lightbox__img.anim-next,
  .lightbox__img.anim-prev {
    animation: none !important;
  }

  .lightbox__arrow:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-50%) scale(1);
  }

  .lightbox__arrow.hidden {
    display: none;
    pointer-events: none;
  }

  /* Carousel Arrows Styling Match */
  .carousel-arrow {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    -webkit-tap-highlight-color: transparent;
    box-shadow: none !important;
  }

  .carousel-arrow:hover,
  .carousel-arrow:active {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
    transform: translateY(-50%) scale(1) !important;
  }

  /* ── MOBILE LANDSCAPE OPTIMIZATION ── */
  @media (orientation: landscape) and (max-height: 500px) {
    .lightbox__arrow {
      width: 44px;
      height: 44px;
    }
    .lightbox__close {
      top: 15px;
      right: 15px;
    }
  }
}

@keyframes zoomIn {
  from {
    transform: scale(0.95) translateY(10px);
    opacity: 0;
  }

  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

/* ── LOCATION ── */
.location {
  background: var(--black);
}

.location__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.location__map {
  height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.location__info h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--cream);
  margin-bottom: 20px;
}

.location__info p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.location-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.location-highlights li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text);
}

.location-highlights li svg {
  color: var(--gold);
  flex-shrink: 0;
}

.location-highlights li strong {
  color: var(--cream);
  margin-right: 4px;
}

/* ── REVIEWS ── */
.reviews {
  background: var(--surface);
}

.reviews__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 20px;
}

.reviews__score {
  font-family: var(--font-serif);
  font-size: 5rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}

.reviews__score-label {
  font-size: 13px;
  color: var(--text-muted);
}

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

.review-card {
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.review-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.review-card__user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--gold);
}

.review-card__name {
  font-size: 15px;
  color: var(--cream);
  font-weight: 500;
}

.review-card__date {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 2px;
}

.review-card__text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
  font-style: italic;
}

.review-card__text::before {
  content: '"';
  color: var(--gold);
  font-size: 2rem;
  font-family: var(--font-serif);
  line-height: 0;
  vertical-align: -10px;
  margin-right: 4px;
}

/* ── CONTACT PAGE ── */
.contact-hero {
  min-height: 50vh;
  background: var(--dark);
  display: flex;
  align-items: flex-end;
  padding: 100px 80px 60px;
  position: relative;
  overflow: hidden;
}

.contact-hero::before {
  content: 'CONTACTO';
  position: absolute;
  font-family: var(--font-serif);
  font-size: 20vw;
  font-weight: 300;
  color: rgba(201, 169, 110, 0.04);
  top: 50%;
  right: -40px;
  transform: translateY(-50%);
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: 0.1em;
}

.contact-content {
  background: var(--black);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info__host {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 36px;
}

.contact-info__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--gold-dim);
  flex-shrink: 0;
}

.contact-info__name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 4px;
}

.contact-info__role {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.contact-info__badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--gold);
  background: rgba(201, 169, 110, 0.08);
  border: 1px solid rgba(201, 169, 110, 0.2);
  border-radius: 50px;
  padding: 5px 12px;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
}

.contact-channel {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
  text-decoration: none;
}

.contact-channel:hover {
  border-color: var(--gold-dim);
  transform: translateX(6px);
}

.contact-channel__icon {
  width: 42px;
  height: 42px;
  background: rgba(201, 169, 110, 0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}

.contact-channel__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin-bottom: 3px;
}

.contact-channel__value {
  font-size: 15px;
  color: var(--cream);
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px;
}

.contact-form h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 300;
  color: var(--cream);
  margin-bottom: 32px;
}

.form-group {
  margin-bottom: 22px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

input,
select,
textarea {
  cursor: text;
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--cream);
  outline: none;
  transition: var(--transition);
  appearance: none;
}

input[type="date"] {
  cursor: pointer;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-dim);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold-dim);
  background: rgba(201, 169, 110, 0.04);
}

select {
  cursor: pointer;
  background-color: #1a1a1a;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23C9A96E' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  color: var(--cream);
  color-scheme: dark;
}

/* ── CUSTOM SELECT (for hover gold effect) ── */
.custom-select-wrapper {
  position: relative;
  display: block;
  user-select: none;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #1a1a1a;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--cream);
  cursor: pointer;
  font-size: 15px;
  transition: var(--transition);
}

.custom-select-trigger:after {
  content: '';
  width: 12px;
  height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23C9A96E' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  transition: transform 0.3s ease;
}

.custom-select-wrapper.open .custom-select-trigger:after {
  transform: rotate(180deg);
}

.custom-select-wrapper.open .custom-select-trigger {
  border-color: var(--gold-dim);
}

.custom-options {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #1a1a1a;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  max-height: 250px;
  overflow-y: auto;
}

.custom-select-wrapper.open .custom-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-option {
  padding: 12px 18px;
  font-size: 14px;
  color: var(--cream);
  cursor: pointer;
  transition: all 0.2s;
}

.custom-option:hover {
  background: var(--gold);
  color: #1a1a1a;
  /* Dark text on gold hover */
}

.custom-option.selected {
  color: var(--gold);
  background: rgba(201, 169, 110, 0.05);
}

.custom-option.selected:hover {
  color: #1a1a1a;
}

.custom-option[style*="display: none"] {
  display: none;
}

/* Hide original but keep it for form submission & validation */
.hidden-select {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* Disabled state */
.custom-select-wrapper.cs-disabled .custom-select-trigger {
  opacity: 0.45;
  cursor: not-allowed;
}

.custom-select-wrapper.cs-disabled .custom-select-trigger:after {
  opacity: 0.4;
}



textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  margin-top: 8px;
}

.form-note {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 14px;
  text-align: center;
}

/* ── AVAILABILITY CALENDAR SECTION ── */
.availability-section {
  background: var(--dark);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 0;
}

.availability-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
}

.cal-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.cal-widget--disabled .cal-nav,
.cal-widget--disabled .cal-grid,
.cal-widget--disabled .cal-legend {
  opacity: 0.4;
  pointer-events: none;
}

.cal-widget__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 28px 18px;
  border-bottom: 1px solid var(--border);
}

.cal-widget__apt-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

.cal-widget--disabled .cal-widget__apt-dot {
  background: var(--text-dim);
}

.cal-widget__apt-name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--cream);
  flex: 1;
}

.cal-widget__apt-loc {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* Month navigator */
.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px 12px;
}

.cal-nav__btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.cal-nav__btn:hover:not(:disabled) {
  border-color: var(--gold-dim);
  color: var(--gold);
}

.cal-nav__btn:disabled {
  opacity: 0.2;
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.05);
}

.cal-nav__month {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
}

/* Calendar grid */
.cal-grid {
  padding: 0 20px 20px;
}

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  margin-bottom: 6px;
}

.cal-weekday {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 6px 0;
}

.cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
  color: var(--text);
  position: relative;
}

.cal-day--empty {
  pointer-events: none;
}

.cal-day--past {
  color: var(--text-dim);
  opacity: 0.4;
}

.cal-day--today {
  border: 1px solid var(--gold);
  color: var(--gold);
  font-weight: 600;
}

.cal-day--blocked {
  background: rgba(255, 80, 80, 0.15);
  color: #ff6060;
  text-decoration: line-through;
  cursor: not-allowed;
}

.cal-day--available {
  background: rgba(201, 169, 110, 0.12);
  color: var(--gold);
}

.cal-day--available:hover {
  background: rgba(201, 169, 110, 0.2);
  transform: scale(1.1);
  z-index: 2;
}

/* Legend */
.cal-legend {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 28px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.cal-legend__item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--text-muted);
}

.cal-legend__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.cal-legend__dot--available {
  background: rgba(201, 169, 110, 0.4);
  border: 1px solid var(--gold-dim);
}

.cal-legend__dot--blocked {
  background: rgba(255, 80, 80, 0.4);
}

.cal-legend__dot--today {
  border: 1px solid var(--gold);
  background: transparent;
}

/* Loading/Error states */
.cal-state {
  padding: 40px 28px;
  text-align: center;
}

.cal-state__icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.cal-state__text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.cal-state__link {
  display: inline-block;
  margin-top: 12px;
  font-size: 12px;
  color: var(--gold);
  text-decoration: underline;
  cursor: pointer;
}

/* Disabled overlay */
.cal-disabled-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(8, 8, 8, 0.6);
  backdrop-filter: blur(2px);
  padding: 24px;
  text-align: center;
  z-index: 10;
  pointer-events: auto;
  /* Fix: allow clicking the button inside */
}

.cal-disabled-overlay__icon {
  width: 52px;
  height: 52px;
  border: 1.5px solid var(--text-dim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.cal-disabled-overlay__title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--cream);
}

.cal-disabled-overlay__text {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 220px;
  line-height: 1.6;
}

.cal-disabled-overlay .btn {
  margin-top: 4px;
}

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



/* ── SUCCESS MESSAGE ── */
.form-success {
  display: none;
  text-align: center;
  padding: 40px 0;
}

.form-success__icon {
  width: 64px;
  height: 64px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin: 0 auto 20px;
}

.form-success h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--cream);
  margin-bottom: 10px;
}

.form-success p {
  font-size: 15px;
  color: var(--text-muted);
}

/* ── FOOTER ── */
.footer {
  background: var(--black);
  border-top: 1px solid var(--border);
  padding: 60px 40px 30px;
}

.footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 50px;
}

.footer__brand p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 16px;
  max-width: 300px;
}

.footer__logo {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--cream);
}

.footer__logo span {
  color: var(--gold);
}

.footer__heading {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.25s;
}

.footer__links a:hover {
  color: var(--cream);
}

.footer__bottom {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 30px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 16px;
}

.footer__copy {
  font-size: 12px;
  color: var(--text-dim);
}

.footer__copy {
  font-size: 12px;
  color: var(--text-dim);
}

/* ── CTA BAND ── */
.cta-band {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 40px;
  text-align: center;
}

.cta-band h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  color: var(--cream);
  margin-bottom: 16px;
}

.cta-band p {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 36px;
}

.cta-band__btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── FADE IN ANIMATION ── */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .container {
    padding: 0 30px;
  }

  .apt-info__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .apt-stats-card {
    position: static;
  }

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

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

  .apt-hero__content {
    padding: 0 40px 50px;
  }

  .sticky-bar {
    padding: 0 40px;
  }

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

  .hero-panel__content {
    padding: 30px 30px 40px;
  }
}

@media (max-width: 768px) {
  .nav {
    padding: 0 24px;
  }

  .nav__links,
  .nav__cta {
    display: none;
  }

  .nav__burger {
    display: flex;
  }

  .hero-split {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
  }

  .hero-panel {
    flex: none;
    height: 50vh;
  }

  .hero-panel:hover {
    flex: none;
  }

  .hero-panel__content {
    padding: 20px 24px 20px;
    /* Lowered the text closer to the bottom */
  }

  .hero-panel__overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.7) 45%, transparent 100%);
    opacity: 1;
    /* Darker and higher gradient to make text visible */
  }

  .hero-divider {
    top: 50%;
    bottom: auto;
    left: 0;
    right: 0;
    width: auto;
    height: 1px;
  }

  .apt-cards {
    grid-template-columns: 1fr;
  }

  .apt-hero__content {
    padding: 0 24px 40px;
  }

  .sticky-bar {
    padding: 0 15px;
    height: auto;
    top: 0;
  }

  .sticky-bar__inner {
    flex-wrap: wrap;
    height: auto;
    padding: 10px 0;
    gap: 0;
    justify-content: center;
  }

  .sticky-bar__link {
    font-size: 10px;
    padding: 8px 10px;
    height: auto;
    border-bottom: 1px solid transparent;
  }

  .sticky-bar__link.active {
    border-bottom-color: var(--gold);
  }

  .sticky-bar__price {
    display: none;
  }


  .contact-form {
    padding: 30px 24px;
  }

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

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .section {
    padding: 60px 0;
  }

  .intro-strip__inner {
    flex-direction: column;
    align-items: flex-start;
    width: max-content;
    margin: 0 auto;
    gap: 20px;
  }

  .section-header {
    text-align: left;
    display: flex;
    flex-direction: column;
  }

  .section-header .tag {
    display: block;
    text-align: left;
    margin-left: 0;
  }

  .section-header .gold-line {
    margin-left: 0;
  }

  .section-header .section-subtitle {
    margin: 0;
  }

  .cta-band__btns,
  .apt-info__btns,
  .apt-stats-card__btns {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    gap: 12px;
  }

  .apt-info__btns {
    margin-top: 48px;
  }

  .cta-band__btns .btn,
  .apt-info__btns .btn,
  .apt-stats-card__btns .btn {
    width: 100%;
  }

  .hero-scroll {
    bottom: 15px;
  }

  /* ── GALLERY REFINEMENTS ── */
  .gallery-scroll-container {
    padding: 0 0 32px 0; /* Flush with container padding */
    gap: 12px;
  }

  .gallery-item {
    height: 230px; /* Adjusted height for optimal landscape/portrait mix */
    width: auto;
    max-width: calc(100vw - 48px);
  }

  .gallery-item img.actual-img {
    width: auto;
    height: 100%;
    max-width: 100%;
  }

  .gallery-item__overlay {
    display: none;
  }

  .accordion-header {
    padding: 20px 0; /* Align with container text */
  }

  .contact-hero {
    padding: 100px 24px 50px;
  }
}

#cal-scroll-btn:hover {
  transform: scale(1.05);
}

/* ── ATTENTION PULSE ANIMATION ── */
@keyframes pulse-attention {

  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(201, 169, 110, 0.5);
  }

  50% {
    transform: scale(1.02);
    box-shadow: 0 0 25px 10px rgba(201, 169, 110, 0.2);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(201, 169, 110, 0);
  }
}

.pulse-attention {
  animation: pulse-attention 0.8s ease-in-out;
  border-color: var(--gold) !important;
}

/* ── SCROLL TO TOP ── */
/* Gallery item content hover logic moved to main section */

.scroll-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  background: var(--surface);
  border: 1px solid var(--gold-dim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  z-index: 999;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(201, 169, 110, 0.3);
}

@media (max-width: 768px) {
  .scroll-to-top {
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
  }
}