.airbnb-header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    width: min(100%, 1760px);
    max-width: 100%;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 80px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 80px;
}

/* Logo Section */
.logo-section {
    flex: 0 0 auto;
}

.logo {
    height: 70px;
    width: auto;
}

/* Navigation Section */
.nav-section {
    flex: 1;
    min-width: 0;
    display: flex;
    justify-content: center;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: clamp(12px, 2vw, 32px);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #222;
    padding: 8px clamp(8px, 1vw, 12px);
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
}

.nav-item:hover {
    background-color: #f7f7f7;
}

.nav-item.active {
    color: #F08D1A;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 4px;
    background-color: #F08D1A;
    border-radius: 4px 4px 0 0;
}

.nav-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.nav-item:hover .nav-icon,
.nav-item.active .nav-icon {
    opacity: 1;
}

.nav-item span {
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
}

/* Profile Section */
.profile-section {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: clamp(12px, 2vw, 24px);
}

.host-link {
    font-size: 14px;
    font-weight: 600;
    color: white;
    background: #F08D1A;
    border: none;
    cursor: pointer;
    padding: 12px 16px;
    border-radius: 22px;
    transition: all 0.2s ease;
}

.host-link:hover {
    background: #e67e22;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(240, 141, 26, 0.3);
}

.profile-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 40px;
    background: white;
    cursor: pointer;
    transition: box-shadow 0.2s ease;
}

.profile-menu:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.hamburger-menu {
    position: relative;
    width: 16px;
    height: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-menu span {
    width: 100%;
    height: 2px;
    background: #222;
    border-radius: 1px;
    transition: all 0.3s ease;
}

.hamburger-menu.open span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.hamburger-menu.open span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.open span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

.profile-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100vh;
    background: white;
    border-left: 1px solid #e5e5e5;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
    overflow-y: auto;
}

html[dir="rtl"] .mobile-menu {
    right: auto;
    left: 0;
    border-left: 0;
    border-right: 1px solid #e5e5e5;
    transform: translateX(-100%);
}

.mobile-menu.open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

html[dir="rtl"] .mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu-content {
    padding: 24px;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.mobile-menu-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f7f7f7;
    border: none;
    color: #222;
    font-size: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

html[dir="rtl"] .mobile-menu-close {
    right: auto;
    left: 16px;
}

.mobile-menu-close:hover {
    background: #e5e5e5;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 10px 8px;
    color: #222;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-radius: 10px;
/*     border-bottom: 1px solid #f7f7f7;
    transition: background-color 0.2s ease; */
}

.mobile-menu-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    object-fit: contain;
    opacity: 0.72;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.mobile-menu-button {
    width: 100%;
    text-align: start;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.mobile-menu-item:hover {
    background-color: #f7f7f7;
}

.mobile-menu-item.active {
    font-weight: 600;
    color: #F08D1A;
}

.mobile-menu-item:hover .mobile-menu-icon,
.mobile-menu-item.active .mobile-menu-icon {
    opacity: 1;
}

.mobile-menu-item.active .mobile-menu-icon {
    transform: scale(1.05);
}

.mobile-menu-divider {
    height: 1px;
    background: #e5e5e5;
    margin: 5px 0;
}

/* Auth Buttons */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-button {
    appearance: none;
    padding: 8px 16px;
    border-radius: 22px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid #ddd;
}

.login-btn {
    color: #222;
    background: white;
}

.login-btn:hover {
    background-color: #f7f7f7;
    border-color: #ccc;
}

.register-btn {
    color: white;
    background: #F08D1A;
    border: none;
}

.register-btn:hover {
    background: #e67e22;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(240, 141, 26, 0.3);
}

/* Responsive Design */
@media (max-width: 1128px) {
    .search-section {
        margin: 0 24px;
    }
}

@media (max-width: 950px) {
    .search-section {
        display: none;
    }

    .profile-section {
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .header-content {
        padding: 0 16px;
        height: 64px;
    }

    .logo {
        height: 50px;
    }

    .host-link {
        display: none;
    }

    .profile-menu {
        padding: 6px 12px;
    }

    .profile-avatar {
        width: 28px;
        height: 28px;
    }

    .mobile-menu-content {
        padding: 16px;
    }

    .auth-buttons {
        gap: 8px;
    }

    .auth-button {
        padding: 6px 12px;
        font-size: 13px;
    }

    /* Hide main navigation on small screens */
    .nav-section {
        display: none;
    }
}

/* Hide main navigation items in mobile menu on larger screens */
@media (min-width: 769px) {
    .main-nav-item {
        display: none;
    }
}

body.auth-modal-open {
    overflow: hidden;
}

.auth-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1400;
}

.auth-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.auth-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.52);
    backdrop-filter: blur(4px);
}

