/* --- Layout Styles (Header, Footer, Overlays) --- */

.er-top-header {
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
    padding: 10px 0;
    font-size: 0.8rem;
}

.er-top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
}

.er-top-links {
    display: flex;
    gap: 25px;
}

.er-top-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: 0.2s;
}

.er-top-links a:hover {
    color: var(--primary);
}

.er-lang-selector {
    display: flex;
    gap: 12px;
    font-weight: 700;
    color: var(--text-light);
}

.er-lang-item.active {
    color: var(--accent);
}

.er-main-header {
    background: #ffffff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #f1f5f9;
}

.er-main-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
}

.er-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.er-logo img {
    height: 44px;
    width: auto;
}

.er-nav-menu {
    display: flex;
    gap: 35px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.er-nav-menu a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.er-nav-menu a:hover {
    color: var(--primary);
}

/* Dropdown & Components */
.er-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 260px;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid #E2E8F0;
    margin-top: 15px;
}

.er-header-city-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.er-nav-menu li:hover .er-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.er-dropdown-header {
    padding: 5px 5px 12px 5px;
    border-bottom: 1px solid #F1F5F9;
    margin-bottom: 8px;
}

.er-dropdown-search {
    width: 100%;
    border: 1px solid #E2E8F0;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.85rem;
    outline: none;
    font-family: 'Outfit', sans-serif;
    transition: 0.3s;
    background: #F8FAFC;
}

.er-dropdown-search:focus {
    border-color: #FFEE00;
    background: #FFFFFF;
}

.er-dropdown-item {
    padding: 10px 15px;
    display: block;
    text-decoration: none;
    color: #475569;
    font-size: 0.9rem;
    font-weight: 400 !important;
    border-radius: 8px;
    transition: 0.2s;
}

.er-dropdown-item:hover {
    background: var(--primary-soft);
    color: var(--primary);
}

.er-dropdown-item.hidden {
    display: none;
}

.er-header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.er-action-btn {
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    border-radius: 50%;
}

.er-action-btn:hover {
    background: var(--primary-soft);
    color: var(--primary);
}

/* Overlays */
.er-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: 0.4s;
}

.er-overlay.active {
    display: flex;
    opacity: 1;
}

.er-search-overlay {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    align-items: center;
    justify-content: center;
}

.er-search-close {
    position: absolute;
    top: 40px;
    right: 40px;
}

.er-search-container {
    width: 100%;
    max-width: 800px;
    padding: 0 20px;
}

.er-search-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 3px solid #eee;
    font-size: 2.5rem;
    font-weight: 700;
    padding: 20px 0;
    outline: none;
}

.er-mobile-menu-overlay {
    background: rgba(0, 0, 0, 0.4);
    z-index: 2999;
}

.er-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    height: 100%;
    background: white;
    z-index: 3000;
    transition: 0.4s;
    padding: 40px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
}

.er-mobile-menu.active {
    right: 0;
}

.er-mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.er-mobile-nav-list {
    list-style: none;
    padding: 0;
    font-size: 1.1rem;
}

.er-mobile-nav-list li {
    margin-bottom: 12px;
}

.er-mobile-nav-list a {
    text-decoration: none;
    font-weight: 700;
    color: var(--accent);
}

/* Footer */
.er-footer {
    background: #f8fafc;
    padding: 80px 0 40px;
    border-top: 1px solid #f1f5f9;
}

.er-footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.er-footer-logo {
    display: inline-block;
    margin-bottom: 20px;
    text-decoration: none;
}

.er-footer-logo img {
    height: 50px;
    width: auto;
}

.er-footer-desc {
    font-size: 0.9rem;
    margin-bottom: 20px;
    max-width: 250px;
    color: var(--text-muted);
}

.er-footer-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 25px;
}

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

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

.er-footer-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: 0.2s;
}

.er-footer-links a:hover {
    color: var(--primary);
}

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

.er-footer-bottom {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
    color: var(--text-light);
    font-size: 0.8rem;
}

/* Mobile Specific */
.er-mobile-toggle {
    display: none;
}

@media (max-width: 1024px) {
    .er-nav-menu {
        display: none;
    }

    .er-mobile-toggle {
        display: flex;
    }

    .er-main-nav,
    .er-top-nav {
        padding: 0 20px;
    }

    .er-footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .er-footer-grid>div:first-child {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .er-top-header {
        display: none;
    }

    .er-hero-slider-wrap {
        height: 350px;
    }

    .er-slide-content-wrap {
        left: 20px;
        bottom: 40px;
        right: 20px;
        max-width: 100%;
    }

    .er-slide-content-wrap h3 {
        font-size: 22px;
    }
}
