/*
Theme Name: Steinzgerhof
Theme URI: https://steinzgerhof.it
Author: Steinzgerhof
Description: Theme for Steinzgerhof – Ferienwohnungen in Antholz. Based on the design folder project.
Version: 1.1.2
Requires at least: 5.9
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: steinzgerhof
Tags: one-column, custom-colors, custom-menu, custom-logo, featured-images, sticky-post, translation-ready, blog, custom-background, full-width-template, theme-options

Steinzgerhof – Ferienwohnungen Antholz
*/

/* ============================================
   Steinzgerhof – Design Tokens
   ============================================ */
:root {
  --color-nocturne: #384057;
  --color-periwinkle: #C0C3E8;
  --color-periwinkle-bg: rgba(192, 195, 232, 0.92);
  --color-white: #fff;
  --color-text: #1a1d26;
  --color-text-muted: #5a5f73;
  --color-accent: #e8a64e;
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --header-height: 56px;
  --container-max: 1100px;
  --radius: 8px;
  --shadow: 0 4px 20px rgba(56, 64, 87, 0.12);
  --transition: 0.2s ease;
}

/* ============================================
   Base
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; min-height: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-white);
}

main {
  flex: 1 0 auto;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
address { font-style: normal; }

/* ============================================
   Header
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--color-nocturne);
  height: var(--header-height);
  box-shadow: var(--shadow);
}

.header__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.header__logo, .custom-logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-white);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}

.header__logo-img {
  display: flex;
  align-items: center;
  max-height: 40px;
}

.header__logo-img img, .custom-logo-link img {
  max-height: 40px;
  width: auto;
  height: auto;
  object-fit: contain;
  vertical-align: middle;
}

.header__logo-icon {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #e8a64e 0%, #d4892a 100%);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(232, 166, 78, 0.4);
}

.header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: none;
  background: transparent;
  color: var(--color-white);
  cursor: pointer;
  border-radius: var(--radius);
  transition: background var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.header__burger:hover,
.header__burger:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.header__burger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.header--menu-open .header__burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header--menu-open .header__burger-line:nth-child(2) {
  opacity: 0;
}

.header--menu-open .header__burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   Navigation
   ============================================ */
.nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.nav__link {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  color: var(--color-white);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  transition: opacity var(--transition), background var(--transition);
}

.nav__link:hover,
.nav__link:focus-visible {
  opacity: 0.9;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.nav__item--dropdown {
  position: relative;
  display: flex;
  flex-wrap: wrap;
}

.nav__item--dropdown > a.nav__link {
  flex: 1 1 auto;
  min-width: 0;
}

/* Desktop: strzałka jako część linku */
.nav__item--dropdown > a.nav__link--parent::after {
  content: '';
  display: inline-block;
  margin-left: 0.35rem;
  border: 5px solid transparent;
  border-top-color: currentColor;
  vertical-align: middle;
}

.nav__item--dropdown > button.nav__link--trigger {
  flex: 0 0 auto;
  margin-left: -0.25rem;
  padding-left: 0.25rem;
  padding-right: 0.5rem;
}

@media (min-width: 769px) {
  .nav__item--dropdown > button.nav__link--trigger {
    display: none;
  }
}

.nav__item--dropdown > .nav__dropdown {
  flex: 1 1 100%;
}

.nav__link--trigger::after {
  content: '';
  display: inline-block;
  margin-left: 0.35rem;
  border: 5px solid transparent;
  border-top-color: currentColor;
  vertical-align: middle;
}

.nav__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  margin: 0;
  padding: 0.5rem 0;
  list-style: none;
  background: var(--color-periwinkle-bg);
  color: var(--color-text);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}

.nav__item--dropdown:hover .nav__dropdown,
.nav__item--dropdown:focus-within .nav__dropdown,
.nav__dropdown[data-open="true"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__dropdown a {
  display: block;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text);
  transition: background var(--transition);
}

