/* =========================================
   LARGE DESKTOP
========================================= */

@media (min-width: 1440px) {
  :root {
    --fs-logo: 22px;
    --fs-body: 17px;
    --fs-body-sm: 16px;
    --fs-body-lg: 20px;
    --fs-label: 15px;
    --fs-h1-hero: 74px;
    --fs-h1-page: 72px;
    --fs-h2-section: 44px;
    --fs-h3-card: 30px;
  }

  .container {
    max-width: 1360px;
    padding-left: 28px;
    padding-right: 28px;
  }

  header .container {
    height: 74px;
  }

  .hero-slider {
    min-height: 86vh;
  }

  .hero-content {
    max-width: 820px;
  }

  .intro,
  .info-intro {
    max-width: 980px;
  }

  .apartments-preview,
  .why,
  .location,
  .reviews,
  .availability,
  .features,
  .guides,
  .map,
  .info-section {
    max-width: 1240px;
  }

  .apartment {
    max-width: 1320px;
  }

  .booking {
    max-width: 980px;
  }

  .apartments-grid,
  .why-grid,
  .reviews-grid,
  .features-grid,
  .guides-grid,
  .amenities-grid,
  .quick-info {
    gap: 30px;
  }

  .gallery {
    gap: 28px;
  }

  .gallery img,
  .gallery-grid img {
    height: 300px;
  }

  .apartment-card img {
    height: 300px;
  }

  .map-container iframe {
    height: 420px;
  }
}

/* =========================================
   LARGE TABLET / SMALL LAPTOP
========================================= */

