/* ===== FOOTER STYLES ===== */
:root {
    --footer-bg: #2a2a2a;
    --footer-text: #b0b0b0;
    --footer-heading: #ffffff;
    --footer-accent: #d4af37;
    --footer-border: #3a3a3a;
    --footer-hover: #ffffff;
}

/* Ensure footer is clickable */
.footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding-top: 60px;
    margin-top: 80px;
    position: relative;
    z-index: 50;
}

.footer * {
    position: relative;
}

.footer a,
.footer button,
.footer input,
.footer-links a,
.newsletter-btn,
.footer-social a {
    position: relative;
    z-index: 51;
    cursor: pointer !important;
    pointer-events: auto !important;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr 1.3fr;
    gap: 40px;
    margin-bottom: 40px;
}

/* Footer Section Base */
.footer-section {
    padding: 0 20px;
}

/* Section 1: Logo & About */
.footer-logo {
    margin-bottom: 20px;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}

.logo-text {
    color: var(--footer-heading);
    display: block;
}

.logo-accent {
    color: var(--footer-accent);
    display: block;
    margin-top: -5px;
}

.footer-description {
    font-size: 14px;
    line-height: 1.7;
    color: var(--footer-text);
    margin-bottom: 25px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--footer-border);
    border-radius: 50%;
    color: var(--footer-text);
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer !important;
    pointer-events: auto !important;
}

.footer-social a:hover {
    background: var(--footer-accent);
    color: var(--footer-heading);
    transform: translateY(-3px);
}

.footer-social svg {
    pointer-events: none;
}

/* Section 2: Menu */
.footer-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--footer-heading);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--footer-text);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    cursor: pointer !important;
    pointer-events: auto !important;
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: var(--footer-accent);
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: var(--footer-hover);
    padding-left: 5px;
}

.footer-links a:hover::before {
    width: 100%;
}

/* Section 3: Map */
.map-container {
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.map-container iframe {
    pointer-events: auto !important;
}

.footer-address {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--footer-text);
}

.footer-address svg {
    color: var(--footer-accent);
    flex-shrink: 0;
}

/* Section 4: Newsletter */
.newsletter-text {
    font-size: 14px;
    margin-bottom: 20px;
    color: var(--footer-text);
}

.newsletter-form {
    margin-bottom: 15px;
}

.newsletter-input {
    width: 100%;
    padding: 12px 15px;
    background: var(--footer-border);
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--footer-heading);
    font-size: 14px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    cursor: text !important;
    pointer-events: auto !important;
}

.newsletter-input::placeholder {
    color: #606060;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--footer-accent);
    background: #333;
}

