/*
 * Dózsa Apartman Szeged - Responsive Stylesheet
 * Mobile-first approach
 */

/* ==========================================
   LARGE DESKTOP (1440px+)
   ========================================== */

@media (min-width: 1440px) {
    .container {
        max-width: 1320px;
    }

    .hero-content h1 {
        font-size: 60px;
    }

    .hero-tagline {
        font-size: 28px;
    }
}

/* ==========================================
   DESKTOP (1024px - 1439px)
   ========================================== */

@media (min-width: 1024px) and (max-width: 1439px) {
    .hero-content h1 {
        font-size: 48px;
    }

    .hero-tagline {
        font-size: 22px;
    }

    .section-title {
        font-size: 38px;
    }
}

/* ==========================================
   TABLET (768px - 1023px)
   ========================================== */

@media (max-width: 1023px) {
    /* Typography */
    h1 {
        font-size: 38px;
    }

    h2 {
        font-size: 32px;
    }

    h3 {
        font-size: 24px;
    }

    .section-title {
        font-size: 36px;
    }

    .section-padding {
        padding: 60px 0;
    }

    /* Navigation */
    .navbar-nav .btn-cta {
        margin-left: 0;
        margin-top: 10px;
        display: block;
        text-align: center;
    }

    .navbar-collapse {
        background-color: var(--white);
        padding: 20px;
        border-radius: 10px;
        margin-top: 15px;
        box-shadow: var(--shadow-md);
    }

    /* Hero Section */
    .hero-section {
        height: 80vh;
        min-height: 500px;
    }

    .hero-logo {
        max-width: 220px;
    }

    .hero-content h1 {
        font-size: 40px;
    }

    .hero-tagline {
        font-size: 20px;
    }

    .btn-hero {
        font-size: 16px;
        padding: 12px 35px;
    }

    .slider-arrow {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }

    /* Rólunk Section */
    #rolunk .col-lg-6:first-child {
        margin-bottom: 30px;
    }
}

/* ==========================================
   MOBILE (320px - 767px)
   ========================================== */

@media (max-width: 767px) {
    /* Typography */
    body {
        font-size: 15px;
    }

    h1 {
        font-size: 32px;
    }

    h2 {
        font-size: 28px;
    }

    h3 {
        font-size: 22px;
    }

    .section-title {
        font-size: 30px;
    }

    .section-padding {
        padding: 40px 0;
    }

    .section-content {
        font-size: 16px;
    }

    /* Navigation */
    .navbar {
        padding: 10px 0;
    }

    .navbar-brand .logo-small {
        height: 60px;
    }

    .navbar.scrolled .logo-small {
        height: 50px;
    }

    .navbar-nav .nav-link {
        padding: 12px 20px;
        text-align: center;
        border-bottom: 1px solid var(--bg-light);
    }

    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }

    /* Hero Section */
    .hero-section {
        height: 70vh;
        min-height: 450px;
    }

    .hero-logo {
        max-width: 180px;
        margin-bottom: 1.5rem;
    }

    .hero-content h1 {
        font-size: 32px;
        margin-bottom: 0.8rem;
    }

    .hero-tagline {
        font-size: 16px;
        margin-bottom: 2rem;
    }

    .btn-hero {
        font-size: 14px;
        padding: 12px 30px;
    }

    /* Slider Controls */
    .slider-controls {
        padding: 0 15px;
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .slider-dots {
        bottom: 20px;
        gap: 8px;
    }

    .slider-dot {
        width: 10px;
        height: 10px;
    }

    /* Rólunk Section */
    #rolunk .col-lg-6 {
        margin-bottom: 25px;
    }

    #rolunk .signature {
        font-size: 18px;
    }

    #rolunk .signature strong {
        font-size: 20px;
    }

    /* Apartman Section */
    .room-card .room-image {
        height: 250px;
    }

    .room-card .room-content {
        padding: 20px;
    }

    .room-card h3 {
        font-size: 24px;
    }

    .room-features {
        gap: 10px;
    }

    .room-features span {
        font-size: 13px;
        width: calc(50% - 5px);
    }

    .room-main-image {
        height: 250px;
    }

    .view-gallery-overlay i {
        font-size: 36px;
    }

    .view-gallery-overlay span {
        font-size: 16px;
    }

    /* Gallery */
    .gallery-filters {
        margin-bottom: 2rem;
    }

    .filter-btn {
        font-size: 13px;
        padding: 8px 18px;
        margin: 3px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }

    .gallery-item {
        aspect-ratio: 1/1;
    }

    .gallery-overlay i {
        font-size: 36px;
    }

    /* Footer CTA */
    .footer-cta {
        padding: 40px 0;
    }

    .footer-cta-content h3 {
        font-size: 26px;
    }

    .footer-cta-content p {
        font-size: 16px;
    }

    .btn-cta-footer {
        padding: 12px 30px;
        font-size: 16px;
    }

    /* Footer */
    .footer {
        padding: 40px 0 15px;
        margin-top: 0;
    }

    .footer .col-lg-3,
    .footer .col-md-6 {
        margin-bottom: 30px;
    }

    .footer h5 {
        font-size: 18px;
        margin-bottom: 1rem;
    }

    .footer-contact li {
        font-size: 14px;
    }

    .footer-info li {
        font-size: 13px;
    }

    .btn-whatsapp {
        width: 100%;
        text-align: center;
        padding: 12px 20px;
    }

    .footer-bottom {
        margin-top: 25px;
        padding-top: 20px;
        font-size: 13px;
    }

    /* Buttons */
    .btn {
        padding: 10px 25px;
        font-size: 14px;
    }

    .btn-outline-primary {
        padding: 8px 20px;
    }
}

