/* ==========================================================================
   Jasna Boutique Chalet – mobile & touch refinement layer
   Loaded last on every public page. Keeps the identity (navy #031119,
   surface #16262f, gold #e3a127, Nunito Sans / Roboto / Raleway, snow, AOS)
   and fixes how it behaves on phones and tablets.
   Spacing scale: 4 · 8 · 12 · 16 · 20 · 24 · 32 · 48 · 64
   ========================================================================== */

:root {
  --jb-navy: #031119;
  --jb-surface: #16262f;
  --jb-surface-2: #1b2b34;
  --jb-gold: #e3a127;
  --jb-gold-hover: #f0b84c;
  --jb-line: rgba(227, 161, 39, 0.22);
  --jb-hair: rgba(224, 233, 242, 0.1);
  --jb-text: rgba(224, 233, 242, 0.86);
  --jb-text-soft: rgba(224, 233, 242, 0.72);
  --jb-gutter: 20px;
  --jb-header-h: 68px;
  --jb-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Global browser surfaces ---------- */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background-color: var(--jb-navy);
  overflow-x: clip;
}

::selection {
  background: rgba(227, 161, 39, 0.38);
  color: #fff;
}

a,
button,
[role="button"],
summary,
label {
  -webkit-tap-highlight-color: rgba(227, 161, 39, 0.16);
  touch-action: manipulation;
}

:focus-visible {
  outline: 2px solid var(--jb-gold);
  outline-offset: 3px;
}

h1,
h2,
h3,
.section-title div {
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
}

/* width/height attributes only reserve the aspect ratio; CSS sets the size */
.header .logo img {
  width: auto;
}

.footer-logo-img {
  width: 200px;
  height: auto;
}

/* ---------- Gold buttons: navy text instead of white (WCAG AA, 8.9:1) ---------- */
.header .btn-getstarted,
.header .btn-getstarted:focus,
.header .btn-getstarted:hover,
.hero-search .hs-btn,
.hero-search .hs-btn:hover,
.hw-actions .btn-primary,
.hw-actions .btn-primary:hover,
.rv-foot .btn-primary,
.rv-foot .btn-primary:hover,
.about .about-content .btn-primary,
.about-content .btn-primary,
.about-content .btn-primary:hover,
.cta-button .btn,
.cta-button .btn:hover,
.cta-button .btn i,
.call-to-action .cta-buttons .btn.btn-primary,
.contact .contact-form-wrapper .btn-submit,
.room-actions-horizontal .btn-primary,
.room-actions-horizontal .btn-primary:hover,
.search-form-wrapper .btn-primary,
.search-form-wrapper .btn-primary:hover,
#gallery-show-more,
.scroll-top i,
.capacity-badge.active,
.capacity-badge.active .badge-number,
.capacity-badge.active .badge-label {
  color: var(--jb-navy);
}

/* ---------- Header + navigation (phones and tablets) ---------- */
.btn-getstarted-short {
  display: none;
}

.navmenu-extra {
  display: none;
}

