/* Mobile Responsive Styles - css/mobile.css */

/* Mobile First Approach - Base mobile styles */
@media (max-width: 767px) {
    
    /* Base Typography for Mobile */
    body {
        font-size: 14px;
        line-height: 1.5;
    }
    
    h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    h2 {
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
    }
    
    h3 {
        font-size: 1.3rem;
        margin-bottom: 0.6rem;
    }
    
    h4 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    /* Container Adjustments */
    .steampunk-container {
        padding: 0 15px;
    }
    
    /* Header Mobile */
    .header-content {
        flex-direction: column;
        text-align: center;
        padding: 1rem 0;
    }
    
    .logo img {
        height: 45px;
        margin-bottom: 0.5rem;
    }
    
    .company-info {
        text-align: center;
        font-size: 0.8rem;
    }
    
    /* Navigation Mobile */
    .nav-list {
        flex-direction: column;
        padding: 1rem 0;
    }
    
    .nav-list li {
        margin: 0.2rem 0;
        width: 100%;
    }
    
    .nav-list a {
        padding: 0.8rem 1rem;
        text-align: center;
        display: block;
        width: 100%;
    }
    
    /* Hero Section Mobile */
    .hero-section {
        padding: 2rem 0;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        padding: 0 1rem;
    }
    
    /* Content Sections Mobile */
    .content-section {
        margin: 1rem 0;
        padding: 1.5rem;
        border-radius: 6px;
    }
    
    /* Grid Layouts Mobile */
    .properties-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 1.5rem 0;
    }
    
    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 1.5rem 0;
    }
    
    /* Property Cards Mobile */
    .property-card {
        margin-bottom: 1rem;
    }
    
    .property-card img {
        height: 180px;
    }
    
    .property-card-content {
        padding: 1rem;
    }
    
    .property-price {
        font-size: 1.1rem;
    }
    
    /* Forms Mobile */
    .steampunk-form {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.7rem;
        font-size: 0.9rem;
    }
    
    .form-group textarea {
        height: 100px;
    }
    
    .checkbox-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }
    
    /* Buttons Mobile */
    .steampunk-btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
        text-align: center;
        margin: 0.5rem 0;
        display: block;
    }
    
    .steampunk-btn-secondary {
        margin-top: 0.5rem;
    }
    
    /* Gallery Mobile */
    .gallery-item img {
        height: 150px;
    }
    
    .gallery-overlay {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    /* Lists Mobile */
    .steampunk-list li {
        padding: 0.4rem 0;
        padding-left: 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Social Links Mobile */
    .social-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.8rem;
        margin: 1.5rem 0;
    }
    
    .social-links a {
        width: 45px;
        height: 45px;
        font-size: 0.9rem;
    }
    
    /* Footer Mobile */
    .steampunk-footer {
        padding: 2rem 0 1rem;
        margin-top: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-section h3 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }
    
    .footer-bottom {
        font-size: 0.8rem;
        padding-top: 1.5rem;
    }
    
    /* Calculator Mobile */
    .calculator-result {
        padding: 1rem;
        font-size: 1rem;
        margin-top: 1rem;
    }
    
    /* Contact Info Mobile */
    .contact-info-box {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .contact-info-box h4 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    /* Blog Posts Mobile */
    .blog-post {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .blog-post h3 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }
    
    .blog-post-meta {
        font-size: 0.8rem;
        margin-bottom: 0.8rem;
    }
    
    .blog-post-excerpt {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    /* Tables Mobile */
    table {
        font-size: 0.8rem;
        overflow-x: auto;
        display: block;
        white-space: nowrap;
    }
    
    th, td {
        padding: 0.6rem 0.4rem;
        min-width: 100px;
    }
    
    /* Breadcrumbs Mobile */
    .breadcrumbs {
        padding: 0.6rem 0;
        font-size: 0.8rem;
        text-align: center;
    }
    
    .breadcrumbs a,
    .breadcrumbs span {
        margin: 0 0.3rem;
        display: inline-block;
    }
    
    /* Messages Mobile */
    .message {
        padding: 0.8rem;
        margin: 0.8rem 0;
        font-size: 0.9rem;
        border-radius: 4px;
    }
    
    /* Spacing Utilities Mobile */
    .mb-2 {
        margin-bottom: 1.5rem;
    }
    
    .mt-2 {
        margin-top: 1.5rem;
    }
    
    /* Text Adjustments Mobile */
    p {
        margin-bottom: 0.8rem;
        line-height: 1.6;
    }
    
    /* Image Adjustments Mobile */
    img {
        border-radius: 4px;
    }
    
    .property-card img,
    .gallery-item img {
        border-radius: 0;
    }
    
    /* Special Mobile Adjustments */
    .steampunk-header {
        position: relative;
        box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    }
    
    .hero-section {
        background-attachment: scroll;
        background-position: center center;
    }
    
    /* Form Specific Mobile Adjustments */
    select {
        background-color: white;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d4af37' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right 0.7rem center;
        background-size: 1em;
        padding-right: 2.5rem;
    }
    
    /* Touch Improvements */
    .nav-list a,
    .steampunk-btn,
    .social-links a,
    .contact-info-box a {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Prevent zoom on input focus iOS */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    select,
    textarea {
        font-size: 16px;
    }
}

/* Tablet Adjustments */
@media (min-width: 768px) and (max-width: 1024px) {
    
    .steampunk-container {
        padding: 0 30px;
    }
    
    .header-content {
        flex-direction: row;
    }
    
    .properties-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .contact-info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .nav-list {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-list li {
        margin: 0.2rem 0.3rem;
        width: auto;
    }
    
    .nav-list a {
        padding: 0.6rem 1rem;
        width: auto;
    }
    
    .steampunk-btn {
        width: auto;
        display: inline-block;
        margin: 0.5rem 0.5rem 0.5rem 0;
    }
}

/* Large Mobile Landscape */
@media (max-width: 767px) and (orientation: landscape) {
    
    .hero-section {
        padding: 1.5rem 0;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .content-section {
        padding: 1rem;
    }
    
    .steampunk-footer {
        padding: 1.5rem 0 0.8rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin-bottom: 1rem;
    }
    
    .footer-section {
        text-align: left;
    }
    
    .nav-list {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 0.5rem 0;
    }
    
    .nav-list li {
        margin: 0.1rem 0.2rem;
        width: auto;
    }
    
    .nav-list a {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* Very Small Screens */
@media (max-width: 320px) {
    
    .steampunk-container {
        padding: 0 10px;
    }
    
    .hero-content h1 {
        font-size: 1.6rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
        padding: 0 0.5rem;
    }
    
    .content-section {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .steampunk-form {
        padding: 1rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.6rem;
        font-size: 0.9rem;
    }
    
    .steampunk-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    .property-card-content {
        padding: 0.8rem;
    }
    
    .contact-info-box {
        padding: 0.8rem;
    }
    
    .blog-post {
        padding: 1rem;
    }
    
    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 0.8rem;
    }
    
    .footer-section h3 {
        font-size: 1.1rem;
    }
    
    .footer-bottom {
        font-size: 0.7rem;
    }
}

/* Print Styles */
@media print {
    
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    .steampunk-header,
    .steampunk-nav,
    .steampunk-footer,
    .social-links,
    .steampunk-btn,
    .hero-section {
        display: none !important;
    }
    
    .content-section {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
        page-break-inside: avoid;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    p, li {
        orphans: 3;
        widows: 3;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
    }
    
    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }
    
    .page-break {
        page-break-before: always;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    
    .logo img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
    
    .property-card img,
    .gallery-item img {
        image-rendering: auto;
    }
}

/* Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .gallery-item:hover img {
        transform: none;
    }
    
    .property-card:hover {
        transform: none;
    }
    
    .steampunk-btn:hover {
        transform: none;
    }
    
    .social-links a:hover {
        transform: none;
    }
}