/* Responsive Styles for Tamia Tourism Website */

/* Large Devices (Desktops, less than 1200px) */
@media (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }
    
    .slide-content h1 {
        font-size: 42px;
    }
    
    .slide-content p {
        font-size: 18px;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1.5fr 1fr;
    }
}

/* Medium Devices (Tablets, less than 992px) */
@media (max-width: 991.98px) {
    .container {
        max-width: 720px;
    }
    
    .header-wrapper {
        padding: 10px 0;
    }
    
    .logo img {
        height: 40px;
    }
    
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .mobile-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--text-light);
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        z-index: 999;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .mobile-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        display: block;
    }
    
    .mobile-menu ul li {
        margin: 15px 0;
    }
    
    .mobile-menu ul li a {
        display: block;
        padding: 10px 0;
        font-size: 18px;
    }
    
    .slide-content h1 {
        font-size: 36px;
    }
    
    .slide-content p {
        font-size: 16px;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .form-group {
        margin: 10px 0;
    }
    
    .safety-content {
        grid-template-columns: 1fr;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small Devices (Landscape Phones, less than 768px) */
@media (max-width: 767.98px) {
    .container {
        max-width: 540px;
    }
    
    .hero-section {
        height: 80vh;
    }
    
    .slide-content {
        width: 90%;
    }
    
    .slide-content h1 {
        font-size: 32px;
    }
    
    .slide-content p {
        font-size: 16px;
        margin-bottom: 20px;
    }
    
    .navigation button {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .search-container {
        position: relative;
        background-color: var(--bg-light);
        padding: 20px 0;
    }
    
    .section-header h2 {
        font-size: 30px;
    }
    
    .section-header p {
        font-size: 16px;
    }
    
    .attractions-grid,
    .homestays-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .emergency-buttons {
        grid-template-columns: 1fr;
    }
    
    .map-embed {
        height: 300px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom-links {
        margin-top: 15px;
    }
    
    .footer-bottom-links a {
        margin: 0 10px;
    }
}

/* Extra Small Devices (Portrait Phones, less than 576px) */
@media (max-width: 575.98px) {
    .container {
        max-width: 100%;
        padding: 0 20px;
    }
    
    .hero-section {
        height: 70vh;
        min-height: 500px;
    }
    
    .slide-content h1 {
        font-size: 28px;
    }
    
    .slide-content p {
        font-size: 14px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .search-box {
        padding: 15px;
    }
    
    .search-box h2 {
        font-size: 20px;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .section-header {
        margin-bottom: 30px;
    }
    
    .section-header h2 {
        font-size: 26px;
    }
    
    .attraction-content h3,
    .homestay-content h3 {
        font-size: 20px;
    }
    
    .gallery-filter {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 80%;
        margin: 5px 0;
    }
    
    .gallery-upload h3,
    .contact-form h3,
    .map-container h3 {
        font-size: 20px;
    }
    
    .contact-info,
    .contact-form {
        padding: 20px;
    }
    
    .info-item i {
        font-size: 20px;
    }
    
    .info-item h3 {
        font-size: 18px;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 16px;
        bottom: 20px;
        right: 20px;
    }
}

/* Landscape Mode Fixes */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        height: auto;
        min-height: 400px;
    }
    
    .slide-content {
        padding: 15px;
    }
    
    .slide-content h1 {
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    .slide-content p {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .search-container {
        position: relative;
    }
}

/* High Resolution Displays */
@media only screen and (-webkit-min-device-pixel-ratio: 2),
       only screen and (min-resolution: 192dpi) {
    body {
        font-weight: 300;
    }
    
    .section-header h2 {
        font-weight: 600;
    }
}

/* Print Styles */
@media print {
    header, footer, .hero-section, .gallery-section, .contact-section, .back-to-top {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }
    
    .container {
        max-width: 100%;
        width: 100%;
    }
    
    .attractions-section, .homestays-section, .safety-section {
        page-break-inside: avoid;
        margin: 20pt 0;
    }
    
    .section-header h2 {
        font-size: 18pt;
    }
    
    .section-header p {
        font-size: 12pt;
    }
    
    a:after {
        content: " (" attr(href) ")";
        font-size: 10pt;
        font-style: italic;
    }
    
    .map-container {
        page-break-inside: avoid;
    }
    
    .map-embed img {
        max-width: 100% !important;
    }
}