/* Responsive Styles for Silo Luxury Rooms */

/* Tablet Styles */
@media screen and (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .nav-container {
        padding: 0 1.5rem;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 6rem 1.5rem 4rem;
    }
    
    .hero-content {
        max-width: 100%;
        margin-bottom: 3rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .location-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .rooms-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .facilities-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    /* Language Selector Mobile */
    .language-selector {
        top: 15px;
        right: 15px;
        padding: 6px;
    }
    
    .lang-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    /* Mobile Navigation */
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: left 0.3s ease;
        z-index: 998;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        font-size: 1.2rem;
        padding: 1rem 2rem;
    }
    
    .nav-toggle {
        display: flex;
        z-index: 999;
    }
    
    .nav-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    body.menu-open {
        overflow: hidden;
    }
    
    /* Hero Section Mobile */
    .hero {
        min-height: 100vh;
        padding: 5rem 1rem 3rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-btn {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
    
    /* Typography Mobile */
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
    
    p {
        font-size: 1rem;
    }
    
    /* Sections Mobile */
    section {
        padding: 4rem 0;
    }
    
    .section-header {
        margin-bottom: 3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* About Section Mobile */
    .about-content {
        gap: 2rem;
    }
    
    .about-host {
        padding: 1.5rem;
    }
    
    .host-info {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .host-img {
        width: 100px;
        height: 100px;
    }
    
    /* Rooms Grid Mobile */
    .rooms-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .room-card {
        margin: 0 auto;
        max-width: 400px;
    }
    
    .room-image {
        height: 200px;
    }
    
    .room-info {
        padding: 1.25rem;
    }
    
    /* Facilities Grid Mobile */
    .facilities-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1.5rem;
    }
    
    .facility-item {
        padding: 1.5rem 1rem;
    }
    
    .facility-icon {
        font-size: 2rem;
    }
    
    .facility-title {
        font-size: 1rem;
    }
    
    /* Location Section Mobile */
    .location-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .location-icon {
        align-self: center;
    }
    
    /* Contact Section Mobile */
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .contact-icon {
        align-self: center;
    }
    
    .check-in-info {
        padding: 1.5rem;
    }
    
    .checkin-links {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .checkin-link {
        justify-content: center;
        padding: 0.75rem 1rem;
    }
    
    /* Footer Mobile */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-text {
        order: 2;
    }
    
    .footer-social {
        order: 3;
        justify-content: center;
    }
}

/* Small Mobile Styles */
@media screen and (max-width: 480px) {
    html {
        font-size: 13px;
    }
    
    .container {
        padding: 0 0.75rem;
    }
    
    .nav-container {
        padding: 0 0.75rem;
    }
    
    .language-selector {
        top: 10px;
        right: 10px;
        padding: 4px;
        gap: 3px;
    }
    
    .lang-btn {
        padding: 4px 8px;
        font-size: 0.75rem;
    }
    
    .hero {
        padding: 4rem 0.75rem 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .rooms-grid {
        gap: 1rem;
    }
    
    .room-card {
        max-width: 100%;
    }
    
    .facilities-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .facility-item {
        padding: 1rem 0.75rem;
    }
    
    .about-host,
    .check-in-info {
        padding: 1rem;
    }
}

/* Landscape Mobile */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 3rem 1rem 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .nav-menu.active {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
        padding: 2rem;
    }
}

/* High DPI Displays */
@media screen and (-webkit-min-device-pixel-ratio: 2),
       screen and (min-resolution: 192dpi) {
    .hero-img,
    .room-img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .room-card:hover,
    .facility-item:hover {
        transform: none;
    }
    
    .room-card:active,
    .facility-item:active {
        transform: scale(0.98);
    }
    
    .hero-btn:hover {
        transform: none;
    }
    
    .hero-btn:active {
        transform: scale(0.98);
    }
    
    .nav-link:hover {
        background: transparent;
    }
    
    .nav-link:active {
        background: rgba(212, 175, 55, 0.1);
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    /* This can be expanded if dark mode is desired */
    .header {
        background: rgba(44, 62, 80, 0.95);
    }
    
    .nav-link {
        color: #fff;
    }
    
    .language-selector {
        background: rgba(44, 62, 80, 0.95);
    }
    
    .lang-btn {
        color: #fff;
    }
}

/* Print Styles */
@media print {
    .header,
    .language-selector,
    .nav-toggle,
    .hero-btn,
    .checkin-links,
    .footer-social {
        display: none;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    section {
        padding: 2rem 0;
        break-inside: avoid;
    }
    
    .room-card,
    .facility-item {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

