/* Responsive CSS for Topla Property Landing Page */

/* Mobile First Approach */

/* Small devices (phones, up to 640px) */
@media (max-width: 640px) {
    /* Typography scaling */
    :root {
        --font-size-3xl: 2rem;
        --font-size-2xl: 1.75rem;
        --font-size-xl: 1.25rem;
    }
    
    /* Layout adjustments */
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .section-title {
        margin-bottom: var(--spacing-lg);
    }
    
    /* Navigation */
    .nav-links {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: var(--shadow-md);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        margin-bottom: var(--spacing-sm);
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    /* Hero */
    .hero {
        min-height: 500px;
    }
    
    .hero h1 {
        font-size: var(--font-size-2xl);
    }
    
    .hero p {
        font-size: var(--font-size-base);
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .btn {
        width: 100%;
    }
    
    /* Features grid */
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    /* Description section */
    .description-content {
        grid-template-columns: 1fr;
    }
    
    .property-specs {
        margin-top: var(--spacing-md);
    }
    
    /* Gallery */
    .gallery-tabs {
        flex-wrap: wrap;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .prev, .next {
        font-size: 30px;
    }
    
    .prev {
        left: var(--spacing-sm);
    }
    
    .next {
        right: var(--spacing-sm);
    }
    
    /* Location */
    .location-content {
        grid-template-columns: 1fr;
    }
    
    .location-map {
        min-height: 300px;
        margin-bottom: var(--spacing-md);
    }
    
    /* Contact */
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        margin-top: var(--spacing-md);
    }
}

/* Medium devices (tablets, 641px to 768px) */
@media (min-width: 641px) and (max-width: 768px) {
    /* Typography scaling */
    :root {
        --font-size-3xl: 2.5rem;
    }
    
    /* Navigation */
    .nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-links.active {
        display: flex;
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: var(--shadow-md);
    }
    
    /* Description & Location sections */
    .description-content,
    .location-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    /* Contact section */
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
}

/* Large devices (laptops/desktops, 769px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    /* Features grid */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Gallery grid */
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

/* Extra large devices (large desktops, 1025px and up) */
@media (min-width: 1025px) {
    /* Container max width */
    .container {
        max-width: 1200px;
    }
    
    /* Features grid */
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Gallery grid */
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 400px;
        height: auto;
        padding: 100px 0 var(--spacing-xl);
    }
}

/* Print styles */
@media print {
    .language-switcher,
    .main-nav,
    .cta-buttons,
    .gallery-tabs,
    .contact-form,
    footer {
        display: none;
    }
    
    .hero {
        height: auto;
        min-height: auto;
        color: var(--text-dark);
        text-align: left;
    }
    
    .hero-slideshow::before {
        display: none;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero h1,
    .hero p {
        text-shadow: none;
        color: var(--text-dark);
    }
    
    section {
        padding: var(--spacing-md) 0 !important;
        page-break-inside: avoid;
    }
    
    .description-content,
    .location-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    a::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
}

/* Responsive Styles for Topla Villa */

/* Large Screens (Desktops) */
@media screen and (max-width: 1200px) {
    :root {
        --container-padding: 2rem;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

/* Medium Screens (Tablets) */
@media screen and (max-width: 992px) {
    :root {
        --spacing-xl: 2.5rem;
        --spacing-xxl: 4rem;
    }
    
    .hero-content {
        max-width: 600px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-features {
        flex-wrap: wrap;
    }
    
    .description-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .property-specs {
        position: static;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .contact-image {
        order: -1;
        max-height: 400px;
    }
    
    .location-content {
        grid-template-columns: 1fr;
    }
    
    .location-map {
        height: 400px;
    }
}

/* Small Screens (Large Phones) */
@media screen and (max-width: 768px) {
    :root {
        --font-size-3xl: 2.5rem;
        --font-size-2xl: 1.8rem;
    }
    
    header {
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
    }
    
    .logo .logo-text {
        color: var(--text-dark);
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .mobile-menu-toggle span {
        background-color: var(--text-dark);
    }
    
    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        padding: var(--spacing-md) 0;
        box-shadow: var(--shadow-md);
        transform: translateY(-150%);
        transition: transform var(--transition-base);
        z-index: 90;
    }
    
    .nav-links.active {
        transform: translateY(0);
    }
    
    .nav-links a {
        color: var(--text-dark);
        padding: var(--spacing-sm) 0;
        width: 100%;
        text-align: center;
    }
    
    .hero-content {
        padding: var(--spacing-md);
    }
    
    .hero-features {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    /* Price-related responsive styles - commented out after removing price elements
    .price-highlight {
        width: 90%;
    }
    */
    
    .features-grid,
    .value-proposition {
        grid-template-columns: 1fr;
    }
    
    .gallery-tabs {
        flex-wrap: wrap;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .prev, .next {
        width: 40px;
        height: 40px;
    }
    
    .prev {
        left: var(--spacing-sm);
    }
    
    .next {
        right: var(--spacing-sm);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Extra Small Screens (Small Phones) */
@media screen and (max-width: 576px) {
    :root {
        --font-size-3xl: 2rem;
        --font-size-2xl: 1.5rem;
        --font-size-xl: 1.25rem;
        --spacing-xl: 2rem;
        --spacing-xxl: 3rem;
    }
    
    .language-switcher {
        top: var(--spacing-xs);
        right: var(--spacing-xs);
    }
    
    .language-switcher button {
        padding: 6px 8px;
        font-size: 12px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .btn {
        width: 100%;
    }
    
    .price-amount {
        font-size: 2.5rem;
    }
    
    .gallery-tabs button {
        font-size: 12px;
        padding: 8px 12px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-method {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .contact-card {
        padding: var(--spacing-md);
    }
    
    .lightbox-content {
        max-width: 95%;
    }
    
    .footer-content {
        gap: var(--spacing-lg);
    }
} 