/**
 * Responsive Improvements for Baangrood Arcadia
 * ============================================
 * Comprehensive responsive enhancements for all pages and sections
 *
 * Breakpoints:
 * - 1400px+ : Large Desktop
 * - 1200px  : Desktop
 * - 992px   : Tablet Landscape
 * - 768px   : Tablet Portrait
 * - 576px   : Landscape Phone
 * - 480px   : Mobile Phone
 */

/* ========================================
   1. GLOBAL RESPONSIVE IMPROVEMENTS
   ======================================== */

/* Prevent horizontal scroll on all screen sizes */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Responsive images by default */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive iframes and embeds */
iframe,
embed,
object,
video {
    max-width: 100%;
}

/* ========================================
   2. CONTAINER & LAYOUT IMPROVEMENTS
   ======================================== */

/* Large Desktop - Max width container */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }

    .container-full {
        padding-left: 60px;
        padding-right: 60px;
    }
}

/* Desktop - Standard */
@media (min-width: 1200px) and (max-width: 1399px) {
    .container {
        max-width: 1140px;
    }
}

/* Tablet Landscape */
@media (max-width: 992px) {
    .container {
        max-width: 960px;
        padding-left: 30px;
        padding-right: 30px;
    }

    .container-full {
        padding-left: 30px;
        padding-right: 30px;
    }
}