.newsletter-btn {
    width: 100%;
    padding: 12px 20px;
    background: var(--footer-accent);
    color: var(--footer-heading);
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer !important;
    pointer-events: auto !important;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.newsletter-btn:hover {
    background: #b8941f;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.newsletter-btn:active {
    transform: translateY(0);
}

.newsletter-btn svg {
    pointer-events: none;
}

.newsletter-privacy {
    font-size: 12px;
    color: #808080;
    line-height: 1.5;
}

.newsletter-privacy a {
    color: var(--footer-accent);
    text-decoration: none;
    cursor: pointer !important;
    pointer-events: auto !important;
}

.newsletter-privacy a:hover {
    text-decoration: underline;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid var(--footer-border);
    padding: 20px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    font-size: 13px;
    color: #808080;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom-links a {
    color: #808080;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
    cursor: pointer !important;
    pointer-events: auto !important;
}

.footer-bottom-links a:hover {
    color: var(--footer-accent);
}

.footer-bottom-links .divider {
    color: #505050;
    user-select: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .footer-section {
        padding: 0 15px;
    }
}

/* Tablet */
@media (max-width: 768px) {
    .footer {
        padding-top: 40px;
        margin-top: 60px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-section {
        padding: 0;
        text-align: center;
    }
    
    /* Logo section mobile */
    .footer-logo {
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    .footer-description {
        max-width: 400px;
        margin: 0 auto 20px;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    /* Menu section mobile */
    .footer-links {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .footer-links li {
        margin-bottom: 8px;
    }
    
    .footer-links a {
        display: block;
        text-align: center;
    }
    
    .footer-links a:hover {
        padding-left: 0;
    }
    
    /* Map section mobile */
    .map-container {
        max-width: 400px;
        margin: 0 auto 15px;
    }
    
    .footer-address {
        justify-content: center;
    }
    
    /* Newsletter section mobile */
    .newsletter-form {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .newsletter-text,
    .newsletter-privacy {
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Footer bottom mobile */
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .footer {
        padding-top: 30px;
        margin-top: 40px;
    }
    
    .footer-content {
        gap: 25px;
    }
    
    .footer-logo {
        font-size: 22px;
    }
    
    .footer-title {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .footer-description,
    .newsletter-text {
        font-size: 13px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        max-width: 200px;
    }
    
    .footer-social a {
        width: 36px;
        height: 36px;
    }
    
    .footer-social svg {
        width: 18px;
        height: 18px;
    }
    
    .newsletter-input,
    .newsletter-btn {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .footer-bottom {
        padding: 15px 0;
    }
    
    .copyright,
    .footer-bottom-links a {
        font-size: 12px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .footer {
        background: #1a1a1a;
    }
}

/* Ensure footer doesn't block content */
.footer {
    pointer-events: auto;
}

.footer * {
    pointer-events: auto;
}

/* Fix for iOS Safari */
@supports (-webkit-touch-callout: none) {
    .footer a,
    .footer button,
    .footer input {
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
    }
}
/* ===== MOBILE MENU TOGGLE FIXED ===== */
@media (max-width: 768px) {
    /* Menu title as button */
    .footer-menu .footer-title {
        cursor: pointer !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 10px;
        user-select: none;
        position: relative;
        padding: 15px;
        background: var(--footer-border);
        border-radius: 8px;
        margin-bottom: 15px;
        transition: all 0.3s ease;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    .footer-menu .footer-title:hover {
        background: #404040;
    }
    
    .footer-menu .footer-title:active {
        background: #505050;
        transform: scale(0.98);
    }
    
    .menu-arrow {
        display: block !important;
        width: 16px;
        height: 16px;
        margin-left: auto;
        transition: transform 0.3s ease;
        pointer-events: none;
    }
    
    .footer-menu .footer-title.active .menu-arrow {
        transform: rotate(180deg);
    }
    
    /* Hide menu by default on mobile - SIMPLIFIED */
    .footer-menu .footer-links {
        display: none !important;
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        transition: all 0.4s ease;
        margin: 0;
    }
    
    /* Show menu when active - SIMPLIFIED */
    .footer-menu .footer-links.active {
        display: block !important;
        opacity: 1 !important;
        max-height: 500px !important;
        margin-bottom: 20px;
        padding: 10px;
        background: rgba(58, 58, 58, 0.5);
        border-radius: 8px;
    }
    
    /* Alternative method using adjacent selector */
    .footer-menu .footer-title.active + .footer-links {
        display: block !important;
        opacity: 1 !important;
        max-height: 500px !important;
    }
    
    /* Style menu items on mobile */
    .footer-menu .footer-links li {
        margin-bottom: 5px;
        padding: 8px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        list-style: none;
    }
    
    .footer-menu .footer-links li:last-child {
        border-bottom: none;
    }
    
    .footer-menu .footer-links a {
        display: block;
        padding: 5px 10px;
        text-align: left;
        font-size: 14px;
        color: var(--footer-text);
        text-decoration: none;
    }
    
    .footer-menu .footer-links a:hover {
        color: var(--footer-accent);
        padding-left: 15px;
    }
}

/* Desktop - always show menu */
@media (min-width: 769px) {
    .menu-arrow {
        display: none !important;
    }
    
    .footer-menu .footer-links {
        display: block !important;
        opacity: 1 !important;
        max-height: none !important;
        overflow: visible !important;
    }
    
    .footer-menu .footer-title {
        cursor: default !important;
        padding: 0 !important;
        background: transparent !important;
    }
}

/* Small mobile adjustments */
@media (max-width: 480px) {
    .footer-menu .footer-title {
        font-size: 14px;
        padding: 12px;
    }
    
    .menu-arrow {
        width: 14px;
        height: 14px;
    }
    
    .footer-menu .footer-links a {
        font-size: 13px;
        padding: 4px 8px;
    }
}

/* iOS Safari fix */
@supports (-webkit-touch-callout: none) {
    .footer-menu .footer-title {
        -webkit-user-select: none;
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
    }
}