/* Hucianka – premium authentic redesign */

:root {
  --pine: #2a4538;
  --pine-dark: #1a2e24;
  --pine-light: #3d6454;
  --cream: #f7f3ec;
  --cream-dark: #ebe4d6;
  --stone: #c4b5a0;
  --wood: #5c4033;
  --wood-light: #7a5c4a;
  --door-blue: #2b4c7e;
  --door-blue-light: #3a6299;
  --pelargonium: #b84a3a;
  --pelargonium-light: #d46b5c;
  --brick: #9a5a48;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  scroll-padding-top: 7.5rem;
}

@media (min-width: 1280px) {
  html {
    scroll-padding-top: 5.75rem;
  }
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--cream);
  color: var(--wood);
}

.font-display {
  font-family: Outfit, Inter, system-ui, sans-serif;
}

.font-hero {
  font-family: Outfit, Inter, system-ui, sans-serif;
  font-weight: 500;
  letter-spacing: -0.035em;
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Fallback: jeśli animacja nie wystartuje, treść i tak będzie widoczna */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── Hero ── */
.hero-overlay {
  background:
    linear-gradient(90deg,
      rgba(26, 46, 36, 0.78) 0%,
      rgba(26, 46, 36, 0.55) 38%,
      rgba(26, 46, 36, 0.22) 68%,
      rgba(26, 46, 36, 0.32) 100%),
    linear-gradient(180deg,
      rgba(26, 46, 36, 0.62) 0%,
      rgba(26, 46, 36, 0.28) 28%,
      rgba(26, 46, 36, 0.18) 48%,
      rgba(26, 46, 36, 0.72) 100%);
}

.hero-copy {
  text-shadow:
    0 1px 2px rgba(26, 46, 36, 0.55),
    0 8px 28px rgba(26, 46, 36, 0.45);
}

.hero-kenburns {
  animation: kenburns 28s ease-in-out infinite alternate;
}

@keyframes kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

/* ── Navigation ── */
.nav-link {
  position: relative;
  letter-spacing: 0.02em;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 1.5px;
  background: var(--pelargonium);
  transition: width 0.3s ease;
}

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

/* ── Buttons ── */
.btn-primary {
  background: var(--pelargonium);
  color: #fff;
  transition: background 0.3s ease, transform 0.25s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
  background: var(--pelargonium-light);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(184, 74, 58, 0.35);
}

.btn-blue {
  background: var(--door-blue);
  color: #fff;
  transition: background 0.3s ease, transform 0.25s ease, box-shadow 0.3s ease;
}

.btn-blue:hover {
  background: var(--door-blue-light);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(43, 76, 126, 0.35);
}

.btn-outline-light {
  border: 1.5px solid rgba(247, 243, 236, 0.85);
  color: var(--cream);
  background: rgba(26, 46, 36, 0.28);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.btn-outline-light:hover {
  background: rgba(26, 46, 36, 0.45);
  border-color: var(--cream);
}

/* ── Stats bar ── */
.stat-divider {
  width: 1px;
  height: 2.5rem;
  background: rgba(42, 69, 56, 0.15);
}

.stat-icon {
  display: inline-flex;
  width: 2.35rem;
  height: 2.35rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.7rem;
  color: var(--pine);
  background: rgba(42, 69, 56, 0.07);
  border-radius: 9999px;
}

.stat-icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

/* ── Image treatments ── */
.img-frame {
  overflow: hidden;
  border-radius: 1rem;
}

.img-frame img,
.gallery-tile img {
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.img-frame:hover img,
.gallery-tile:hover img {
  transform: scale(1.05);
}

.gallery-tile {
  overflow: hidden;
  border-radius: 0.75rem;
  position: relative;
  cursor: pointer;
}

.gallery-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(42, 69, 56, 0);
  transition: background 0.35s ease;
}

.gallery-tile:hover::after {
  background: rgba(42, 69, 56, 0.28);
}

.gallery-filter {
  transition: all 0.25s ease;
}

.gallery-filter.active {
  background: var(--pine);
  color: var(--cream);
}

/* ── Cards ── */
.amenity-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  border: 1px solid rgba(196, 181, 160, 0.45);
}

.amenity-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(42, 69, 56, 0.1);
  border-color: rgba(42, 69, 56, 0.2);
}

.season-card {
  transition: transform 0.4s ease;
}

.season-card:hover {
  transform: translateY(-6px);
}

.pricing-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(42, 69, 56, 0.12);
}

.pricing-featured {
  position: relative;
  border-color: rgba(184, 74, 58, 0.35) !important;
  box-shadow: 0 16px 40px rgba(184, 74, 58, 0.1);
}

.pricing-featured::before {
  content: 'Najczęściej wybierany';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--pelargonium);
  color: white;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 1rem;
  border-radius: 9999px;
  white-space: nowrap;
}

/* ── Quote band ── */
.quote-overlay {
  background: linear-gradient(
    90deg,
    rgba(26, 46, 36, 0.82) 0%,
    rgba(26, 46, 36, 0.55) 55%,
    rgba(26, 46, 36, 0.35) 100%
  );
}

/* ── Lightbox ── */
.lightbox-backdrop {
  backdrop-filter: blur(10px);
  background: rgba(26, 46, 36, 0.94);
}

