/* ==========================================================================
   BIELICE.PL - CHATKA TRAPERA & CO
   Nowoczesny styl agroturystyki w Górach Złotych
   Standard: High-End Agency / Impeccable Design / 100% Responsive Mobile-First
   Zoptymalizowany pod iOS (Safari / iPhone) oraz Android (Chrome / Samsung)
   ========================================================================== */

/* Google Fonts loaded via <link> in HTML <head> for Firefox CORS compatibility */

:root {
  --color-primary: #1e352f;
  --color-primary-light: #2c4a42;
  --color-primary-dark: #12221e;
  --color-primary-trans: rgba(30, 53, 47, 0.08);
  
  --color-accent: #c47335;
  --color-accent-hover: #ad6229;
  --color-accent-light: #f7ede4;
  
  --color-bg: #fcfbf9;
  --color-bg-card: #ffffff;
  --color-bg-alt: #f4f0e6;
  --color-bg-dark: #13221e;
  
  --color-text: #1b2623;
  --color-text-muted: #5e6b67;
  --color-text-light: #8e9b97;
  --color-text-inverse: #fcfbf9;
  
  --color-border: rgba(30, 53, 47, 0.12);
  --color-border-light: rgba(30, 53, 47, 0.06);
  
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  
  --shadow-sm: 0 2px 8px rgba(20, 32, 28, 0.04);
  --shadow-md: 0 8px 24px rgba(20, 32, 28, 0.08);
  --shadow-lg: 0 16px 40px rgba(20, 32, 28, 0.12);
  --shadow-xl: 0 24px 60px rgba(20, 32, 28, 0.16);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  
  --container-max: 1240px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  -webkit-tap-highlight-color: transparent;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--color-primary-dark);
  line-height: 1.25;
  font-weight: 600;
  word-break: break-word;
}

.text-accent {
  color: var(--color-accent);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.section-label::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 2px;
  background-color: var(--color-accent);
  flex-shrink: 0;
}

.section-title {
  font-size: clamp(1.85rem, 3.8vw, 2.9rem);
  letter-spacing: -0.015em;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--color-text-muted);
  max-width: 680px;
  line-height: 1.7;
}

/* Containers */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(16px, 4vw, 28px);
  padding-right: clamp(16px, 4vw, 28px);
}

.section {
  padding-top: clamp(50px, 7vw, 100px);
  padding-bottom: clamp(50px, 7vw, 100px);
  width: 100%;
  overflow: hidden;
}

.section-alt {
  background-color: var(--color-bg-alt);
}

.section-dark {
  background-color: var(--color-bg-dark);
  color: var(--color-text-inverse);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--color-text-inverse);
}

.section-dark .section-subtitle {
  color: rgba(255, 255, 255, 0.75);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: var(--transition);
  text-align: center;
  cursor: pointer;
  white-space: nowrap;
  min-height: 44px; /* Apple minimum touch target */
}

.btn svg {
  flex-shrink: 0;
  display: block;
}

.btn-primary {
  background-color: var(--color-accent);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(196, 115, 53, 0.25);
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196, 115, 53, 0.35);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.92);
  color: var(--color-primary-dark);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background-color: #ffffff;
  color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  border: 1.5px solid var(--color-border);
  color: var(--color-primary-dark);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--color-primary);
  background-color: var(--color-primary-trans);
}

.btn-outline-white {
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  background: transparent;
}

.btn-outline-white:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
  min-height: 38px;
}

/* ==========================================================================
   HEADER / NAVBAR
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
  padding: 16px 0;
}

.site-header.scrolled {
  background-color: rgba(252, 251, 249, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 20px rgba(18, 34, 30, 0.08);
  padding: 10px 0;
}

/* Firefox fallback: solid background when backdrop-filter is unsupported */
@supports not (backdrop-filter: blur(1px)) {
  .site-header.scrolled {
    background-color: #fcfbf9;
  }
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header-brand img {
  height: 36px;
  width: auto;
  transition: filter 0.3s ease;
}

.site-header.scrolled .header-brand img {
  filter: brightness(0.2) contrast(1.2);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  position: relative;
  padding: 6px 0;
}

.site-header.scrolled .nav-link {
  color: var(--color-text);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width 0.25s ease;
}

.nav-link:hover {
  color: var(--color-accent);
}

.nav-link:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  transition: color 0.3s ease;
}

.site-header.scrolled .header-phone {
  color: var(--color-primary);
}

.header-phone:hover {
  color: var(--color-accent) !important;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 8px;
  cursor: pointer;
  z-index: 1002;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

@supports not (backdrop-filter: blur(1px)) {
  .mobile-toggle {
    background: rgba(255, 255, 255, 0.35);
  }
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: var(--transition);
}

.site-header.scrolled .mobile-toggle {
  background: rgba(30, 53, 47, 0.08);
}

.site-header.scrolled .mobile-toggle span {
  background-color: var(--color-primary-dark);
}

/* Mobile drawer/overlay: hidden by default, visible only inside @media <=868px */
.mobile-menu-drawer,
.mobile-menu-overlay {
  display: none;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: clamp(100px, 14vh, 140px);
  padding-bottom: clamp(60px, 10vh, 100px);
  background-color: var(--color-bg-dark);
  overflow: hidden;
  width: 100%;
}
.hero-picture {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  opacity: 0.62;
  filter: saturate(1.14) brightness(0.98) contrast(1.02);
  transition: opacity 0.4s ease;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    /* Asymetryczna ochrona czytelności tekstu po lewej stronie */
    linear-gradient(
      90deg,
      rgba(13, 26, 22, 0.65) 0%,
      rgba(13, 26, 22, 0.42) 42%,
      rgba(13, 26, 22, 0.15) 75%,
      rgba(13, 26, 22, 0.05) 100%
    ),
    /* Płynne przejście pionowe od nawigacji do paska atutów */
    linear-gradient(
      180deg,
      rgba(13, 26, 22, 0.58) 0%,
      rgba(13, 26, 22, 0.12) 25%,
      rgba(13, 26, 22, 0.35) 70%,
      rgba(13, 26, 22, 0.94) 100%
    );
}

.hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-content {
  max-width: 760px;
  width: 100%;
}

.hero-badge-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 500;
}