@media (max-width: 1199px) {
  .header {
    padding: 0;
    padding-top: env(safe-area-inset-top);
    min-height: calc(var(--jb-header-h) + env(safe-area-inset-top));
    background: linear-gradient(180deg, rgba(3, 17, 25, 0.86) 0%, rgba(3, 17, 25, 0) 100%);
    transition: background-color 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
  }

  .scrolled .header,
  .rooms-page .header,
  .room-detail-page .header {
    background: rgba(3, 17, 25, 0.9);
    -webkit-backdrop-filter: saturate(140%) blur(14px);
    backdrop-filter: saturate(140%) blur(14px);
    box-shadow: 0 1px 0 var(--jb-line), 0 12px 24px -18px rgba(0, 0, 0, 0.8);
  }

  .header .header-container {
    margin: 0;
    max-width: none;
    min-height: var(--jb-header-h);
    padding: 0 max(12px, env(safe-area-inset-right)) 0 max(var(--jb-gutter), env(safe-area-inset-left));
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    gap: 8px;
  }

  .header .logo img {
    max-height: 58px;
    width: auto;
    padding: 0;
    margin: 0;
  }

  .header .btn-getstarted,
  .header .btn-getstarted:focus {
    order: 2;
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    margin: 0;
    padding: 0 18px;
    border-radius: 999px;
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.01em;
    white-space: nowrap;
    background: var(--jb-gold);
  }

  .translate-items {
    order: 3;
  }

  /* Language lives inside the menu on phones */
  .header .language-switcher {
    display: none;
  }

  .mobile-nav-toggle,
  button.mobile-nav-toggle {
    width: 44px;
    height: 44px;
    margin: 0 -6px 0 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    line-height: 1;
    color: #fff;
    background: transparent;
    border: 0;
    border-radius: 12px;
  }

  /* Full-screen menu */
  .mobile-nav-active .navmenu {
    position: fixed;
    inset: 0;
    z-index: 9997;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: calc(var(--jb-header-h) + env(safe-area-inset-top) + 8px) var(--jb-gutter) calc(24px + env(safe-area-inset-bottom));
    background:
      radial-gradient(120% 60% at 100% 0%, rgba(227, 161, 39, 0.12), transparent 60%),
      linear-gradient(180deg, #06202d 0%, var(--jb-navy) 60%);
    animation: jb-menu-in 0.32s var(--jb-ease) both;
  }

  .mobile-nav-active .navmenu > ul {
    position: static;
    inset: auto;
    display: block;
    padding: 0;
    margin: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
  }

  .mobile-nav-active .navmenu > ul > li {
    border-bottom: 1px solid var(--jb-hair);
    animation: jb-item-in 0.4s var(--jb-ease) both;
  }

  .mobile-nav-active .navmenu > ul > li:nth-child(2) { animation-delay: 0.03s; }
  .mobile-nav-active .navmenu > ul > li:nth-child(3) { animation-delay: 0.06s; }
  .mobile-nav-active .navmenu > ul > li:nth-child(4) { animation-delay: 0.09s; }
  .mobile-nav-active .navmenu > ul > li:nth-child(5) { animation-delay: 0.12s; }
  .mobile-nav-active .navmenu > ul > li:nth-child(6) { animation-delay: 0.15s; }

  .mobile-nav-active .navmenu a,
  .mobile-nav-active .navmenu a:focus {
    padding: 0;
  }

  .mobile-nav-active .navmenu > ul > li > a,
  .mobile-nav-active .navmenu > ul > li > a:focus {
    min-height: 60px;
    font-family: var(--heading-font);
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--heading-color);
  }

  .mobile-nav-active .navmenu > ul > li > a.active {
    color: var(--jb-gold);
  }

  .mobile-nav-active .navmenu-extra {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 28px;
    animation: jb-item-in 0.45s var(--jb-ease) 0.18s both;
  }

  .mobile-nav-active .navmenu .navmenu-cta {
    min-height: 54px;
    justify-content: center;
    gap: 10px;
    border-radius: 999px;
    background: var(--jb-gold);
    color: var(--jb-navy);
    font-family: var(--heading-font);
    font-weight: 800;
    font-size: 17px;
    box-shadow: 0 14px 30px -16px rgba(227, 161, 39, 0.7);
  }

  .navmenu-langs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }

  .mobile-nav-active .navmenu .navmenu-langs a {
    min-height: 44px;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid rgba(224, 233, 242, 0.18);
    color: var(--jb-text);
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.06em;
  }

  .mobile-nav-active .navmenu .navmenu-langs a.is-current {
    border-color: var(--jb-gold);
    color: var(--jb-gold);
    background: rgba(227, 161, 39, 0.08);
  }

  .navmenu-contact {
    display: flex;
    flex-direction: column;
    padding-top: 8px;
    border-top: 1px solid var(--jb-hair);
  }

  .mobile-nav-active .navmenu .navmenu-contact a {
    min-height: 48px;
    justify-content: flex-start;
    gap: 12px;
    font-family: var(--default-font);
    font-size: 16px;
    font-weight: 400;
    color: var(--jb-text);
  }

  .mobile-nav-active .navmenu .navmenu-contact a i {
    width: 36px;
    height: 36px;
    margin: 0;
    font-size: 16px;
    line-height: 1;
    color: var(--jb-gold);
    background: rgba(227, 161, 39, 0.1);
    border-radius: 50%;
    transform: none;
  }

  .mobile-nav-active .mobile-nav-toggle,
  .mobile-nav-active button.mobile-nav-toggle {
    position: fixed;
    top: calc(env(safe-area-inset-top) + 10px);
    right: max(12px, env(safe-area-inset-right));
    margin: 0;
    font-size: 34px;
    z-index: 9999;
  }

  /* Hide the bar items behind the open menu */
  .mobile-nav-active .header .logo,
  .mobile-nav-active .header .btn-getstarted {
    visibility: hidden;
  }
}

@media (max-width: 380px) {
  .btn-getstarted-long { display: none; }
  .btn-getstarted-short { display: inline; }
}