/* ==========================================
   SMALL MOBILE (320px - 479px)
   ========================================== */

@media (max-width: 479px) {
    /* Hero Section */
    .hero-logo {
        max-width: 150px;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-tagline {
        font-size: 14px;
    }

    /* Section Titles */
    .section-title {
        font-size: 26px;
    }

    /* Footer CTA */
    .footer-cta-content h3 {
        font-size: 22px;
    }

    .footer-cta-content p {
        font-size: 14px;
    }

    .btn-cta-footer {
        padding: 10px 25px;
        font-size: 14px;
    }

    /* Footer Info */
    .footer-info li {
        font-size: 12px;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Room Cards */
    .room-features span {
        width: 100%;
    }
}

/* ==========================================
   TOUCH DEVICES
   ========================================== */

@media (hover: none) and (pointer: coarse) {
    /* Touch-friendly button sizes */
    .btn,
    .filter-btn,
    .slider-arrow {
        min-height: 44px;
        min-width: 44px;
    }

    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Remove hover effects for touch */
    .gallery-item:hover .gallery-overlay {
        opacity: 0;
    }

    .gallery-item:active .gallery-overlay {
        opacity: 1;
    }

    /* Make phone numbers clickable */
    a[href^="tel:"] {
        color: var(--gold-accent);
        font-weight: 600;
    }
}

/* ==========================================
   LANDSCAPE ORIENTATION (Mobile)
   ========================================== */

@media (max-width: 767px) and (orientation: landscape) {
    .hero-section {
        height: 100vh;
        min-height: 100vh;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-tagline {
        font-size: 14px;
        margin-bottom: 1.5rem;
    }

    .hero-logo {
        max-width: 140px;
        margin-bottom: 1rem;
    }

    .btn-hero {
        padding: 10px 25px;
    }
}

/* ==========================================
   PRINT STYLES
   ========================================== */

@media print {
    .navbar,
    .slider-controls,
    .slider-dots,
    .btn,
    .footer {
        display: none;
    }

    .hero-section {
        height: auto;
        page-break-after: always;
    }

    .section-padding {
        padding: 20px 0;
        page-break-inside: avoid;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }
}

/* ==========================================
   ACCESSIBILITY
   ========================================== */

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 3px solid var(--gold-accent);
    outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@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-slide {
        animation: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn,
    .filter-btn,
    .nav-link {
        border-width: 3px;
    }

    .hero-overlay {
        background: rgba(0, 0, 0, 0.7);
    }
}

/* ==========================================
   FEATURE CARDS RESPONSIVE
   ========================================== */

@media (max-width: 767px) {
    .apartment-description {
        padding: 25px 20px;
        margin-bottom: 30px;
    }

    .apartment-description p {
        font-size: 15px;
        text-align: left;
    }

    .apartment-description .highlight-text {
        font-size: 16px;
        padding: 15px;
    }

    .feature-card {
        padding: 30px 20px;
        margin-bottom: 20px;
    }

    .feature-icon {
        width: 70px;
        height: 70px;
    }

    .feature-icon i {
        font-size: 30px;
    }

    .feature-card h3 {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .feature-card p {
        font-size: 15px;
    }
}

@media (max-width: 479px) {
    .apartment-description {
        padding: 20px 15px;
    }

    .apartment-description p {
        font-size: 14px;
    }

    .apartment-description .highlight-text {
        font-size: 15px;
        padding: 12px;
    }

    .feature-card {
        padding: 25px 18px;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
    }

    .feature-icon i {
        font-size: 26px;
    }

    .feature-card h3 {
        font-size: 18px;
    }

    .feature-card p {
        font-size: 14px;
    }
}