@media (max-width: 1180px) {
  :root {
    --fs-logo: 19px;
    --fs-body: 16px;
    --fs-body-sm: 15px;
    --fs-body-lg: 18px;
    --fs-label: 14px;
    --fs-h1-hero: 56px;
    --fs-h1-page: 56px;
    --fs-h2-section: 36px;
    --fs-h3-card: 26px;
  }

  .container {
    padding: 18px 24px;
  }

  header .container {
    height: 72px;
  }

  nav a {
    margin-left: 18px;
    font-size: 14px;
  }

  .hero-content {
    max-width: 620px;
  }

  .apartments-preview,
  .why,
  .location,
  .reviews,
  .features,
  .guides,
  .map,
  .booking,
  .info-section,
  .info-intro,
  .apartment {
    width: auto;
    margin-left: 24px;
    margin-right: 24px;
  }

  .apartments-grid,
  .reviews-grid,
  .info-grid {
    gap: 24px;
  }

  .why-grid {
    gap: 22px;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .gallery img,
  .gallery-grid img {
    height: 240px;
  }

  .amenities-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .guides-grid {
    gap: 24px;
  }

  .guide-card {
    padding: 24px;
  }

  .map-container iframe {
    height: 360px;
  }

  .booking {
    width: min(100%, 900px);
    margin-left: auto;
    margin-right: auto;
  }
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 1024px) {
  :root {
    --fs-logo: 20px;
    --fs-body: 17px;
    --fs-body-sm: 16px;
    --fs-body-lg: 18px;
    --fs-label: 15px;
    --fs-h1-hero: 52px;
    --fs-h1-page: 52px;
    --fs-h2-section: 40px;
    --fs-h3-card: 28px;
  }

  .header,
  .container,
  .hero-content,
  .hero-buttons,
  .apartments-grid,
  .why-grid,
  .reviews-grid,
  .amenities-grid,
  .info-grid,
  .features-grid,
  .guides-grid,
  .booking-buttons,
  .map-info {
    min-width: 0;
  }

  .why-grid > *,
  .reviews-grid > *,
  .amenities-grid > *,
  .info-grid > *,
  .features-grid > *,
  .guides-grid > *,
  .booking-buttons > *,
  .hero-buttons > * {
    min-width: 0;
  }

  .hero-slider {
    height: 68vh;
  }

  .language-switch {
    display: none;
  }

  .hero-slider p,
  .hero-apartment p {
    font-size: var(--fs-body-lg);
  }

  p,
  li,
  .trust-item,
  .amenity,
  .info-card,
  .faq-item p,
  .features-grid div,
  .guide-card,
  .map-item,
  .booking p,
  .apartment-info p,
  .mobile-menu a {
    font-size: var(--fs-body);
    line-height: var(--lh-body);
  }

  .trust-item,
  .map-item,
  .faq-item h3,
  .faq-item p,
  .guide-card h3,
  .features-grid div,
  .info-card,
  .review-card,
  .apartment-info,
  .why-grid div {
    overflow-wrap: anywhere;
  }

  .hero-buttons {
    gap: 14px;
  }

  .hero-buttons .btn,
  .booking-buttons .btn {
    min-width: 200px;
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .amenities-grid,
  .info-grid,
  .quick-info {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .direct-booking-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stay-times-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery.has-tablet-preview img:nth-child(n + 5) {
    display: none;
  }

  .why-grid > :last-child:nth-child(odd),
  .reviews-grid > :last-child:nth-child(odd),
  .info-grid > :last-child:nth-child(odd),
  .direct-booking-grid > :last-child:nth-child(odd),
  .stay-times-grid > :last-child:nth-child(odd),
  .booking-buttons > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(100%, 420px);
  }

  .info-card {
    max-width: none;
    width: 100%;
  }

  .booking {
    padding: 36px 28px;
  }

  .booking h2 {
    font-size: calc(var(--fs-h2-section) + 2px);
  }

  .booking p {
    font-size: var(--fs-body-lg);
  }

  .booking-buttons .btn {
    padding: 16px 28px;
    min-height: 60px;
    font-size: var(--fs-body);
  }

  .booking-buttons .btn i {
    font-size: 22px;
    margin-right: 10px;
    vertical-align: middle;
  }

  .hero-kicker {
    padding: 7px 12px;
  }

  .map-box {
    padding: 20px;
  }

  .map-info {
    gap: 20px;
  }
}

/* =========================================
   SMALL TABLET
========================================= */

@media (max-width: 1024px) {
  .desktop-sticky-cta {
    display: none;
  }

  nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex !important;
  }

  .mobile-menu {
    display: flex !important;
  }

  .container {
    padding: 16px 20px;
  }

  header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  }

  section {
    padding: 36px 0;
  }

  .hero-slider {
    height: 62vh;
  }

  .hero-content {
    max-width: 560px;
    padding: 28px 24px 24px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(18, 18, 18, 0.24) 0%, rgba(18, 18, 18, 0.12) 100%);
    box-shadow: 0 22px 40px rgba(0, 0, 0, 0.14);
    backdrop-filter: blur(8px);
  }

  .hero-content p {
    display: block;
  }

  .hero-kicker {
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.16);
  }

  .intro,
  .apartments-preview,
  .why,
  .location,
  .reviews,
  .features,
  .guides,
  .map,
  .booking,
  .info-section,
  .info-intro {
    margin-top: 56px;
    margin-bottom: 56px;
  }

  .apartments-grid {
    gap: 22px;
  }

  .apartment-card {
    border-radius: 22px;
  }

  .apartment-card img {
    height: 250px;
  }

  .apartment-info {
    padding: 24px 22px 26px;
  }

  .apartment-tag {
    padding: 6px 11px;
  }

  .review-card {
    padding: 30px 24px 24px;
    border-radius: 20px;
  }

  .review-card::before {
    top: 16px;
    left: 18px;
    font-size: 30px;
  }

  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .trust-container {
    max-width: 980px;
    gap: 18px;
  }

  .trust-item {
    min-height: 76px;
    padding: 16px 18px;
    border-radius: 20px;
  }

  .trust-item i {
    width: 36px;
    height: 36px;
  }

  .why-grid div,
  .features-grid div,
  .guide-card,
  .info-card,
  .direct-booking-card,
  .stay-times-card,
  .map-box {
    border-radius: 22px;
  }

  .amenity,
  .quick-info-item {
    border-radius: 18px;
    min-height: 82px;
  }

  .apartment-anchors {
    top: 84px;
    width: calc(100% - 40px);
    max-width: calc(100% - 40px);
    padding: 12px 16px;
    gap: 10px;
  }

  .apartment-anchors a {
    min-height: 44px;
    padding: 10px 15px;
    font-size: 14px;
  }

  .guides-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .guide-card {
    max-width: 420px;
    margin: 0 auto;
  }

  .guide-card img {
    width: min(100%, 210px);
  }

  .booking-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .gallery-mobile-actions {
    display: flex;
  }

  .amenities-grid.has-mobile-preview:not(.is-expanded) .amenity:nth-child(n + 9) {
    display: none;
  }

  .mobile-menu {
    padding-top: 104px;
  }

  .mobile-menu::before {
    font-size: 26px;
  }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {
  .location {
    display: none;
  }

  .direct-booking {
    display: none;
  }

  header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .hero-slider,
  .trust,
  .intro,
  .apartments-preview,
  .why,
  .reviews,
  .booking,
  .hero-apartment {
    animation: none;
  }

  .apartment-anchors {
    top: 73px;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    width: calc(100% - 24px);
    max-width: calc(100% - 24px);
    padding: 10px 12px;
    gap: 8px;
    scrollbar-width: none;
    background: rgba(255, 251, 244, 0.96);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .apartment-anchors::-webkit-scrollbar {
    display: none;
  }

  .apartment-anchors a {
    flex: 0 0 auto;
    white-space: nowrap;
    min-height: 36px;
    padding: 8px 11px;
    font-size: 12px;
  }

  .cookie-banner {
    left: 14px;
    right: 14px;
    bottom: 14px;
    flex-direction: column;
    align-items: flex-start;
    width: auto;
    transform: translateY(18px);
  }

  .cookie-banner.active {
    transform: translateY(0);
  }

  .cookie-banner-actions {
    width: 100%;
  }

  .cookie-btn {
    flex: 1;
  }

  .footer-inner {
    justify-content: center;
    text-align: center;
  }

  :root {
    --fs-logo: 18px;
    --fs-body: 16px;
    --fs-body-sm: 15px;
    --fs-body-lg: 17px;
    --fs-label: 14px;
    --fs-h1-hero: 46px;
    --fs-h1-page: 42px;
    --fs-h2-section: 32px;
    --fs-h3-card: 24px;
  }

  .hero-slider {
    height: auto;
    min-height: clamp(420px, 58svh, 560px);
    min-height: clamp(420px, 58dvh, 560px);
    padding: 0 20px;
    align-items: center;
  }

  .hero-slider::before {
    background: rgba(0, 0, 0, 0.42);
  }

  .hero-slider h1 {
    line-height: 1.15;
    margin-bottom: 14px;
  }

  .hero-apartment {
    min-height: clamp(360px, 58svh, 500px);
    min-height: clamp(360px, 58dvh, 500px);
    padding: 104px 20px 32px;
    animation: none;
    background-attachment: scroll;
  }

  .hero-apartment h1 {
    line-height: 1.15;
  }

  .hero-content p {
    display: none;
  }

  .hero-content {
    width: min(100%, 360px);
    max-width: 360px;
    margin: 0 auto;
    padding: 22px 18px 26px;
    border-radius: 26px;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transform: translateY(-18px);
  }

  .trust {
    padding-top: 24px;
    padding-bottom: 4px;
  }

  .hero-kicker {
    margin-bottom: 12px;
    padding: 6px 11px;
    background: rgba(255, 255, 255, 0.16);
  }

  .intro {
    margin-top: 48px;
    margin-bottom: 56px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .intro p {
    max-width: 100%;
    padding: 0 4px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
  }

  .hero-buttons .btn,
  .booking-buttons .btn {
    width: 100%;
    max-width: none;
  }

  .hero-buttons .btn {
    min-height: 60px;
  }

  .booking-buttons .btn {
    min-height: 54px;
  }

  .booking .booking-buttons .btn {
    min-height: 48px;
    height: 100%;
    padding-top: 12px;
    padding-bottom: 12px;
    font-size: 15px;
  }

  .booking .booking-buttons .btn i {
    font-size: 18px;
    margin-right: 8px;
  }

  .booking .booking-buttons .booking-unavailable {
    font-size: 13px;
    white-space: nowrap;
  }

  .booking-buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    grid-auto-rows: 1fr;
  }

  .booking .booking-buttons {
    gap: 10px;
  }

  .apartments-grid,
  .gallery,
  .gallery-grid,
  .why-grid,
  .info-grid,
  .guides-grid,
  .reviews-grid,
  .quick-info,
  .direct-booking-grid,
  .stay-times-grid {
    grid-template-columns: 1fr;
  }

  .amenities-grid,
  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .apartments-grid,
  .why-grid,
  .reviews-grid {
    gap: 18px;
  }

  .apartments-preview,
  .why,
  .reviews,
  .booking {
    margin-top: 52px;
    margin-bottom: 52px;
  }

  .apartment-card,
  .why-grid > div,
  .reviews-grid > .review-card,
  .direct-booking-card,
  .guide-card,
  .info-grid > .info-card,
  .stay-times-card {
    width: 100%;
    max-width: none;
    margin: 0 auto;
  }

  .apartment-card {
    border-radius: 22px;
  }

  .apartment-card img {
    height: 230px;
  }

  .apartment-info {
    padding: 22px 20px 24px;
  }

  .apartment-tag {
    margin-bottom: 10px;
    padding: 6px 11px;
  }

  .why-grid > :last-child:nth-child(odd),
  .reviews-grid > :last-child:nth-child(odd),
  .info-grid > :last-child:nth-child(odd),
  .direct-booking-grid > :last-child:nth-child(odd),
  .stay-times-grid > :last-child:nth-child(odd) {
    width: 100%;
    max-width: none;
    margin: 0 auto;
  }

  .gallery img,
  .gallery-grid img,
  .apartment-card img {
    height: 220px;
  }

  .gallery.has-mobile-preview img:nth-child(n + 4) {
    display: none;
  }

  .amenities-grid.has-mobile-preview:not(.is-expanded) .amenity:nth-child(n + 7) {
    display: none;
  }

  .gallery-mobile-actions {
    display: flex;
  }

  .availability {
    margin-top: 44px;
    margin-bottom: 44px;
  }

  .availability p {
    margin-top: 8px;
    margin-bottom: 0;
    font-size: var(--fs-body-sm);
  }

  .availability-legend {
    gap: 12px;
    margin: 16px 0 20px;
  }

  .availability-legend span {
    gap: 6px;
    font-size: 13px;
  }

  .availability-dot {
    width: 10px;
    height: 10px;
  }

  .availability-month {
    padding: 16px 12px;
    border-radius: 16px;
  }

  .availability-header {
    grid-template-columns: 38px 1fr 38px;
    gap: 8px;
    margin-bottom: 14px;
  }

  .availability-nav {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }

  .availability-weekdays,
  .availability-grid {
    gap: 6px;
  }

  .availability-weekdays {
    margin-bottom: 8px;
    font-size: 12px;
  }

  .availability-day {
    min-height: 34px;
    border-radius: 10px;
    font-size: 13px;
  }

  .booking-buttons:has(> :nth-child(4)) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .booking-buttons:not(:has(> :nth-child(4))) {
    grid-template-columns: 1fr;
  }

  .booking-buttons > :last-child:nth-child(odd) {
    grid-column: auto;
    justify-self: stretch;
    width: 100%;
    max-width: none;
  }

  .trust-container {
    grid-template-columns: 1fr;
    justify-content: center;
    gap: 12px;
  }

  .trust-item {
    width: 100%;
    max-width: 320px;
    min-height: 64px;
    padding: 12px 14px;
    margin: 0 auto;
  }

  .trust-item i {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }

  .booking {
    padding: 28px 20px;
    margin-bottom: 0;
  }

  .reviews-grid {
    margin-top: 24px;
  }

  .review-card {
    padding: 34px 20px 24px;
    border-radius: 18px;
  }

  .review-card::before {
    top: 12px;
    left: 18px;
    font-size: 28px;
  }

  .map p,
  .guides p {
    display: none;
  }

  .map-container iframe {
    height: 300px;
  }

  .map-cta {
    width: 100%;
  }

  .direct-booking {
    margin-top: 70px;
  }

  .mobile-sticky-cta {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: 14px;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 10px;
    padding: 10px;
    background: rgba(255, 252, 247, 0.9);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(200, 164, 92, 0.16);
    border-radius: 22px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    z-index: 1900;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  }

  .mobile-sticky-cta:not(:has(.mobile-sticky-secondary)) {
    grid-template-columns: 1fr;
  }

  .gallery-lightbox {
    padding: 16px;
  }

  .gallery-lightbox-nav {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
  }

  .gallery-lightbox-prev {
    left: 12px;
  }

  .gallery-lightbox-next {
    right: 12px;
  }

  .gallery-lightbox-close {
    top: 12px;
    right: 12px;
  }
}

/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 480px) {
  :root {
    --fs-logo: 17px;
    --fs-body: 15px;
    --fs-body-sm: 15px;
    --fs-body-lg: 16px;
    --fs-label: 13px;
    --fs-h1-hero: 40px;
    --fs-h1-page: 36px;
    --fs-h2-section: 28px;
    --fs-h3-card: 22px;
  }

  .container {
    padding: 14px 16px;
  }

  header {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
  }

  .hero-buttons .btn,
  .booking-buttons .btn {
    min-width: 0;
  }

  .booking .booking-buttons {
    width: 100%;
    max-width: 100%;
    gap: 10px;
  }

  .booking .booking-buttons .btn {
    min-height: 44px;
    padding: 11px 12px;
    font-size: 14px;
  }

  .booking .booking-buttons .btn i {
    font-size: 17px;
    margin-right: 7px;
  }

  .hero-kicker {
    font-size: 12px;
    letter-spacing: 0.05em;
  }

  .gallery img,
  .gallery-grid img,
  .apartment-card img {
    height: 200px;
  }

  .mobile-sticky-cta {
    grid-template-columns: 1fr;
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 9px;
  }

  .apartment-card,
  .why-grid > div,
  .reviews-grid > .review-card,
  .info-grid > .info-card,
  .direct-booking-card,
  .guide-card,
  .stay-times-card {
    max-width: 100%;
  }

  .why-grid > :last-child:nth-child(odd),
  .reviews-grid > :last-child:nth-child(odd),
  .info-grid > :last-child:nth-child(odd),
  .direct-booking-grid > :last-child:nth-child(odd),
  .stay-times-grid > :last-child:nth-child(odd) {
    max-width: 100%;
    width: 100%;
  }

  .map-container iframe {
    height: 260px;
  }
}