.hero-pill img.booking-badge {
  height: 20px;
  width: 20px;
  border-radius: 4px;
  flex-shrink: 0;
  display: block;
}

@supports not (backdrop-filter: blur(1px)) {
  .hero-pill {
    background: rgba(30, 53, 47, 0.75);
  }
  .hero-feature-item {
    background: rgba(30, 53, 47, 0.72);
  }
  .house-tag-badge {
    background: rgba(18, 34, 30, 0.92);
  }
}

.hero-title {
  font-size: clamp(2.3rem, 6vw, 4.3rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.hero-title span {
  display: block;
  font-style: italic;
  font-weight: 400;
  color: #e5ded2;
  font-size: 0.85em;
  margin-top: 4px;
}

.hero-description {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 640px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

.br-desktop {
  display: inline;
}

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

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  width: 100%;
}

/* Ribbon poniżej Hero (8 zrównoważonych atutów) */
.hero-features-bar {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  width: 100%;
}

.hero-feature-item {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 14px 16px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  color: #ffffff;
  transition: var(--transition);
}

.hero-feature-item:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.hero-feature-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
}

.hero-feature-icon {
  width: 32px;
  height: 32px;
  background-color: rgba(196, 115, 53, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f7a361;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.hero-feature-header h3,
.hero-feature-title {
  font-family: var(--font-sans);
  font-size: 0.90rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.25;
}

.hero-feature-item p {
  font-size: 0.77rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.35;
  margin: 0;
}

/* ==========================================================================
   ABOUT / STORY SECTION
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 60px);
  align-items: center;
}

.about-images-composition {
  position: relative;
  width: 100%;
}

.about-img-main,
.about-panorama-frame {
  position: relative;
  width: 100%;
  height: clamp(280px, 40vw, 460px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background-color: var(--color-bg-alt);
  transform: translateZ(0);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  isolation: isolate;
  cursor: pointer;
}

.about-panorama-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-panorama-frame:hover .about-panorama-img {
  transform: scale(1.025);
}

.about-panorama-img.panorama-aerial {
  z-index: 1;
  opacity: 1;
}

.about-panorama-img.panorama-valley {
  z-index: 2;
  opacity: 0;
  animation: panoramaCrossfade 12s infinite ease-in-out;
  will-change: opacity;
}

.about-panorama-frame:hover .about-panorama-img.panorama-valley,
.about-panorama-frame:hover .p-dot {
  animation-play-state: paused;
}

.about-panorama-frame.manual-valley .panorama-valley,
.about-panorama-frame.manual-aerial .panorama-valley {
  animation: none !important;
  opacity: 1 !important;
}

.about-panorama-frame.manual-valley .dot-1,
.about-panorama-frame.manual-aerial .dot-1 {
  animation: none !important;
  opacity: 0.35 !important;
  transform: scale(1) !important;
}

.about-panorama-frame.manual-valley .dot-2,
.about-panorama-frame.manual-aerial .dot-2 {
  animation: none !important;
  opacity: 1 !important;
  transform: scale(1.2) !important;
  background-color: #ffffff !important;
}

.about-panorama-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(18, 34, 30, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 6px 11px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  user-select: none;
  pointer-events: none;
  transition: background 0.3s ease;
}

.panorama-badge-dots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.p-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.7);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.p-dot.dot-1 {
  animation: dotAerialPulse 12s infinite ease-in-out;
}

.p-dot.dot-2 {
  animation: dotValleyPulse 12s infinite ease-in-out;
}

@keyframes panoramaCrossfade {
  0%, 42% {
    opacity: 0;
  }
  50%, 92% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes dotAerialPulse {
  0%, 42% {
    opacity: 1;
    transform: scale(1.2);
    background-color: #ffffff;
  }
  50%, 92% {
    opacity: 0.35;
    transform: scale(1);
    background-color: rgba(255, 255, 255, 0.7);
  }
  100% {
    opacity: 1;
    transform: scale(1.2);
    background-color: #ffffff;
  }
}

@keyframes dotValleyPulse {
  0%, 42% {
    opacity: 0.35;
    transform: scale(1);
    background-color: rgba(255, 255, 255, 0.7);
  }
  50%, 92% {
    opacity: 1;
    transform: scale(1.2);
    background-color: #ffffff;
  }
  100% {
    opacity: 0.35;
    transform: scale(1);
    background-color: rgba(255, 255, 255, 0.7);
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-panorama-img.panorama-valley {
    animation: none !important;
    opacity: 0 !important;
  }
  .p-dot.dot-1,
  .p-dot.dot-2 {
    animation: none !important;
  }
  .about-panorama-badge {
    display: none !important;
  }
}

.about-trust-card {
  position: absolute;
  bottom: -25px;
  right: -15px;
  background-color: var(--color-bg-card);
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  box-shadow: 0 14px 38px rgba(18, 34, 30, 0.16);
  border: 1px solid var(--color-border);
  width: 100%;
  max-width: 320px;
  z-index: 2;
  transition: var(--transition);
}

.trust-card-title {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.trust-badges-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.trust-badge-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-light);
  background-color: #ffffff;
  text-decoration: none;
  color: var(--color-text);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.trust-badge-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}

.trust-badge-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trust-badge-info {
  flex: 1;
  min-width: 0;
}

.trust-badge-portal {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  line-height: 1.2;
}

.trust-badge-award {
  font-size: 0.71rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trust-badge-score {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  flex-shrink: 0;
}

.trust-badge-score.booking-score {
  align-items: center;
}

.trust-badge-score.booking-score .score-box {
  background-color: #003580;
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1.1;
  font-family: var(--font-sans);
}

.trust-badge-score.booking-score .score-sub {
  font-size: 0.65rem;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.trust-badge-score.meteor-score .score-stars {
  color: #f59e0b;
  font-size: 0.72rem;
  letter-spacing: 1px;
  line-height: 1;
}

.trust-badge-score.meteor-score .score-badge {
  font-size: 0.68rem;
  font-weight: 700;
  color: #1e3a8a;
  background: #eff6ff;
  padding: 2px 5px;
  border-radius: 4px;
  margin-top: 2px;
}

.about-lead {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  font-family: var(--font-serif);
  color: var(--color-primary);
  margin-bottom: 18px;
  line-height: 1.6;
}

.about-text {
  color: var(--color-text-muted);
  margin-bottom: 20px;
  line-height: 1.75;
  font-size: 0.96rem;
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 26px;
}

.highlight-card {
  background: #ffffff;
  border: 1px solid rgba(30, 53, 47, 0.09);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  box-shadow: 0 4px 18px rgba(20, 32, 28, 0.04);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.highlight-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(20, 32, 28, 0.08);
  border-color: rgba(196, 115, 53, 0.35);
}

.highlight-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.highlight-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.highlight-card:hover .highlight-icon-wrap {
  transform: scale(1.06);
}

.icon-home {
  background: rgba(196, 115, 53, 0.12);
  color: var(--color-accent);
}

.icon-fire {
  background: rgba(30, 53, 47, 0.08);
  color: var(--color-primary);
}

.highlight-card-title-group {
  flex: 1;
  min-width: 0;
}

.highlight-badge {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  margin-bottom: 3px;
}

.highlight-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  margin: 0;
  line-height: 1.25;
}

.highlight-desc {
  font-size: 0.86rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0 0 16px 0;
  flex: 1;
}

.highlight-chips {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(30, 53, 47, 0.06);
}

.h-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-bg);
  border: 1px solid rgba(30, 53, 47, 0.08);
  color: var(--color-primary-dark);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-full);
}

.h-chip svg {
  color: var(--color-accent);
  flex-shrink: 0;
}

/* ==========================================================================
   HOUSES / DOMKI (OFFER)
   ========================================================================== */
.house-section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto clamp(24px, 4vw, 36px);
}

/* Executive 3-Card House Quick Navigator */
.house-quick-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 28px);
  margin-bottom: clamp(48px, 6vw, 72px);
  width: 100%;
}