.auth-modal-dialog {
    position: relative;
    width: min(100%, 720px);
    max-height: calc(100vh - 48px);
    overflow: auto;
    border-radius: 28px;
    background:
        radial-gradient(circle at top, rgba(255, 230, 199, 0.9) 0%, rgba(255, 230, 199, 0) 52%),
        linear-gradient(160deg, #fff8ef 0%, #fff 100%);
    box-shadow: 0 28px 90px rgba(15, 23, 42, 0.24);
}

.auth-modal-shell {
    padding: 32px;
}

.auth-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    color: #1f2937;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.auth-modal-tabs {
    display: flex;
    width: fit-content;
    gap: 8px;
    padding: 6px;
    margin: 0 auto;
    border-radius: 999px;
    background: #fff;
    box-shadow: inset 0 0 0 1px #e5e7eb;
}

.auth-modal-tab {
    border: 0;
    background: transparent;
    color: #6b7280;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.auth-modal-tab.active {
    color: #fff;
    background: #f08d1a;
}

.auth-modal-alert {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 600;
}

.auth-modal-alert[data-type="error"] {
    background: #ffecec;
    color: #c62828;
}

.auth-modal-alert[data-type="success"] {
    background: #ebfff3;
    color: #137333;
}

.auth-modal-alert[data-type="info"] {
    background: #eef6ff;
    color: #1d4ed8;
}

.auth-panel {
    display: none;
    margin-top: 22px;
}

.auth-panel.active,
.auth-step.active {
    display: block;
}

.auth-modal-title {
    margin: 0;
    color: #111827;
    font-size: 32px;
    line-height: 1.1;
}

.auth-modal-subtitle,
.auth-step-copy {
    margin: 10px 0 0;
    color: #6b7280;
    font-size: 15px;
    line-height: 1.6;
}

.auth-step {
    display: none;
    margin-top: 24px;
}

.auth-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.auth-field {
    display: block;
    margin-bottom: 14px;
}

.auth-field span {
    display: block;
    margin-bottom: 8px;
    color: #111827;
    font-size: 14px;
    font-weight: 700;
}

.auth-field input,
.auth-field select {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 14px 16px;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.96);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-field input:focus,
.auth-field select:focus {
    outline: none;
    border-color: #f08d1a;
    box-shadow: 0 0 0 4px rgba(240, 141, 26, 0.16);
}

.auth-submit-button {
    width: 100%;
    border: 0;
    border-radius: 18px;
    padding: 15px 18px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #f08d1a 0%, #cf7410 100%);
    box-shadow: 0 14px 28px rgba(240, 141, 26, 0.28);
    cursor: pointer;
}

.auth-submit-button.is-loading,
.auth-submit-button:disabled,
.auth-text-button:disabled {
    opacity: 0.7;
    cursor: wait;
}

.auth-text-button,
.auth-switch-link {
    border: 0;
    background: transparent;
    color: #f08d1a;
    font-size: 14px;
    font-weight: 700;
    padding: 0;
    cursor: pointer;
}

.auth-text-button {
    margin-top: 14px;
}

.auth-switch-link {
    display: inline-flex;
    margin-top: 18px;
}

.auth-inline-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
}

#auth-login-otp,
#auth-register-otp {
    text-align: center;
    letter-spacing: 0.45rem;
    font-weight: 700;
}

@media (max-width: 768px) {
    .auth-modal {
        padding: 12px;
        align-items: flex-end;
    }

    .auth-modal-dialog {
        width: 100%;
        max-height: calc(100vh - 16px);
        border-radius: 28px 28px 0 0;
    }

    .auth-modal-shell {
        padding: 24px 18px;
    }

    .auth-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .auth-modal-title {
        font-size: 26px;
    }

    .auth-inline-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}

.lang_notification {
    display: flex;
    gap: 20px;
}

.lang_switch {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: 0.3s;
}

.lang_switch img {
    width: 30px;
    border-radius: 50%;
    transition: 0.3s;
}

.lang_switch img:hover {
    transform: scale(1.1);
}

.lang_switch:hover {
    opacity: 0.8;
}
