/* ===================================
   Responsive Design - Mobile & Tablet
   =================================== */

/* Tablet (max-width: 1024px) */
@media screen and (max-width: 1024px) {
    :root {
        --section-padding: 70px;
    }

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

    /* Hero */
    .hero-title {
        font-size: 48px;
    }

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

    /* Villa Grid */
    .villa-grid {
        gap: 40px;
    }

    .villa-description .section-title {
        font-size: 30px;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-rows: repeat(2, 250px);
    }

    /* Video */
    .video-container {
        height: 500px;
    }

    .video-play-btn {
        width: 80px;
        height: 80px;
    }

    .video-play-btn i {
        font-size: 28px;
    }
}

/* Mobile Landscape & Small Tablet (max-width: 880px) */
@media screen and (max-width: 880px) {
    :root {
        --section-padding: 60px;
    }

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

    /* Hero */
    .hero-title {
        font-size: 42px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .btn {
        padding: 14px 35px;
        font-size: 14px;
    }

    .btn-large {
        padding: 16px 40px;
        font-size: 15px;
    }

    /* Villa Grid */
    .villa-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .villa-description .section-header {
        text-align: center;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 250px);
        gap: 10px;
    }

    .gallery-item-1 {
        grid-column: 1 / 3;
        grid-row: 1 / 2;
    }

    .gallery-item-2 {
        grid-column: 1 / 2;
        grid-row: 2 / 3;
    }

    .gallery-item-3 {
        grid-column: 2 / 3;
        grid-row: 2 / 3;
    }

    .gallery-item-4 {
        grid-column: 1 / 2;
        grid-row: 3 / 4;
    }

    .gallery-item-5 {
        grid-column: 2 / 3;
        grid-row: 3 / 4;
    }

    /* Video */
    .video-container {
        height: 400px;
    }

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

/* Mobile Portrait (max-width: 767px) */
@media screen and (max-width: 767px) {
    :root {
        --section-padding: 50px;
    }

    .container {
        padding: 0 20px;
    }

    .section-header {
        margin-bottom: 35px;
    }

    .section-subtitle {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .section-title {
        font-size: 28px;
        line-height: 1.4;
    }

    /* Hero */
    .hero-section {
        min-height: 500px;
        background-attachment: scroll;
    }

    .hero-title {
        font-size: 36px;
        margin-bottom: 15px;
    }

    .hero-subtitle {
        font-size: 14px;
        line-height: 1.7;
        margin-bottom: 30px;
    }

    .scroll-indicator {
        bottom: 30px;
    }

    /* About */
    .about-content p {
        font-size: 15px;
        line-height: 1.8;
    }

    /* Villa */
    .villa-description .section-title {
        font-size: 26px;
    }

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

    /* Gallery */
    .gallery-grid {
        grid-template-rows: repeat(3, 200px);
    }

    .gallery-overlay {
        padding: 15px;
        font-size: 13px;
    }

    /* Video */
    .video-container {
        height: 300px;
    }

    .video-play-btn {
        width: 70px;
        height: 70px;
    }

    .video-play-btn i {
        font-size: 24px;
    }

    /* Contact */
    .form-control {
        padding: 12px 18px;
        font-size: 14px;
    }

    textarea.form-control {
        min-height: 100px;
    }

    .form-submit {
        margin-top: 20px;
    }
}

/* Small Mobile (max-width: 480px) */
@media screen and (max-width: 480px) {
    :root {
        --section-padding: 40px;
    }

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

    /* Hero */
    .hero-title {
        font-size: 30px;
    }

    .hero-subtitle {
        font-size: 13px;
    }

    .btn {
        padding: 12px 30px;
        font-size: 13px;
    }

    .btn-large {
        padding: 14px 35px;
        font-size: 14px;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(5, 250px);
    }

    .gallery-item-1,
    .gallery-item-2,
    .gallery-item-3,
    .gallery-item-4,
    .gallery-item-5 {
        grid-column: 1 / 2;
    }

    .gallery-item-1 { grid-row: 1 / 2; }
    .gallery-item-2 { grid-row: 2 / 3; }
    .gallery-item-3 { grid-row: 3 / 4; }
    .gallery-item-4 { grid-row: 4 / 5; }
    .gallery-item-5 { grid-row: 5 / 6; }

    /* Video */
    .video-container {
        height: 250px;
    }

    .video-play-btn {
        width: 60px;
        height: 60px;
    }

    .video-play-btn i {
        font-size: 20px;
    }
}

/* Extra Small Mobile (max-width: 360px) */
@media screen and (max-width: 360px) {
    .container {
        padding: 0 15px;
    }

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

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

/* High Resolution Displays */
@media screen and (min-width: 1400px) {
    :root {
        --container-width: 1320px;
        --section-padding: 120px;
    }

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

    .hero-title {
        font-size: 70px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .gallery-grid {
        grid-template-rows: repeat(2, 350px);
    }

    .video-container {
        height: 700px;
    }
}

/* Print Styles */
@media print {
    .scroll-indicator,
    .video-play-btn,
    .btn {
        display: none;
    }

    .hero-section {
        height: auto;
        min-height: 0;
        padding: 50px 0;
    }

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

    .section-title {
        page-break-after: avoid;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero-section {
        background-attachment: scroll;
    }
}
