﻿/* ==========================================================================
   Vrind Homestay — Responsive
   ========================================================================== */

@media (max-width: 1100px) {
  .feature-grid,
  .amenities-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-slider {
    --testimonials-per-view: 2;
    --testimonials-gap: 1rem;
    padding: 0 2.5rem 2.5rem;
  }

  .rooms-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.15rem;
  }

  .rooms-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 860px;
  }

  .rooms-grid:not(.rooms-grid-2) .room-card:last-child {
    grid-column: 1 / -1;
    max-width: 420px;
    justify-self: center;
    width: 100%;
  }

  .rooms-script {
    position: static;
    transform: none;
    margin: 0.65rem 0 0;
    display: block;
  }

  .section-rooms {
    padding: clamp(3.25rem, 7vw, 5rem) 0;
  }

  .rooms-bg {
    background-position: center top;
    background-size: cover;
  }

  .rooms-container {
    width: min(100% - 2rem, 1180px);
  }

  .rooms-header {
    margin-bottom: 2rem;
  }

  .room-amenity-grid {
    gap: 0.45rem 0.5rem;
    padding: 0.75rem;
  }

  .gallery-grid,
  .gallery-grid--preview {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .footer-brand {
    max-width: none;
  }

  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .auto-slide-media {
    aspect-ratio: 4 / 3;
  }

  .auto-slider-btn {
    width: 40px;
    height: 40px;
  }

  .auto-slider-prev { left: 0.55rem; }
  .auto-slider-next { right: 0.55rem; }

  .auto-slide-caption {
    padding: 1.25rem 1rem 2.4rem;
  }

  .auto-slider-dots {
    bottom: 0.65rem;
  }

  .rooms-grid,
  .rooms-grid-2 {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    max-width: 520px;
    margin-inline: auto;
  }

  .rooms-grid .room-card:last-child,
  .rooms-grid-2 .room-card:last-child {
    grid-column: auto;
    max-width: none;
  }

  .room-card-media {
    aspect-ratio: 16 / 10;
  }

  .ig-carousel {
    margin: 0.5rem 0 1.25rem;
  }
}

@media (max-width: 1100px) {
  .nav-link {
    padding: 0.42rem 0.7rem;
    font-size: 0.76rem;
    letter-spacing: 0.06em;
  }

  .btn-wa-header {
    font-size: 0.74rem;
    padding: 0.38rem 0.85rem 0.38rem 0.38rem;
  }
}

