* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* ---=== HERO COLLAGE RESPONSIVE FIXES ===--- */
/* Large Desktop (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
    
    /* Hero Collage Adjustments */
  .hero-collage {
        top: -10%;
        left: -18%;
        width: 136%;
        height: 120%;
        transform: skew(-15deg);
    }
    
    .hero-title {
        font-size: 4.5rem;
        text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.9), 
                     2px 2px 4px rgba(0, 0, 0, 0.8);
    }
    
    .hero-description {
        font-size: 1.4rem;
        max-width: 700px;
    }
    
    .hero-cta .btn {
        padding: 1.2rem 2.5rem;
        font-size: 1.1rem;
        max-width: 250px;
    }
    
    .section-title {
        font-size: 3.5rem;
    }
    
    .properties-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Process Section */

@media (max-width: 1023px) {
    .process-grid,
    .insights-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }
    
    .process-section,
    .insights-section {
        padding: 4rem 0;
    }
}

@media (max-width: 767px) {
    .process-grid,
    .insights-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .process-card {
        padding: 2.5rem 1.5rem;
    }
    
    .process-icon-wrapper {
        width: 70px;
        height: 70px;
        margin-bottom: 1.2rem;
    }
    
    .process-icon {
        width: 35px;
        height: 35px;
    }
    
    .process-number {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
        top: -8px;
        right: -8px;
    }
    
    .process-card h3 {
        font-size: 1.3rem;
    }
    
    .insight-image {
        height: 200px;
    }
    
    .insight-content {
        padding: 2rem 1.5rem;
    }
    
    .insight-content h3 {
        font-size: 1.3rem;
    }
    
    .process-section,
    .insights-section {
        padding: 3rem 0;
    }
}

@media (max-width: 575px) {
    .process-card {
        padding: 2rem 1.2rem;
        border-radius: 15px;
    }
    
    .insight-card {
        border-radius: 15px;
    }
    
    .insight-image {
        height: 180px;
    }
    
    .insight-content {
        padding: 1.5rem 1.2rem;
    }
    
    .process-icon-wrapper {
        width: 60px;
        height: 60px;
    }
    
    .process-icon {
        width: 30px;
        height: 30px;
    }
}

/* Animation for cards entering viewport */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.process-card,
.insight-card {
    animation: slideInUp 0.6s ease-out forwards;
}

.process-card:nth-child(1) { animation-delay: 0.1s; }
.process-card:nth-child(2) { animation-delay: 0.2s; }
.process-card:nth-child(3) { animation-delay: 0.3s; }
.process-card:nth-child(4) { animation-delay: 0.4s; }

.insight-card:nth-child(1) { animation-delay: 0.1s; }
.insight-card:nth-child(2) { animation-delay: 0.2s; }
.insight-card:nth-child(3) { animation-delay: 0.3s; }

/* Desktop (992px to 1199px) */
@media (max-width: 1199px) {
    /* Hero Collage Adjustments */
    .hero-collage {
        top: -12%;
        left: -20%;
        width: 140%;
        height: 124%;
        transform: skew(-15deg);
    }
    
    .hero-title {
        font-size: 3.8rem;
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9), 
                     1px 1px 3px rgba(0, 0, 0, 0.8);
    }
    
    .hero-cta .btn {
        max-width: 240px;
    }
    
    .section-title {
        font-size: 2.8rem;
    }
    
    .properties-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}

