/* Loader — Webflow-compatible (shown via .is-loading, hidden via .is-hidden) */
.home_loader {
  display: none;
  opacity: 1;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.home_loader.is-loading {
  display: flex !important;
}

.home_loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Nav overlay */
.nav-menu_component.is-open {
  display: block !important;
}

body.menu-open {
  overflow: hidden;
}

/* FAQ accordion */
.faq-item_component .faq-item_answer {
  max-height: 0;
  overflow: hidden;
  padding-top: 0;
  padding-bottom: 0;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item_component.is-open .faq-item_answer {
  max-height: 20rem;
  padding-bottom: 1vw;
}

.faq-item_component.is-open .faq-item-icon img {
  transform: rotate(180deg);
}

.faq-item-icon img {
  transition: transform 0.3s ease;
}

/* Form messages */
.form_message-success,
.form_message-error {
  display: none;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75vw;
  text-align: center;
}

.form_message-success.is-visible {
  display: block;
  background: #cef5ca;
  color: #114e0b;
}

.form_message-error.is-visible {
  display: block;
  background: #f8e4e4;
  color: #3b0b0b;
}

/* Lightbox */
.jh-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(12, 12, 12, 0.92);
}

.jh-lightbox.is-open {
  display: flex;
}

.jh-lightbox img {
  max-width: min(92vw, 1100px);
  max-height: 82vh;
  border-radius: 10px;
  object-fit: contain;
}

.jh-lightbox-close,
.jh-lightbox-nav {
  position: absolute;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.25rem;
}

.jh-lightbox-close {
  top: 1.25rem;
  right: 1.25rem;
}

.jh-lightbox-nav.prev {
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.jh-lightbox-nav.next {
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

/* Button hover — Webflow slide label (desktop) */
@media (min-width: 992px) {
  .button_text {
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .button:hover .button_text:not(.is-absolute) {
    transform: translateY(-110%);
  }

  .button:hover .button_text.is-absolute {
    transform: translateY(-110%);
  }
}

/* Desktop — hero i layout jak Webflow, zdjęcie na pełną szerokość */
@media (min-width: 992px) {
  .section_home_hero .home_hero-heading {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .home_hero-headline-tagline img {
    width: min(52vw, 743px);
    height: auto;
  }

  .home_hero-image-subheadline-cta-wrapper {
    width: 100%;
    overflow: hidden;
  }

  .home_hero-image-subheadline-cta {
    height: 115vh !important;
    min-height: 115vh !important;
    width: 100%;
  }

  .home_hero-image-wrapper {
    width: 100vw !important;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }

  .home_subheadline-cta {
    position: absolute !important;
    top: 45%;
    left: 50%;
    transform: translate(-50%) !important;
    z-index: 2;
    width: auto;
    max-width: 36rem;
  }

  .home_subheadline {
    width: 36rem;
    max-width: 90vw;
  }
}

/* Webflow IX — elementy widoczne po załadowaniu */
html.w-mod-js.w-mod-ix3 :is(
  .home_subheadline,
  .home_cta,
  .home_residences-item,
  .home_residences-name-price,
  .nav-menu_component,
  .nav-menu,
  .nav_menu-list-item,
  .nav-menu_contact-item,
  .testmonials-card_component,
  .home_amenities-icon-wrapper,
  .home_amenities-decription,
  .home_amenities-button,
  .home_hero-image-wrapper,
  .home_hero-headline-tagline
) {
  visibility: visible !important;
}

/* Scroll reveal initial state */
[data-reveal] {
  opacity: 0;
  transform: translateY(10%);
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Marquee animation */
@keyframes marquee-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes marquee-right {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

.home_testimonials-marquee-1,
.home_testimonials-marquee-2 {
  display: flex;
  gap: 2vw;
  width: max-content;
}

.home_testimonials-marquee-1 {
  animation: marquee-left 50s linear infinite;
}

.home_testimonials-marquee-2 {
  animation: marquee-right 55s linear infinite;
}

.home_testimonials-marquee-wrapper {
  overflow: hidden;
}

.home_testimonials-marquee {
  overflow: hidden;
}

/* Button hover — duplicate label visible for slide effect */
.button_text.is-absolute {
  display: block;
}

/* Select — single caret only */
.form_input.is-select-input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* FAQ — single caret icon */
.faq-item_question-wrapper {
  position: relative;
}

.faq-item-icon img {
  display: block;
  width: 1.25vw;
  height: 1.25vw;
  max-width: 20px;
  max-height: 20px;
}

/* Loader logo sizing */
.home_loader-brand-logo img {
  width: auto;
  height: 3vw;
  max-height: 48px;
}
/* Date inputs — native picker only, no duplicate calendar icon */
.form_input.is-date[type="date"] {
  color-scheme: light;
  background-image: none;
}

/* Booking layout */
#book.section_home_book,
#book .home_book-form,
#book .booking-layout,
.booking-calendar-wrap,
.jh-cal {
  overflow: visible !important;
}

.booking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  align-items: start;
}

.booking-calendar-wrap {
  width: 100%;
  min-width: 0;
}

#book .form_component {
  width: 100% !important;
  max-width: none;
}

#book .home_book-subheadline {
  width: 100%;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.booking-locked-apartment {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(12, 12, 12, 0.12);
  border-radius: 0.75rem;
  background: #fff;
}

.booking-locked-apartment__label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.6;
}

.booking-locked-apartment__name {
  font-size: 1.15rem;
  font-weight: 500;
  font-family: var(--_typography---cormorant-garamond), Georgia, serif;
}

.villa-book-airbnb-cta {
  display: flex;
  justify-content: center;
  padding: 1rem 0;
}

.villa-book-section .home_book-heading,
.villa-book-section .home_book_heading {
  text-align: center;
}

.booking-price-summary {
  width: min(900px, 100%);
  margin: 1rem auto 0;
  padding: 0.85rem 1.1rem;
  border-radius: 0.75vw;
  text-align: center;
  font-size: 0.95rem;
}

.booking-price-summary.is-available {
  background: rgba(12, 12, 12, 0.08);
  color: #0c0c0c;
}

.booking-price-summary.is-unavailable {
  background: #f8e4e4;
  color: #3b0b0b;
}

/* Public calendar widget */
.jh-cal {
  background: #fbf8f1;
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid rgba(12, 12, 12, 0.1);
  width: 100%;
  box-sizing: border-box;
}

.jh-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.jh-cal-label {
  font-weight: 600;
  font-size: 1rem;
}

.jh-cal-nav {
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(12, 12, 12, 0.15);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  line-height: 1;
}

.jh-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  width: 100%;
  min-width: 0;
}

.jh-cal-head {
  text-align: center;
  font-size: 0.72rem;
  opacity: 0.65;
  padding: 0.25rem 0;
}

.jh-cal-day {
  min-height: 2.25rem;
  border: 1px solid rgba(12, 12, 12, 0.08);
  border-radius: 8px;
  background: #fff;
  font-size: clamp(0.7rem, 2.5vw, 0.85rem);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.jh-cal-day.is-empty {
  border: 0;
  background: transparent;
  cursor: default;
}

.jh-cal-day.is-blocked,
.jh-cal-day.is-past,
.jh-cal-day:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  text-decoration: line-through;
  background: #efe9dd;
}

.jh-cal-day.in-range {
  background: rgba(12, 12, 12, 0.08);
}

.jh-cal-day.is-arrival,
.jh-cal-day.is-departure {
  background: #0c0c0c;
  color: #fff;
  border-color: #0c0c0c;
}

.jh-cal-hint,
.jh-cal-offline,
.jh-cal-empty {
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
  opacity: 0.7;
  text-align: center;
}

.jh-cal-offline {
  color: #b45309;
  opacity: 1;
}

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

/* Guest portal */
.guest-portal-wrap {
  width: min(760px, 100%);
  margin: 0 auto;
}

.guest-login-card {
  background: #fbf8f1;
  border: 1px solid rgba(12, 12, 12, 0.1);
  border-radius: 0.75vw;
  padding: 1.5rem;
}

.guest-login-card h3 {
  margin: 0 0 0.5rem;
  text-align: center;
}

.guest-login-hint {
  margin: 0 0 1.25rem;
  text-align: center;
  color: rgba(12, 12, 12, 0.7);
  font-size: 0.9rem;
  line-height: 1.5;
}

.guest-login-form {
  display: grid;
  gap: 1rem;
  max-width: 420px;
  margin: 0 auto;
}

.guest-portal-dashboard {
  display: grid;
  gap: 1.25rem;
}

.guest-portal-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.guest-welcome {
  margin: 0;
  font-weight: 600;
}

.guest-logout-btn {
  border: 1px solid rgba(12, 12, 12, 0.15);
  background: #fff;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
}

.guest-tabs {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.guest-tab {
  border: 1px solid rgba(12, 12, 12, 0.15);
  background: #fff;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
}

.guest-tab.is-active {
  background: #0c0c0c;
  color: #fbf8f1;
  border-color: #0c0c0c;
}

.guest-panel-intro {
  text-align: center;
  color: rgba(12, 12, 12, 0.75);
  margin: 0 0 1rem;
  line-height: 1.5;
}

.guest-tours-panel {
  text-align: center;
  padding: 1rem 0;
}

.guest-tours-panel h3 {
  margin-top: 0;
}

/* Guest area — fullscreen panel (osobna „zakładka”) */
#guest.is-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background-color: var(--background-color--background-primary);
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}

body.guest-screen-open {
  overflow: hidden;
}

body.guest-screen-open .nav_component {
  display: none;
}

.guest-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0.25rem 0;
  margin-bottom: 0.25rem;
  min-height: 44px;
  color: inherit;
}

#guest.is-fullscreen .padding-global > .spacer-huge:first-child {
  display: none;
}

.guest-tours-contact {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

/* Breakfast order form */
.breakfast-form-wrap {
  width: min(760px, 100%);
  margin: 0 auto;
}

.breakfast-form {
  display: grid;
  gap: 1.25rem;
}

.breakfast-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.breakfast-field {
  display: grid;
  gap: 0.4rem;
}

.breakfast-field--full {
  grid-column: 1 / -1;
}

.breakfast-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #0c0c0c;
}

.breakfast-hint {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: rgba(12, 12, 12, 0.7);
  line-height: 1.45;
}

.breakfast-fieldset {
  border: 1px solid rgba(12, 12, 12, 0.12);
  border-radius: 0.75vw;
  padding: 1rem;
  margin: 0;
}

.breakfast-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 1rem;
}

