/* Mobile UX redesign + horizontal overflow hard-fix
   Loaded after styles.css on all frontend pages. */

html {
  overflow-x: clip;
  max-width: 100%;
  font-size: 16px;
}

body {
  overflow-x: clip;
  max-width: 100%;
  font-size: 1rem;
  font-weight: 400;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

img,
video,
canvas,
svg {
  max-width: 100%;
  height: auto;
}

/* Leaflet panes are 0×0 and position tiles via transform — overflow:hidden on panes
   clips every tile (gray empty map). Clip only the outer container / wrappers. */
.leaflet-container {
  overflow: hidden !important;
  max-width: 100%;
}

/* Undo global img/svg max-width/height:auto inside Leaflet */
.leaflet-container img,
.leaflet-container svg {
  max-width: none !important;
  max-height: none !important;
}

.logo img,
.site-logo-img {
  max-width: min(200px, 100%);
  width: auto;
  height: 32px;
  max-height: 50px;
  object-fit: contain;
  display: block;
}

/* ===== Mobile header + drawer (coherent bar / sheet) ===== */
@media (max-width: 1024px) {
  :root {
    --header-height: 56px;
  }

  .header {
    height: var(--header-height) !important;
    min-height: var(--header-height) !important;
    max-height: var(--header-height) !important;
    overflow: visible !important;
  }

  .header .header-container {
    width: 100% !important;
    max-width: 100% !important;
    height: var(--header-height) !important;
    min-height: var(--header-height) !important;
    margin: 0 !important;
    padding: 0 12px !important;
    gap: 10px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    box-sizing: border-box !important;
  }

  .header .logo {
    order: 1 !important;
    flex: 0 1 auto !important;
    min-width: 0 !important;
    max-width: calc(100% - 58px) !important;
    display: flex !important;
    align-items: center !important;
  }

  .header .logo img {
    height: 28px !important;
    width: auto !important;
    max-width: min(168px, 52vw) !important;
    max-height: 28px !important;
    object-fit: contain !important;
  }

  .header .mobile-menu-toggle-main,
  .header .mobile-menu-toggle {
    order: 2 !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    margin: 0 0 0 auto !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 10px !important;
    background: #fff !important;
    box-shadow: none !important;
    color: #254 !important;
    font-size: 22px !important;
    z-index: 2 !important;
  }

  .header .mobile-menu-toggle-main i,
  .header .mobile-menu-toggle i {
    line-height: 1 !important;
    display: block !important;
  }

  .header .nav-menu-wrapper {
    order: 3 !important;
    position: fixed !important;
    top: var(--header-height) !important;
    left: 0 !important;
    right: auto !important;
    bottom: 0 !important;
    width: min(100vw, 320px) !important;
    max-width: 100vw !important;
    height: calc(100dvh - var(--header-height)) !important;
    margin: 0 !important;
    padding: 8px 0 calc(16px + env(safe-area-inset-bottom, 0px)) !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-right: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: 8px 0 24px rgba(15, 23, 42, 0.12) !important;
    z-index: 999 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    transform: translateX(-105%) !important;
    transition: transform 0.25s ease !important;
    display: block !important;
    visibility: visible !important;
  }

  .header .nav-menu-wrapper.open {
    transform: translateX(0) !important;
  }

  body.nav-drawer-open {
    overflow: hidden !important;
  }

  body.nav-drawer-open::before {
    content: "";
    position: fixed;
    inset: var(--header-height) 0 0 0;
    background: rgba(15, 23, 42, 0.35);
    z-index: 998;
  }

  .header .nav-menu {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
    list-style: none !important;
  }

  .header .nav-menu li {
    width: 100% !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
  }

  .header .nav-menu .nav-link,
  .header .nav-menu .btn {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    min-height: 48px !important;
    padding: 12px 16px !important;
    border-radius: 0 !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    box-sizing: border-box !important;
  }

  .header .nav-menu .btn.btn-primary {
    margin: 12px 16px !important;
    width: calc(100% - 32px) !important;
    justify-content: center !important;
    border-radius: 10px !important;
  }

  .header .nav-menu .gtranslate_wrapper {
    display: block !important;
    padding: 12px 16px !important;
  }
}

.domki-explore-map,
.domki-explore-map__inner,
.property-map,
.property-map-container,
#propertyMap,
#attractionsMap,
.map-container {
  overflow: hidden;
  max-width: 100%;
}

/* Safe grids: never force tracks wider than the viewport */
.properties-grid,
.blog-posts-grid,
.recent-properties-section .properties-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
}