@keyframes jb-menu-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes jb-item-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Snow + motion: lighter on phones, off for reduced motion ---------- */
@media (max-width: 767px) {
  .snowflake {
    font-size: 0.8em;
    opacity: 0.55;
  }

  .snowflake:nth-of-type(n + 8) {
    display: none;
  }

  [data-aos] {
    transition-duration: 450ms !important;
  }

  [data-aos^="fade"][data-aos^="fade"] {
    --aos-distance: 24px;
  }

  [data-aos="fade-right"],
  [data-aos="fade-left"] {
    transform: translate3d(0, 24px, 0);
  }

  .aos-animate[data-aos="fade-right"],
  .aos-animate[data-aos="fade-left"] {
    transform: none;
  }

  .scroll-top {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .snowflake {
    display: none;
  }

  .mobile-nav-active .navmenu,
  .mobile-nav-active .navmenu > ul > li,
  .mobile-nav-active .navmenu-extra {
    animation: none;
  }
}

/* ---------- Phones: type, rhythm, sections ---------- */
@media (max-width: 767px) {
  body {
    font-size: 16px;
    line-height: 1.6;
  }

  .container,
  .container-fluid,
  .container-xl {
    padding-left: max(var(--jb-gutter), env(safe-area-inset-left));
    padding-right: max(var(--jb-gutter), env(safe-area-inset-right));
  }

  section,
  .section {
    padding: 56px 0;
    scroll-margin-top: calc(var(--jb-header-h) + 8px);
  }

  /* Section titles: small gold label line + clear heading */
  .section-title {
    padding-bottom: 28px;
  }

  .section-title h2,
  .section-title h1 {
    display: flex;
    align-items: center;
    gap: 12px;
    line-height: 1.2;
    font-size: 13px;
    letter-spacing: 0.18em;
    color: var(--jb-gold);
  }

  .section-title h2::after,
  .section-title h1::after {
    flex: 0 0 48px;
    width: 48px;
    margin: 0;
  }

  .section-title div {
    margin-top: 10px;
    font-size: 28px;
    line-height: 1.15;
    letter-spacing: -0.01em;
    text-transform: none;
  }

  p {
    line-height: 1.65;
  }

  .btn {
    min-height: 48px;
  }

  /* Footer */
  .footer {
    font-size: 15px;
    padding-bottom: calc(32px + env(safe-area-inset-bottom));
  }

  .footer .footer-top {
    padding-top: 48px;
  }

  .footer-logo-img {
    width: 132px;
  }

  .footer .footer-about p {
    font-size: 15px;
    color: var(--jb-text-soft);
  }

  .footer .footer-links h4,
  .footer .footer-contact h4 {
    font-size: 15px;
    margin-bottom: 8px;
    padding-bottom: 0;
  }

  .footer .footer-links ul li {
    padding: 0;
  }

  .footer .footer-links ul a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 15px;
    line-height: 1.3;
  }

  .footer .footer-contact {
    text-align: left !important;
    padding-top: 20px;
    border-top: 1px solid var(--jb-hair);
  }

  .footer .footer-contact p {
    margin-bottom: 2px;
  }

  .footer .footer-contact p.mt-4 {
    margin-top: 12px !important;
  }

  .footer .footer-contact a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
  }

  .footer .social-links a {
    width: 44px;
    height: 44px;
  }

  .footer .copyright {
    padding-top: 20px;
    font-size: 14px;
    color: var(--jb-text-soft);
  }
}

/* ==========================================================================
   Home page
   ========================================================================== */