@media (max-width: 980px) {
  :root {
    --marquee-h: 32px;
    --header-main-h: 68px;
    --header-h: calc(var(--marquee-h) + var(--header-main-h));
  }

  .header-inner {
    justify-content: space-between;
    gap: 0.75rem;
  }

  .has-transparent-header .site-header:not(.is-scrolled) {
    background: #FDFCEA;
    border-bottom-color: rgba(27, 67, 50, 0.12);
  }

  .brand-logo {
    height: 56px;
    max-width: min(230px, 62vw);
    padding: 0;
  }

  .btn-header-cta {
    display: none;
  }

  .header-call {
    display: inline-flex;
    width: 42px;
    height: 42px;
    min-height: 42px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
  }

  .header-call-text {
    display: none;
  }

  .header-call-icon {
    width: 100%;
    height: 100%;
    background: transparent;
    color: var(--forest);
  }

  .header-call-icon svg {
    width: 18px;
    height: 18px;
  }

  .site-marquee-item {
    font-size: 0.7rem;
  }

  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(92vw, 360px);
    max-width: 100%;
    height: 100vh;
    height: 100dvh;
    background:
      radial-gradient(ellipse 80% 40% at 100% 0%, rgba(192, 130, 24, 0.1), transparent 55%),
      linear-gradient(180deg, #FDFCEA 0%, #F7F4EC 100%);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    flex: none;
    padding: 1.35rem 1.2rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
    gap: 1rem;
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.35s var(--ease), visibility 0s linear 0.35s;
    z-index: 980;
    box-shadow: -18px 0 48px rgba(15, 42, 36, 0.18);
    overflow-x: hidden;
    overflow-y: auto;
    border-left: 1px solid rgba(27, 67, 50, 0.1);
    -webkit-overflow-scrolling: touch;
  }

  .main-nav.is-open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
    transition: transform 0.35s var(--ease), visibility 0s linear 0s;
  }

  .nav-drawer-head {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.85rem 2.5rem 1.15rem;
    border-bottom: 1px solid rgba(27, 67, 50, 0.1);
    margin-bottom: 0.15rem;
    background: transparent;
  }

  .nav-drawer-close {
    position: absolute;
    top: 0.35rem;
    right: 0.15rem;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(27, 67, 50, 0.16);
    border-radius: 10px;
    background: rgba(27, 67, 50, 0.04);
    color: var(--forest-deep);
    font-size: 1.55rem;
    line-height: 1;
    display: grid;
    place-items: center;
    cursor: pointer;
    padding: 0;
  }

  .nav-drawer-close:hover,
  .nav-drawer-close:focus-visible {
    background: rgba(27, 67, 50, 0.1);
    outline: none;
  }

  .nav-drawer-brand {
    display: inline-flex;
    justify-content: center;
    max-width: 100%;
  }

  .nav-drawer-logo {
    height: auto;
    width: min(240px, 78%);
    max-width: 260px;
    object-fit: contain;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    display: block;
    margin: 0 auto;
  }

  .nav-drawer-place {
    margin: 0.55rem 0 0;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--muted);
  }

  .nav-drawer-tag {
    display: none;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    flex: 1;
    padding: 0.25rem 0;
  }

  .nav-link {
    padding: 0.9rem 0.9rem;
    font-size: 1.02rem;
    font-weight: 550;
    border-radius: 12px;
    text-transform: none;
    letter-spacing: 0.01em;
    color: var(--forest-deep);
    background: transparent;
  }

  .nav-link.is-active {
    color: #fff;
    background: var(--forest);
    box-shadow: 0 8px 20px rgba(15, 42, 36, 0.18);
  }

  .nav-link:hover:not(.is-active),
  .nav-link:focus-visible:not(.is-active) {
    background: rgba(27, 67, 50, 0.07);
    color: var(--forest-deep);
  }

  .nav-link::after {
    display: none;
  }

  .nav-drawer-cta {
    display: flex !important;
    flex-direction: column;
    gap: 0.7rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(27, 67, 50, 0.1);
  }

  .nav-drawer-cta .header-book,
  .nav-drawer-cta .header-login,
  .nav-drawer-cta .header-register {
    display: inline-flex;
    width: 100%;
    min-height: 48px;
    justify-content: center;
  }

  .btn-nav-cta,
  .btn-nav-call {
    display: inline-flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    min-height: 48px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 650;
  }

  .btn-nav-call {
    border: 1.5px solid rgba(27, 67, 50, 0.22);
    background: #fff;
    color: var(--forest-deep);
    font-size: 0.92rem;
    padding: 0.7rem 1rem;
    transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
  }

  .btn-nav-call:hover,
  .btn-nav-call:focus-visible {
    background: rgba(27, 67, 50, 0.05);
    border-color: var(--forest);
    transform: translateY(-1px);
  }

  .btn-nav-call-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    background: var(--forest);
    color: #fff;
    flex-shrink: 0;
  }

  .btn-nav-call-icon svg {
    width: 14px;
    height: 14px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
  }

  .about-layout,
  .experience-layout,
  .location-grid,
  .about-split,
  .room-detail-layout {
    grid-template-columns: 1fr;
  }

  .experience-features {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .experience-visual {
    order: -1;
  }

  .experience-showcase {
    max-width: 480px;
    margin-inline: auto;
    min-height: 380px;
  }

  .about-visual-frame {
    aspect-ratio: 16 / 11;
    max-height: 460px;
  }

  .about-content {
    max-width: none;
  }

  .about-kicker {
    justify-content: flex-start;
  }

  .room-aside-card {
    position: static;
  }

  .footer-map {
    aspect-ratio: 16 / 10;
  }

  .footer-map-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.5rem;
  }

  .about-split-media {
    aspect-ratio: 16 / 11;
    max-height: 420px;
  }

  .hero-content {
    margin-left: auto;
    margin-right: auto;
    max-width: none;
  }

  .lightbox-prev {
    left: 0.5rem;
  }

  .lightbox-next {
    right: 0.5rem;
  }

  .lightbox-close {
    top: 0.5rem;
    right: 0.5rem;
  }
}

