/* ANTIBES - Responsive Styles */

/* Tablet Styles */
@media screen and (max-width: 1024px) {
    
    /* Container adjustments */
    .container {
        padding: 0 var(--spacing-lg);
    }
    
    /* Language selector */
    .language-selector {
        top: var(--spacing-md);
        right: var(--spacing-md);
    }
    
    .language-dropdown {
        width: 260px;
    }
    
    /* Hero section */
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-meta {
        gap: var(--spacing-xl);
    }
    
    /* Property details */
    .details-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }
    
    .booking-card {
        position: static;
    }
    
    .property-specs {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
    
    /* Location section */
    .location-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }
    
    .interactive-map {
        min-height: 350px;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: var(--spacing-xl);
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
    
    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
    
    /* Container */
    .container {
        padding: 0 var(--spacing-md);
    }
    
    /* Language selector */
    .language-selector {
        position: fixed;
        top: auto;
        bottom: var(--spacing-lg);
        right: var(--spacing-md);
        left: var(--spacing-md);
    }
    
    .language-toggle {
        width: 100%;
        justify-content: center;
        padding: var(--spacing-md);
        font-size: 1rem;
    }
    
    .language-dropdown {
        position: relative;
        width: 100%;
        margin-top: 0;
        max-height: 300px;
    }
    
    /* Header */
    .navbar .container {
        flex-wrap: wrap;
    }
    
    .nav-toggle {
        display: flex;
        order: 3;
    }
    
    .nav-menu {
        display: none;
        width: 100%;
        order: 4;
        margin-top: var(--spacing-md);
    }
    
    .nav-menu.show {
        display: block;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 0;
        background: white;
        border-radius: var(--border-radius);
        box-shadow: var(--shadow-md);
        padding: var(--spacing-md);
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .nav-links a {
        display: block;
        padding: var(--spacing-md);
        border-bottom: 1px solid var(--light-gray);
    }
    
    .nav-links li:last-child a {
        border-bottom: none;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }
    
    /* Hero section */
    .hero-section {
        padding: var(--spacing-xl) 0;
        text-align: center;
    }
    
    .breadcrumbs {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: var(--spacing-md);
    }
    
    .hero-meta {
        flex-direction: column;
        gap: var(--spacing-md);
        align-items: center;
    }
    
    /* Property gallery */
    .property-gallery {
        padding: var(--spacing-xl) 0;
    }
    
    .main-image {
        aspect-ratio: 16/10;
    }
    
    .image-overlay {
        padding: var(--spacing-md);
    }
    
    .gallery-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .gallery-fullscreen {
        top: var(--spacing-md);
        right: var(--spacing-md);
    }
    
    .thumbnail-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--spacing-sm);
    }
    
    /* Property details */
    .property-details {
        padding: var(--spacing-xl) 0;
    }
    
    .property-specs {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .spec-item {
        padding: var(--spacing-md);
    }
    
    .features-list {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .features-list li {
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    /* Booking sidebar */
    .booking-sidebar {
        gap: var(--spacing-md);
    }
    
    .booking-card,
    .contact-card {
        padding: var(--spacing-lg);
    }
    
    .price-display .amount {
        font-size: 2.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    /* Location section */
    .location-section {
        padding: var(--spacing-xl) 0;
    }
    
    .location-section h2 {
        margin-bottom: var(--spacing-xl);
    }
    
    .highlight-item {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-md);
    }
    
    .highlight-item i {
        font-size: 2rem;
        margin-top: 0;
    }
    
    /* Footer */
    .footer {
        padding: var(--spacing-2xl) 0 var(--spacing-lg) 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .contact-info p {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-bottom {
        text-align: center;
        gap: var(--spacing-sm);
    }
    
    .footer-legal {
        justify-content: center;
        gap: var(--spacing-md);
    }
    
    /* Gallery modal */
    .gallery-modal {
        padding: var(--spacing-md);
    }
    
    .modal-close {
        top: -50px;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .modal-nav {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .modal-prev {
        left: -60px;
    }
    
    .modal-next {
        right: -60px;
    }
    
    /* Utility classes for mobile */
    .mobile-hidden {
        display: none !important;
    }
    
    .mobile-full-width {
        width: 100% !important;
    }
    
}

/* Small Mobile Styles */
@media screen and (max-width: 480px) {
    
    /* Base adjustments */
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    /* Language selector */
    .language-selector {
        bottom: var(--spacing-md);
        left: var(--spacing-sm);
        right: var(--spacing-sm);
    }
    
    /* Hero section */
    .hero-title {
        font-size: 1.75rem;
    }
    
    .breadcrumbs {
        font-size: 0.8rem;
        gap: var(--spacing-xs);
    }
    
    /* Gallery */
    .thumbnail-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .image-overlay {
        padding: var(--spacing-sm);
    }
    
    .gallery-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    /* Property specs */
    .spec-item {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-sm);
    }
    
    .spec-item i {
        font-size: 1.8rem;
    }
    
    /* Booking form */
    .price-display .amount {
        font-size: 2rem;
    }
    
    .btn-book {
        padding: var(--spacing-md);
        font-size: 1rem;
    }
    
    /* Location highlights */
    .location-highlights {
        gap: var(--spacing-md);
    }
    
    /* Gallery modal adjustments */
    .modal-nav {
        display: none; /* Hide navigation buttons on very small screens */
    }
    
    .modal-close {
        top: var(--spacing-sm);
        right: var(--spacing-sm);
        position: fixed;
    }
    
    /* Footer */
    .footer-content {
        gap: var(--spacing-md);
    }
    
    .footer-legal {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
}

/* Large Desktop Styles */
@media screen and (min-width: 1400px) {
    
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .details-grid {
        grid-template-columns: 2.5fr 1fr;
        gap: var(--spacing-3xl);
    }
    
    .property-specs {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .features-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .thumbnail-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
}

/* Print Styles */
@media print {
    
    .language-selector,
    .nav-toggle,
    .gallery-btn,
    .booking-sidebar,
    .social-links {
        display: none !important;
    }
    
    .header {
        position: static;
        box-shadow: none;
        border-bottom: 1px solid var(--medium-gray);
    }
    
    .main-content {
        margin: 0;
    }
    
    .property-gallery {
        page-break-inside: avoid;
    }
    
    .footer {
        margin-top: var(--spacing-xl);
        padding: var(--spacing-lg) 0;
        border-top: 1px solid var(--medium-gray);
        background: white;
        color: var(--text-dark);
    }
    
    a {
        color: var(--text-dark) !important;
    }
    
    .hero-title {
        color: var(--text-dark) !important;
        background: none !important;
        -webkit-text-fill-color: var(--text-dark) !important;
    }
    
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    
    :root {
        --primary-blue: #000080;
        --secondary-blue: #0000CD;
        --text-light: #333333;
        --medium-gray: #CCCCCC;
    }
    
    .language-toggle,
    .booking-card,
    .contact-card,
    .spec-item,
    .features-list li {
        border: 2px solid var(--text-dark);
    }
    
    .btn-primary,
    .btn-book {
        background-color: #000080;
        border: 2px solid #000080;
    }
    
    .btn-primary:hover,
    .btn-book:hover {
        background-color: #0000CD;
        border-color: #0000CD;
    }
    
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    
    * {
        transition: none !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
    
    .loading-spinner i {
        animation: none;
    }
    
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    
    :root {
        --warm-white: #1a1a1a;
        --light-gray: #2d2d2d;
        --medium-gray: #404040;
        --text-dark: #ffffff;
        --text-light: #b3b3b3;
        --dark-gray: #0a0a0a;
    }
    
    body {
        background-color: var(--warm-white);
        color: var(--text-dark);
    }
    
    .header {
        background-color: #2d2d2d;
        border-bottom: 1px solid var(--medium-gray);
    }
    
    .language-toggle,
    .booking-card,
    .contact-card,
    .spec-item,
    .features-list li {
        background-color: #2d2d2d;
        border-color: var(--medium-gray);
    }
    
    .language-dropdown {
        background-color: #2d2d2d;
        border-color: var(--medium-gray);
    }
    
    .language-search input {
        background-color: #404040;
        border-color: var(--medium-gray);
        color: var(--text-dark);
    }
    
    .language-item:hover {
        background-color: #404040;
    }
    
}