/* Mobile First Responsive Design */

/* Large Desktop */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-title {
        font-size: 5rem;
    }
    
    .accommodation-grid,
    .events-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Desktop */
@media (max-width: 1199px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .about-content {
        gap: 3rem;
    }
    
    .location-content {
        gap: 3rem;
    }
}

/* Accommodation Page Responsive Styles */
@media (max-width: 991px) {
    .accommodation-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .accommodation-detail.alternate .accommodation-content {
        grid-template-columns: 1fr;
    }
    
    .booking-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 767px) {
    .page-header {
        height: 50vh;
        margin-top: 70px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    .accommodation-detail {
        padding: 2rem 0;
    }
    
    .thumbnail-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .thumbnail {
        aspect-ratio: 1 / 1;
        opacity: 1;
        visibility: visible;
    }
    
    .room-cta {
        flex-direction: column;
    }
    
    .room-cta .btn {
        width: 100%;
    }
    
    .booking-section {
        padding: 2rem 0;
    }
}

@media (max-width: 575px) {
    .page-header {
        height: 40vh;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .thumbnail-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .thumbnail {
        aspect-ratio: 1 / 1;
        opacity: 1;
        visibility: visible;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
        align-items: center;
    }
    
    .feature-icon {
        width: 40px;
        height: 40px;
        background: var(--light-bg);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--primary-color);
        font-size: 1.2rem;
        flex-shrink: 0;
    }
    
    .contact-options {
        padding: 1rem;
    }
}

/* Gallery Page Responsive Styles */
@media (max-width: 991px) {
    .gallery-filters {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 767px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .gallery-item {
        height: 200px;
    }
    
    .gallery-nav {
        padding: 1rem 0;
    }
    
    .main-gallery {
        padding: 2rem 0;
    }
}

@media (max-width: 575px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item {
        height: 250px;
    }
    
    .filter-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* Lightbox Responsive Improvements */
@media (max-width: 767px) {
    .lightbox-content {
        max-width: 95%;
        max-height: 70%;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
        font-size: 30px;
        width: 40px;
        height: 40px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        font-size: 2rem;
        padding: 0.8rem;
        width: 50px;
        height: 50px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-caption {
        padding: 2rem 1rem 1rem;
    }
    
    .lightbox-caption h4 {
        font-size: 1.2rem;
    }
    
    .lightbox-caption p {
        font-size: 0.9rem;
    }
    
    .lightbox-counter {
        top: 10px;
        left: 10px;
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* Tablet */
@media (max-width: 991px) {
    .nav-contact {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        transition: var(--transition);
        box-shadow: var(--shadow);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 2rem;
        padding: 3rem 0;
    }
    
    .nav-link {
        font-size: 1.2rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .about-stats {
        justify-content: center;
    }
    
    .location-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .accommodation-grid,
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .amenities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Large */
@media (max-width: 767px) {
    body {
        padding-bottom: 100px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .map-container {
        margin-bottom: 100px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-cta .btn {
        width: 100%;
        max-width: 250px;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .section-header {
        margin-bottom: 3rem;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .accommodation-grid,
    .events-grid,
    .amenities-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .testimonials-slider {
        padding: 0 1rem;
    }
    
    .testimonial-content p {
        font-size: 1.1rem;
    }
    
    .whatsapp-text,
    .call-text {
        display: none;
    }
    
    .whatsapp-btn,
    .call-btn {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        justify-content: center;
        padding: 0;
    }
    
    .floating-call {
        bottom: 80px;
    }
    
    .scroll-top {
        bottom: 140px;
    }
}

/* Mobile Small */
@media (max-width: 575px) {
    body {
        padding-bottom: 120px;
    }
    
    .map-container {
        margin-bottom: 120px;
    }
    
    .hero {
        height: 100vh;
        padding: 0 10px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .location-badge {
        font-size: 0.9rem;
        padding: 6px 15px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .room-card,
    .event-card,
    .amenity-card {
        margin: 0 10px;
    }
    
    .room-content,
    .event-content,
    .amenity-card {
        padding: 1.5rem;
    }
    
    .booking-form-container {
        padding: 1.5rem;
    }
    
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-content {
        gap: 2rem;
        margin-bottom: 2rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form button {
        margin-top: 0.5rem;
    }
}

/* Mobile Extra Small */
@media (max-width: 375px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-cta {
        gap: 0.5rem;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .room-features {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .room-features span {
        text-align: center;
    }
    
    .amenity-icon {
        font-size: 2.5rem;
    }
    
    .testimonial-content p {
        font-size: 1rem;
    }
    
    .whatsapp-float,
    .floating-call {
        right: 10px;
    }
    
    .scroll-top {
        right: 10px;
        width: 45px;
        height: 45px;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: 100vh;
    }
    
    .hero-content {
        padding: 2rem 20px;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-cta {
        gap: 0.5rem;
    }
    
    .location-badge {
        margin-bottom: 1rem;
    }
    
    .scroll-indicator {
        display: none;
    }
}

/* Print Styles */
@media print {
    .header,
    .whatsapp-float,
    .floating-call,
    .scroll-top,
    .nav-toggle {
        display: none !important;
    }
    
    .hero {
        height: auto;
        padding: 2rem 0;
    }
    
    .hero-video {
        display: none;
    }
    
    section {
        padding: 2rem 0;
        break-inside: avoid;
    }
    
    .btn {
        border: 2px solid var(--primary-color);
        background: transparent !important;
        color: var(--primary-color) !important;
    }
    
    .testimonials {
        background: transparent !important;
        color: var(--text-dark) !important;
    }
    
    .footer {
        background: transparent !important;
        color: var(--text-dark) !important;
        border-top: 2px solid var(--primary-color);
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --shadow: 0 4px 20px rgba(0,0,0,0.3);
        --shadow-hover: 0 8px 30px rgba(0,0,0,0.4);
    }
    
    .btn-outline {
        border-width: 3px;
    }
    
    .nav-link::after {
        height: 3px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .scroll-arrow {
        animation: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .lightbox {
        background: rgba(0,0,0,0.95);
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        background: var(--light-bg);
    }
}


@media (min-width: 1100px) {
    .accommodation-grid,
    .events-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        grid-auto-rows: 1fr !important;
        grid-auto-flow: row dense;
    }
}

@media (min-width: 768px) and (max-width: 1099px) {
    .accommodation-grid,
    .events-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        grid-auto-rows: 1fr;
    }
}