.nav__dropdown a:hover,
.nav__dropdown a:focus-visible {
  background: rgba(255, 255, 255, 0.6);
  outline: none;
}

.header__lang {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Falang: lista przełącznika języków w jednej linii */
.header__lang ul {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.header__lang li {
  margin: 0;
}

.header__lang a,
.header__lang-link {
  padding: 0.35rem 0.5rem;
  color: var(--color-white);
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0.85;
  text-decoration: none;
  transition: opacity var(--transition);
}

.header__lang a:hover,
.header__lang-link:hover,
.header__lang .current a,
.header__lang-link[aria-current="true"] {
  opacity: 1;
}

.header__lang .current a,
.header__lang-link[aria-current="true"] {
  text-decoration: underline;
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-height) + 3rem) 1.5rem 3rem;
  overflow: hidden;
}

.hero__bg-wrap {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__slide {
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=1920&q=80') center / cover no-repeat;
}

.hero__slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(56, 64, 87, 0.35) 0%, rgba(56, 64, 87, 0.6) 100%);
}

/* Hero slider: multiple slides with fade */
.hero--slider .hero__slide {
  opacity: 0;
  transition: opacity 1.4s ease;
}

.hero--slider .hero__slide[aria-hidden="false"] {
  opacity: 1;
}

.hero__content {
  text-align: center;
  color: var(--color-white);
  max-width: 640px;
}

.hero__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.hero__tagline {
  margin: 0 0 1.5rem;
  font-size: 1.1rem;
  opacity: 0.95;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-align: center;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(232, 166, 78, 0.35);
}

/* ============================================
   Sections & Container
   ============================================ */
.section {
  padding: 4rem 1.5rem;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
}

.section__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--color-nocturne);
  text-align: center;
}

.section__intro {
  margin: 0 auto 2.5rem;
  max-width: 600px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

/* ============================================
   About
   ============================================ */
.section--about {
  background: linear-gradient(180deg, #f8f9fc 0%, var(--color-white) 100%);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about__lead {
  font-size: 1.15rem;
  color: var(--color-nocturne);
  margin-bottom: 1rem;
}

.about__text p {
  margin: 0 0 1rem;
  color: var(--color-text-muted);
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.feature-list li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.75rem;
  color: var(--color-text);
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.9rem;
  width: 8px;
  height: 8px;
  background: var(--color-periwinkle);
  border-radius: 50%;
}

/* ============================================
   Apartments
   ============================================ */
.apartments__slider {
  position: relative;
  margin: 0 -1.5rem;
  padding: 0 3rem;
}

.apartments__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

/* Slider layout: horizontal scroll, no orphan row */
.apartments__grid--slider {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  gap: 1.5rem;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
}

.apartments__grid--slider .apartment-card {
  scroll-snap-align: start;
  flex: 0 0 min(300px, 82vw);
  min-width: min(300px, 82vw);
}

.apartments__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--color-white);
  box-shadow: var(--shadow);
  color: var(--color-nocturne);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}

.apartments__nav:hover {
  background: var(--color-nocturne);
  color: var(--color-white);
  box-shadow: 0 8px 24px rgba(56, 64, 87, 0.2);
}

.apartments__nav--prev {
  left: 0.5rem;
}

.apartments__nav--next {
  right: 0.5rem;
}

.apartment-card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.apartment-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(56, 64, 87, 0.15);
}

.apartment-card__image {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.apartment-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.apartment-card__body {
  padding: 1.25rem;
}

.apartment-card__title {
  margin: 0 0 0.25rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-nocturne);
}