.house-nav-card {
  display: flex;
  flex-direction: column;
  background-color: var(--color-bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.28s ease;
  position: relative;
}

.house-nav-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(30, 53, 47, 0.12);
  border-color: var(--color-primary-light);
}

.house-nav-card:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.house-nav-thumb {
  position: relative;
  width: 100%;
  height: 190px;
  overflow: hidden;
  background-color: var(--color-bg-dark);
}

.house-nav-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.house-nav-card:hover .house-nav-thumb img {
  transform: scale(1.06);
}

.house-nav-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(18, 34, 30, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.18);
  z-index: 2;
}

.house-nav-badges {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 2;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: calc(100% - 24px);
}

.house-nav-badge,
.house-nav-capacity {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--color-primary-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.house-nav-body {
  padding: 20px 22px 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.house-nav-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.house-nav-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  line-height: 1.25;
  margin: 0;
  transition: color 0.2s ease;
}

.house-nav-card:hover .house-nav-title {
  color: var(--color-primary);
}

.house-nav-price {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-accent-dark);
  white-space: nowrap;
}

.house-nav-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.nav-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  background-color: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

.house-nav-desc {
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--color-text-muted);
  margin-bottom: 16px;
  flex-grow: 1;
}

.house-nav-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--color-border-light);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-primary);
  transition: color 0.2s ease;
}

.house-nav-cta svg {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--color-accent);
}

.house-nav-card:hover .house-nav-cta {
  color: var(--color-primary-dark);
}

.house-nav-card:hover .house-nav-cta svg {
  transform: translateY(3px);
  color: var(--color-primary);
}

/* Responsywność house-quick-nav */
@media (max-width: 991px) {
  .house-quick-nav {
    grid-template-columns: repeat(2, 1fr);
  }
  .house-quick-nav .house-nav-card:last-child {
    grid-column: span 2;
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .house-quick-nav {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .house-quick-nav .house-nav-card:last-child {
    grid-column: auto;
    max-width: none;
    margin: 0;
  }
  .house-nav-thumb {
    height: 160px;
  }
}

.house-cards-list {
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 6vw, 60px);
  width: 100%;
}

.house-card {
  background-color: var(--color-bg-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  width: 100%;
  min-width: 0;
  scroll-margin-top: calc(var(--header-height, 80px) + 24px);
  transform: translateZ(0);
  background-clip: padding-box;
}

/* Subtelny impuls świetlny po przejściu z szybkiej nawigacji */
@keyframes houseArrivalPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(197, 160, 89, 0.6);
    border-color: var(--color-accent);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(197, 160, 89, 0.25);
    border-color: var(--color-accent);
  }
  100% {
    box-shadow: var(--shadow-md);
    border-color: var(--color-border);
  }
}

.house-card.is-targeted {
  animation: houseArrivalPulse 1.8s ease-out;
}

.house-card:hover {
  box-shadow: var(--shadow-xl);
  border-color: rgba(30, 53, 47, 0.22);
}

.house-main-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  width: 100%;
  min-width: 0;
}

.house-card.reverse .house-main-grid {
  grid-template-columns: 1fr 1.15fr;
}

.house-card.reverse .house-media {
  order: 2;
}

.house-card.reverse .house-details {
  order: 1;
}

.house-media {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: var(--color-bg-dark);
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  height: 100%;
}

.house-main-img-wrap {
  position: relative;
  flex: 1 1 auto;
  height: auto;
  min-height: 380px;
  overflow: hidden;
  cursor: pointer;
  width: 100%;
}

.house-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.house-card:hover .house-main-img {
  transform: scale(1.03);
}

.house-tag-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(18, 34, 30, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  z-index: 2;
}