@media (max-width: 767px) {
  .hero.hero-photo {
    min-height: 100svh;
    padding: calc(var(--jb-header-h) + env(safe-area-inset-top) + 24px) 0 28px;
    align-items: flex-end;
  }

  .hero.hero-photo .content {
    min-height: 0;
  }

  /* Mobil: celá chata z cesty ako fotka pod hlavičkou (16:9 výrez), text pod ňou na tmavom pozadí */
  .hero.hero-photo {
    padding-top: calc(var(--jb-header-h) + env(safe-area-inset-top) + 64vw + 18px);
    min-height: 0;
  }

  .hero-photo-bg {
    top: calc(var(--jb-header-h) + env(safe-area-inset-top) - 8px);
    bottom: auto;
    height: 64vw;
    object-position: 50% 58%;
    -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
  }

  .hero.hero-photo::after {
    background: none;
  }

  .hero.hero-photo .agency-name {
    margin-bottom: 10px;
  }

  .hero.hero-photo .agency-name .h5 {
    font-size: 13px;
    text-shadow: 0 1px 2px rgba(3, 17, 25, 0.9), 0 0 18px rgba(3, 17, 25, 0.9);
    letter-spacing: 0.16em;
    line-height: 1.5;
    margin: 0;
  }

  .hero.hero-photo .main-heading h1 {
    font-size: clamp(2.25rem, 10.5vw, 2.75rem);
    line-height: 1.04;
    letter-spacing: -0.02em;
  }

  .hero.hero-photo .divider {
    width: 56px;
    margin: 16px 0;
  }

  .hero-lead {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 18px;
  }

  .hero-rating {
    min-height: 44px;
    margin-bottom: 20px;
  }

  .hero-search {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
    border-radius: 20px;
    background: rgba(22, 38, 47, 0.92);
  }

  .hs-field span {
    font-size: 12px;
  }

  .hs-field input {
    min-height: 52px;
    font-size: 16px;
    padding: 12px;
  }

  .hero-search .hs-btn {
    min-height: 54px;
    font-size: 17px;
  }

  .hs-note {
    font-size: 14px;
    line-height: 1.45;
  }

  /* Apartment cards */
  .home-units .hu-grid {
    gap: 16px;
  }

  .hu-card {
    border-radius: 20px;
  }

  .hu-img {
    aspect-ratio: 3 / 2;
  }

  .hu-body {
    padding: 18px 20px 20px;
    gap: 6px;
  }

  .hu-body h3,
  .hu-wide h3 {
    font-size: 22px;
  }

  .hu-facts {
    font-size: 15px;
  }

  .hu-foot {
    padding-top: 14px;
    margin-top: 10px;
  }

  .hu-price {
    font-size: 26px;
  }

  .hu-price small {
    font-size: 14px;
  }

  .hu-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--jb-line);
    color: var(--jb-gold);
    font-size: 15px;
  }

  .hu-lead {
    font-size: 15px;
    margin: 4px 0;
  }

  .hu-all {
    margin-top: 24px;
  }

  .hu-all a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid var(--jb-line);
    border-radius: 999px;
  }

  /* Whole chalet */
  .hw-wrap {
    grid-template-columns: minmax(0, 1fr);
    border-radius: 20px;
  }

  .hw-photo img {
    min-height: 0;
    max-height: none;
    aspect-ratio: 4 / 3;
  }

  .hw-text {
    padding: 24px 20px 24px;
    gap: 12px;
  }

  .hw-eyebrow {
    font-size: 13px;
  }

  .hw-text h3 {
    font-size: 28px;
  }

  .hw-size {
    font-size: 14px;
  }

  .hw-text li {
    padding: 12px 0;
    font-size: 15px;
    display: flex;
    gap: 10px;
  }

  .hw-text li i {
    margin: 0;
  }

  .hw-actions {
    flex-direction: column;
  }

  .hw-actions .btn {
    width: 100%;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  /* About */
  .about .about-image {
    margin-bottom: 8px;
  }

  .about .about-image img {
    border-radius: 20px !important;
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }

  .about .about-image .experience-badge {
    right: 16px;
    bottom: -16px;
    left: auto;
    top: auto;
    padding: 14px 18px;
    border-radius: 16px 16px 16px 0;
  }

  .about .about-content h2 {
    font-size: 26px;
    line-height: 1.2;
    margin-top: 24px;
  }

  .about .about-content p {
    font-size: 16px;
  }

  .about .about-content .feature-item {
    padding: 20px;
    border-radius: 16px;
  }

  .about .about-content .feature-item p {
    text-align: left !important;
    font-size: 15px;
  }

  .about .about-content .btn-primary,
  .about-content .btn-primary {
    width: 100%;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
  }

  /* Why us / call to action */
  .call-to-action .container > div {
    padding: 0 !important;
  }

  .call-to-action h2,
  .call-to-action h3 {
    font-size: 26px;
    line-height: 1.2;
  }

  .call-to-action .cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .call-to-action .cta-buttons .btn {
    width: 100%;
    margin: 0 !important;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Rating panel */
  .rv-panel {
    padding: 24px 20px;
    border-radius: 20px;
    gap: 24px;
  }

  .rv-big {
    font-size: 2.2rem;
    padding: 14px 16px;
  }

  .rv-bars li {
    grid-template-columns: 92px minmax(0, 1fr) 36px;
    gap: 12px;
  }

  .rv-foot .btn-primary {
    width: 100%;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Gallery: even two-column grid instead of masonry gaps */
  .portfolio .isotope-container {
    height: auto !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0 !important;
  }

  .portfolio .isotope-container > .isotope-item {
    position: static !important;
    transform: none !important;
    left: auto !important;
    top: auto !important;
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .portfolio .isotope-container > .isotope-item:nth-child(5n + 1) {
    grid-column: 1 / -1;
  }

  .portfolio .isotope-container > .isotope-item[style*="display: none"] {
    display: none !important;
  }

  .portfolio .portfolio-entry,
  .portfolio .portfolio-entry .entry-image {
    border-radius: 14px;
    overflow: hidden;
    margin: 0 !important;
    height: 100%;
  }

  .portfolio .portfolio-entry img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
  }

  .portfolio .isotope-container > .isotope-item:nth-child(5n + 1) img {
    aspect-ratio: 3 / 2;
  }

  #gallery-show-more {
    min-height: 52px;
    padding: 0 28px;
    border-radius: 999px;
  }

  /* FAQ */
  .faq-9 .faq-title,
  .faq-9 h2,
  .faq-9 h3.faq-title {
    font-size: 28px;
    line-height: 1.2;
  }

  .faq-9 .faq-item {
    border-radius: 14px;
  }

  .faq-9 .faq-item h3 {
    font-size: 16px;
    line-height: 1.4;
    padding-right: 28px;
  }

  .faq-9 .faq-item .faq-content p {
    font-size: 15px;
  }

  /* Contact */
  .contact .info-item {
    padding: 18px 20px;
    border-radius: 16px;
    gap: 14px;
    overflow: visible;
  }

  .contact .info-item h3 {
    font-size: 17px;
    margin-bottom: 4px;
  }

  .contact .info-item p,
  .contact .info-item a {
    font-size: 15px;
    overflow-wrap: anywhere;
  }

  .contact .info-item a {
    display: flex;
    align-items: center;
    min-height: 44px;
    width: fit-content;
  }

  .contact .info-item p:has(a) {
    margin: 0;
  }

  .contact-info-box .info-content a {
    display: flex;
    align-items: center;
    min-height: 44px;
    width: fit-content;
    font-size: 16px;
  }

  .contact .contact-form-wrapper,
  .contact .php-email-form {
    padding: 24px 20px !important;
    border-radius: 20px;
  }

  .contact input,
  .contact textarea,
  .contact select {
    font-size: 16px !important;
    min-height: 50px;
  }

  .contact .form-check-input {
    min-height: 0;
    width: 22px;
    height: 22px;
  }

  .contact .btn-submit {
    width: 100%;
    min-height: 52px;
  }
}

/* ==========================================================================
   Apartments list (/izby)
   ========================================================================== */
@media (max-width: 991px) {
  .rooms-page .page-header {
    padding: calc(var(--jb-header-h) + env(safe-area-inset-top) + 32px) 0 28px;
  }

  .rooms-page .page-header h1 {
    font-size: 32px;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0;
  }

  .rooms-page #rooms.section {
    padding-top: 8px;
  }

  .rooms-page .search-form-wrapper {
    padding: 0;
    border-radius: 20px;
    position: sticky;
    top: calc(var(--jb-header-h) + env(safe-area-inset-top) + 8px);
    z-index: 20;
  }

  .rooms-page .row.mb-5 {
    margin-bottom: 20px !important;
  }

  .rooms-page #roomSearchForm {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px !important;
    padding: 12px !important;
    border-radius: 20px;
    background: rgba(22, 38, 47, 0.94);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid var(--jb-line);
    box-shadow: 0 16px 32px -20px rgba(0, 0, 0, 0.9);
  }

  .rooms-page #roomSearchForm .form-group {
    grid-column: 1 / -1;
  }

  .rooms-page #roomSearchForm .form-label {
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--jb-gold);
    margin-bottom: 6px !important;
  }

  .rooms-page #roomSearchForm .form-control {
    min-height: 52px;
    font-size: 16px;
  }

  .rooms-page #searchButton {
    grid-column: 1 / -1;
    min-height: 52px;
    border-radius: 999px;
    font-weight: 700;
    width: 100%;
  }

  .rooms-page #clearButton:not([style*="display: none"]) {
    grid-column: 1 / -1;
    min-height: 44px;
    width: 100%;
    border-radius: 999px;
  }

  .rooms-page #searchButton:has(~ #clearButton:not([style*="display: none"])) {
    grid-column: 1;
  }

  .rooms-page #clearButton:not([style*="display: none"]) {
    grid-column: 2;
    width: auto;
    min-height: 52px;
    padding: 0 18px !important;
  }

  .rooms-list .room-card-horizontal {
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px !important;
  }

  .room-image-wrapper-horizontal {
    height: auto !important;
    aspect-ratio: 3 / 2;
  }

  .room-image-horizontal {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
  }

  .room-content-horizontal {
    padding: 18px 20px 20px !important;
  }

  .room-title-horizontal {
    font-size: 22px !important;
    margin-bottom: 8px !important;
  }

  .room-description-horizontal {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 12px !important;
  }

  .rooms-list .room-amenities {
    display: none !important;
  }

  .room-footer-horizontal {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: end;
    gap: 12px;
    padding-top: 16px !important;
    border-top: 1px solid var(--jb-hair);
  }

  .room-price-horizontal {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 8px;
  }

  .room-price-horizontal .price-label {
    font-size: 13px;
    opacity: 1;
    color: var(--jb-text-soft);
  }

  .price-amount-horizontal {
    font-size: 28px !important;
    line-height: 1.1;
  }

  .room-actions-horizontal {
    grid-column: 1 / -1;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 10px;
    width: 100%;
  }

  .room-actions-horizontal .btn {
    margin: 0 !important;
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    padding: 0 12px;
    white-space: nowrap;
  }

  .room-actions-horizontal > .btn:only-child,
  .room-actions-horizontal > :only-child {
    grid-column: 1 / -1;
  }

  input::placeholder {
    text-overflow: ellipsis;
  }

  .gallery-btn {
    min-height: 40px;
    min-width: 64px;
  }
}