.breakfast-alt-options,
.breakfast-radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.75rem;
}

.breakfast-check {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.breakfast-textarea {
  min-height: 5rem;
  resize: vertical;
}

.breakfast-actions {
  display: flex;
  justify-content: center;
}

.breakfast-message {
  text-align: center;
  font-size: 0.95rem;
  margin: 0;
}

.breakfast-message--success {
  color: #166534;
}

.breakfast-message--error {
  color: #991b1b;
}

@media (max-width: 768px) {
  .breakfast-form-grid,
  .breakfast-check-grid {
    grid-template-columns: 1fr;
  }
}

/* ── iPhone / mobile polish ── */
@media (max-width: 991px) {
  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  html,
  body,
  .page-wrapper {
    overflow-x: hidden;
    max-width: 100%;
  }

  body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }

  .nav_padding {
    padding-top: max(0.5rem, env(safe-area-inset-top));
  }

  .nav_wrapper {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .nav_menu {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav_brand-image-wrapper {
    width: 2.25rem !important;
    height: 2.25rem !important;
  }

  .nav-menu_component {
    height: 100dvh;
  }

  .nav-menu {
    width: 100% !important;
    max-width: 100%;
    height: 100dvh;
    padding: 1.25rem 1.25rem max(1.25rem, env(safe-area-inset-bottom));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-menu_list .text-size-large {
    font-size: 1.35rem !important;
    line-height: 1.2;
  }

  .home_hero-image-subheadline-cta {
    flex-flow: column;
    justify-content: flex-start;
    align-items: stretch;
    min-height: auto !important;
    height: auto !important;
    padding-bottom: 2rem;
    overflow: visible;
  }

  .home_hero-image-wrapper {
    width: 100% !important;
    height: 52vh !important;
    min-height: 240px;
    max-height: 400px;
    flex-shrink: 0;
    order: 1;
  }

  .home_hero-image-wrapper img:not(.home_hero-image) {
    display: none;
  }

  .home_hero-headline-tagline img {
    width: auto !important;
    max-width: min(78vw, 300px);
    height: auto;
  }

  .home_hero-tagline {
    width: 100% !important;
    max-width: 20rem;
    padding: 0 1rem;
  }

  .home_subheadline,
  .home_residences-subheadline,
  .home_book-subheadline,
  .home_amenities-subheadline,
  .home_testimonials-subheadline,
  .home_about-heading {
    width: 100% !important;
    max-width: 100%;
  }

  .home_subheadline {
    padding: 0 0.75rem;
  }

  .home_subheadline-cta {
    position: static !important;
    transform: none !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    order: 2;
    margin-top: 1.25rem;
    padding: 0 1.25rem;
    gap: 1rem;
  }

  .home_subheadline .text-color-alternate {
    color: var(--text-color--text-primary) !important;
  }

  .home_testimonials-marquee-1,
  .home_testimonials-marquee-2 {
    animation: none !important;
    transform: none !important;
    width: 100% !important;
    flex-flow: column !important;
    gap: 1rem;
  }

  .home_testimonials-marquee {
    height: auto !important;
    overflow: visible !important;
  }

  .home_testimonials-marquee-wrapper {
    overflow: visible !important;
    height: auto !important;
  }

  .home_testimonials-marquee-2 {
    display: flex !important;
    position: static !important;
    inset: auto !important;
  }

  .testmonials-card_component {
    width: 100% !important;
    height: auto !important;
    min-height: 0;
    flex-shrink: 0;
  }

  .testimonials-card-quote {
    white-space: normal !important;
    word-wrap: break-word;
    overflow-wrap: anywhere;
  }

  .spacer-xxhuge {
    padding-top: 3.5rem !important;
  }

  .spacer-xhuge {
    padding-top: 2.5rem !important;
  }

  .padding-global {
    padding-left: max(1rem, env(safe-area-inset-left)) !important;
    padding-right: max(1rem, env(safe-area-inset-right)) !important;
  }

  .form_input,
  .form_input.is-select-input,
  .form_input.is-date,
  select.form_input,
  textarea.form_input {
    font-size: 16px !important;
    min-height: 48px;
  }

  .button,
  .button.is-form-submit,
  .nav_menu,
  .nav_cta {
    min-height: 44px;
  }

  .jh-cal {
    padding: 1rem;
    border-radius: 12px;
  }

  .jh-cal-day {
    font-size: 0.75rem;
    min-height: 36px;
  }

  .booking-layout {
    gap: 1.25rem;
  }

  .booking-price-summary {
    border-radius: 12px;
    font-size: 0.9rem;
  }

  .gallery_grid.homepage_atrakcje {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .guest-login-card,
  .guest-portal-wrap,
  .breakfast-form-wrap {
    border-radius: 12px;
  }

  .guest-tab,
  .guest-logout-btn {
    min-height: 44px;
  }

  .faq-item_component.is-open .faq-item_answer {
    max-height: 40rem;
  }
}

@media (max-width: 767px) {
  .form_form {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 479px) {
  .padding-global {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .heading-style-h1 {
    font-size: 2rem !important;
    line-height: 1.05 !important;
  }

  .home_residences-list {
    grid-template-columns: 1fr !important;
  }

  .home_amenities-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  .home_amenities-grid-item {
    padding: 1.5rem 0.75rem !important;
    border-right: 1px solid var(--border-color--border-alternate) !important;
    border-bottom: 1px solid var(--border-color--border-alternate) !important;
  }

  .home_amenities-grid-item.amenities-item-3 {
    border-right-style: solid !important;
  }

  .home_amenities-grid-item.amenities-item-4 {
    border-bottom-style: solid !important;
    border-right-style: none !important;
  }

  .home_residences-image-wrapper {
    height: auto !important;
    aspect-ratio: 4 / 5;
  }

  .footer_grid-menu-list {
    grid-template-columns: 1fr !important;
  }

  .opis_homepage,
  .heading-style-h3.opis_homepage {
    font-size: 1rem !important;
    line-height: 1.5;
  }
}