/* Delicate in-place hero navigation arrows */
.hero-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(18, 34, 30, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 4;
  opacity: 0;
  transition: opacity 0.25s ease, background 0.25s ease, transform 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.hero-nav-btn.prev {
  left: 14px;
}

.hero-nav-btn.next {
  right: 14px;
}

.house-main-img-wrap:hover .hero-nav-btn {
  opacity: 0.88;
}

.hero-nav-btn:hover {
  opacity: 1 !important;
  background: rgba(18, 34, 30, 0.95);
  color: var(--color-accent);
  transform: translateY(-50%) scale(1.08);
  border-color: rgba(197, 160, 89, 0.6);
}

.hero-nav-btn:active {
  transform: translateY(-50%) scale(0.94);
}

.hero-photo-counter {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(18, 34, 30, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.92);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  z-index: 3;
  border: 1px solid rgba(255, 255, 255, 0.14);
  pointer-events: none;
}

@media (max-width: 1024px) {
  .hero-nav-btn {
    opacity: 0.85;
    width: 34px;
    height: 34px;
  }
  .hero-nav-btn.prev {
    left: 10px;
  }
  .hero-nav-btn.next {
    right: 10px;
  }
}

.house-thumbs-strip {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  background-color: rgba(18, 34, 30, 0.95);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  scrollbar-width: thin;
  scrollbar-color: rgba(197, 160, 89, 0.45) rgba(18, 34, 30, 0.7);
  flex-shrink: 0;
  margin-top: auto;
}

.house-thumbs-strip::-webkit-scrollbar {
  height: 6px;
}

.house-thumbs-strip::-webkit-scrollbar-track {
  background: rgba(18, 34, 30, 0.8);
  border-radius: 3px;
}

.house-thumbs-strip::-webkit-scrollbar-thumb {
  background: rgba(197, 160, 89, 0.45);
  border-radius: 3px;
  transition: background 0.2s ease;
}

.house-thumbs-strip::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
}

.thumb-item {
  width: 66px;
  height: 48px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  opacity: 0.65;
  transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  border: 2px solid transparent;
}

.thumb-item:hover {
  opacity: 0.95;
  transform: translateY(-2px);
  border-color: rgba(197, 160, 89, 0.6);
}

.thumb-item.active {
  opacity: 1;
  border-color: var(--color-accent);
  box-shadow: 0 0 10px rgba(197, 160, 89, 0.4);
}

.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.house-details {
  padding: clamp(20px, 4vw, 36px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.house-header {
  margin-bottom: 16px;
}

.house-title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 8px;
}

.house-specs-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.spec-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-primary);
  background-color: var(--color-primary-trans);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
}

.house-description {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.68;
  margin-bottom: 20px;
}

.house-amenities-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  margin-bottom: 24px;
}

.amenity-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--color-text);
}

.amenity-icon {
  color: var(--color-accent);
  font-size: 0.95rem;
  font-weight: bold;
}

.house-footer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

.house-price-box .price-label {
  font-size: 0.76rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.house-price-box .price-value {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary-dark);
}

.house-actions-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-plan {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-primary);
  transition: var(--transition);
  min-height: 40px;
}

.btn-outline-plan {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--color-accent-light);
  color: var(--color-accent);
  font-size: 0.84rem;
  font-weight: 600;
  border: 1px solid rgba(196, 115, 53, 0.3);
  transition: var(--transition);
  cursor: pointer;
  min-height: 38px;
  text-decoration: none;
}

.plan-btn-text {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
}

.plan-btn-label {
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
}

.plan-btn-area {
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

button.btn-outline-plan {
  font-family: inherit;
}

.btn-outline-plan:hover {
  background: var(--color-accent);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(196, 115, 53, 0.25);
}

/* ==========================================================================
   ARCHITECTURAL FLOOR PLAN SHOWCASE (Full-Width within Card)
   ========================================================================== */
.house-floorplan-showcase {
  border-top: 1px solid var(--color-border);
  background-color: #faf8f5; /* Subtle warm paper tone */
  padding: clamp(20px, 3vw, 32px);
  width: 100%;
}

.floorplan-showcase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}

.showcase-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.showcase-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background-color: var(--color-primary-trans);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.showcase-title-wrap h4 {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  color: var(--color-primary-dark);
  margin-bottom: 2px;
}

.showcase-subtitle {
  font-size: 0.86rem;
  color: var(--color-text-muted);
}

.showcase-subtitle strong {
  color: var(--color-accent);
}

.floorplan-expand-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background-color: #ffffff;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-primary);
  transition: var(--transition);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.floorplan-expand-btn:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
}

.floorplan-showcase-body {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(18px, 3vw, 28px);
  align-items: stretch;
}