.apartment-card__meta {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.apartment-card__desc {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.5;
}

.apartment-card__link {
  font-weight: 600;
  color: var(--color-nocturne);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.apartment-card__link:hover {
  color: var(--color-accent);
}

/* ============================================
   Prices
   ============================================ */
.prices__wrapper {
  max-width: 700px;
  margin: 0 auto;
}

.prices-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.prices-table th,
.prices-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid rgba(56, 64, 87, 0.08);
}

.prices-table th {
  background: var(--color-nocturne);
  color: var(--color-white);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
}

.prices-table tbody tr:last-child td {
  border-bottom: none;
}

.prices-table tbody tr:hover td {
  background: rgba(192, 195, 232, 0.15);
}

.prices-table td:nth-child(2),
.prices-table td:nth-child(3) {
  font-weight: 600;
  color: var(--color-nocturne);
}

.prices__note {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  text-align: center;
}

/* ============================================
   FAQ (collapsible)
   ============================================ */
.faq__list {
  max-width: 700px;
  margin: 0 auto;
}

.faq__item {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq__item:last-child {
  margin-bottom: 0;
}

.faq__question {
  padding: 1rem 1.25rem 1rem 3rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-nocturne);
  cursor: pointer;
  list-style: none;
  position: relative;
  transition: background var(--transition);
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::before {
  content: '';
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border: 6px solid transparent;
  border-left-color: var(--color-nocturne);
  border-right-width: 0;
  transition: transform 0.25s ease;
}

.faq__item[open] .faq__question::before {
  transform: translateY(-50%) rotate(90deg);
}

/* Animated expand/collapse (grid trick), sterowane z JS */
.faq__answer-wrapper {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.faq__item[open] .faq__answer-wrapper {
  grid-template-rows: 1fr;
}

/* Zwijanie: animacja do 0fr zanim usuniemy [open] */
.faq__item[open].faq__item--closing .faq__answer-wrapper {
  grid-template-rows: 0fr;
}

/* Rozwijanie: start od 0fr, potem JS usuwa --opening → animacja do 1fr */
.faq__item.faq__item--opening .faq__answer-wrapper {
  grid-template-rows: 0fr;
}

.faq__answer-wrapper .faq__answer {
  overflow: hidden;
  min-height: 0;
}

.faq__question:hover {
  background: rgba(192, 195, 232, 0.15);
}

.faq__answer-wrapper .faq__answer {
  padding: 0 1.25rem 1rem 3rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq__answer p {
  margin: 0 0 0.75rem;
}

.faq__answer p:last-child {
  margin-bottom: 0;
}

/* ============================================
   Blog (page template)
   ============================================ */
.section--blog .section__title {
  text-align: left;
  margin-bottom: 2rem;
}

.blog-list {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
}

.blog-list__item {
  margin: 0;
  padding: 0 0 2rem;
  border-bottom: 1px solid rgba(56, 64, 87, 0.12);
}

.blog-list__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.blog-card__title {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}

.blog-card__title a {
  color: var(--color-nocturne);
}

.blog-card__title a:hover {
  color: var(--color-accent);
}

.blog-card__meta {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.blog-card__sep {
  white-space: pre;
}

.blog-card__excerpt {
  margin: 0 0 1rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.blog-card__excerpt p {
  margin: 0 0 0.5rem;
}

.blog-card__excerpt p:last-child {
  margin-bottom: 0;
}

.blog-card__link {
  font-weight: 600;
  color: var(--color-nocturne);
}

.blog-card__link:hover {
  color: var(--color-accent);
}

.blog-pagination {
  margin: 2rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid rgba(56, 64, 87, 0.1);
  text-align: center;
}

.blog-pagination .page-numbers {
  display: inline-block;
  margin: 0 0.2rem;
  padding: 0.4rem 0.75rem;
  color: var(--color-nocturne);
  text-decoration: none;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}

.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current {
  background: rgba(56, 64, 87, 0.08);
  color: var(--color-nocturne);
}

.blog-pagination .page-numbers.current {
  font-weight: 600;
}

.blog-pagination .prev,
.blog-pagination .next {
  margin: 0 0.25rem;
}

/* ============================================
   Contact
   ============================================ */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact__name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-nocturne);
  margin: 0 0 0.75rem;
}

.contact__address,
.contact__tel,
.contact__email {
  margin: 0 0 0.5rem;
  color: var(--color-text-muted);
}

.contact__tel a,
.contact__email a {
  color: var(--color-nocturne);
  font-weight: 500;
}

.contact__tel a:hover,
.contact__email a:hover {
  color: var(--color-accent);
}

.contact__cta p {
  margin: 0 0 1rem;
  color: var(--color-text-muted);
}

/* ============================================
   Contact form (page template)
   ============================================ */
.section--contact-form {
  background: #f0f0f2;
}

.contact-form-article .section__title {
  text-align: center;
  margin-bottom: 1.5rem;
}

.contact-form__message--success {
  padding: 1rem 1.25rem;
  margin: 0 0 1.5rem;
  background: rgba(56, 64, 87, 0.08);
  color: var(--color-nocturne);
  border-radius: var(--radius);
  font-weight: 500;
}

.contact-form__errors {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 1rem 1.25rem;
  background: rgba(200, 80, 60, 0.1);
  color: #a03020;
  border-radius: var(--radius);
  font-size: 0.9rem;
}

.contact-form__errors li + li {
  margin-top: 0.25rem;
}

.contact-form {
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem;
  background: #e8e8ec;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.5rem;
  margin-bottom: 0.75rem;
}

.contact-form__field {
  margin: 0;
}

.contact-form__field--wide {
  grid-column: span 1;
}

.contact-form__field--narrow {
  grid-column: span 1;
}

.contact-form__field--full {
  margin: 0 0 1.25rem;
}

.contact-form__field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

.contact-form__field input,
.contact-form__field textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(56, 64, 87, 0.15);
  border-radius: var(--radius);
  box-sizing: border-box;
}

.contact-form__field input:focus,
.contact-form__field textarea:focus {
  outline: none;
  border-color: var(--color-periwinkle);
  background: var(--color-white);
}

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

.contact-form__note {
  margin: 0 0 1.25rem;
  padding: 0;
  font-size: 0.8rem;
  font-style: italic;
  font-weight: bold;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.contact-form__submit {
  margin: 0;
}

.contact-form__submit .btn {
  width: 100%;
  max-width: 280px;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  background: var(--color-nocturne);
  color: var(--color-white);
  text-transform: uppercase;
}

.contact-form__submit .btn:hover {
  background: #2a3145;
  color: var(--color-white);
}

/* ============================================
   Contact flyout (floating icon + slide-out panel)
   ============================================ */
@keyframes contact-flyout-pulse {
  0%, 100% {
    box-shadow: 0 4px 16px rgba(56, 64, 87, 0.35), 0 0 20px 0 rgba(232, 166, 78, 0.35);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 6px 24px rgba(56, 64, 87, 0.4), 0 0 0 10px rgba(232, 166, 78, 0.25), 0 0 40px 8px rgba(232, 166, 78, 0.6);
    transform: scale(1.06);
  }
}

.contact-flyout__trigger {
  position: fixed;
  top: calc(var(--header-height) + 1rem);
  right: 1.25rem;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  padding: 0;
  background: var(--color-nocturne);
  color: var(--color-white);
  border: none;
  border-radius: 50%;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  animation: contact-flyout-pulse 2s ease-in-out infinite;
}

.contact-flyout__trigger:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 24px rgba(56, 64, 87, 0.35);
  animation: none;
}

.contact-flyout__trigger[aria-expanded="true"] {
  background: var(--color-accent);
  color: var(--color-text);
  animation: none;
}

.contact-flyout__icon {
  flex-shrink: 0;
}

.contact-flyout__overlay {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

body.contact-flyout-open .contact-flyout__overlay {
  opacity: 1;
  visibility: visible;
}

.contact-flyout__panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  width: 100%;
  max-width: 440px;
  background: var(--color-white);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

body.contact-flyout-open .contact-flyout__panel {
  transform: translateX(0);
}

.contact-flyout__inner {
  padding: 1.5rem 1.25rem 2rem;
  min-height: 100%;
}

.contact-flyout__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  padding: 0;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--color-text-muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition);
}

.contact-flyout__close:hover {
  color: var(--color-nocturne);
}

.contact-flyout__title {
  margin: 0 0 1.25rem;
  padding-right: 2rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-nocturne);
}

.contact-form--flyout {
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

body.contact-flyout-open {
  overflow: hidden;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  padding: 2rem 1.5rem 1.5rem;
  background: var(--color-nocturne);
  color: var(--color-white);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 1.5rem;
  align-items: start;
}

.footer__contact-info.contact__info {
  margin: 0;
}

.footer__contact-info .contact__name {
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.footer__contact-info .contact__address,
.footer__contact-info .contact__tel,
.footer__contact-info .contact__email {
  color: rgba(255, 255, 255, 0.9);
}

.footer__contact-info .contact__tel a,
.footer__contact-info .contact__email a {
  color: var(--color-white);
}

.footer__contact-info .contact__tel a:hover,
.footer__contact-info .contact__email a:hover {
  opacity: 0.9;
  text-decoration: underline;
}

.footer__legal {
  margin: 0;
  font-size: 0.875rem;
  opacity: 0.9;
  line-height: 1.5;
}

.footer__right .footer__nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: flex-end;
}

.footer__right .footer__nav a {
  color: var(--color-white);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer__right .footer__nav a:hover {
  opacity: 0.9;
  text-decoration: underline;
}

.footer__copy {
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.85rem;
  opacity: 0.85;
  text-align: center;
}

/* ============================================
   WordPress content (post, page)
   ============================================ */
.entry-meta {
  margin: 0 0 1.25rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.entry-meta--footer {
  margin: 1.5rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(56, 64, 87, 0.1);
  text-align: right;
}

.entry-meta__sep {
  white-space: pre;
}

.post-back {
  margin: 0 0 1.5rem;
}

.post-back__link {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-nocturne);
}

.post-back__link:hover {
  color: var(--color-accent);
}

.entry-content p { margin: 0 0 1rem; color: var(--color-text-muted); }
.entry-content a { color: var(--color-nocturne); font-weight: 500; }
.entry-content a:hover { color: var(--color-accent); }

/* ============================================
   Comments
   ============================================ */
.comments {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(56, 64, 87, 0.12);
}

.comments__title {
  margin: 0 0 1.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-nocturne);
}

.comments__list {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
}

.comments__item {
  margin: 0 0 1.5rem;
  padding: 0 0 1.5rem;
  border-bottom: 1px solid rgba(56, 64, 87, 0.08);
}

.comments__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.comments__item .children {
  list-style: none;
  margin: 1rem 0 0 2.5rem;
  padding: 0;
}

.comment-body {
  display: block;
}

.comment-meta {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.comment-avatar {
  border-radius: 50%;
  flex-shrink: 0;
}

.comment-meta__inner {
  flex: 1;
  min-width: 0;
}

.comment-author {
  display: block;
  font-weight: 600;
  color: var(--color-nocturne);
  margin-bottom: 0.2rem;
}

.comment-author a {
  color: inherit;
}

.comment-author a:hover {
  color: var(--color-accent);
}

.comment-date {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.comment-date:hover {
  color: var(--color-nocturne);
}

.comment-edit {
  margin-left: 0.5rem;
  font-size: 0.85rem;
}

.comment-edit a {
  color: var(--color-text-muted);
}

.comment-content {
  margin-left: calc(56px + 1rem);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.comment-content p {
  margin: 0 0 0.5rem;
}

.comment-content p:last-child {
  margin-bottom: 0;
}

.comment-reply {
  margin-top: 0.75rem;
  margin-left: calc(56px + 1rem);
}

.comment-reply a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-nocturne);
}

.comment-reply a:hover {
  color: var(--color-accent);
}

.comments__none,
.comments__closed,
.comments__protected {
  margin: 0 0 1.5rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* Comment form (comment_form()) */
.comment-respond {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #f5f5f7;
  border-radius: var(--radius);
}

.comment-reply-title {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-nocturne);
}

.comment-reply-title small {
  font-size: 0.85em;
  font-weight: 400;
}

.comment-reply-title small a {
  color: var(--color-text-muted);
}

.comment-form label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.5rem 0.75rem;
  margin-bottom: 1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  border: 1px solid rgba(56, 64, 87, 0.2);
  border-radius: var(--radius);
  box-sizing: border-box;
}

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

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--color-nocturne);
}