/* Polecane: fixed 3 columns on desktop (3 cards — avoid empty 4th track) */
.featured-properties-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 769px) {
  .featured-properties-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }
}

@media (min-width: 1025px) {
  .featured-properties-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
  }
}

@media (max-width: 1024px) {
  /* Header/drawer rules live in the dedicated block above */

  .container,
  .page-container-padding {
    padding-left: 14px;
    padding-right: 14px;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Hero: home.css owns composition; keep only safe mobile overrides */
  .hero .container,
  .hero .hero__content {
    width: 100%;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .hero .hero__nav {
    display: none !important;
  }

  .search-form:hover {
    transform: none !important;
  }

  /* Listing SEO / category chips outside hero */
  .seo-links-buttons:not(.hero__chips),
  .category-buttons {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-width: 100%;
    padding: 2px 2px 8px;
  }

  .seo-links-buttons:not(.hero__chips)::-webkit-scrollbar,
  .category-buttons::-webkit-scrollbar {
    display: none;
  }

  .seo-link-button,
  .category-button {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 1rem !important;
    padding: 10px 14px !important;
    min-height: 40px;
  }

  /* Listing / explore — padding only; layout rules live in @media (max-width: 1180px) */
  .domki-explore-wrapper {
    padding-left: 16px !important;
    padding-right: 16px !important;
    overflow-x: clip;
  }

  .domki-explore-breadcrumbs,
  .breadcrumbs,
  .breadcrumb {
    font-size: 16px;
    overflow-x: auto;
    white-space: nowrap;
    max-width: 100%;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .domki-explore-breadcrumbs::-webkit-scrollbar,
  .breadcrumbs::-webkit-scrollbar {
    display: none;
  }

  /* Property cards denser and easier to tap */
  .property-card,
  .featured-property-card,
  .domki-card {
    border-radius: 16px;
  }

  .property-card .property-image,
  .featured-property-card .property-image,
  .domki-card__media {
    height: 200px;
  }

  .property-content,
  .featured-property-card .property-content {
    padding: 14px 16px 16px;
  }

  .property-title,
  .featured-property-card .property-title {
    font-size: 1.05rem !important;
    line-height: 1.3;
  }

  .section-parallax {
    min-height: 320px !important;
    background-attachment: scroll !important;
  }

  .section-parallax .section-title-light {
    font-size: 1.6rem !important;
  }

  .section-parallax .section-text-light {
    font-size: 1rem !important;
  }

  .featured-properties-section,
  .recent-properties-section,
  .recent-blog-section {
    padding: 40px 0 !important;
    margin: 0 !important;
  }

  .featured-section-title,
  .section-header .section-title {
    font-size: 1.5rem !important;
  }

  .featured-properties-grid,
  .recent-properties-section .properties-grid,
  .blog-posts-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    padding: 0 !important;
  }

  /* Footer: wrap city cloud, no forced wide rows */
  .footer,
  .footer-links,
  .footer-seo,
  .footer-cities,
  .seo-footer-links {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .footer a,
  .footer-links a,
  .seo-footer-links a {
    word-break: break-word;
  }

  /* Modals / dropdowns that used 100vw / large min-width */
  .guests-dropdown,
  .personBox,
  .modal-guests .modal-body,
  .modal-location .modal-body {
    min-width: 0 !important;
    max-width: min(100vw - 24px, 420px) !important;
    width: min(100vw - 24px, 420px) !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%);
  }

  .modal-container {
    max-width: calc(100vw - 16px) !important;
    width: 100%;
  }

  /* Avoid hover lift shifting layout on touch */
  .property-card:hover,
  .featured-property-card:hover,
  .blog-post-card:hover {
    transform: none;
  }

  /* Sticky bars respect home-indicator */
  .mobile-booking-sticky,
  .domki-explore-map {
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
}

/* Property detail — tablet (769–1180): jedna kolumna treści, galeria 2-kol., przewijane quick menu */
@media (min-width: 769px) and (max-width: 1180px) {
  .property-detail-page {
    padding: 20px 24px 88px !important;
    max-width: 100%;
    overflow-x: clip;
    box-sizing: border-box;
  }

  .property-detail-page[data-property-mode="BOOKING"] {
    padding-bottom: 128px !important;
  }

  .property-header {
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 16px !important;
    margin-bottom: 20px !important;
  }

  .property-title-section {
    min-width: 0;
    flex: 1;
  }

  .property-title {
    font-size: clamp(1.35rem, 2.8vw, 1.75rem) !important;
    height: auto !important;
    line-height: 1.28 !important;
  }

  .property-header-actions {
    width: auto !important;
    flex-shrink: 0;
    margin-top: 0 !important;
    padding-top: 0 !important;
    border-top: none !important;
    gap: 10px !important;
  }

  .property-gallery {
    grid-template-columns: 1.12fr 1fr !important;
    height: min(42vh, 400px) !important;
    min-height: 280px !important;
    max-height: 420px;
    margin-bottom: 28px !important;
    gap: 8px !important;
  }

  .gallery-main {
    height: 100% !important;
    min-height: 0 !important;
    border-radius: 12px 0 0 12px !important;
  }

  .gallery-thumbnails {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: 1fr 1fr !important;
    height: 100% !important;
    min-height: 0 !important;
    gap: 8px !important;
  }

  .gallery-thumbnail {
    height: 100% !important;
    max-height: none !important;
  }

  .property-layout {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    margin-top: 8px !important;
  }

  .property-main {
    padding-bottom: 24px !important;
    min-width: 0;
  }

  .property-sidebar {
    position: static !important;
    order: 2;
  }

  .property-sidebar .booking-card {
    max-width: min(100%, 560px);
    margin: 0 auto;
    position: static !important;
    top: auto !important;
  }

  .property-details-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }

  .property-section {
    scroll-margin-top: calc(var(--property-quicknav-top, 68px) + 56px);
  }

  .property-section .section-title {
    font-size: 1.35rem !important;
  }

  .amenities-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .property-main .property-quicknav {
    position: sticky !important;
    top: var(--property-quicknav-top, 68px) !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    margin: 0 0 14px !important;
    max-height: none !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    gap: 8px !important;
    padding: 8px 10px !important;
    z-index: 5500 !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border: 1px solid #e5e7eb !important;
    border-radius: 14px !important;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08) !important;
  }

  .property-main .property-quicknav::-webkit-scrollbar {
    display: none;
  }

  .property-quicknav__btn {
    flex: 0 0 auto !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 44px !important;
    padding: 8px 12px !important;
    gap: 8px !important;
    font-size: 14px !important;
  }

  .property-quicknav__label {
    display: inline !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.15 !important;
    max-width: 8.5em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .property-quicknav__btn i {
    font-size: 17px !important;
    flex-shrink: 0;
  }

  .property-quicknav__badge {
    position: absolute;
    top: 4px;
    right: 4px;
    margin-left: 0;
  }
}

@media (min-width: 769px) and (max-width: 900px) {
  .property-details-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .property-detail-page[data-property-mode="BOOKING"] {
    padding-bottom: 168px !important;
  }

  .property-main {
    padding-bottom: 8px !important;
  }
}

/* Property detail — phone (<=768): galeria pionowa, quick menu na dole */
@media (max-width: 768px) {
  .property-detail-page {
    padding: 12px 14px 120px !important;
    max-width: 100%;
    overflow-x: clip;
  }

  .property-header {
    flex-direction: column;
    gap: 10px !important;
    margin-bottom: 14px !important;
  }

  .property-categories {
    margin-top: 16px;
    margin-bottom: 8px;
    gap: 12px;
  }

  .property-categories__list {
    gap: 10px 10px;
  }

  .property-category-label {
    padding: 8px 12px !important;
  }

  .property-header-actions {
    width: 100%;
    justify-content: flex-start;
    gap: 10px !important;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid #eef2f7;
  }

  .property-header-actions .share-buttons {
    gap: 8px !important;
  }

  .amenities-categories {
    gap: 14px !important;
  }

  .amenity-category {
    padding: 14px 12px !important;
    border-radius: 14px !important;
  }

  .amenity-category-title {
    font-size: 16px !important;
    margin-bottom: 12px !important;
    padding-bottom: 10px !important;
  }

  .amenities-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .amenity-item {
    padding: 8px 10px !important;
    gap: 8px !important;
    border-radius: 10px !important;
  }

  .amenity-name {
    font-size: 16px !important;
    line-height: 1.25 !important;
  }

  .property-gallery {
    grid-template-columns: 1fr !important;
    height: auto !important;
    gap: 6px !important;
    border-radius: 14px;
    overflow: hidden;
  }

  .gallery-main {
    height: min(52vw, 260px) !important;
    min-height: 220px;
    border-radius: 14px !important;
  }

  .gallery-thumbnails {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    grid-template-rows: 1fr !important;
    height: 64px !important;
    gap: 6px;
  }

  .gallery-thumbnail {
    height: 64px !important;
    border-radius: 10px !important;
  }

  .property-phone-cta-btn {
    min-height: 50px;
    font-size: 17px;
    border-radius: 14px;
  }
}

/* /domki/ — tablet & mobile: jedna kolumna listy + mapa w szufladzie (nie wąski split obok listy) */
@media (max-width: 1180px) {
  .domki-mobile-summarybar {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 8px 0 12px !important;
    padding: 12px 16px !important;
    border-radius: 16px;
  }

  .domki-mobile-summarybar__count {
    font-size: 15px;
  }

  .domki-mobile-summarybar__meta {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: min(56vw, 420px);
    font-size: 13px;
  }

  .domki-mobile-summarybar__filters {
    min-height: 44px;
    padding: 10px 14px;
    flex-shrink: 0;
  }

  .domki-explore-split {
    grid-template-columns: 1fr !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    gap: 0 !important;
    min-width: 0 !important;
  }

  .domki-explore-map {
    display: block !important;
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    z-index: 9995 !important;
    padding: 0 !important;
    transition: transform 0.22s ease !important;
  }

  .domki-explore-map__inner {
    border-radius: 18px 18px 0 0 !important;
    overflow: hidden !important;
  }

  .domki-map-drawer-header {
    display: block !important;
    position: relative;
    height: 52px;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  .domki-map-drawer-header .domki-drawer-header__handle {
    position: absolute;
    left: 50%;
    top: 10px;
    transform: translateX(-50%);
    cursor: pointer;
  }

  body:not(.domki-map-drawer-open) .domki-explore-map {
    transform: translateY(calc(100% - 54px));
  }

  body.domki-map-drawer-open .domki-explore-map {
    transform: translateY(0);
  }

  body:not(.domki-map-drawer-open):not(.domki-map-fullscreen) .domki-explore-map__map,
  body:not(.domki-map-drawer-open):not(.domki-map-fullscreen) .domki-explore-map__toolbar,
  body:not(.domki-map-drawer-open):not(.domki-map-fullscreen) .domki-explore-map__hint {
    pointer-events: none;
  }

  body.domki-map-drawer-open .domki-explore-map__map {
    height: 50vh;
    min-height: 50vh;
  }

  .domki-explore-map__toolbar {
    top: 56px !important;
    right: 14px !important;
    bottom: auto !important;
    left: auto !important;
  }

  .domki-explore-map__hint {
    top: 56px !important;
  }

  .domki-explore-list {
    max-height: none !important;
    overflow: visible !important;
    margin-top: 0 !important;
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .domki-explore-topbar__right {
    display: none !important;
  }

  .domki-explore-searchmeta {
    display: none !important;
  }

  .domki-explore-topbar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 6px !important;
    padding: 0 !important;
    margin-bottom: 10px !important;
    position: static !important;
    box-shadow: none !important;
    background: transparent !important;
    backdrop-filter: none !important;
  }

  .domki-explore-topbar__left {
    width: 100% !important;
    max-width: 100% !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }

  .domki-explore-title {
    max-width: 100% !important;
    white-space: normal !important;
    font-size: 1.35rem !important;
    line-height: 1.25 !important;
  }

  .domki-explore-titleline {
    display: flex !important;
    width: 100% !important;
    align-items: baseline !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  .domki-explore-count {
    font-size: 1rem;
    color: #64748b;
  }

  .domki-explore-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }

  .domki-card__media {
    height: min(36vw, 220px) !important;
  }
}

@media (max-width: 640px) {
  .domki-explore-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .domki-mobile-summarybar__meta {
    max-width: 48vw;
  }

  .domki-card__media {
    height: 200px !important;
  }
}

.property-card-wrap {
  position: relative;
}

/* /domki/ — kafle tej samej wysokości w siatce (embed, lista, mapa) */
.domki-explore-grid {
  align-items: stretch;
}

.domki-explore-grid > .property-card-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
}

.domki-explore-grid .property-card.property-link {
  display: flex !important;
  flex-direction: column;
  flex: 1 1 auto;
  height: 100%;
  min-height: 100%;
}

.domki-explore-grid img.property-image {
  width: 100%;
  height: 220px;
  min-height: 220px;
  max-height: 220px;
  object-fit: cover;
  flex-shrink: 0;
  margin-bottom: 0;
  border-radius: 12px 12px 0 0;
}

.domki-explore-grid .property-card .property-content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 16px 18px 18px;
}

.domki-explore-grid .property-card .property-card__header {
  align-items: flex-start;
}

.domki-explore-grid .property-card .destination-description {
  flex: 1 1 auto;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  min-height: 4.5em;
  line-height: 1.5;
}

.domki-explore-grid .property-card .property-info {
  flex-shrink: 0;
  margin-bottom: 12px;
}

.domki-explore-grid .property-card .property-price,
.domki-explore-grid .property-card .property-price--cta {
  margin-top: auto;
  flex-shrink: 0;
}

/* Property quicknav — phone: dock na dole ekranu */
@media (max-width: 768px) {
  .property-quicknav {
    position: fixed !important;
    top: auto !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    bottom: 0 !important;
    margin: 0 !important;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px)) !important;
    border-radius: 16px 16px 0 0 !important;
    border: 1px solid #e5e7eb !important;
    border-bottom: none !important;
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.12) !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    gap: 8px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-height: none !important;
    z-index: 6900 !important;
  }

  .property-quicknav::-webkit-scrollbar {
    display: none;
  }

  .property-quicknav__btn {
    flex: 0 0 auto !important;
    min-width: 72px !important;
    min-height: 52px !important;
    padding: 8px 12px !important;
    border-radius: 14px !important;
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    position: relative;
  }

  .property-quicknav__label {
    display: block !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.1 !important;
    max-width: 78px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .property-quicknav__badge {
    top: 4px !important;
    right: 4px !important;
  }

  .property-detail-page[data-property-mode="BOOKING"] {
    padding-bottom: 180px !important;
  }

  .property-detail-page[data-property-mode="BOOKING"] .property-quicknav.is-visible ~ #mobileBookingSticky,
  .property-detail-page[data-property-mode="BOOKING"] #mobileBookingSticky.has-bottom-nav {
    --mobile-bottom-offset: 72px;
  }

  .property-detail-page[data-property-mode="BOOKING"] .mobile-booking-sticky {
    z-index: 7000 !important;
  }
}