.floorplan-canvas-frame {
  position: relative;
  background-color: #ffffff;
  border-radius: var(--radius-md);
  border: 1.5px solid rgba(30, 53, 47, 0.14);
  padding: clamp(16px, 2.5vw, 24px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  min-height: 260px;
}

.floorplan-canvas-frame:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

.floorplan-display-img {
  width: 100%;
  height: 100%;
  max-height: 380px;
  object-fit: contain;
  /* Architectural crispness and contrast */
  filter: contrast(1.22) brightness(0.98);
  transition: transform 0.3s ease;
}

.floorplan-canvas-frame:hover .floorplan-display-img {
  transform: scale(1.02);
}

.canvas-zoom-hint {
  position: absolute;
  bottom: 12px;
  right: 14px;
  background: rgba(18, 34, 30, 0.82);
  color: #ffffff;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
  opacity: 0.85;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.floorplan-canvas-frame:hover .canvas-zoom-hint {
  opacity: 1;
  background: var(--color-accent);
}

/* Room Breakdown Table / Cards */
.floorplan-rooms-breakdown {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}

.room-spec-card {
  background-color: #ffffff;
  border-radius: var(--radius-md);
  padding: 16px 18px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.room-level {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: 10px;
}

.room-spec-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.85rem;
  border-bottom: 1px dashed var(--color-border-light);
}

.room-spec-row:last-child {
  border-bottom: none;
}

.room-name {
  color: var(--color-text);
  font-weight: 500;
}

.room-area {
  font-weight: 700;
  color: var(--color-primary-dark);
  font-family: var(--font-sans);
}

.room-spec-row.highlight .room-area {
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
}

/* ==========================================================================
   PRICING & RESERVATION SECTION
   ========================================================================== */
.pricing-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
  width: 100%;
}

.pricing-card {
  background-color: var(--color-bg-card);
  padding: clamp(20px, 3vw, 28px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.pricing-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}

.pricing-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.pricing-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background-color: var(--color-accent-light);
  border: 1px solid rgba(196, 115, 53, 0.2);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
  margin-bottom: 0;
}

.pricing-card h3 {
  font-family: var(--font-serif);
  font-size: 1.22rem;
  color: var(--color-primary-dark);
  margin: 0;
  line-height: 1.25;
}

.pricing-card p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Widget rezerwacji kontener z przymglonym krajobrazem Bielic w tle */
.booking-widget-wrapper {
  position: relative;
  background-color: #ffffff;
  border-radius: var(--radius-xl);
  padding: clamp(24px, 4vw, 42px);
  box-shadow: 0 12px 36px rgba(20, 32, 28, 0.07);
  border: 1px solid rgba(30, 53, 47, 0.1);
  width: 100%;
  overflow: hidden;
}

.booking-widget-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(135deg, rgba(255, 255, 255, 0.86) 0%, rgba(255, 255, 255, 0.72) 45%, rgba(255, 255, 255, 0.88) 100%),
    url('../images/booking-bg-meadow.jpg');
  background-size: cover;
  background-position: center 32%;
  pointer-events: none;
  z-index: 0;
}

.booking-widget-wrapper > * {
  position: relative;
  z-index: 1;
}

.booking-widget-header {
  text-align: center;
  margin-bottom: 24px;
}

.booking-widget-header h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
  margin-bottom: 6px;
}

.booking-widget-frame {
  width: 100%;
  min-height: 380px;
  border: none;
  border-radius: var(--radius-md);
  background-color: transparent;
  display: block;
}

.payment-details-box {
  margin-top: 30px;
  padding: 20px;
  background-color: rgba(247, 245, 240, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  border: 1px solid rgba(30, 53, 47, 0.08);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.bank-info {
  flex: 1 1 auto;
  min-width: 0;
}

.bank-info h4 {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.bank-info p {
  font-size: 0.86rem;
  color: var(--color-text-muted);
  word-break: break-word;
}

.iban-copy-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  box-shadow: 0 2px 8px rgba(20, 32, 28, 0.04);
  flex-shrink: 0;
}

.iban-number {
  font-family: var(--font-mono, monospace);
  font-variant-numeric: tabular-nums;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.copy-btn {
  background: rgba(196, 115, 53, 0.09);
  color: var(--color-accent);
  border: 1px solid rgba(196, 115, 53, 0.24);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-family: var(--font-sans);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  min-height: 30px;
}

.copy-btn:hover {
  background: var(--color-accent);
  color: #ffffff;
  border-color: var(--color-accent);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(196, 115, 53, 0.25);
}

.copy-btn.copied {
  background: rgba(46, 125, 50, 0.12);
  color: #2e7d32;
  border-color: rgba(46, 125, 50, 0.3);
}

/* ==========================================================================
   LOCATION & MAP SECTION
   ========================================================================== */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(24px, 4vw, 40px);
  align-items: center;
}

.location-info h2 {
  font-size: clamp(1.5rem, 2.5vw, 1.8rem);
  margin-bottom: 14px;
}

.location-points-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}

.loc-point {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.loc-point-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-accent-light);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.95rem;
}

.loc-point-text h3 {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.loc-point-text p {
  font-size: 0.84rem;
  color: var(--color-text-muted);
}

.map-card-wrapper {
  background-color: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(30, 53, 47, 0.08);
  border: 1px solid var(--color-border);
  height: clamp(280px, 45vw, 420px);
  width: 100%;
  position: relative;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  background-clip: padding-box;
  isolation: isolate;
}

.map-card-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  border-radius: calc(var(--radius-lg) - 1px);
  background-color: var(--color-bg-alt);
  transform: translateZ(0);
}

/* ==========================================================================
   CONTACT SECTION (STREAMLINED & HIGH-END DIRECT CONTACT)
   ========================================================================== */
.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 24px);
  margin-bottom: clamp(28px, 4vw, 40px);
}

.contact-action-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 26px);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
  min-height: 250px;
}

.contact-action-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

.contact-action-card:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.contact-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.contact-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background-color: var(--color-accent-light);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.contact-action-card:hover .contact-icon-box {
  background-color: var(--color-accent);
  color: #ffffff;
  transform: scale(1.05);
}

.contact-badge {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 999px;
  background-color: rgba(26, 47, 39, 0.06);
  color: var(--color-primary);
}

.contact-card-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.contact-card-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-light);
  margin-bottom: 6px;
  display: block;
}

.contact-card-value {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  line-height: 1.35;
  margin-bottom: 10px;
  word-break: break-word;
  display: block;
}

.contact-card-desc {
  font-size: 0.86rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 0;
}

