/* Responsive Styles */

/* Desktop - Ensure mobile menu is hidden on larger screens */
@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .nav-links {
        display: flex !important;
    }
    
    .lang-switcher {
        display: flex !important;
    }
}

/* Lightbox Mobile Adjustments */
@media (max-width: 768px) {
    /* Mobile Navigation */
    .nav-links {
        display: none;
    }
    
    .nav-actions {
        display: flex;
        align-items: center;
        gap: var(--space-3);
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .lang-switcher {
        display: none;
    }
    
    .lightbox-nav {
        padding: var(--space-3);
        font-size: var(--font-size-lg);
    }
    
    .lightbox-prev {
        left: var(--space-4);
    }
    
    .lightbox-next {
        right: var(--space-4);
    }
    
    .lightbox-close {
        top: var(--space-4);
        right: var(--space-4);
    }
    
    /* Bento Gallery Mobile */
    .bento-gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(5, 150px);
        gap: var(--space-3);
    }
    
    .bento-item.bento-large {
        grid-column: span 2;
        grid-row: span 2;
    }
    
    /* Dintorni Mobile */
    .dintorni-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    .dintorni-content {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-3);
    }
    
    /* Calendar Legend Mobile */
    .calendar-legend {
        gap: var(--space-1);
        margin: var(--space-1) 0 var(--space-3);
    }
    
    .calendar-legend-item {
        font-size: var(--font-size-xs);
        gap: var(--space-1);
    }
    
    .legend-dot {
        width: 10px;
        height: 10px;
    }
    
    /* Calendar Grid Mobile */
    .calendar-grid {
        gap: var(--space-1);
    }
    
    .calendar-day {
        font-size: var(--font-size-sm);
        min-height: 32px;
    }
    
   
    
    
    
}

/* Large Desktop (2xl) - 1536px and up */
@media (min-width: 1536px) {
    .container {
        max-width: var(--container-2xl);
    }
    
    .hero-title {
        font-size: 4rem;
    }
}

/* Desktop (xl) - 1280px to 1535px */
@media (max-width: 1535px){
    .container {
        max-width: var(--container-xl);
    }
}

/* Large Tablet (lg) - 1024px to 1279px */
@media (max-width: 1279px) {

    
    .hero-title {
        font-size: var(--font-size-4xl);
    }
    
    .contact-card {
        padding: var(--space-5);
    }
    
    /* Dintorni Tablet */
    .dintorni-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
    }
}

/* Tablet (md) - 768px to 1023px */
@media (max-width: 1023px) {
    .main-layout {
        max-width: var(--container-md);
        padding: 0 var(--space-6);
        grid-template-columns: 1fr;
        gap: var(--space-12);
    }
    .booking-widget{
        border: none;
    }
     /* Hide sidebar on mobile, show mobile calendar and CTA */
     .sidebar-column {
        display: none;
    }
    .mobile-calendar-section {
        display: block;
        margin-bottom: var(--space-8);
    }
    .content-column {
        padding-right: 0;
    }
    
    .sidebar-column {
        position: relative;
        top: auto;
        order: -1;
    }
    
    /* Navigation */
    .nav-links {
        gap: var(--space-6);
    }
    
    .nav-links a {
        font-size: var(--font-size-sm);
    }
    
    /* Dintorni Tablet MD */
    .dintorni-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
    }
    
    /* Hero Section */
    .hero {
        padding: var(--space-24) 0 var(--space-16);
    }
    
    .hero-content {
        gap: var(--space-12);
    }
    
    .hero-title {
        font-size: var(--font-size-4xl);
    }
    
    .hero-details {
        gap: var(--space-8);
    }
    
    .detail-value {
        font-size: var(--font-size-3xl);
    }
    
    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr;
        height: auto;
        gap: var(--space-4);
    }
    
    .gallery-main {
        height: 300px;
    }
    
    .gallery-thumbnails {
        grid-template-columns: repeat(4, 1fr);
        height: 120px;
    }
    
    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    /* Location */
    .location-content {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    /* Show sticky CTA on tablet */
    .mobile-sticky-cta { display: inline-flex; }
    

    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-8);
        text-align: center;
    }
}