.comment-form .submit {
  margin-top: 0.5rem;
  padding: 0.6rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-white);
  background: var(--color-nocturne);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition);
}

.comment-form .submit:hover {
  background: #2a3145;
}

.comments-nav {
  margin: 1rem 0 1.5rem;
  font-size: 0.9rem;
}

.comments-nav a {
  color: var(--color-nocturne);
  font-weight: 500;
}

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

.comments-nav .nav-next {
  margin-top: 0.5rem;
}

@media (max-width: 640px) {
  .comment-meta {
    flex-wrap: wrap;
  }
  .comment-content,
  .comment-reply {
    margin-left: 0;
  }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1200px) {
  .header__inner {
    flex-wrap: nowrap;
    padding: 0 1rem;
  }

  .header__burger {
    display: flex;
    order: 2;
    margin-left: auto;
  }

  .header--menu-open .header__burger {
    position: relative;
    z-index: 101;
  }

  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    background: var(--color-nocturne);
    padding: 1rem 0 2rem;
    overflow-y: auto;
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0.3s ease;
    z-index: 99;
  }

  body.header--menu-open {
    overflow: hidden;
  }

  .header--menu-open .nav {
    transform: translateX(0);
    visibility: visible;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__link {
    display: block;
    padding: 0.85rem 1.25rem;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
  }

  /* Mobile: strzałka tylko na przycisku, nie na linku */
  .nav__item--dropdown > a.nav__link--parent::after {
    display: none;
  }

  .nav__item--dropdown > button.nav__link--trigger {
    display: block;
    padding: 0.85rem 1rem;
  }

  .nav__item--dropdown .nav__dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    max-height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
    background: rgba(0, 0, 0, 0.15);
    box-shadow: none;
    border-radius: 0;
    transition: max-height 0.25s ease;
  }

  .nav__item--dropdown.nav__item--open .nav__dropdown {
    max-height: 280px;
  }

  .nav__dropdown a {
    color: var(--color-white);
    padding: 0.65rem 1.25rem 0.65rem 2rem;
    font-size: 0.9rem;
  }

  .nav__dropdown a:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  .header__lang {
    order: 3;
  }
}

@media (max-width: 1100px) {
  .container {
    padding: 0 1rem;
  }
}

@media (max-width: 1024px) {
  .nav__list { gap: 0; }
  .nav__link { padding: 0.5rem 0.5rem; font-size: 0.8rem; }
  .about__grid,
  .contact__grid {
    grid-template-columns: 1fr;
  }
  .footer__grid {
    grid-template-columns: 1fr;
  }
  .footer__right .footer__nav {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .contact-form {
    padding: 1.25rem;
  }

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

  .contact-flyout__panel {
    max-width: 100%;
  }

  .contact-flyout__trigger {
    top: calc(var(--header-height) + 0.75rem);
    right: 1rem;
    width: 52px;
    height: 52px;
  }

  .header__lang {
    order: 3;
  }

  .hero { min-height: 70vh; padding-top: calc(var(--header-height) + 2rem); }
  .apartments__grid:not(.apartments__grid--slider) { grid-template-columns: 1fr; }
  .prices-table { font-size: 0.9rem; }
  .prices-table th,
  .prices-table td { padding: 0.75rem 1rem; }
}

@media (max-width: 480px) {
  .header__lang a,
  .header__lang-link { padding: 0.25rem; }
  .section { padding: 3rem 1rem; }
}