.contact-card-footer {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.contact-action-link {
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.contact-action-card:hover .contact-action-link {
  transform: translateX(4px);
  color: var(--color-accent-hover);
}

/* Direct booking CTA banner */
.contact-direct-booking-banner {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: clamp(24px, 3.5vw, 36px) clamp(22px, 4vw, 44px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-direct-booking-banner .booking-banner-text h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  color: #ffffff;
  margin-bottom: 6px;
}

.contact-direct-booking-banner .booking-banner-text p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 0;
  max-width: 620px;
  line-height: 1.55;
}

.contact-direct-booking-banner .btn {
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  .contact-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .contact-direct-booking-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .contact-direct-booking-banner .btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .contact-cards-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* ==========================================================================
   COOKIE NOTICE BANNER (PKE & RODO COMPLIANT)
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 460px;
  width: calc(100% - 48px);
  background-color: rgba(26, 47, 39, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #f7f9f6;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg, 16px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
  padding: 20px 22px;
  z-index: 1200;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.cookie-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cookie-banner-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cookie-banner-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.cookie-banner-title svg {
  color: var(--color-accent, #c5a059);
  flex-shrink: 0;
}

.cookie-banner-text {
  font-size: 0.84rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.84);
  margin: 0;
}

.cookie-banner-text a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.cookie-banner-text a:hover {
  color: var(--color-accent, #c5a059);
}

.cookie-banner-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.cookie-banner-actions .btn {
  padding: 8px 20px;
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .cookie-banner {
    bottom: calc(68px + env(safe-area-inset-bottom, 0px));
    left: 14px;
    right: 14px;
    width: auto;
    max-width: none;
    padding: 16px 18px;
  }
}

/* ==========================================================================
   LEGAL / PRIVACY POLICY PAGE STYLING
   ========================================================================== */
.legal-page-header {
  padding: clamp(60px, 8vw, 100px) 0 clamp(30px, 4vw, 48px);
  background: linear-gradient(180deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  color: #ffffff;
  text-align: center;
}

.legal-page-header .section-label {
  color: var(--color-accent);
}

.legal-page-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: #ffffff;
  margin-bottom: 12px;
}

.legal-page-header .legal-subtitle {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.55;
}

.legal-content-wrap {
  padding: clamp(40px, 6vw, 70px) 0;
}

.legal-article {
  max-width: 820px;
  margin: 0 auto;
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 5vw, 56px);
  box-shadow: var(--shadow-sm);
}

.legal-article h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  color: var(--color-primary-dark);
  margin-top: 36px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
}

.legal-article h2:first-of-type {
  margin-top: 0;
}

.legal-article h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-top: 20px;
  margin-bottom: 8px;
}

.legal-article p, .legal-article li {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 14px;
}

.legal-article ul {
  padding-left: 24px;
  margin-bottom: 18px;
}

.legal-article li {
  margin-bottom: 8px;
}

.legal-highlight-box {
  background-color: rgba(197, 160, 89, 0.08);
  border-left: 4px solid var(--color-accent);
  padding: 16px 20px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 22px 0;
  font-size: 0.92rem;
  line-height: 1.6;
}

.legal-nav-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-primary);
  margin-bottom: 24px;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.legal-nav-back:hover {
  color: var(--color-accent);
  transform: translateX(-4px);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background-color: #0f1c18;
  color: rgba(255, 255, 255, 0.72);
  padding-top: clamp(50px, 8vw, 80px);
  padding-bottom: 40px;
  font-size: 0.9rem;
}

.footer-top-grid,
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

.footer-about h4 {
  color: #ffffff;
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.footer-about p {
  line-height: 1.65;
  margin-bottom: 16px;
}

.footer-col h5 {
  font-family: var(--font-sans);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--color-accent);
  padding-left: 4px;
}

.footer-address {
  line-height: 1.55;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.82);
}

.footer-legal-ids {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.52);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.footer-legal-ids .id-sep {
  opacity: 0.35;
}

.footer-contact-item {
  margin-bottom: 6px;
  line-height: 1.5;
}

.footer-contact-item a {
  color: #ffffff;
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer-contact-item a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
}

/* ==========================================================================
   MODAL / LIGHTBOX
   ========================================================================== */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(10, 18, 15, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content-box {
  position: relative;
  max-width: 95vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 76vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  transition: padding 0.2s ease, background-color 0.2s ease;
}

.lightbox-img.is-plan {
  background-color: #ffffff;
  padding: clamp(14px, 3vw, 28px);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.7);
  filter: contrast(1.22) brightness(0.98);
}

.lightbox-caption {
  color: #ffffff;
  margin-top: 12px;
  font-size: 0.9rem;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 18px;
  color: #ffffff;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2010;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  transition: var(--transition);
}

.lightbox-nav-btn:hover {
  background: var(--color-accent);
}

.lightbox-prev {
  left: 14px;
}

.lightbox-next {
  right: 14px;
}

/* ==========================================================================
   ROOMADMIN CALENDAR MODAL (Application-grade modal window)
   ========================================================================== */
html.calendar-modal-open,
body.calendar-modal-open {
  overflow: hidden !important;
  overscroll-behavior: none !important;
  touch-action: none !important;
}

.calendar-modal {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  background-color: rgba(10, 18, 15, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(10px, 3vw, 20px);
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
  box-sizing: border-box;
}

.calendar-modal.active {
  display: flex;
}

.calendar-modal-box {
  background-color: var(--color-primary);
  width: 100%;
  max-width: min(720px, calc(100vw - 20px));
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.12);
  position: relative;
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - clamp(20px, 5vw, 40px));
  touch-action: auto;
  box-sizing: border-box;
  transform: translateZ(0);
}

.calendar-modal-header {
  padding: 14px 20px;
  background: linear-gradient(180deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
  box-sizing: border-box;
}

.calendar-modal-header h4 {
  color: #ffffff;
  font-size: clamp(1.02rem, 2.5vw, 1.2rem);
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* App-style, perfectly-centered circular close button */
.calendar-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  cursor: pointer;
  padding: 0;
  margin: 0;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.calendar-modal-close svg {
  display: block;
  width: 18px;
  height: 18px;
  margin: auto;
  pointer-events: none;
  stroke: #ffffff;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: 50% 50%;
}

.calendar-modal-close:hover {
  background-color: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.45);
  transform: scale(1.06);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  color: #ffffff;
}

.calendar-modal-close:hover svg {
  transform: rotate(90deg);
}

.calendar-modal-close:active {
  transform: scale(0.94);
  background-color: rgba(255, 255, 255, 0.2);
}

.calendar-modal-close:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.calendar-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 4px;
  height: clamp(380px, 72vh, 600px);
  background-color: #ffffff;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  box-sizing: border-box;
}