/* Mobile menu improvements */
@media (max-width: 480px) {
    .mobile-menu-content {
        width: 100vw;
        max-width: 100vw;
        padding: var(--space-4);
    }
    
    .mobile-menu-header {
        margin-bottom: var(--space-4);
        padding-bottom: var(--space-3);
    }
    
    .mobile-menu-header h2 {
        font-size: var(--font-size-lg);
    }
    
    .mobile-menu-close {
        width: 40px;
        height: 40px;
    }
    
    .mobile-menu-links a {
        padding: var(--space-3);
        font-size: var(--font-size-base);
    }
    
    .mobile-lang-switcher {
        gap: var(--space-1);
    }
    
    .mobile-lang-switcher .btn-base {
        padding: var(--space-2) var(--space-3);
    }
}

/* Mobile Large (sm) - 640px to 767px */
@media (max-width: 767px) {
    .main-layout {
        max-width: var(--container-sm);
        padding: 0 var(--space-4);
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    .content-column {
        padding-right: 0;
    }
    
    /* Navigation */
    .nav {
        padding: var(--space-3) 0;
    }
    
    .logo h1 {
        font-size: var(--font-size-lg);
    }
    
    .nav-links {
        gap: var(--space-4);
    }
    
    .nav-links a {
        font-size: var(--font-size-xs);
    }
    
    /* Hero Section */
    .hero {
        padding: var(--space-20) 0 var(--space-12);
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    .hero-title {
        font-size: var(--font-size-3xl);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-base);
    }
    
    .hero-details {
        flex-direction: column;
        gap: var(--space-6);
    }
    
    .detail-value {
        font-size: var(--font-size-2xl);
    }
    
    .cta-button {
        width: 100%;
        padding: var(--space-4);
    }
    
    /* Contact Card */
    .contact-card {
        padding: var(--space-4);
        position: relative;
        top: auto;
    }
    
    .contact-avatar {
        width: 60px;
        height: 60px;
    }
    
    .contact-info h3 {
        font-size: var(--font-size-lg);
    }
    
    /* Gallery */
    .gallery {
        padding: var(--space-12) 0;
    }
    
    /* Show sticky CTA on mobile */
    .mobile-sticky-cta { display: inline-flex; }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        height: auto;
        gap: var(--space-3);
    }
    
    .gallery-main {
        height: 250px;
    }
    
    .gallery-thumbnails {
        grid-template-columns: repeat(2, 1fr);
        height: 100px;
        gap: var(--space-2);
    }
    
    /* Contact Section */
    .contact-section {
        padding: var(--space-12) 0;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    .contact-info h2 {
        font-size: var(--font-size-2xl);
    }
    
    .contact-info p {
        font-size: var(--font-size-base);
    }
    
    .contact-highlights {
        gap: var(--space-3);
    }
    
    .highlight-item {
        padding: var(--space-2) var(--space-3);
    }
    
    .whatsapp-cta-button {
        padding: var(--space-4) var(--space-6);
        font-size: var(--font-size-base);
    }
    
    /* Description */
    .description {
        padding: var(--space-12) 0;
    }
    
    .description h2 {
        font-size: var(--font-size-2xl);
    }
    
    .description-content p {
        font-size: var(--font-size-base);
    }
    
    /* Features */
    .features {
        padding: var(--space-12) 0;
    }
    
    .features h2 {
        font-size: var(--font-size-2xl);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    .feature-group {
        padding: var(--space-5);
    }
    
    
    .feature-label {
        font-size: var(--font-size-sm);
    }
    
    
    /* Location */
    .location {
        padding: var(--space-12) 0;
    }
    
    .location-content {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    .location-info h2 {
        font-size: var(--font-size-2xl);
    }
    
    .location-info address {
        font-size: var(--font-size-base);
    }
    
   
    
    /* Footer */
    .footer {
        padding: var(--space-12) 0 var(--space-6);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-6);
        text-align: center;
    }
    
    .footer-brand h3 {
        font-size: var(--font-size-xl);
    }
    
    .footer-brand p {
        font-size: var(--font-size-base);
    }
}

/* Mobile Small - Under 640px */
@media (max-width: 639px) {
    .main-layout {
        padding: 0 var(--space-3);
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    .content-column {
        padding-right: 0;
    }
    
    
    /* Navigation */
    .nav {  
        gap: var(--space-3);
        padding: var(--space-2) 0;
    }
    
    .logo h1 {
        font-size: var(--font-size-base);
    }
    
    .nav-links {
        gap: var(--space-3);
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-links a {
        font-size: var(--font-size-xs);
        padding: var(--space-1) var(--space-2);
    }
    
    /* Hero Section */
    .hero {
        padding: var(--space-16) 0 var(--space-8);
    }
    
    .hero-title {
        font-size: var(--font-size-2xl);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-sm);
        margin-bottom: var(--space-6);
    }
    
    .hero-details {
        flex-direction: column;
        gap: var(--space-4);
        margin-bottom: var(--space-6);
    }
    
    .detail-value {
        font-size: var(--font-size-xl);
    }
    
    .detail-label {
        font-size: var(--font-size-base);
    }
    
    /* Contact Card */
    .contact-card {
        padding: var(--space-3);
        position: relative;
        top: auto;
    }
    
    .contact-avatar {
        width: 50px;
        height: 50px;
        margin-bottom: var(--space-3);
    }
    
    .contact-info h3 {
        font-size: var(--font-size-base);
    }
    
    .contact-info > p {
        font-size: var(--font-size-xs);
    }
    
    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-1);
    }
    
    .contact-item .label,
    .contact-item .value {
        font-size: var(--font-size-xs);
    }
    
    /* Gallery */
    .gallery {
        padding: var(--space-8) 0;
    }
    
    .gallery-main {
        height: 200px;
    }
    
    .gallery-thumbnails {
        height: 80px;
        gap: var(--space-1);
    }
    
    /* All sections spacing */
    .description,
    .features,
    .location {
        padding: var(--space-8) 0;
    }
    
    /* All section titles */
    .description h2,
    .features h2,
    .location-info h2 {
        font-size: var(--font-size-xl);
        margin-bottom: var(--space-4);
    }
    
    /* Contact section mobile optimization */
    .contact-highlights {
        gap: var(--space-2);
    }
    
    .highlight-item {
        padding: var(--space-2);
    }
    
    .highlight-icon {
        font-size: var(--font-size-lg);
    }
    
    .highlight-text {
        font-size: var(--font-size-sm);
    }
    
    /* Features mobile optimization */
    .feature-group {
        padding: var(--space-3);
    }
    
    .feature-group h3 {
        font-size: var(--font-size-lg);
        margin-bottom: var(--space-4);
    }
    
    .feature-item {
        padding: var(--space-2) var(--space-3);
    }
    
    
    
    .map-placeholder p {
        font-size: var(--font-size-base);
    }
    
    /* Footer mobile */
    .footer {
        padding: var(--space-8) 0 var(--space-4);
    }
    
    .footer-brand h3 {
        font-size: var(--font-size-lg);
    }
    
    .footer-brand p,
    .footer-contact p {
        font-size: var(--font-size-sm);
    }
    
    .footer-contact h4 {
        font-size: var(--font-size-base);
    }
}

/* Print Styles */
@media print {
    .header,
    .booking,
    .footer {
        display: none;
    }
    
    .hero,
    .gallery,
    .description,
    .features,
    .location {
        page-break-inside: avoid;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .hero-title {
        font-size: 24pt;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
}

/* Reduced Motion Preference */
@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;
    }
    
    .gallery-main img:hover,
.gallery-main video:hover,
    .gallery-thumbnails img:hover,
    .cta-button:hover,
    .contact-button:hover,
    .map-button:hover,
    .submit-button:hover {
        transform: none;
    }
}

/* Booking Calendar Responsive Styles */

/* Tablet and Mobile - 768px and down */
@media (max-width: 768px) {
    .main-layout {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    .sidebar-column {
        order: -1;
        position: relative;
        top: 0;
    }
    
    .booking-widget {
        margin-top: 0;
        padding: var(--space-4);
    }
    
    .booking-header h3 {
        font-size: var(--font-size-lg);
    }
    
    .calendar-grid {
        gap: 1px;
    }
    
    .calendar-day {
        font-size: var(--font-size-xs);
        min-height: 36px;
    }
    
    .calendar-nav-btn {
        width: 36px;
        height: 36px;
    }
    
    .calendar-month-year {
        font-size: var(--font-size-base);
    }
    
    .booking-whatsapp-btn {
        padding: var(--space-3) var(--space-4);
        font-size: var(--font-size-sm);
    }
    
    .price-breakdown {
        margin-bottom: var(--space-4);
    }
    
    .date-item,
    .price-item {
        margin-bottom: var(--space-2);
    }
    
    .date-label,
    .price-label {
        font-size: var(--font-size-xs);
    }
    
    .date-value {
        font-size: var(--font-size-xs);
    }
}

/* Mobile Large - 640px to 767px */
@media (max-width: 767px) {
    .booking-widget {
        padding: var(--space-5);
    }
}

/* Mobile Small - Under 640px */
@media (max-width: 639px) {
    .mobile-sticky-cta{
        left:16px;
        transform: translateX(0);
        width: calc(100% - 32px);
    }
    .booking-widget {
        margin-top: var(--space-4);
        padding: var(--space-3);
    }
    
    .booking-header h3 {
        font-size: var(--font-size-base);
        margin-bottom: var(--space-3);
    }
    
    .booking-discount {
        font-size: var(--font-size-xs);
        padding: var(--space-1) var(--space-2);
    }
    
    .calendar-navigation {
        margin-bottom: var(--space-3);
    }
    
    .calendar-nav-btn {
        width: 30px;
        height: 30px;
    }
    
    .calendar-nav {
        width: 30px;
        height: 30px;
    }
    
    .calendar-month-year {
        font-size: var(--font-size-sm);
    }
    
    .calendar-grid {
        margin-bottom: var(--space-3);
    }
    
    .calendar-day {
        font-size: var(--font-size-xs);
        min-height: 32px;
    }
    
    .calendar-day-header {
        font-size: 10px;
        padding: var(--space-1);
    }
    
    .booking-dates-summary {
        padding-top: var(--space-3);
    }
    
    .dates-selected {
        margin-bottom: var(--space-3);
    }
    
    .date-item,
    .price-item {
        margin-bottom: var(--space-1);
    }
    
    .date-label,
    .price-label {
        font-size: 11px;
    }
    
    .date-value {
        font-size: 11px;
    }
    
    .price-original {
        font-size: 11px;
    }
    
    .price-discounted {
        font-size: var(--font-size-sm);
    }
    
    .savings-amount {
        font-size: var(--font-size-sm);
    }
    
    .price-breakdown {
        margin-bottom: var(--space-3);
    }
    
    .booking-whatsapp-btn {
        padding: var(--space-3);
        font-size: var(--font-size-xs);
        gap: var(--space-2);
    }
    
    .booking-whatsapp-btn .whatsapp-icon {
        width: 16px;
        height: 16px;
    }
}

/* Very Small Screens - Under 320px */
@media (max-width: 319px) {
    .booking-widget {
        margin-top: var(--space-3);
        padding: var(--space-2);
    }
    
    .calendar-day {
        min-height: 28px;
        font-size: 10px;
    }
    
    .calendar-nav-btn {
        width: 24px;
        height: 24px;
    }
    
    .booking-whatsapp-btn {
        padding: var(--space-2);
        font-size: 10px;
    }
}