@media (max-width: 720px) {
  .container,
  .container-wide {
    width: min(100% - 1.5rem, var(--container));
  }

  .hero {
    min-height: 92vh;
    min-height: 92dvh;
  }

  .hero-media video,
  .hero-media img {
    object-position: center 35%;
  }

  .hero-video {
    object-position: center 35%;
  }

  .room-gallery-thumbs {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.45rem;
  }

  .footer-map {
    aspect-ratio: 4 / 3;
    min-height: 220px;
  }

  .hero-content {
    padding: calc(var(--header-h) + 1.25rem) 0 4rem;
  }

  .hero-overlay,
  .hero-has-video.is-video-ready .hero-overlay {
    background:
      linear-gradient(180deg, rgba(10, 28, 24, 0.32) 0%, rgba(10, 28, 24, 0.28) 42%, rgba(10, 28, 24, 0.5) 100%);
  }

  .hero-title {
    max-width: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .scroll-indicator {
    display: none;
  }

  .feature-grid,
  .amenities-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-slider {
    --testimonials-per-view: 1;
    --testimonials-gap: 0.9rem;
    padding: 0 2.4rem 2.5rem;
  }

  .testimonial-slide-card {
    min-height: 260px;
    padding: 1.35rem 1.15rem 1.2rem;
  }

  .testimonials-prev { left: 0.15rem; }
  .testimonials-next { right: 0.15rem; }

  .testimonials-nav {
    width: 40px;
    height: 40px;
  }

  .section-rooms {
    padding: 3rem 0 3.5rem;
  }

  .rooms-bg {
    background-position: center top;
    background-size: cover;
  }

  .rooms-bg::after {
    background: linear-gradient(
      180deg,
      rgba(244, 239, 230, 0.35) 0%,
      rgba(244, 239, 230, 0.55) 45%,
      rgba(244, 239, 230, 0.7) 100%
    );
  }

  .rooms-container {
    width: min(100% - 1.25rem, 1180px);
  }

  .rooms-header {
    margin-bottom: 1.5rem;
    padding: 0 0.15rem;
  }

  .rooms-kicker {
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    gap: 0.55rem;
    flex-wrap: wrap;
  }

  .rooms-kicker-line {
    width: 22px;
  }

  .rooms-heading {
    font-size: clamp(1.65rem, 7vw, 2.05rem);
    line-height: 1.25;
  }

  .rooms-heading em {
    display: block;
  }

  .rooms-lead {
    font-size: 0.92rem;
    line-height: 1.6;
    max-width: none;
  }

  .rooms-grid {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }

  .rooms-grid .room-card:last-child {
    grid-column: auto;
    max-width: none;
  }

  .room-card-premium {
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(23, 61, 53, 0.1);
  }

  .room-card-media {
    aspect-ratio: 16 / 10;
  }

  .room-badge {
    top: 0.7rem;
    left: 0.7rem;
    font-size: 0.68rem;
    padding: 0.35rem 0.65rem;
  }

  .room-card-body {
    padding: 1.15rem 1.05rem 1.2rem;
  }

  .room-card-body h3 {
    font-size: 1.35rem;
  }

  .room-card-body > p {
    font-size: 0.88rem;
    -webkit-line-clamp: 2;
    margin-bottom: 0.75rem;
  }

  .room-amenity-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 0.55rem;
    padding: 0.75rem;
    margin-bottom: 1rem;
  }

  .room-amenity-grid li {
    font-size: 0.72rem;
    gap: 0.35rem;
  }

  .room-amenity-icon,
  .room-amenity-icon svg {
    width: 16px;
    height: 16px;
  }

  .room-card-actions {
    flex-direction: column;
    gap: 0.5rem;
  }

  .btn-room-primary,
  .btn-room-secondary {
    width: 100%;
    min-height: 46px;
    font-size: 0.84rem;
    padding: 0.75rem 1rem;
  }

  .rooms-footer-cta {
    margin-top: 1.75rem;
  }

  .btn-room-all {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  .gallery-grid,
  .gallery-grid--preview {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }

  .gallery-item {
    aspect-ratio: 4 / 3;
    border-radius: 10px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    padding: 2.75rem 0 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .footer-cta-row {
    flex-direction: column;
  }

  .footer-cta-row .btn {
    width: 100%;
    justify-content: center;
  }

  .footer-map {
    aspect-ratio: 4 / 3;
    min-height: 220px;
    border-radius: 12px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 0.35rem;
  }

  .header-call,
  .nav-toggle {
    width: 40px;
    height: 40px;
    min-height: 40px;
  }

  .floating-wa {
    right: 1rem;
    bottom: 1rem;
    padding: 0.85rem;
  }

  .floating-wa-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .floating-wa-icon {
    width: 28px;
    height: 28px;
  }

  .cta-banner-actions {
    flex-direction: column;
  }

  .cta-banner-actions .btn {
    width: 100%;
  }

  .page-hero {
    min-height: 42vh;
  }

  .about-stats {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    padding: 1rem 0;
  }

  .about-stat {
    padding: 0.35rem 0;
  }

  .about-stat + .about-stat {
    border-left: 0;
    border-top: 1px solid rgba(197, 164, 109, 0.35);
    padding-top: 0.85rem;
  }

  .experience-features {
    grid-template-columns: 1fr 1fr;
  }

  .experience-showcase {
    max-width: 360px;
    min-height: 340px;
    aspect-ratio: 0.88 / 1;
  }

  .experience-shot--main {
    width: 78%;
    height: 74%;
  }

  .experience-shot--side {
    width: 52%;
    height: 38%;
  }

  .experience-shot--accent {
    width: 30%;
  }

  .btn-experience {
    width: 100%;
  }

  .about-logo-badge {
    top: 0.85rem;
    left: 0.85rem;
    max-width: min(58%, 170px);
    padding: 0.65rem 0.75rem 0.55rem;
  }

  .about-logo-img {
    max-height: 44px;
  }

  .about-visual-frame {
    border-radius: 20px;
    aspect-ratio: 5 / 4;
    max-height: none;
  }

  .btn-about-cta {
    width: 100%;
  }
}

@media (max-width: 380px) {
  :root {
    --header-main-h: 62px;
    --header-h: calc(var(--marquee-h) + var(--header-main-h));
  }

  .brand-logo {
    height: 42px;
  }

  .section {
    padding: 3rem 0;
  }
}

/* Large desktop polish */
@media (min-width: 1440px) {
  :root {
    --container: 1200px;
  }
}