.calendar-modal-body iframe {
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  height: 100%;
  border: none;
  display: block;
  background-color: #ffffff;
  overflow-x: hidden;
}

/* Calendar modal footer (availability → booking hand-off) */
.calendar-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 20px;
  border-top: 1px solid var(--color-border);
  background-color: var(--color-bg-alt);
  border-bottom-left-radius: var(--radius-xl);
  border-bottom-right-radius: var(--radius-xl);
  flex-shrink: 0;
  box-sizing: border-box;
}

.calendar-modal.calendar-only .calendar-modal-footer {
  display: none;
}

.calendar-modal-hint {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.calendar-modal-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

@media (max-width: 576px) {
  .calendar-modal-footer {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 12px;
    padding: 12px 14px;
  }

  .calendar-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }

  .calendar-modal-actions [data-calendar-action="book"] {
    grid-column: 1 / -1;
    order: -1;
  }

  .calendar-modal-actions .btn {
    justify-content: center;
    padding: 9px 8px;
    font-size: 0.82rem;
    white-space: nowrap;
  }
}

/* ==========================================================================
   BOOKING DRAWER ("Rezerwuj" → RoomAdmin reservation widget)
   Slides in from the right on desktop, from the bottom on phones.
   ========================================================================== */
.booking-drawer {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  justify-content: flex-end;
  background-color: rgba(10, 18, 15, 0);
  transition: background-color 0.3s ease;
}

.booking-drawer[hidden] {
  display: none;
}

.booking-drawer.active {
  background-color: rgba(10, 18, 15, 0.7);
}

.booking-drawer-panel {
  display: flex;
  flex-direction: column;
  width: min(560px, 100%);
  height: 100%;
  background-color: #ffffff;
  box-shadow: -18px 0 50px rgba(0, 0, 0, 0.35);
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.booking-drawer.active .booking-drawer-panel {
  transform: translateX(0);
}

.booking-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: var(--color-primary);
  color: #ffffff;
  flex-shrink: 0;
}

.booking-drawer-header h4 {
  color: #ffffff;
  font-size: 1.15rem;
}

button.booking-drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  cursor: pointer;
  padding: 0;
  margin: 0;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

button.booking-drawer-close svg {
  display: block;
  width: 18px;
  height: 18px;
  margin: auto;
  pointer-events: none;
  stroke: #ffffff;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: 50% 50%;
}

button.booking-drawer-close:hover {
  background-color: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.45);
  transform: scale(1.06);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  color: #ffffff;
}

button.booking-drawer-close:hover svg {
  transform: rotate(90deg);
}

button.booking-drawer-close:active {
  transform: scale(0.94);
  background-color: rgba(255, 255, 255, 0.2);
}

button.booking-drawer-close:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.booking-drawer-hint {
  margin: 0;
  padding: 12px 20px;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--color-text-muted);
  background-color: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}

.booking-drawer-hint strong {
  color: var(--color-primary);
}

.booking-drawer-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px;
}

.booking-drawer-body iframe {
  display: block;
  width: 100%;
  min-height: 100%;
  border: none;
}

@media (max-width: 576px) {
  .booking-drawer {
    align-items: flex-end;
  }

  .booking-drawer-panel {
    width: 100%;
    height: 92dvh;
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 -18px 50px rgba(0, 0, 0, 0.35);
    transform: translateY(100%);
  }

  .booking-drawer.active .booking-drawer-panel {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .booking-drawer,
  .booking-drawer-panel {
    transition: none;
  }
}

/* ==========================================================================
   SCROLL TO TOP BUTTON (PC, ANDROID, IPHONE)
   ========================================================================== */
.btn-scroll-top {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background-color: rgba(27, 42, 34, 0.76);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 995;
  box-shadow: 0 4px 18px rgba(18, 34, 30, 0.22);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px) scale(0.94);
  transition:
    opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.28s,
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.btn-scroll-top svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.2;
  transition: transform 0.2s ease;
}

.btn-scroll-top.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

@media (hover: hover) and (pointer: fine) {
  .btn-scroll-top:hover {
    background-color: var(--color-primary-dark);
    border-color: rgba(255, 255, 255, 0.35);
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(18, 34, 30, 0.32);
    transform: translateY(-2px) scale(1.04);
  }

  .btn-scroll-top:hover svg {
    transform: translateY(-2px);
  }
}

.btn-scroll-top:active {
  transform: translateY(0) scale(0.95);
  background-color: var(--color-primary-dark);
}

.btn-scroll-top:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* Hide when full-screen drawers or modals are active */
.mobile-menu-drawer.active ~ .btn-scroll-top,
.calendar-modal.active ~ .btn-scroll-top,
.lightbox-modal.active ~ .btn-scroll-top {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* ==========================================================================
   MOBILE BOTTOM BAR & RESPONSIVE
   ========================================================================== */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(252, 251, 249, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--color-border);
  padding: 8px 14px;
  padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px)); /* Safe area iPhone X/11/12/13/14/15/16 */
  z-index: 999;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
}

.mobile-bottom-bar .bar-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 10px;
}

/* Firefox fallback for all backdrop-filter elements in modals/bars */
@supports not (backdrop-filter: blur(1px)) {
  .mobile-bottom-bar {
    background-color: #fcfbf9;
  }
  .lightbox-modal {
    background-color: rgba(10, 18, 15, 0.98);
  }
  .calendar-modal {
    background-color: rgba(10, 18, 15, 0.94);
  }
  .mobile-menu-overlay {
    background-color: rgba(0, 0, 0, 0.7);
  }
  .btn-secondary {
    background-color: rgba(255, 255, 255, 0.96);
  }
}

/* Toast alert */
.toast-msg {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background-color: var(--color-primary-dark);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  box-shadow: var(--shadow-lg);
  z-index: 3000;
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
  max-width: 90vw;
  text-align: center;
}