/* ==========================================================================
   Apartment detail
   ========================================================================== */
.room-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-bottom: 12px;
  color: var(--jb-gold);
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}

.room-back:hover {
  color: var(--jb-gold-hover);
}

.room-hero.section-title h1,
.room-hero .section-title h1 {
  display: block;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: none;
  color: #fff;
  margin: 0 0 8px;
}

.room-hero .section-title h1::after {
  display: none;
}

.room-hero .section-title div {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--jb-gold);
}

.room-hero .section-title {
  padding-bottom: 0;
}

.room-description {
  line-height: 1.7;
}

.gallery-count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(3, 17, 25, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  font: 600 14px/1.2 var(--heading-font);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

.m-bookbar {
  display: none;
}

@media (max-width: 991px) {
  .room-hero.page-header {
    padding: calc(var(--jb-header-h) + env(safe-area-inset-top) + 16px) 0 20px;
    margin: 0;
  }

  .room-hero .section-title h1 {
    font-size: 34px;
  }

  .room-hero .section-title div {
    font-size: 12px;
    line-height: 1.5;
  }

  .room-gallery {
    margin: 0 calc(-1 * max(var(--jb-gutter), env(safe-area-inset-left)));
  }

  .room-detail-page .main-image-container,
  .room-detail-page .main-image-container:hover {
    border-radius: 0;
    transform: none;
  }

  .room-detail-page .main-image-container::after {
    display: none;
  }

  .room-detail-page .main-image {
    height: auto;
    aspect-ratio: 4 / 3;
    border-radius: 0;
    box-shadow: none;
  }

  .room-detail-page .thumbnail-gallery {
    gap: 8px;
    margin-top: 10px;
    padding: 4px max(var(--jb-gutter), env(safe-area-inset-left)) 6px;
    scroll-snap-type: x proximity;
    scroll-padding: 0 var(--jb-gutter);
    scrollbar-width: none;
  }

  .room-detail-page .thumbnail-gallery::-webkit-scrollbar {
    display: none;
  }

  .room-detail-page .thumbnail-wrapper,
  .room-detail-page .thumbnail-wrapper:hover,
  .room-detail-page .thumbnail-wrapper.active {
    transform: none;
    scroll-snap-align: start;
    border-radius: 10px;
  }

  .room-detail-page .thumbnail {
    width: 72px;
    height: 54px;
    border-radius: 8px;
  }

  .room-detail-page .room-title {
    font-size: 22px;
    font-weight: 600;
    padding-top: 32px;
    padding-bottom: 12px;
  }

  .room-detail-page .room-info-section {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  /* Key facts as two compact tiles */
  .room-detail-page .properties-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .room-detail-page .property-item {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    padding: 14px 16px;
    border-radius: 14px;
  }

  .room-detail-page .property-icon {
    margin: 0;
    font-size: 22px;
    line-height: 1;
  }

  .room-detail-page .property-label {
    font-size: 15px;
    line-height: 1.3;
    color: var(--heading-color);
  }

  .room-detail-page .amenities-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .room-detail-page .amenity-item-detail {
    padding: 12px;
    font-size: 14px;
    line-height: 1.35;
    align-items: flex-start;
  }

  .room-detail-page .room-description {
    font-size: 16px;
    text-align: left;
  }

  /* Booking box */
  .room-detail-page .booking-sidebar {
    position: static;
    margin-top: 32px;
    padding: 24px 20px;
    border-radius: 22px;
    border-color: var(--jb-line);
    scroll-margin-top: calc(var(--jb-header-h) + 16px);
  }

  .room-detail-page .price-display {
    margin-bottom: 20px;
  }

  .room-detail-page .price-amount {
    font-size: 2.25rem;
  }

  .room-detail-page .booking-form .form-group {
    margin-bottom: 20px;
  }

  .room-detail-page #daterange_detail {
    min-height: 54px;
    font-size: 16px;
  }

  .room-detail-page .capacity-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .room-detail-page .capacity-badge {
    min-width: 72px;
    min-height: 60px;
  }

  .room-detail-page .capacity-badge .badge-label {
    font-size: 11px;
    letter-spacing: 0.04em;
  }

  .form-check-input[type="checkbox"] {
    width: 22px;
    height: 22px;
    margin-top: 0.1em;
  }

  .room-detail-page .cta-button .btn {
    min-height: 56px;
    font-size: 17px;
  }

  /* Sticky bottom bar */
  .m-bookbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 998;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px max(var(--jb-gutter), env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(var(--jb-gutter), env(safe-area-inset-left));
    background: rgba(3, 17, 25, 0.94);
    -webkit-backdrop-filter: saturate(140%) blur(14px);
    backdrop-filter: saturate(140%) blur(14px);
    border-top: 1px solid var(--jb-line);
    box-shadow: 0 -16px 32px -20px rgba(0, 0, 0, 0.9);
    transition: transform 0.35s var(--jb-ease), opacity 0.35s ease;
  }

  .m-bookbar.is-hidden {
    transform: translateY(110%);
    opacity: 0;
    pointer-events: none;
  }

  .m-bookbar-price {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .m-bookbar-price strong {
    font: 800 22px/1.1 var(--heading-font);
    color: var(--jb-gold);
    font-variant-numeric: tabular-nums;
  }

  .m-bookbar-price span {
    font-size: 13px;
    color: var(--jb-text-soft);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .m-bookbar-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 50px;
    padding: 0 24px;
    border-radius: 999px;
    background: var(--jb-gold);
    color: var(--jb-navy);
    font: 800 16px/1 var(--heading-font);
    text-decoration: none;
    box-shadow: 0 12px 24px -14px rgba(227, 161, 39, 0.8);
  }

  .m-bookbar-btn:hover,
  .m-bookbar-btn:focus {
    color: var(--jb-navy);
    background: var(--jb-gold-hover);
  }

  body.has-bookbar .footer {
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }

  body.has-bookbar .snowflake {
    z-index: 990;
  }
}

/* Date range picker: full width sheet on phones */
@media (max-width: 575px) {
  .daterangepicker {
    position: fixed !important;
    left: 8px !important;
    right: 8px !important;
    top: auto !important;
    bottom: calc(8px + env(safe-area-inset-bottom)) !important;
    width: auto !important;
    max-height: calc(100svh - 96px);
    overflow-y: auto;
    margin: 0 !important;
    border-radius: 20px !important;
    z-index: 10000 !important;
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.6) !important;
  }

  .daterangepicker::before,
  .daterangepicker::after {
    display: none !important;
  }

  .daterangepicker .drp-calendar {
    float: none !important;
    max-width: none !important;
    width: 100% !important;
    padding: 8px 12px !important;
  }

  .daterangepicker .drp-calendar.right {
    padding-top: 0 !important;
  }

  .daterangepicker .calendar-table table {
    width: 100%;
  }

  .daterangepicker .calendar-table th,
  .daterangepicker .calendar-table td {
    min-width: 0 !important;
    width: 14.28% !important;
    height: 42px !important;
    line-height: 40px !important;
    font-size: 15px !important;
  }

  .daterangepicker .drp-buttons {
    position: sticky;
    bottom: 0;
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px !important;
    background: inherit;
  }

  .daterangepicker .drp-selected {
    flex: 1 1 100%;
    padding: 0 0 4px !important;
    font-size: 14px !important;
  }

  .daterangepicker .drp-buttons .btn {
    min-height: 46px;
    padding: 0 20px !important;
    margin: 0 !important;
    border-radius: 999px !important;
    font-size: 15px !important;
  }
}

/* ==========================================================================
   Checkout + thank-you: slim top bar, no template "page-title" hero block
   ========================================================================== */
.checkout-page h1.page-title,
.thank-you-page h1.page-title {
  padding: 0;
  background: none;
  text-wrap: balance;
}

.checkout-page h1.page-title::after,
.thank-you-page h1.page-title::after {
  display: none;
}

.flow-top {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  max-width: 800px;
  margin: 0 auto 24px;
  padding: env(safe-area-inset-top) max(16px, env(safe-area-inset-right)) 12px max(16px, env(safe-area-inset-left));
  border-bottom: 1px solid var(--jb-hair);
}

.flow-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(224, 233, 242, 0.18);
  color: var(--heading-color);
  font-size: 20px;
  text-decoration: none;
}

