:root {
    --ehajj-green: #005500;
    --ehajj-green-dark: #004400;
    --ehajj-green-light: #1a7a1a;
    --bs-primary: #005500;
    --bs-primary-rgb: 0, 85, 0;
    --bs-link-color: #005500;
    --bs-link-hover-color: #004400;
    --bs-link-decoration: none;
    --bs-link-hover-decoration: none;
}

a,
a:hover,
a:focus,
a:active,
a:visited {
    text-decoration: none;
}

.navbar.bg-primary,
.btn-primary {
    background-color: #005500 !important;
    border-color: #005500 !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #004400 !important;
    border-color: #004400 !important;
}

.btn-outline-primary {
    color: #005500;
    border-color: #005500;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: #005500;
    border-color: #005500;
    color: #fff;
}

.alert-ehajj {
    background-color: rgba(0, 85, 0, 0.1);
    border-color: rgba(0, 85, 0, 0.25);
    color: #005500;
}

.admin-login-page {
    margin-top: 100px;
}

.admin-login-logo-img {
    max-width: 200px;
    height: auto;
}

.admin-listing-preview {
    max-width: 120px;
    max-height: 120px;
    object-fit: cover;
}

.admin-listing-cover {
    max-width: 100%;
    max-height: 220px;
    object-fit: cover;
}

.admin-listing-savebar {
    position: sticky;
    bottom: 1rem;
    z-index: 20;
}

.navbar-logo {
    height: 40px;
    width: auto;
}

.navbar-main-nav .nav-link,
.navbar-user-nav > .nav-item > .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.9rem;
    border-radius: 50px;
    font-weight: 500;
    color: #fff;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.navbar-main-nav .nav-link i,
.navbar-user-nav > .nav-item > .nav-link i {
    font-size: 1.05rem;
    line-height: 1;
    color: #fff;
}

.navbar-main-nav .nav-link:hover,
.navbar-main-nav .nav-link:focus,
.navbar-user-nav > .nav-item > .nav-link:hover,
.navbar-user-nav > .nav-item > .nav-link:focus {
    background-color: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.navbar-user-nav {
    align-items: center;
}

.navbar-user-session {
    display: inline-flex;
    align-items: center;
    gap: 1.25rem;
    white-space: nowrap;
}

.navbar-user-name {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #fff;
    font-weight: 500;
}

.navbar-user-name i {
    font-size: 1.15rem;
    color: #fff;
}

.navbar-logout-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 1rem;
    line-height: 1.4;
    border-radius: 50px;
    font-weight: 500;
    color: #fff;
    background-color: rgba(255, 255, 255, 0.12);
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.navbar-logout-btn:hover,
.navbar-logout-btn:focus {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.7);
}

.navbar-logout-btn:active {
    transform: scale(0.98);
}

@media (max-width: 991.98px) {
    .navbar-main-nav {
        padding-top: 0.5rem;
    }

    .navbar-user-session {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
}

.listing-count {
    position: relative;
    z-index: 1;
}

.hero-banner {
    background: linear-gradient(135deg, var(--ehajj-green), var(--ehajj-green-light));
}

.page-item.active .page-link {
    background-color: #005500;
    border-color: #005500;
}

.pagination-compact-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    display: flex;
    justify-content: center;
}

.pagination-compact {
    flex-wrap: nowrap;
    gap: 0.15rem;
    margin-bottom: 0;
    width: max-content;
    max-width: 100%;
}

.pagination-compact .page-link {
    min-width: 2rem;
    text-align: center;
    padding: 0.3rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.2;
}

.pagination-compact .page-item.disabled .page-link {
    padding-left: 0.45rem;
    padding-right: 0.45rem;
}

.phone-input-group {
    flex-wrap: nowrap;
}

.phone-input-group .phone-country-select {
    flex: 0 0 4.25rem;
    width: 4.25rem;
    min-width: 4.25rem;
    max-width: 4.25rem;
    padding: 0.375rem 1.35rem 0.375rem 0.4rem;
    font-size: 0.8125rem;
    background-position: right 0.3rem center;
    background-size: 11px 9px;
}

.phone-input-group .form-control {
    flex: 1 1 auto;
    min-width: 0;
}

.featured-payment-card {
    background-color: #fffdf5;
}

.featured-payment-details dt {
    color: #6c757d;
}

.listing-cover-wrap {
    position: relative;
    overflow: hidden;
}

.listing-thumb {
    height: 180px;
    object-fit: cover;
}

.listing-thumb-default {
    background: linear-gradient(135deg, var(--ehajj-green), var(--ehajj-green-light));
}

.listing-featured-badge {
    position: absolute;
    z-index: 2;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.listing-card .listing-featured-badge {
    top: var(--bs-card-spacer-y, 1rem);
    left: var(--bs-card-spacer-x, 1rem);
}

.profile-cover .listing-featured-badge {
    top: 20px;
    left: 20px;
}

.listing-title-link {
    color: var(--ehajj-green, #005500);
    text-decoration: none;
}

.listing-title-link:hover,
.listing-title-link:focus {
    color: var(--ehajj-green-dark, #004400);
    text-decoration: none;
}

.admin-listing-row-form .btn-group {
    flex-wrap: nowrap;
}

.listing-card {
    transition: transform .2s ease, box-shadow .2s ease;
}

.listing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 .75rem 1.5rem rgba(0,0,0,.08) !important;
}

main .container > .alert {
    margin-bottom: 20px;
}

.profile-page {
    margin-top: -1rem;
}

main .container > .alert + .profile-page {
    margin-top: 0;
}

.profile-cover {
    position: relative;
    overflow: hidden;
    height: 280px;
    background-size: cover;
    background-position: center;
    border-radius: .75rem;
}

@media (min-width: 768px) {
    .profile-cover {
        height: 380px;
    }
}

.profile-cover-default {
    background: linear-gradient(135deg, var(--ehajj-green), var(--ehajj-green-light));
}

.profile-header {
    margin-top: -70px;
    position: relative;
    z-index: 2;
}

.profile-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    margin-top: -40px;
    background: #fff;
}

@media (max-width: 767px) {
    .profile-avatar {
        width: 100px;
        height: 100px;
    }
}

.filter-language-toggle {
    position: relative;
    padding-right: 2.25rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right .75rem center;
    background-size: 16px 12px;
}

.filter-language-toggle::after {
    display: none;
}

.filter-language-label {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.filter-language-menu {
    max-height: 16rem;
    overflow-y: auto;
}

.filter-language-menu .dropdown-item {
    cursor: pointer;
}