.toast-msg.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==========================================================================
   MEDIA QUERIES (TABLETS & MOBILE)
   ========================================================================== */
@media (max-width: 1024px) {
  .house-main-grid,
  .house-card.reverse .house-main-grid {
    grid-template-columns: 1fr;
  }
  
  .house-card.reverse .house-media {
    order: 1;
  }
  
  .house-card.reverse .house-details {
    order: 2;
  }

  .house-media {
    height: auto;
  }

  .house-main-img-wrap {
    flex: initial;
    height: clamp(240px, 48vw, 380px);
    min-height: 240px;
  }

  .floorplan-showcase-body {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .about-grid, .location-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  
  .pricing-info-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .footer-top-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-features-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 36px;
  }
}

@media (max-width: 868px) {
  .nav-links, .header-phone, .header-actions .btn {
    display: none !important;
  }
  
  .mobile-toggle {
    display: flex;
  }
  
  .mobile-menu-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 82%;
    max-width: 320px;
    height: 100vh;
    height: 100dvh;
    background-color: var(--color-bg-dark);
    z-index: 1001;
    padding: 30px 24px calc(24px + env(safe-area-inset-bottom, 0px));
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.4);
    overflow-y: auto;
  }
  
  .mobile-menu-drawer.active {
    right: 0;
  }
  
  .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background-color: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
    display: none;
  }
  
  .mobile-menu-overlay.active {
    display: block;
  }
  
  .mobile-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .mobile-drawer-close {
    color: #ffffff;
    font-size: 1.8rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  
  .mobile-nav-link {
    color: #ffffff;
    font-size: 1.15rem;
    font-family: var(--font-serif);
    display: block;
    padding: 6px 0;
  }
  
  .mobile-drawer-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .mobile-bottom-bar {
    display: block;
  }
  
  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }

  .btn-scroll-top {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    right: calc(16px + env(safe-area-inset-right, 0px));
    width: 38px;
    height: 38px;
    box-shadow: 0 4px 16px rgba(18, 34, 30, 0.28);
  }

  .btn-scroll-top svg {
    width: 16px;
    height: 16px;
  }
  
  .hero-features-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .hero-bg {
    object-position: center 30%;
    opacity: 0.86;
    filter: saturate(1.18) brightness(1.05) contrast(1.03);
  }

  .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(14, 28, 24, 0.62) 0%,
      rgba(14, 28, 24, 0.20) 22%,
      rgba(14, 28, 24, 0.38) 55%,
      rgba(14, 28, 24, 0.88) 100%
    );
  }

  .hero-title {
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
  }

  .hero-description {
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
  }
}

@media (max-width: 576px) {
  .btn-scroll-top {
    bottom: calc(70px + env(safe-area-inset-bottom, 0px));
    right: calc(14px + env(safe-area-inset-right, 0px));
    width: 42px;
    height: 42px;
  }

  .btn-scroll-top svg {
    width: 18px;
    height: 18px;
  }

  .hero-features-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 24px;
  }

  .hero-feature-item {
    padding: 10px 10px;
    border-radius: var(--radius-sm, 10px);
  }

  .hero-feature-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
  }

  .hero-feature-icon {
    width: 26px;
    height: 26px;
    font-size: 0.90rem;
    border-radius: 50%;
    background-color: rgba(196, 115, 53, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.18);
  }

  .hero-feature-header h3 {
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
  }

  .hero-feature-item p {
    font-size: 0.69rem;
    line-height: 1.32;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
  }

  .pricing-card {
    padding: 18px 16px;
  }

  .pricing-card-header {
    gap: 12px;
    margin-bottom: 10px;
  }

  .pricing-icon {
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
    border-radius: 10px;
  }

  .pricing-card h3 {
    font-size: 1.1rem;
  }

  .pricing-card p {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .site-header {
    padding: 12px 0;
  }

  .header-brand img {
    height: 30px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
  
  .hero-cta .btn {
    width: 100%;
  }

  .about-highlights {
    grid-template-columns: 1fr;
  }

  .about-trust-card,
  .about-badge-card {
    position: static;
    margin-top: 16px;
    max-width: 100%;
  }

  .house-details {
    padding: 20px 16px;
  }

  .house-amenities-list {
    grid-template-columns: 1fr;
  }

  .house-footer-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .house-actions-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
    align-items: stretch;
  }

  .house-actions-group .btn, 
  .house-actions-group .btn-outline-plan {
    width: 100%;
    justify-content: center;
    padding: 6px 8px;
    font-size: 0.8rem;
    min-height: 44px;
    box-sizing: border-box;
  }

  /* Rzut + Kalendarz in the first row, Rezerwuj full width below */
  .house-actions-group .btn-primary {
    grid-column: 1 / -1;
  }

  .plan-btn-text {
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
    gap: 0;
  }

  .plan-btn-label {
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .plan-btn-area {
    font-size: 0.72rem;
    opacity: 0.88;
    white-space: nowrap;
  }

  .house-floorplan-showcase {
    padding: 16px 14px;
  }

  .floorplan-showcase-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .floorplan-expand-btn {
    width: 100%;
    justify-content: center;
  }

  .floorplan-display-img {
    max-height: 250px;
  }

  .booking-widget-wrapper {
    padding: 16px 12px;
  }

  .payment-details-box {
    flex-direction: column;
    align-items: stretch;
    padding: 16px 14px;
    gap: 12px;
    margin-top: 20px;
  }

  .bank-info {
    flex: 0 1 auto;
    min-width: 0;
  }

  .iban-copy-box {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 14px;
    gap: 8px;
    width: 100%;
  }

  .iban-number {
    font-size: clamp(0.72rem, 3.2vw, 0.85rem);
    letter-spacing: 0.4px;
    white-space: nowrap;
    text-align: center;
  }

  .copy-btn {
    width: auto;
    padding: 5px 16px;
    font-size: 0.74rem;
  }

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