.flow-back:hover {
  border-color: var(--jb-gold);
  color: var(--jb-gold);
}

.flow-logo {
  justify-self: center;
}

.flow-logo img {
  height: 56px;
  width: auto;
}

@media (max-width: 767px) {
  .checkout-page .checkout-container {
    padding-top: 8px;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }

  .checkout-page .container,
  .thank-you-page .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .checkout-page h1.page-title {
    font-size: 28px;
    line-height: 1.15;
    text-align: left;
    margin-bottom: 16px;
  }

  .checkout-page .checkout-card,
  .checkout-page .form-section {
    padding: 20px 16px;
    border-radius: 20px;
  }

  .checkout-page .room-title {
    font-size: 22px;
    padding-top: 0;
  }

  .checkout-page .form-control,
  .checkout-page .form-select,
  .checkout-page textarea {
    min-height: 52px;
    font-size: 16px;
  }

  .checkout-page .form-check-input {
    width: 22px;
    height: 22px;
    margin-top: 2px;
    flex-shrink: 0;
  }

  .checkout-page .form-check {
    display: flex;
    gap: 10px;
    padding-left: 0;
  }

  .checkout-page .form-check .form-check-input {
    margin-left: 0;
    float: none;
  }

  .checkout-page .form-check-label {
    font-size: 15px;
    line-height: 1.5;
  }

  .checkout-page .form-actions .btn,
  .checkout-page .form-actions button,
  .checkout-page .form-actions a {
    min-height: 54px;
    width: 100%;
    font-size: 16px;
  }

  .checkout-page .rate-card-body {
    padding: 16px;
  }

  .checkout-page .rate-terms {
    font-size: 14px;
    line-height: 1.5;
  }

  .thank-you-page .thank-you-container {
    padding: 16px 16px calc(24px + env(safe-area-inset-bottom));
  }

  .thank-you-page .thank-you-card {
    padding: 28px 20px;
    border-radius: 22px;
  }

  .thank-you-page h1.page-title {
    font-size: 28px;
    line-height: 1.15;
    margin: 16px 0 8px;
  }

  .thank-you-page .btn {
    min-height: 54px;
  }
}

