/* ========================================
   HOTEL SEA VIEW - RESPONSIVE STYLESHEET
   Mobile-First Responsive Design
======================================== */

/* ========================================
   TABLET & SMALL LAPTOPS (max-width: 1024px)
======================================== */
@media screen and (max-width: 1024px) {
    
    /* Typography adjustments */
    h1 { font-size: 3rem; }
    h2 { font-size: 2.2rem; }
    h3 { font-size: 1.7rem; }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .section-title {
        font-size: 2.3rem;
    }
    
    /* Container adjustments */
    .container {
        padding: 0 1.5rem;
    }
    
    section {
        padding: 4rem 0;
    }
    
    /* About section */
    .about-content {
        gap: 3rem;
    }
    
    .about-image img {
        height: 400px;
    }
    
    /* Villa section */
    .villa-content {
        gap: 3rem;
    }
    
    .villa-image-main img {
        height: 380px;
    }
    
    /* Contact section */
    .contact-content {
        gap: 2rem;
    }
}

/* ========================================
   TABLETS (max-width: 768px)
======================================== */
@media screen and (max-width: 768px) {
    
    /* Typography */
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* Section spacing */
    section {
        padding: 3.5rem 0;
    }
    
    .section-header {
        margin-bottom: 3rem;
    }
    
    /* Top Bar */
    .top-bar {
        font-size: 0.8rem;
    }
    
    .top-bar-content {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* Navigation */
    .nav-wrapper {
        position: relative;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 0;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.4s ease;
        z-index: 999;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        width: 100%;
        padding: 1rem 0;
        border-bottom: 1px solid var(--gray-200);
    }
    
    .nav-link {
        display: block;
        width: 100%;
        font-size: 1.1rem;
    }
    
    .btn-book {
        display: none;
    }
    
    .hamburger {
        display: flex;
        z-index: 1001;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Hero Section */
    .hero {
        height: 70vh;
        min-height: 500px;
    }
    
    .hero-content {
        padding: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        letter-spacing: 2px;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-location {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
        padding: 0.9rem 2rem;
        font-size: 0.95rem;
    }
    
    /* About Section */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .about-text {
        order: 2;
    }
    
    .about-image {
        order: 1;
    }
    
    .about-image img {
        height: 350px;
    }
    
    .about-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .image-badge {
        bottom: 1rem;
        right: 1rem;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Rooms Section */
    .rooms-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .room-card {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .room-image {
        height: 250px;
    }
    
    /* Amenities Section */
    .amenities-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .amenity-card {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .amenity-image {
        height: 220px;
    }
    
    /* Facilities Section */
    .facilities-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .facility-card {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .facility-image {
        height: 250px;
    }
    
    /* Villa Section */
    .villa {
        padding: 4rem 0;
    }
    
    .villa-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .villa-text {
        order: 2;
    }
    
    .villa-images {
        order: 1;
    }
    
    .villa-image-main img {
        height: 320px;
    }
    
    .villa-features {
        gap: 1rem;
    }
    
    .villa-feature {
        padding: 1.2rem;
    }
    
    .villa-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .villa-buttons .btn {
        width: 100%;
    }
    
    /* Reviews Section */
    .average-rating {
        padding: 2rem;
    }
    
    .rating-score .score {
        font-size: 3rem;
    }
    
    .reviews-display {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .write-review {
        padding: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    /* Contact Section */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info {
        order: 2;
    }
    
    .contact-map {
        order: 1;
    }
    
    .contact-map iframe {
        min-height: 350px;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    /* Floating buttons */
    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 1.7rem;
        bottom: 1.5rem;
        left: 1.5rem;
    }
    
    .scroll-top {
        width: 45px;
        height: 45px;
        bottom: 1.5rem;
        right: 1.5rem;
        font-size: 1rem;
    }
    
    /* Gallery Modal */
    .gallery-close {
        top: 1rem;
        right: 1.5rem;
        font-size: 2.5rem;
    }
    
    .gallery-prev,
    .gallery-next {
        padding: 0.75rem 1rem;
        font-size: 1.5rem;
    }
    
    .gallery-prev {
        left: 0.5rem;
    }
    
    .gallery-next {
        right: 0.5rem;
    }
}

/* ========================================
   MOBILE PHONES (max-width: 480px)
======================================== */
@media screen and (max-width: 480px) {
    
    /* Typography */
    html {
        font-size: 14px;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.7rem; }
    h3 { font-size: 1.3rem; }
    h4 { font-size: 1.1rem; }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.7rem;
    }
    
    /* Container */
    .container {
        padding: 0 1rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    /* Top Bar */
    .top-bar {
        padding: 0.5rem 0;
        font-size: 0.75rem;
    }
    
    .contact-info a {
        font-size: 0.75rem;
    }
    
    .social-links a {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    /* Header */
    .navbar {
        padding: 0.75rem 0;
    }
    
    .logo h1 {
        font-size: 1.4rem;
    }
    
    .logo p {
        font-size: 0.65rem;
    }
    
    .nav-menu {
        width: 100%;
        right: -100%;
    }
    
    /* Hero Section */
    .hero {
        height: 60vh;
        min-height: 450px;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .hero-subtitle {
        font-size: 0.75rem;
        letter-spacing: 1.5px;
        margin-bottom: 0.75rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-location {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        gap: 0.75rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .scroll-down {
        bottom: 1rem;
    }
    
    .scroll-down a {
        font-size: 1.2rem;
    }
    
    /* Section Headers */
    .section-header {
        margin-bottom: 2.5rem;
    }
    
    .section-subtitle {
        font-size: 0.8rem;
        letter-spacing: 1.5px;
    }
    
    .title-underline {
        width: 60px;
        height: 3px;
        margin: 0.75rem auto 1rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    /* About Section */
    .about-text .lead {
        font-size: 1.1rem;
    }
    
    .about-text p {
        font-size: 0.95rem;
    }
    
    .about-image img {
        height: 280px;
        border-radius: var(--radius-md);
    }
    
    .image-badge {
        bottom: 0.75rem;
        right: 0.75rem;
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
    
    .image-badge i {
        font-size: 1.2rem;
    }
    
    /* Rooms Section */
    .room-card {
        max-width: 100%;
    }
    
    .room-image {
        height: 220px;
    }
    
    .room-badge {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .room-content {
        padding: 1.5rem;
    }
    
    .room-content h3 {
        font-size: 1.3rem;
    }
    
    .room-description {
        font-size: 0.9rem;
    }
    
    .room-features {
        gap: 0.5rem;
    }
    
    .room-features span {
        padding: 0.4rem 0.7rem;
        font-size: 0.75rem;
    }
    
    /* Amenities Section */
    .amenity-card {
        max-width: 100%;
    }
    
    .amenity-image {
        height: 200px;
    }
    
    .amenity-content {
        padding: 1.5rem;
    }
    
    .amenity-icon {
        width: 60px;
        height: 60px;
        margin: -30px auto 1.2rem;
    }
    
    .amenity-icon i {
        font-size: 1.7rem;
    }
    
    .amenity-content h3 {
        font-size: 1.2rem;
    }
    
    .amenity-content p {
        font-size: 0.9rem;
    }
    
    /* Facilities Section */
    .facility-card {
        max-width: 100%;
    }
    
    .facility-image {
        height: 220px;
    }
    
    .facility-content {
        padding: 1.5rem;
    }
    
    .facility-icon {
        width: 55px;
        height: 55px;
    }
    
    .facility-icon i {
        font-size: 1.6rem;
    }
    
    .facility-content h3 {
        font-size: 1.3rem;
    }
    
    .facility-content p {
        font-size: 0.9rem;
    }
    
    /* Villa Section */
    .villa {
        padding: 3rem 0;
    }
    
    .villa-text .villa-tagline {
        font-size: 1.1rem;
    }
    
    .villa-text .lead {
        font-size: 1.05rem;
    }
    
    .villa-image-main img {
        height: 280px;
    }
    
    .btn-view-villa {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        bottom: 1rem;
    }
    
    .villa-image-grid {
        gap: 1rem;
    }
    
    .villa-image-grid img {
        height: 150px;
    }
    
    .villa-feature {
        padding: 1rem;
        gap: 1rem;
    }
    
    .villa-feature i {
        font-size: 1.7rem;
    }
    
    .villa-feature h4 {
        font-size: 1.1rem;
    }
    
    .villa-feature p {
        font-size: 0.85rem;
    }
    
    .villa-note {
        font-size: 0.85rem;
        padding: 0.75rem;
    }
    
    /* Reviews Section */
    .average-rating {
        padding: 1.5rem;
    }
    
    .rating-score .score {
        font-size: 2.5rem;
    }
    
    .stars {
        font-size: 1.2rem;
    }
    
    .total-reviews {
        font-size: 1rem;
    }
    
    .review-card {
        padding: 1.5rem;
    }
    
    .reviewer-avatar {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .reviewer-info h4 {
        font-size: 1rem;
    }
    
    .review-date {
        font-size: 0.8rem;
    }
    
    .review-rating {
        font-size: 0.9rem;
    }
    
    .review-text {
        font-size: 0.9rem;
    }
    
    .write-review {
        padding: 1.5rem;
    }
    
    .write-review h3 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .star-rating {
        font-size: 1.7rem;
    }
    
    /* Contact Section */
    .info-card {
        padding: 1.2rem;
        gap: 1rem;
    }
    
    .info-icon {
        width: 50px;
        height: 50px;
    }
    
    .info-icon i {
        font-size: 1.3rem;
    }
    
    .info-content h3 {
        font-size: 1.1rem;
    }
    
    .info-content p {
        font-size: 0.9rem;
    }
    
    .contact-map iframe {
        min-height: 300px;
    }
    
    /* Footer */
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        margin-bottom: 2rem;
    }
    
    .footer-col h3 {
        font-size: 1.2rem;
        margin-bottom: 1.2rem;
    }
    
    .footer-col h4 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .footer-col p {
        font-size: 0.9rem;
    }
    
    .footer-bottom p {
        font-size: 0.85rem;
        line-height: 1.6;
    }
    
    /* Floating Buttons */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 1rem;
        left: 1rem;
    }
    
    .scroll-top {
        width: 40px;
        height: 40px;
        bottom: 1rem;
        right: 1rem;
        font-size: 0.9rem;
    }
    
    /* Gallery Modal */
    .gallery-close {
        top: 0.5rem;
        right: 1rem;
        font-size: 2rem;
    }
    
    .gallery-content {
        max-width: 95%;
        max-height: 80vh;
    }
    
    #galleryImage {
        max-height: 80vh;
    }
    
    .gallery-prev,
    .gallery-next {
        padding: 0.5rem 0.75rem;
        font-size: 1.2rem;
    }
    
    .gallery-prev {
        left: 0.25rem;
    }
    
    .gallery-next {
        right: 0.25rem;
    }
    
    .gallery-caption {
        font-size: 0.95rem;
        padding: 0.75rem;
    }
}

/* ========================================
   EXTRA SMALL DEVICES (max-width: 360px)
======================================== */
@media screen and (max-width: 360px) {
    
    html {
        font-size: 13px;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .container {
        padding: 0 0.75rem;
    }
    
    section {
        padding: 2.5rem 0;
    }
    
    .hero {
        height: 55vh;
        min-height: 400px;
    }
    
    .about-image img,
    .villa-image-main img {
        height: 250px;
    }
    
    .room-image,
    .amenity-image,
    .facility-image {
        height: 200px;
    }
    
    .villa-image-grid img {
        height: 130px;
    }
    
    .whatsapp-float,
    .scroll-top {
        bottom: 0.75rem;
    }
    
    .whatsapp-float {
        left: 0.75rem;
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .scroll-top {
        right: 0.75rem;
        width: 35px;
        height: 35px;
        font-size: 0.85rem;
    }
}

/* ========================================
   LANDSCAPE MODE FOR MOBILE
======================================== */
@media screen and (max-height: 500px) and (orientation: landscape) {
    
    .hero {
        height: 100vh;
        min-height: auto;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    .hero-buttons {
        gap: 0.75rem;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .scroll-down {
        display: none;
    }
}

/* ========================================
   PRINT STYLES
======================================== */
@media print {
    
    .top-bar,
    .hamburger,
    .btn-book,
    .hero-buttons,
    .btn-view,
    .btn-view-villa,
    .facility-link,
    .whatsapp-float,
    .scroll-top,
    .gallery-modal,
    .write-review,
    .footer-social {
        display: none !important;
    }
    
    .header {
        position: static;
        box-shadow: none;
    }
    
    .hero {
        height: auto;
        min-height: auto;
        padding: 3rem 0;
    }
    
    section {
        page-break-inside: avoid;
    }
    
    img {
        max-width: 100%;
        page-break-inside: avoid;
    }
    
    a {
        color: var(--gray-900);
        text-decoration: underline;
    }
}

/* ========================================
   HIGH CONTRAST MODE
======================================== */
@media (prefers-contrast: high) {
    
    :root {
        --primary-color: #0047AB;
        --secondary-color: #FFD700;
        --gray-600: #333333;
        --gray-700: #1a1a1a;
    }
    
    .btn,
    .nav-link,
    a {
        outline: 2px solid transparent;
    }
    
    .btn:focus,
    .nav-link:focus,
    a:focus {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }
}

/* ========================================
   REDUCED MOTION
======================================== */
@media (prefers-reduced-motion: reduce) {
    
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .scroll-down {
        animation: none;
    }
    
    .whatsapp-float {
        animation: none;
    }
}