/**
 * Responsive CSS — Mobile-first with proper media queries
 *
 * @package Hotel74
 */

/* ══════════════════════════════════
   Mobile (max-width: 767px)
   ══════════════════════════════════ */
@media (max-width: 767px) {
    /* Grids stack */
    .grid--2,
    .grid--3,
    .grid--4 {
        grid-template-columns: 1fr;
    }

    .footer-grid,
    .room-detail,
    .welcome-grid,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .room-detail__sidebar {
        position: static;
    }

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

    /* Hero — stack vertically on mobile */
    .hero {
        min-height: auto;
        flex-direction: column;
    }

    .hero-content {
        padding: 160px var(--space-md) var(--space-xl);
        max-width: 100%;
        text-align: center;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-eyebrow {
        font-size: 0.6875rem;
    }

    .hero-subtitle {
        font-size: 0.9375rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-content .btn-primary,
    .hero-content .btn-ghost {
        width: 100%;
        max-width: 280px;
    }

    .hero-scroll {
        display: none;
    }

    /* Booking bar — full width below hero image */
    .booking-bar {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        width: 100%;
        padding: 0;
    }

    .booking-bar__inner {
        flex-direction: column;
        padding: var(--space-lg);
        border-radius: 0;
        background: var(--primary);
        backdrop-filter: none;
        box-shadow: none;
        border: none;
        max-width: 100%;
    }

    .booking-bar__field {
        width: 100%;
    }

    .booking-bar__label {
        color: rgba(255,255,255,0.5);
    }

    .booking-bar__input {
        background: rgba(255,255,255,0.08);
        border-color: rgba(255,255,255,0.15);
        color: white;
    }

    .booking-bar__submit {
        width: 100%;
    }

    .booking-bar__submit .btn {
        width: 100%;
    }

    /* Header */
    .nav-primary {
        display: none;
    }

    .header-btn-booking {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .mobile-bottom-bar {
        display: block;
    }

    body {
        padding-bottom: 64px;
    }

    /* Stats bar */
    .stats-bar__grid {
        flex-wrap: wrap;
        gap: var(--space-md);
    }

    .stats-bar__divider {
        display: none;
    }

    .stats-bar__item {
        flex: 1 1 40%;
    }

    .stats-bar__number {
        font-size: 1.5rem;
    }

    /* Welcome features */
    .welcome-features {
        flex-direction: column;
        gap: var(--space-sm);
    }

    /* Room card wide */
    .room-card-wide {
        grid-template-columns: 1fr;
    }

    .room-card-wide__image {
        min-height: 220px;
        aspect-ratio: 16/9;
    }

    /* Rooms filter strip */
    .rooms-filter-strip__inner {
        flex-wrap: wrap;
    }

    .rooms-filter-strip__field {
        flex: 1 1 100%;
    }

    /* Contact strip */
    .contact-strip__grid {
        grid-template-columns: 1fr;
    }

    .contact-strip__item {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        padding: var(--space-md) var(--space-lg);
    }

    /* Contact */
    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-map-section {
        height: 280px;
    }

    /* Page banner */
    .page-banner {
        height: 240px;
    }

    .page-banner__title {
        font-size: 1.75rem;
    }

    /* Section padding */
    .section {
        padding-top: var(--space-2xl);
        padding-bottom: var(--space-2xl);
    }

    /* Container */
    .container {
        padding-left: var(--space-md);
        padding-right: var(--space-md);
    }

    .header-inner {
        padding: 0 var(--space-md);
    }

    /* CTA */
    .cta-section__actions {
        flex-direction: column;
        align-items: center;
    }

    .cta-section__title {
        font-size: 1.5rem;
    }

    /* Newsletter */
    .newsletter-form {
        flex-direction: column;
    }

    /* Testimonials */
    .testimonial-card {
        padding: var(--space-xl) var(--space-md);
    }

    .testimonial-card__quote {
        font-size: 1.125rem;
        line-height: 1.7;
    }

    .testimonial-card__quote::before {
        font-size: 4rem;
        top: -1.5rem;
        left: -0.5rem;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .carousel-btn svg {
        width: 16px;
        height: 16px;
    }

    .star-rating svg {
        width: 18px;
        height: 18px;
    }

    /* Amenities */
    .amenities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .amenity-item {
        padding: var(--space-md) var(--space-sm);
    }

    .amenity-item__icon {
        width: 44px;
        height: 44px;
        padding: 8px;
    }

    /* Instagram */
    .instagram-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Footer */
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: var(--space-sm);
    }

    .social-links {
        justify-content: center;
    }
}


/* ══════════════════════════════════
   Small phones fix (max-width: 400px)
   ══════════════════════════════════ */
@media (max-width: 400px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .amenities-grid {
        grid-template-columns: 1fr;
    }
}


/* ══════════════════════════════════
   Tablet (min-width: 768px)
   ══════════════════════════════════ */
@media (min-width: 768px) and (max-width: 1023px) {
    .grid--3 {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .counters-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Header — still mobile nav on tablet */
    .nav-primary {
        display: none;
    }

    .header-btn-booking {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .mobile-bottom-bar {
        display: block;
    }

    body {
        padding-bottom: 64px;
    }
}


/* ══════════════════════════════════
   Desktop (min-width: 1024px)
   ══════════════════════════════════ */
@media (min-width: 1024px) {
    .grid--3 {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .room-detail {
        grid-template-columns: 1fr 380px;
    }

    .room-detail__sidebar {
        position: sticky;
        top: calc(var(--header-height) + var(--space-lg));
    }

    /* Show desktop navigation */
    .nav-primary {
        display: block;
    }

    /* Hide hamburger */
    .hamburger {
        display: none;
    }

    /* Show header booking */
    .header-btn-booking {
        display: inline-flex;
    }

    /* Hide mobile bottom bar */
    .mobile-bottom-bar {
        display: none;
    }

    body {
        padding-bottom: 0;
    }

    /* Room gallery thumbs */
    .room-gallery__thumb {
        width: 100px;
        height: 75px;
    }
}


/* ══════════════════════════════════
   Print
   ══════════════════════════════════ */
@media print {
    .site-header,
    .site-footer,
    .mobile-bottom-bar,
    .booking-bar,
    .hero-scroll,
    .preloader,
    .dark-mode-toggle,
    .lightbox {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
        padding-bottom: 0;
    }

    .container {
        max-width: 100%;
    }
}