@media (max-width: 767px) {
  .checkout-page .form-actions {
    flex-direction: column-reverse !important;
    gap: 10px !important;
  }

  .checkout-page .btn-back,
  .checkout-page .btn-continue {
    width: 100%;
    min-height: 54px;
    justify-content: center;
    font-size: 16px;
  }
}

/* Thank-you: brand mark above the confirmation card */
.ty-logo {
  display: block;
  width: 112px;
  margin: 0 auto 20px;
}

.ty-logo img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 575px) {
  .ty-logo {
    width: 92px;
    margin-top: calc(env(safe-area-inset-top) + 4px);
  }
}

.thank-you-page .thank-you-container {
  flex-direction: column;
}

/* Bez ikon vybavenia nezobrazovať prázdny riadok */
.room-amenities:not(:has(.amenity-item)) { display: none; }

/* Pokladňa: ceny a podmienky oboch sadzieb na rovnakej výške (tablet, počítač) */
@media (min-width: 577px) {
  .checkout-page .rate-plans-grid { grid-template-rows: auto auto auto auto; row-gap: 0; }
  .checkout-page .rate-card { display: grid; grid-row: span 4; grid-template-rows: subgrid; }
  .checkout-page .rate-card-body { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0.4rem; align-content: start; }
}

/* Stránka Apartmány na počítači: nadpis nemá byť natlačený pod plávajúcou hlavičkou */
@media (min-width: 992px) {
  .rooms-page .page-header { padding-top: 172px; padding-bottom: 56px; }
}