@media (max-width: 480px) {
  .gallery-thumbnails {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .gallery-thumbnail:nth-child(n + 4) {
    display: none;
  }

  .property-details-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}

/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero .hero__bg--slide,
  .property-card,
  .featured-property-card,
  .search-form,
  .search-submit-btn {
    transition: none !important;
    animation: none !important;
  }
}

/* Property detail: category chips + collapsible blocks (all viewports) */
.property-categories {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
}

.property-categories__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  width: 100%;
}

.property-category-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--cat-bg, rgba(63, 140, 107, 0.08));
  color: var(--cat-color, #3f8c6b);
  border: 1px solid var(--cat-border, rgba(63, 140, 107, 0.25));
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

.property-category-label i {
  font-size: 16px;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .property-categories.is-collapsed .property-category-label.is-overflow,
  .amenities-categories.is-collapsed .amenity-category.is-overflow {
    display: none !important;
  }
}

@media (min-width: 769px) {
  .property-collapse-toggle {
    display: none !important;
  }
}

.property-collapse-toggle {
  appearance: none;
  border: none;
  background: transparent;
  color: #2d6b52;
  font-size: 16px;
  font-weight: 600;
  padding: 4px 0;
  margin: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.property-collapse-toggle__less {
  display: none;
}

.property-categories.is-expanded .property-collapse-toggle__more,
.amenities-categories.is-expanded .property-collapse-toggle__more {
  display: none;
}

.property-categories.is-expanded .property-collapse-toggle__less,
.amenities-categories.is-expanded .property-collapse-toggle__less {
  display: inline;
}

.property-collapse-toggle--amenities {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f0f7f3;
  border: 1px solid #d7ebe1;
  text-decoration: none;
  text-align: center;
}

.property-collapse-toggle--amenities:hover {
  background: #e5f3eb;
}

/* Listing cards: CTA „Zapytaj o cenę” (telefon tylko na stronie obiektu) */
.property-price--cta {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  margin-top: 0.65rem;
  width: 100%;
}

.property-price--cta .property-card-cta {
  width: 100%;
  box-sizing: border-box;
}

.property-card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.55rem 1rem;
  border-radius: 0.65rem;
  background: linear-gradient(135deg, #3f8c6b 0%, #2d6b52 100%);
  color: #fff !important;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  box-shadow: 0 4px 12px rgba(63, 140, 107, 0.28);
}

.property-card:hover .property-card-cta,
.property-link:hover .property-card-cta {
  background: linear-gradient(135deg, #2d6b52 0%, #245844 100%);
}

/* Property detail — phone reveal / dial (CTA jak „Zapytaj o cenę”) */
.property-phone-block {
  width: 100%;
  max-width: 420px;
  margin-top: 12px;
}

.property-phone-block--full {
  max-width: none;
}

.property-phone-block__label {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.02em;
}

.property-phone-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 12px 18px;
  box-sizing: border-box;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #3f8c6b 0%, #2d6b52 100%);
  color: #fff !important;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(63, 140, 107, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.property-phone-cta-btn i {
  font-size: 18px;
  color: #fff;
}

.property-phone-cta-btn:hover,
.property-phone-cta-btn:focus-visible {
  background: linear-gradient(135deg, #2d6b52 0%, #245844 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(63, 140, 107, 0.35);
  color: #fff !important;
}

.property-phone-cta-btn:active {
  transform: translateY(0);
}

.property-phone-cta-btn:focus-visible {
  outline: 2px solid rgba(63, 140, 107, 0.45);
  outline-offset: 2px;
}

.js-property-phone-dial.is-hidden,
.js-property-phone-trigger.is-hidden {
  display: none !important;
}

.property-phone-block--in-card {
  flex: 1;
  min-width: 0;
  max-width: none;
  margin-top: 0;
}

.booking-card-phone {
  flex-direction: column;
  align-items: stretch !important;
  gap: 0 !important;
}

.booking-card-phone .property-phone-block--in-card {
  width: 100%;
}

.mobile-call-cta__btn.property-phone-cta-btn,
.mobile-call-cta .property-phone-cta-btn {
  width: auto;
  border-radius: 999px;
  min-height: 48px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

@media (max-width: 768px) {
  .property-phone-block {
    max-width: none;
  }
}

/* Map marker popups — domki listing + atrakcje (m15) */
.domki-explore-map .leaflet-popup-content-wrapper,
.domki-map-popup .leaflet-popup-content-wrapper {
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.16);
}

.domki-explore-map .leaflet-popup-content,
.domki-map-popup .leaflet-popup-content {
  margin: 0;
  line-height: 1.45;
}

.domki-explore-map .leaflet-popup-content p,
.domki-map-popup .leaflet-popup-content p {
  margin: 0;
}

.domki-explore-map .domki-popup-body,
.domki-map-popup .domki-popup-body {
  padding: 14px 14px 16px;
}

.domki-explore-map .domki-popup-action,
.domki-map-popup .domki-popup-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  margin-top: 14px;
  padding: 11px 18px;
  border-radius: 12px;
  background: linear-gradient(180deg, #469a78 0%, #3f8c6b 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  border: none;
  box-shadow: none;
  transition: background 0.2s ease;
}

.domki-explore-map .domki-popup-action:hover,
.domki-map-popup .domki-popup-action:hover {
  background: linear-gradient(180deg, #3f8c6b 0%, #357a59 100%);
  color: #fff;
  transform: none;
}

.domki-explore-map .domki-popup-action i,
.domki-map-popup .domki-popup-action i {
  font-size: 16px;
  flex-shrink: 0;
}

.attraction-popup__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  margin-top: 4px;
  padding: 11px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: none;
  transition: filter 0.2s ease;
}

.attraction-popup__cta:hover {
  filter: brightness(0.94);
  transform: none;
  opacity: 1;
  color: #fff;
}

/* Property detail — share buttons: distinct icon + background per network on hover */
.property-detail-page .property-header-actions .share-btn {
  color: #64748b;
  background: #fff;
  border: 1px solid #e2e8f0;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.property-detail-page .property-header-actions .share-btn svg {
  fill: currentColor !important;
  stroke: currentColor !important;
}

.property-detail-page .property-header-actions .share-btn--copy svg {
  fill: none !important;
}

.property-detail-page .property-header-actions .share-btn:hover {
  transform: scale(1.06);
}

.property-detail-page .property-header-actions .share-btn--facebook {
  color: #1877f2;
  border-color: #c8dafb;
  background: #f0f6ff;
}

.property-detail-page .property-header-actions .share-btn--facebook:hover {
  background: #1877f2;
  border-color: #1877f2;
  color: #fff;
}

.property-detail-page .property-header-actions .share-btn--instagram {
  color: #c13584;
  border-color: #f0c4e0;
  background: #fdf2f8;
}

.property-detail-page .property-header-actions .share-btn--instagram:hover {
  background: linear-gradient(135deg, #f58529 0%, #dd2a7b 45%, #8134af 100%);
  border-color: #c13584;
  color: #fff;
}

.property-detail-page .property-header-actions .share-btn--whatsapp {
  color: #128c7e;
  border-color: #b8e6d3;
  background: #ecfdf5;
}

.property-detail-page .property-header-actions .share-btn--whatsapp:hover {
  background: #25d366;
  border-color: #25d366;
  color: #fff;
}

.property-detail-page .property-header-actions .share-btn--messenger {
  color: #0084ff;
  border-color: #b3d9ff;
  background: #eff6ff;
}

.property-detail-page .property-header-actions .share-btn--messenger:hover {
  background: #0084ff;
  border-color: #0084ff;
  color: #fff;
}

.property-detail-page .property-header-actions .share-btn--x {
  color: #0f1419;
  border-color: #d1d5db;
  background: #f9fafb;
}

.property-detail-page .property-header-actions .share-btn--x:hover {
  background: #0f1419;
  border-color: #0f1419;
  color: #fff;
}

.property-detail-page .property-header-actions .share-btn--copy {
  color: #3f8c6b;
  border-color: #b7ddcb;
  background: #edf7f2;
}

.property-detail-page .property-header-actions .share-btn--copy:hover {
  background: #2d6b52;
  border-color: #2d6b52;
  color: #fff;
}
