/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
}

@media (max-width: 992px) {
    h1 {
        font-size: 3rem;
    }
    
    .container {
        max-width: 720px;
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    .container {
        max-width: 540px;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .services-grid {
        gap: 20px;
    }

    .service-item {
        padding: 30px 20px;
    }

    .property-archive-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .property-header {
        padding: 30px 20px;
    }

    .property-title {
        font-size: 2rem;
    }

    .property-content {
        padding: 30px 20px;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .property-map {
        height: 300px;
    }

    .calculator-options {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    h1 h2 h3 h4 {
        font-size: 1.5rem;
    }
    
    .container {
        padding: 0 10px;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .property-single .property-title {
        font-size: 1.8rem;
    }

    .property-content h2 {
        font-size: 1.5rem;
    }

    .result-item .value {
        font-size: 1.2rem;
    }

    .dark-mode-toggle {
        bottom: 15px;
        right: 15px;
    }

    .back-to-top {
        bottom: 70px;
        right: 15px;
    }

    .dark-mode-btn,
    .back-to-top-btn {
        width: 40px;
        height: 40px;
    }
}

/* Print Styles */
@media print {
    .site-header,
    .dark-mode-toggle,
    .back-to-top,
    .property-contact,
    .property-calculator {
        display: none !important;
    }

    .site-content {
        margin-top: 0 !important;
    }

    body {
        color: #000 !important;
        background: #fff !important;
    }

    a {
        color: #000 !important;
        text-decoration: underline !important;
    }

    .property-card,
    .property-single {
        box-shadow: none !important;
        border: 1px solid #000 !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --maroon: #600000;
        --gold: #FFCC00;
        --light-gray: #f0f0f0;
        --dark-gray: #000000;
        --white: #ffffff;
        --black: #000000;
    }

    .btn {
        border: 2px solid currentColor;
    }

    .service-item,
    .property-card,
    .property-single {
        border: 2px solid var(--dark-gray);
    }
}

/* Reduced Motion Support */
@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;
    }

    .service-item:hover,
    .property-card:hover,
    .btn:hover {
        transform: none !important;
    }

    .service-icon,
    .property-image img {
        transition: none !important;
    }
}

/* Touch Device Improvements */
@media (hover: none) and (pointer: coarse) {
    .has-dropdown:hover .sub-menu {
        opacity: 0;
        visibility: hidden;
    }

    .service-item:hover,
    .property-card:hover {
        transform: none;
    }

    .btn:hover {
        transform: none;
    }
} 