/* Malé telefóny: nadpis „Naše luxusné apartmány“ na jeden riadok, text v poli dátumu sa nereže */
@media (max-width: 430px) {
  .rooms-page .page-header h1 { font-size: 27px; }
  .rooms-page .search-form input,
  .rooms-page [id*=daterange] { text-overflow: ellipsis; }
}

/* Tablet: keď je dole lišta Rezervovať, tlačidlo „hore“ sa s ňou nesmie prekrývať */
body.has-bookbar .scroll-top { display: none !important; }

/* Počítač a iPad na šírku: text v úvode leží na svetlom kameni – jemné stmavenie zľava pre čitateľnosť */
@media (min-width: 992px) {
  .hero.hero-photo::after {
    background:
      linear-gradient(90deg, rgba(3, 17, 25, .72) 0%, rgba(3, 17, 25, .45) 38%, rgba(3, 17, 25, 0) 62%),
      linear-gradient(180deg, rgba(3, 17, 25, .78) 0%, rgba(3, 17, 25, .12) 26%, rgba(3, 17, 25, .18) 50%, rgba(3, 17, 25, .94) 100%);
  }
}

/* ==========================================================================
   Pätička v2: menu + informácie, kontakty s ikonami, spodný riadok s firmou
   ========================================================================== */
.footer .footer-about p {
  max-width: 44ch;
  color: var(--jb-text-soft);
}

.footer .footer-links h4,
.footer .footer-contact h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--jb-gold);
  padding-bottom: 0;
  margin-bottom: 16px;
}

.footer .footer-links ul li {
  padding: 6px 0;
}

.footer .footer-links ul a {
  line-height: 1.35;
}

.footer-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-contact-list li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  column-gap: 10px;
  align-items: start;
  line-height: 1.45;
  color: var(--jb-text);
}

.footer-contact-list i {
  color: var(--jb-gold);
  font-size: 15px;
  line-height: 1.45;
}

.footer .footer-contact-list a {
  color: var(--jb-text);
  overflow-wrap: anywhere;
}

.footer .footer-contact-list a:hover {
  color: var(--jb-gold);
}

.footer .footer-bottom {
  margin-top: 40px;
  border-top: 1px solid var(--jb-hair);
}

.footer .footer-legal-line {
  margin: 0;
  padding: 18px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 10px;
  font-size: 13px;
  color: var(--jb-text-soft);
}

.footer .footer-sep {
  opacity: 0.5;
}

@media (max-width: 767px) {
  .footer .footer-top {
    padding-top: 40px;
  }

  .footer .footer-links {
    margin-bottom: 0;
  }

  .footer .footer-links ul li {
    padding: 0;
  }

  .footer .footer-contact {
    padding-top: 20px;
  }

  .footer-contact-list {
    gap: 4px;
  }

  .footer .footer-contact-list a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
  }

  .footer-contact-list li {
    align-items: center;
  }

  .footer-contact-list li:first-child {
    align-items: start;
    padding-bottom: 6px;
  }

  .footer .footer-bottom {
    margin-top: 28px;
  }

  .footer .footer-legal-line {
    flex-direction: column;
    gap: 2px;
  }

  .footer .footer-sep {
    display: none;
  }
}

.footer-address {
  margin: 0;
  font-style: normal;
}

.footer-address span {
  display: block;
}