/* Tablet Portrait */
@media (max-width: 768px) {
    .container,
    .container-full {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .container,
    .container-full {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* ========================================
   3. HEADER & NAVIGATION IMPROVEMENTS
   ======================================== */

/* Tablet Landscape */
@media (max-width: 992px) {
    .main-header .logo img {
        max-height: 50px;
    }

    .main-nav ul {
        gap: 20px;
    }

    .main-nav a {
        font-size: 14px;
    }
}

/* Tablet Portrait */
@media (max-width: 768px) {
    /* Sticky header optimization */
    .main-header.sticky {
        padding: 10px 0;
    }

    .main-header.sticky .logo img {
        max-height: 40px;
    }

    /* Mobile menu improvements */
    .mobile-menu-toggle {
        padding: 10px;
        min-width: 44px;
        min-height: 44px;
        touch-action: manipulation;
    }

    .mobile-menu {
        padding: 20px 0;
    }

    .mobile-menu ul {
        gap: 0;
    }

    .mobile-menu li {
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .mobile-menu a {
        display: block;
        padding: 15px 20px;
        font-size: 16px;
    }

    .language-switcher-select {
        min-height: 44px;
        font-size: 16px;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .main-header .logo img {
        max-height: 40px;
    }
}

/* ========================================
   4. HERO SECTIONS - ALL PAGES
   ======================================== */

/* Large Desktop */
@media (min-width: 1400px) {
    .hero-section {
        min-height: 70vh;
        max-height: 800px;
    }
}

/* Tablet Landscape */
@media (max-width: 992px) {
    .hero-section {
        height: 55vh;
        min-height: 450px;
    }

    .hero-content h1 {
        font-size: 42px;
        margin-bottom: 15px;
    }

    .hero-content p {
        font-size: 18px;
    }
}

/* Tablet Portrait */
@media (max-width: 768px) {
    .hero-section {
        height: 50vh;
        min-height: 400px;
    }

    .hero-content h1 {
        font-size: 32px;
        margin-bottom: 12px;
        text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    }

    .hero-content p {
        font-size: 16px;
        text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
    }
}

/* Landscape Phone */
@media (max-width: 576px) {
    .hero-section {
        height: 50vh;
        min-height: 350px;
    }

    .hero-content h1 {
        font-size: 28px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .hero-section {
        height: 50vh;
        min-height: 300px;
    }

    .hero-content h1 {
        font-size: 24px;
        line-height: 1.3;
    }

    .hero-content p {
        font-size: 14px;
    }
}

/* ========================================
   5. HOME PAGE - RESPONSIVE IMPROVEMENTS
   ======================================== */

/* About Section - 2 Column Grid */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-image {
        max-height: 400px;
    }
}

/* Home layout overlap fixes */
@media (max-width: 992px) {
    .about-grid,
    .eco-grid {
        align-items: start;
        gap: 24px;
    }

    .about-image,
    .eco-image {
        order: -1;
    }

    .about-image img,
    .eco-image img {
        display: block;
        width: 100%;
        height: auto;
    }
}

@media (max-width: 768px) {
    .about-section,
    .eco-section {
        overflow: hidden;
    }

    .about-content h2,
    .eco-content h2 {
        line-height: 1.3;
    }
}

@media (max-width: 768px) {
    .about-image {
        max-height: 300px;
    }
}

/* Why Choose Us - 3 Column Grid */
@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .feature-item {
        padding: 25px;
    }
}

/* Testimonials - 3 Column Grid */
@media (max-width: 992px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Gallery Showcase - Adaptive Grid */
@media (max-width: 1200px) {
    .gallery-showcase {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .gallery-showcase {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .gallery-showcase .gallery-item.large {
        grid-column: span 1;
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    .gallery-showcase {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (max-width: 576px) {
    .gallery-showcase {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* Instagram Feed - 6 Column Grid */
@media (max-width: 1200px) {
    .instagram-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 992px) {
    .instagram-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .instagram-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
}

@media (max-width: 576px) {
    .instagram-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

/* Promotions/Packages - 3 Column Grid */
@media (max-width: 992px) {
    .promotions-grid,
    .packages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .promotions-grid,
    .packages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Grid Sections - 4 Item Masonry */
@media (max-width: 992px) {
    .grid-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .grid-section {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* ========================================
   6. ACCOMMODATIONS PAGE - RESPONSIVE
   ======================================== */

/* Rooms Grid - 3 Column with Featured */
@media (max-width: 1200px) {
    .rooms-grid {
        gap: 25px;
    }
}

@media (max-width: 992px) {
    .rooms-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .room-card.featured {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .rooms-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .room-card.featured {
        grid-column: span 1;
    }

    .room-card {
        margin-bottom: 0;
    }
}

@media (max-width: 576px) {
    .rooms-grid {
        gap: 15px;
    }

    .room-info {
        padding: 20px;
    }

    .room-info h3 {
        font-size: 20px;
    }
}

/* ========================================
   7. DINING PAGE - RESPONSIVE
   ======================================== */

/* Restaurant Cards */
@media (max-width: 992px) {
    .restaurant-card {
        grid-template-columns: 1fr;
    }

    .restaurant-image {
        min-height: 250px;
    }
}

@media (max-width: 768px) {
    .restaurant-image {
        min-height: 200px;
    }

    .restaurant-content {
        padding: 25px;
    }
}

/* Dining Experience Grid - 3 Column */
@media (max-width: 992px) {
    .dining-experience-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .dining-experience-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Special Dining Options - 3 Column Overlay Grid */
@media (max-width: 992px) {
    .special-dining-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .special-dining-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* ========================================
   8. ACTIVITIES PAGE - RESPONSIVE
   ======================================== */

/* Activities Grid */
@media (max-width: 1200px) {
    .activities-grid {
        gap: 25px;
    }
}

@media (max-width: 992px) {
    .activities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .activity-card.featured {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .activities-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .activity-card.featured {
        grid-column: span 1;
    }
}

@media (max-width: 576px) {
    .activities-grid {
        gap: 15px;
    }

    .activity-content {
        padding: 20px;
    }

    .activity-content h3 {
        font-size: 20px;
    }
}

/* ========================================
   9. FACILITIES PAGE - RESPONSIVE
   ======================================== */

/* Facilities Grid - Multiple Cards */
@media (max-width: 1200px) {
    .facilities-grid {
        gap: 25px;
    }
}

@media (max-width: 992px) {
    .facilities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .facilities-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Pools Grid - 3 Column */
@media (max-width: 992px) {
    .pools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .pools-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .facility-card,
    .pool-card {
        padding: 15px;
    }

    .facility-card h3,
    .pool-card h3 {
        font-size: 20px;
    }
}

/* ========================================
   10. GALLERY PAGE - RESPONSIVE
   ======================================== */

/* Gallery Filters */
@media (max-width: 768px) {
    .gallery-filters {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }

    .gallery-filters button {
        padding: 8px 16px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .gallery-filters {
        gap: 8px;
    }

    .gallery-filters button {
        padding: 6px 12px;
        font-size: 13px;
    }
}

/* Gallery Grid - Multi-column Masonry */
@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* ========================================
   11. CONTACT PAGE - RESPONSIVE
   ======================================== */

/* Contact Info Grid - 2 Column */
@media (max-width: 992px) {
    .contact-info-grid {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

/* Contact Form */
@media (max-width: 768px) {
    .contact-form input,
    .contact-form textarea,
    .contact-form select {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 12px;
    }

    .contact-form button {
        width: 100%;
        padding: 14px;
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .contact-form {
        padding: 25px;
    }
}

/* Contact Info Items */
@media (max-width: 576px) {
    .contact-info-item {
        padding: 20px;
    }

    .contact-info-item h3 {
        font-size: 18px;
    }
}

/* ========================================
   12. TRAVEL INFO PAGE - RESPONSIVE
   ======================================== */

/* Getting There - 3 Column Transport Cards */
@media (max-width: 992px) {
    .transport-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .transport-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Map Section */
@media (max-width: 768px) {
    .map-container {
        height: 300px;
    }

    .map-container iframe {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .map-container {
        height: 250px;
    }

    .map-container iframe {
        height: 250px;
    }
}

/* Location Info */
@media (max-width: 576px) {
    .location-info {
        padding: 20px;
    }
}

/* Tables - Responsive Handling */
@media (max-width: 768px) {
    .table-responsive {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 8px;
    }

    .table-responsive table {
        min-width: 600px;
    }

    table {
        width: 100%;
        border-collapse: collapse;
    }

    th,
    td {
        padding: 12px;
    }
}

@media (max-width: 576px) {
    .table-responsive table {
        min-width: 500px;
    }
}

/* ========================================
   13. FOOTER - RESPONSIVE
   ======================================== */

/* Tablet Landscape */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .footer-logo {
        text-align: center;
    }

    .footer-links {
        text-align: center;
    }
}

/* Tablet Portrait */
@media (max-width: 768px) {
    .footer-content {
        gap: 30px;
    }

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

/* Mobile */
@media (max-width: 576px) {
    .main-footer {
        padding: 30px 0;
    }

    .footer-content {
        gap: 25px;
    }

    .footer-logo img {
        max-height: 50px;
    }

    .footer-links ul {
        gap: 8px;
    }

    .footer-links a {
        font-size: 14px;
    }

    .footer-social a {
        width: 35px;
        height: 35px;
    }

    .footer-bottom {
        font-size: 12px;
        padding-top: 20px;
    }
}

/* ========================================
   14. BUTTONS & INTERACTIVE ELEMENTS
   ======================================== */

/* Tablet Portrait */
@media (max-width: 768px) {
    .btn,
    .button,
    .cta-button {
        padding: 12px 30px;
        font-size: 15px;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .btn,
    .button,
    .cta-button {
        padding: 10px 25px;
        font-size: 14px;
        display: block;
        width: 100%;
        text-align: center;
    }

    /* Touch-friendly buttons */
    .btn,
    .button,
    .cta-button {
        min-height: 44px; /* iOS minimum touch target */
        touch-action: manipulation;
    }
}

/* ========================================
   15. TYPOGRAPHY - RESPONSIVE
   ======================================== */

/* Tablet Landscape */
@media (max-width: 992px) {
    h1 { font-size: 38px; }
    h2 { font-size: 30px; }
    h3 { font-size: 24px; }
    h4 { font-size: 20px; }

    .section-title {
        font-size: 32px;
        margin-bottom: 25px;
    }

    .section-subtitle {
        font-size: 17px;
    }
}

/* Tablet Portrait */
@media (max-width: 768px) {
    h1 { font-size: 32px; }
    h2 { font-size: 26px; }
    h3 { font-size: 22px; }
    h4 { font-size: 18px; }

    .section-title {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .section-subtitle {
        font-size: 16px;
    }

    body {
        font-size: 15px;
        line-height: 1.6;
    }
}

/* Landscape Phone */
@media (max-width: 576px) {
    h1 { font-size: 28px; }
    h2 { font-size: 24px; }
    h3 { font-size: 20px; }
    h4 { font-size: 17px; }

    .section-title {
        font-size: 26px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    h1 { font-size: 24px; line-height: 1.3; }
    h2 { font-size: 22px; }
    h3 { font-size: 18px; }
    h4 { font-size: 16px; }

    .section-title {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .section-subtitle {
        font-size: 14px;
    }

    body {
        font-size: 14px;
    }
}

/* ========================================
   16. SPACING - RESPONSIVE
   ======================================== */

/* Tablet Landscape */
@media (max-width: 992px) {
    .section {
        padding: 60px 0;
    }
}

/* Tablet Portrait */
@media (max-width: 768px) {
    .section {
        padding: 50px 0;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .section {
        padding: 40px 0;
    }
}

/* ========================================
   17. FORM ELEMENTS - RESPONSIVE
   ======================================== */

/* Tablet Portrait */
@media (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="date"],
    input[type="number"],
    textarea,
    select {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 12px;
    }

    textarea {
        min-height: 120px;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .form-group {
        margin-bottom: 15px;
    }

    label {
        font-size: 14px;
        margin-bottom: 6px;
    }
}

/* ========================================
   18. CARDS - RESPONSIVE
   ======================================== */

/* Tablet Portrait */
@media (max-width: 768px) {
    .card,
    .info-card {
        padding: 25px;
    }

    .card h3,
    .info-card h3 {
        font-size: 20px;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .card,
    .info-card {
        padding: 20px;
    }

    .card h3,
    .info-card h3 {
        font-size: 18px;
    }

    .card p,
    .info-card p {
        font-size: 14px;
    }
}

/* ========================================
   19. UTILITIES - RESPONSIVE
   ======================================== */

/* Hide on mobile */
.hide-mobile {
    display: block;
}

@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
}

/* Show only on mobile */
.show-mobile {
    display: none;
}

@media (max-width: 768px) {
    .show-mobile {
        display: block !important;
    }
}

/* Text alignment utilities */
@media (max-width: 768px) {
    .text-center-mobile {
        text-align: center;
    }

    .text-left-mobile {
        text-align: left;
    }
}

/* Full width on mobile */
@media (max-width: 768px) {
    .full-width-mobile {
        width: 100% !important;
    }
}

/* Desktop visibility utilities */
.show-desktop {
    display: block;
}

@media (max-width: 768px) {
    .show-desktop {
        display: none !important;
    }
}

.hide-desktop {
    display: none;
}

@media (min-width: 769px) {
    .hide-desktop {
        display: block !important;
    }
}

/* ========================================
   20. BREADCRUMBS - RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .breadcrumbs {
        padding: 15px 0;
        font-size: 13px;
    }

    .breadcrumbs a,
    .breadcrumbs span {
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .breadcrumbs {
        padding: 12px 0;
        font-size: 12px;
    }

    .breadcrumbs a,
    .breadcrumbs span {
        font-size: 12px;
    }
}

/* ========================================
   21. CTA SECTIONS - RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .cta-section {
        padding: 50px 20px;
    }

    .cta-section h2 {
        font-size: 26px;
        margin-bottom: 15px;
    }

    .cta-section p {
        font-size: 16px;
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .cta-section {
        padding: 40px 15px;
    }

    .cta-section h2 {
        font-size: 22px;
    }

    .cta-section p {
        font-size: 14px;
    }
}

/* ========================================
   22. PERFORMANCE OPTIMIZATIONS
   ======================================== */

/* Reduce animations on mobile for performance */
@media (max-width: 768px) {
    * {
        animation-duration: 0.3s !important;
        transition-duration: 0.3s !important;
    }
}

/* Optimize touch interactions */
@media (hover: none) and (pointer: coarse) {
    a,
    button,
    .clickable {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    }
}

/* ========================================
   23. ACCESSIBILITY - RESPONSIVE
   ======================================== */

/* Focus states for keyboard navigation */
@media (max-width: 768px) {
    a:focus,
    button:focus,
    input:focus,
    textarea:focus,
    select:focus {
        outline: 2px solid #4A90E2;
        outline-offset: 2px;
    }
}

/* Skip to content link for mobile */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 0;
    background: #000;
    color: #fff;
    padding: 10px 20px;
    z-index: 10000;
}

.skip-to-content:focus {
    top: 0;
}

/* ========================================
   24. PRINT STYLES
   ======================================== */

@media print {
    .main-header,
    .mobile-menu-toggle,
    .main-footer,
    .cta-section,
    .breadcrumbs {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    h1 { font-size: 24pt; }
    h2 { font-size: 20pt; }
    h3 { font-size: 16pt; }

    a {
        text-decoration: underline;
    }

    img {
        max-width: 100%;
        page-break-inside: avoid;
    }
}