/* ── Form ── */
.form-input {
  box-sizing: border-box;
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  font-size: 1rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-input:not(textarea) {
  min-height: 3.125rem;
}

.form-date {
  -webkit-appearance: none;
  appearance: none;
}

.form-date::-webkit-date-and-time-value {
  text-align: left;
  margin: 0;
}

.form-date::-webkit-datetime-edit,
.form-date::-webkit-datetime-edit-fields-wrapper {
  min-width: 0;
  padding: 0;
}

.form-date::-webkit-calendar-picker-indicator {
  margin-inline-start: 0.25rem;
}

.form-input:focus {
  border-color: var(--pine);
  box-shadow: 0 0 0 3px rgba(42, 69, 56, 0.12);
  outline: none;
}

/* ── Decorative line ── */
.accent-line {
  width: 3rem;
  height: 2px;
  background: var(--pelargonium);
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb {
  background: var(--pine);
  border-radius: 4px;
}

/* ── Accessibility ── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--pelargonium);
  outline-offset: 2px;
}

[x-cloak] {
  display: none !important;
}

/* ── Mobile nav ── */
.mobile-nav-enter {
  animation: slideDown 0.25s ease forwards;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Hero intro card ── */
.hero-intro {
  border: 1px solid rgba(247, 243, 236, 0.28);
  background: rgba(247, 243, 236, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 1rem;
}

/* ── Space / honesty / reviews ── */
.space-card,
.review-card,
.rule-card,
.rules-fact {
  border: 1px solid rgba(196, 181, 160, 0.45);
}

.rule-icon {
  display: inline-flex;
  width: 2.1rem;
  height: 2.1rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  color: var(--pine);
  background: rgba(42, 69, 56, 0.08);
  border-radius: 9999px;
}

.rule-icon svg {
  width: 1.1rem;
  height: 1.1rem;
}

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

.rule-list li {
  position: relative;
  padding-left: 0.95rem;
  margin-bottom: 0.55rem;
}

.rule-list li:last-child {
  margin-bottom: 0;
}

.rule-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--pelargonium);
}

.honesty-note {
  border-left: 2px solid var(--pelargonium);
}

.host-photo {
  object-fit: cover;
  object-position: center 30%;
}

/* ── Booking bar ── */
.booking-bar {
  background: rgba(247, 243, 236, 0.12);
  border: 1px solid rgba(247, 243, 236, 0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.booking-bar label {
  display: block;
  color: rgba(247, 243, 236, 0.72);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.booking-bar input,
.booking-bar select {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin-top: 0.3rem;
  background: rgba(247, 243, 236, 0.92);
  color: var(--wood);
  border: 0;
  border-radius: 0.65rem;
  padding: 0.7rem 0.75rem;
  font-size: 1rem;
  line-height: 1.3;
  min-height: 2.75rem;
}

.booking-bar input.booking-date {
  cursor: pointer;
  caret-color: transparent;
}

/* Keep the engine input off-layout so mobile focus cannot scroll the page */
.booking-range-engine,
input.booking-range-engine,
.flatpickr-input.booking-range-engine {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

.flatpickr-calendar {
  z-index: 80 !important;
  font-family: Inter, system-ui, sans-serif;
  background: #f7f3ec;
  border: 1px solid rgba(196, 181, 160, 0.55);
  box-shadow: 0 18px 48px rgba(26, 46, 36, 0.28);
}

.flatpickr-months .flatpickr-month,
.flatpickr-current-month,
.flatpickr-weekday {
  color: #2a4538;
  fill: #2a4538;
}

.flatpickr-day {
  color: #5c4033;
  border-radius: 999px;
}

.flatpickr-day:hover,
.flatpickr-day:focus {
  background: rgba(42, 69, 56, 0.12);
  border-color: transparent;
}

.flatpickr-day.today {
  border-color: #b84a3a;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover {
  background: #b84a3a;
  border-color: #b84a3a;
  color: #fff;
}

.flatpickr-day.inRange {
  background: rgba(184, 74, 58, 0.18);
  box-shadow: none;
  border-color: transparent;
  border-radius: 0;
}

.flatpickr-day.startRange {
  border-radius: 999px 0 0 999px;
}

.flatpickr-day.endRange {
  border-radius: 0 999px 999px 0;
}

.flatpickr-day.startRange.endRange {
  border-radius: 999px;
}

.booking-bar input:focus,
.booking-bar select:focus {
  outline: 2px solid var(--pelargonium);
  outline-offset: 1px;
}

.booking-bar button:disabled,
.booking-bar button:disabled:hover {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.book-note {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  line-height: 1.45;
}

.book-warn {
  display: block;
  flex: 0 0 auto;
  width: 0.95rem;
  height: 0.95rem;
  margin-top: 0.08rem;
  color: var(--pelargonium-light);
}

/* ── Language switch ── */
.lang-btn {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.35rem;
  opacity: 0.65;
  transition: opacity 0.2s ease;
}

.site-logo-dark {
  filter: brightness(0) saturate(100%) invert(22%) sepia(18%) saturate(720%) hue-rotate(110deg);
}

.lang-btn.is-active {
  opacity: 1;
}

/* ── Area cards ── */
.area-card {
  border: 1px solid rgba(196, 181, 160, 0.45);
  border-top: 2px solid var(--pelargonium);
  background: rgba(255, 252, 247, 0.55);
}

.area-card-home {
  border-top-color: var(--pine);
  background: rgba(42, 69, 56, 0.05);
}