/* Tablet Large (992px to 1023px) */
@media (max-width: 1023px) {
    .hero-collage {
        transform: skew(-12deg);
        top: -15%;
        left: -22%;
        width: 144%;
        height: 130%;
    }
    
    .collage-segment {
        background-attachment: scroll;
    }
    
    .hero-cta .btn {
        max-width: 220px;
        font-size: 1rem;
    }
    
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .properties-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .featured-property {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .featured-image {
        order: -1;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-info-section {
        order: 2;
    }
    
    .contact-form-section {
        order: 1;
    }
}

/* Tablet Portrait (768px to 991px) */
@media (max-width: 991px) {
    /* Hero Section */
    .hero {
        min-height: 60vh;
        padding: 60px 20px;
    }
    
    .hero-collage {
        transform: skew(-10deg);
        top: -18%;
        left: -25%;
        width: 150%;
        height: 136%;
    }
    
    .hero-title {
        font-size: 3.2rem;
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.95), 
                     1px 1px 3px rgba(0, 0, 0, 0.85);
        margin-bottom: 1.2rem;
    }
    
    .hero-description {
        font-size: 1.2rem;
        margin-bottom: 2rem;
        max-width: 500px;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.95);
    }
    
    .hero-cta {
        gap: 1rem;
        max-width: 100%;
    }
    
    .hero-cta .btn {
        flex: 1;
        min-width: 180px;
        max-width: 220px;
        padding: 1rem 1.5rem;
    }
    
    /* General Styles */
    .section-title {
        font-size: 2.5rem;
    }
    
    h1 {
        font-size: 3rem;
    }
    
    .hero-benefits {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .property-filters {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .filter-group {
        min-width: unset;
    }
    
    .cta-content h2 {
        font-size: 2.5rem;
    }
    
    .cta-content p {
        font-size: 1.1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .featured-pricing {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Mobile Large (768px and down) */
@media (max-width: 767px) {
    /* Navigation */
    .desktop-nav {
        display: none;
    }
    
    .mobile-nav {
        display: block;
    }
    
    .hamburger-btn {
        background: none;
        border: none;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        gap: 4px;
        padding: 8px;
        z-index: 1001;
    }
    
    .hamburger-line {
        width: 25px;
        height: 3px;
        background: var(--white);
        transition: var(--transition-medium);
    }
    
    .mobile-menu {
        display: none;
        flex-direction: column;
        background: var(--white);
        border: 1px solid var(--medium-gray);
        border-radius: 15px;
        box-shadow: var(--shadow-heavy);
        position: fixed;
        top: 85px;
        right: 20px;
        width: 280px;
        padding: 1.5rem;
        z-index: 1000;
    }
    
    .mobile-menu.active {
        display: flex;
        animation: slideInDown 0.3s ease-out;
    }
    
    @keyframes slideInDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .mobile-tab {
        text-align: left;
        padding: 1rem 1.5rem;
        width: 100%;
        border-radius: 10px;
        margin-bottom: 0.5rem;
        background: transparent;
        color: var(--text-dark);
        border: none;
        font-size: 1.1rem;
        font-weight: 500;
        transition: var(--transition-medium);
    }
    
    .mobile-tab:hover {
        background: var(--light-gray);
        color: var(--burgundy-primary);
    }
    
    .mobile-tab.active {
        background: var(--primary-gradient);
        color: var(--white);
    }

    /* Hero Section - Mobile Large */
    .hero {
        min-height: 60vh; /* Reduced height */
        padding: 40px 15px;
    }
    
    .hero-collage {
        transform: skew(-8deg);
        top: -25%;
        left: -30%;
        width: 160%;
        height: 150%;
    }
    
    .hero-overlay {
        background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0.1) 20%,
        rgba(0, 0, 0, 0.2) 50%,
        rgba(0, 0, 0, 0.2) 60%
        );
    }
    
    .hero-inner {
        padding: 1rem;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.1;
        text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.95), 
                     2px 2px 4px rgba(0, 0, 0, 0.9);
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.5rem; /* Reduced margin */
        max-width: 350px;
        text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.95);
        line-height: 1.4;
    }
    
    .hero-cta {
        flex-direction: row; /* Side by side */
        gap: 0.8rem;
        width: 100%;
        max-width: 400px;
        justify-content: center;
    }
    
    .hero-cta .btn {
        flex: 1;
        min-width: 150px;
        max-width: 180px;
        padding: 0.9rem 1.2rem;
        font-size: 0.9rem;
        font-weight: 600;
    }
    
    .collage-segment {
        background-attachment: scroll;
        background-size: cover;
    }

    /* Content Sections */
    .content-section {
        padding: 4rem 0;
    }
    
    .section-title {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
        margin-bottom: 3rem;
    }
    
    /* Grids */
    .info-grid,
    .properties-grid,
    .testimonials-grid{
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .info-card,
    .testimonial-card {
        padding: 2rem;
    }
    
    /* Property Filters */
    .property-filters {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-select {
        padding: 1rem;
        font-size: 1rem;
    }
    
    /* Property Cards */
    .property-card {
        margin-bottom: 1rem;
    }
    
    .property-image {
        height: 250px;
    }
    
    .property-content {
        padding: 1.5rem;
    }
    
    .property-title {
        font-size: 1.3rem;
    }
    
    .property-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .property-actions .btn {
        width: 100%;
        min-width: unset;
    }
    
    /* FAQ Section */
    .faq-container {
        margin: 0 -10px;
    }
    
    .faq-item {
        margin-bottom: 1rem;
        border-radius: 12px;
    }
    
    .faq-question {
        padding: 1.5rem;
        font-size: 1.1rem;
    }
    
    .faq-answer p {
        padding: 0 1.5rem 1.5rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Contact Section */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info-section,
    .contact-form-section {
        padding: 2rem;
    }
    
    .contact-method {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .contact-icon {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .social-links {
        flex-direction: column;
    }
    
    .hours-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* About Section */
    .about-text {
        padding: 2rem;
    }
    
    .about-text h3 {
        font-size: 1.5rem;
    }
    
    .about-text p {
        font-size: 1rem;
    }
    
    /* Featured Section */
    .featured-section {
        padding: 3rem 2rem;
        margin: 4rem 0;
    }
    
    .featured-property {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .featured-image {
        order: -1;
    }
    
    .featured-image img {
        height: 300px;
    }
    
    .featured-content h3 {
        font-size: 1.8rem;
    }
    
    .featured-subtitle {
        font-size: 1.1rem;
    }
    
    .featured-features {
        justify-content: center;
    }
    
    .featured-pricing {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* CTA Section */
    .cta-section {
        padding: 3rem 2rem;
        margin: 4rem 0;
        border-radius: 20px;
    }
    
    .cta-content h2 {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    .cta-content p {
        font-size: 1.1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    /* Trusted By Section */
    .trusted-by-section {
        padding: 3rem 0;
    }
    
    .logos-grid {
        gap: 2rem;
        justify-content: center;
    }
    
    .logos-grid img {
        height: 30px;
    }
    
    /* Admin Forms */
    .admin-form .form-container {
        padding: 2rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .admin-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .admin-actions .btn {
        width: 100%;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column-reverse;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-legal {
        justify-content: center;
    }
    
    /* Image Gallery */
    /*.gallery-container {*/
    /*    max-width: 95vw;*/
    /*    max-height: 95vh;*/
    /*    padding: 1rem;*/
    /*    border-radius: 15px;*/
    /*}*/
    
    /*#gallery-main-image {*/
    /*    max-height: 60vh;*/
    /*}*/
    
    .nav-btn {
        padding: 0.8rem 1rem;
        font-size: 1.5rem;
    }
    
    .nav-btn.prev {
        left: -15px;
    }
    
    .nav-btn.next {
        right: -15px;
    }
    
    .thumbnail {
        height: 60px;
    }
    
    /* Notifications */
    .notification {
        bottom: 20px;
        right: 20px;
        left: 20px;
        max-width: none;
        padding: 1rem 1.5rem;
    }
}

/* Mobile Medium (576px to 767px) */
@media (max-width: 767px) and (min-width: 576px) {
    .hero-benefits {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .property-filters {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hours-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Small (575px and down) */
@media (max-width: 575px) {
    .container {
        padding: 0 15px;
    }
    
    /* Header */
    header {
        padding: 12px 0;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .mobile-menu {
        right: 15px;
        width: calc(100vw - 30px);
        top: 75px;
    }

    /* Hero Section - Mobile Small */
   @media (max-width: 400px) {
    .hero {
        min-height: 60vh; /* Most compact */
        padding: 25px 8px;
    }
    
    .hero-collage {
        transform: skew(-3deg);
        top: -35%;
        left: -40%;
        width: 180%;
        height: 170%;
    }
    
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.1;
        text-shadow: 5px 5px 12px rgba(0, 0, 0, 1), 
                     3px 3px 8px rgba(0, 0, 0, 0.98);
        margin-bottom: 0.6rem;
    }
    
    .hero-description {
        font-size: 0.85rem;
        max-width: 280px;
        text-shadow: 3px 3px 10px rgba(0, 0, 0, 1);
        margin-bottom: 1rem;
    }
    
    .hero-cta {
        gap: 0.5rem;
        max-width: 300px;
    }
    
    .hero-cta .btn {
        min-width: 120px;
        max-width: 140px;
        padding: 0.7rem 0.8rem;
        font-size: 0.8rem;
        letter-spacing: 0.3px;
    }
}

    /* Content */
    .content-section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 0.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2.5rem;
    }
    
    /* Cards */
    .info-card,
    .testimonial-card {
        padding: 1.5rem;
        border-radius: 15px;
    }
    
    .card-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .info-card h3,
    .testimonial-card h3 {
        font-size: 1.3rem;
    }
    
    /* Property Cards */
    .property-card {
        border-radius: 15px;
    }
    
    .property-image {
        height: 220px;
    }
    
    .property-content {
        padding: 1.2rem;
    }
    
    .property-title {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }
    
    .property-location {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .pricing-options {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .price-option {
        padding: 0.6rem 0;
    }
    
    .price-option span {
        font-size: 0.9rem;
    }
    
    .price-option strong {
        font-size: 1rem;
    }
    
    /* Filters */
    .property-filters {
        padding: 1.2rem;
        border-radius: 15px;
    }
    
    .filter-select {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    /* FAQ */
    .faq-question {
        padding: 1.2rem;
        font-size: 1rem;
    }
    
    .faq-answer p {
        padding: 0 1.2rem 1.2rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .faq-icon {
        width: 25px;
        height: 25px;
    }
    
    /* Contact */
    .contact-info-section,
    .contact-form-section {
        padding: 1.5rem;
        border-radius: 15px;
    }
    
    .contact-method {
        padding: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .contact-icon {
        font-size: 1.8rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    /* Featured Section */
    .featured-section {
        padding: 2.5rem 1.5rem;
        border-radius: 15px;
    }
    
    .featured-image img {
        height: 250px;
    }
    
    .featured-content h3 {
        font-size: 1.6rem;
    }
    
    .featured-subtitle {
        font-size: 1rem;
    }
    
    .featured-content p {
        font-size: 1rem;
    }
    
    .feature-tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .price-item {
        padding: 1rem;
    }
    
    .price-value {
        font-size: 1.5rem;
    }
    
    /* CTA */
    .cta-section {
        padding: 2.5rem 1.5rem;
        border-radius: 15px;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .cta-content p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    /* Trusted By */
    .trusted-by-section {
        padding: 2.5rem 0;
    }
    
    .trusted-by-section p {
        font-size: 0.8rem;
        margin-bottom: 2rem;
    }
    
    .logos-grid {
        gap: 1.5rem;
    }
    
    .logos-grid img {
        height: 25px;
    }
    
    /* Footer */
    .site-footer {
        padding: 3rem 0 1.5rem 0;
    }
    
    .footer-content {
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .footer-logo-img {
        height: 40px;
    }
    
    .footer-company-info h3 {
        font-size: 1.3rem;
    }
    
    .footer-section h4 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .contact-item {
        gap: 0.8rem;
        margin-bottom: 1rem;
    }
    
    .contact-icon {
        font-size: 1rem;
    }
    
    .contact-details p {
        font-size: 0.9rem;
    }
    
    /* Gallery */
    .gallery-container {
        padding: 0.8rem;
        border-radius: 12px;
    }
    
    #gallery-main-image {
        max-height: 50vh;
    }
    
    .nav-btn {
        padding: 0.6rem 0.8rem;
        font-size: 1.2rem;
    }
    
    .nav-btn.prev {
        left: -10px;
    }
    
    .nav-btn.next {
        right: -10px;
    }
    
    .thumbnail {
        height: 50px;
    }
    
    .gallery-close {
        font-size: 2rem;
        top: 10px;
        right: 15px;
    }
    
    /* Admin */
    .admin-form .form-container {
        padding: 1.5rem;
    }
    
    .form-header h3 {
        font-size: 1.5rem;
    }
    
    .close-btn {
        font-size: 1.8rem;
    }
    
    /* Utilities for Mobile */
    .mobile-hide {
        display: none !important;
    }
    
    .mobile-show {
        display: block !important;
    }
    
    .mobile-text-center {
        text-align: center !important;
    }
    
    .mobile-text-left {
        text-align: left !important;
    }
    
    .mobile-full-width {
        width: 100% !important;
    }
}

/* Extra Small Mobile (400px and down) */
@media (max-width: 400px) {
    .container {
        padding: 0 10px;
    }
    
    /* Hero Section - Extra Small */
    .hero {
        min-height: 60vh; /* Most compact */
        padding: 25px 8px;
    }
    
    .hero-collage {
        transform: skew(-3deg);
        top: -35%;
        left: -40%;
        width: 180%;
        height: 170%;
    }
    
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.1;
        text-shadow: 5px 5px 12px rgba(0, 0, 0, 1), 
                     3px 3px 8px rgba(0, 0, 0, 0.98);
        margin-bottom: 0.6rem;
    }
    
    .hero-description {
        font-size: 0.85rem;
        max-width: 280px;
        text-shadow: 3px 3px 10px rgba(0, 0, 0, 1);
        margin-bottom: 1rem;
    }
    
    .hero-cta {
        gap: 0.5rem;
        max-width: 300px;
    }
    
    .hero-cta .btn {
        min-width: 120px;
        max-width: 140px;
        padding: 0.7rem 0.8rem;
        font-size: 0.8rem;
        letter-spacing: 0.3px;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .info-card,
    .testimonial-card,
    .contact-info-section,
    .contact-form-section {
        padding: 1.2rem;
    }
    
    .property-content {
        padding: 1rem;
    }
    
    .property-filters {
        padding: 1rem;
    }
    
    .faq-question {
        padding: 1rem;
        font-size: 0.95rem;
    }
    
    .faq-answer p {
        padding: 0 1rem 1rem 1rem;
        font-size: 0.85rem;
    }
    
    .mobile-menu {
        width: calc(100vw - 20px);
        right: 10px;
    }
    
    .notification {
        left: 10px;
        right: 10px;
        padding: 1rem;
    }
}

/* Landscape Mobile Orientation */
@media (max-width: 767px) and (orientation: landscape) {
    .hero {
        min-height: 50vh;
        padding: 30px 20px;
    }
    
    .hero-collage {
        transform: skew(-10deg);
        top: -20%;
        left: -25%;
        width: 150%;
        height: 140%;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.2rem;
    }
    
    .hero-cta {
        flex-direction: row; /* Keep side by side in landscape */
        gap: 1rem;
        max-width: 400px;
    }
    
    .hero-cta .btn {
        flex: 1;
        min-width: 160px;
        max-width: 180px;
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .content-section {
        padding: 3rem 0;
    }
}

/* Performance optimizations for mobile */
@media (max-width: 767px) {
   .collage-segment {
        background-attachment: scroll !important;
        will-change: transform;
        backface-visibility: hidden;
        transform: translateZ(0);
    }
    
    .hero-collage {
        will-change: transform;
        backface-visibility: hidden;
    }
    
    /* Disable hover effects on mobile for better performance */
    .collage-segment:hover {
        transform: none;
    }
}

/* High DPI / Retina Displays */
@media only screen and (-webkit-min-device-pixel-ratio: 2),
       only screen and (min--moz-device-pixel-ratio: 2),
       only screen and (-o-min-device-pixel-ratio: 2/1),
       only screen and (min-device-pixel-ratio: 2),
       only screen and (min-resolution: 192dpi),
       only screen and (min-resolution: 2dppx) {
    
    .hero-collage {
        /* Optimize collage quality for retina displays */
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
    
    .collage-segment {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
    
    .logo-img,
    .footer-logo-img {
        /* Ensure logos look crisp on retina displays */
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print Styles */
@media print {
    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    .mobile-nav,
    .hamburger-btn,
    .mobile-menu,
    .btn,
    .hero-video-container,
    .hero-collage-container,
    .hero-overlay,
    #image-gallery-modal,
    .notification {
        display: none !important;
    }
    
    .hero {
        background: white !important;
        color: black !important;
        padding: 2rem 0 !important;
        min-height: auto !important;
    }
    
    .hero-title,
    .section-title,
    h1, h2, h3, h4, h5, h6 {
        color: black !important;
        text-shadow: none !important;
    }
    
    .hero-description {
        color: black !important;
        text-shadow: none !important;
    }
    
    .content-section {
        padding: 1rem 0 !important;
    }
    
    .property-card,
    .info-card,
    .testimonial-card {
        border: 1px solid #ccc !important;
        page-break-inside: avoid;
    }
    
    .site-footer {
        border-top: 1px solid #ccc !important;
        color: black !important;
    }
}

/* Reduced Motion Preferences */
@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;
    }
    
    .hero-title,
    .hero-description,
    .hero-benefits,
    .hero-cta {
        animation: none !important;
    }
    
    .collage-segment {
        transition: none !important;
    }
    
    .hero-cta .btn {
        transition: none !important;
    }
    
    .hero-cta .btn:hover {
        transform: none !important;
    }
}

/* Dark Mode Support (for future implementation) */
@media (prefers-color-scheme: dark) {
    /* This can be implemented later if needed */
    /* Currently keeping the white & burgundy theme */
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --burgundy-primary: #000000;
        --burgundy-dark: #000000;
        --text-medium: #000000;
        --medium-gray: #000000;
    }
    
    .hero-overlay {
        background: rgba(0, 0, 0, 0.9) !important;
    }
    
    .hero-title,
    .hero-description {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 1) !important;
        color: #ffffff !important;
    }
    
    .btn {
        border-width: 3px;
    }
    
    .property-card,
    .info-card,
    .testimonial-card,
    .faq-item {
        border-width: 2px;
        border-color: #000000;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .collage-segment:hover {
        transform: none;
    }
    
    .hero-cta .btn:hover {
        transform: none;
    }
    
    /* Larger touch targets for mobile */
    .btn {
        min-height: 48px;
    }
    
    .hamburger-btn {
        min-height: 48px;
        min-width: 48px;
    }
    
    .mobile-tab {
        min-height: 48px;
    }
}

/* Specific optimizations for very small screens */
@media (max-width: 320px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
        max-width: 260px;
    }
    
    .hero-cta .btn {
        max-width: 220px;
        padding: 0.8rem 1rem;
        font-size: 0.85rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .mobile-menu {
        width: calc(100vw - 15px);
        right: 7.5px;
    }
}

/* Tablet specific optimizations */
@media (min-width: 768px) and (max-width: 1023px) {
    .hero-collage {
        background-attachment: scroll;
    }
    
    .collage-segment {
        background-attachment: scroll;
    }
}

/* Ultra-wide screens */
@media (min-width: 1400px) {
    .hero-collage {
        top: -3%;
        left: -8%;
        width: 116%;
        height: 106%;
    }
    
    .container {
        max-width: 1600px;
    }
}

/* Specific fixes for iPhone SE and similar small devices */
@media (max-width: 375px) and (max-height: 667px) {
    .hero {
        min-height: 100vh;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
        max-width: 300px;
    }
}

/* iPad specific optimizations */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .hero-collage {
        transform: skew(-12deg);
        top: -12%;
        left: -16%;
        width: 132%;
        height: 124%;
    }
}

@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .hero-collage {
        transform: skew(-15deg);
        top: -8%;
        left: -12%;
        width: 124%;
        height: 116%;
    }
}

/* Responsive Styles */
@media (max-width: 767px) {
    .admin-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .admin-header-right {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .admin-properties-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-property-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .admin-property-actions {
        justify-content: space-between;
    }
    
    .admin-property-actions .btn {
        min-width: 80px;
    }
    
    .modal-container {
        width: 95vw;
        max-height: 95vh;
    }
    
    .modal-content {
        padding: 1rem;
    }
    
    .url-input-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    .url-input-section .form-group {
        min-width: unset;
    }
    
    .images-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .image-preview {
        height: 120px;
    }
    
    .image-info {
        padding: 0.8rem;
    }
    
    .image-actions {
        justify-content: center;
        gap: 0.3rem;
    }
    
    .pagination {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .pagination-btn {
        padding: 0.6rem 1.2rem;
        width: 120px;
    }
}

@media (max-width: 575px) {
    .admin-login-card {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
    
    .admin-header {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .admin-properties-section {
        padding: 1.5rem;
    }
    
    .admin-property-card {
        padding: 1rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .form-actions .btn {
        width: 100%;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-header h3 {
        font-size: 1.2rem;
    }
    
    .image-upload-section {
        padding: 1rem;
    }
    
    .images-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Loading States */
.loading {
    position: relative;
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid var(--medium-gray);
    border-top: 3px solid var(--burgundy-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1000;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success/Error States */
.success-message {
    background: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid #c3e6cb;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid #f5c6cb;
}

/* Animation Enhancements */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.admin-property-card {
    animation: fadeIn 0.3s ease-out;
}

.admin-property-card:nth-child(odd) {
    animation-delay: 0.1s;
}

.admin-property-card:nth-child(even) {
    animation-delay: 0.2s;
}

/* Focus Styles for Accessibility */
.btn:focus,
.form-control:focus,
.pagination-btn:focus {
    outline: 2px solid var(--burgundy-primary);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .status-badge {
        border: 2px solid currentColor;
        font-weight: 700;
    }
    
    .primary-badge {
        border: 2px solid white;
    }
    
    .admin-property-card {
        border-width: 2px;
    }
}