/* User Avatar Dropdown Styles */
.user-dropdown {
    position: relative;
    cursor: pointer !important;
}

.user-avatar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer !important;
}

.user-avatar:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.avatar-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    cursor: pointer !important;
}

.avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    cursor: pointer !important;
}

.avatar-placeholder svg {
    width: 18px;
    height: 18px;
    color: #6c757d;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
    color: #161e2d;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-arrow {
    transition: transform 0.3s ease;
    color: #6c757d;
}

.user-avatar[aria-expanded="true"] .dropdown-arrow {
    transform: rotate(180deg);
}

.user-dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 200px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    margin-top: 8px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.user-dropdown .dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Offer Styles */
.offer-badge {
    background: rgba(0, 123, 255, 0.1);
    border: 1px solid rgba(0, 123, 255, 0.2);
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.offer-badge:hover {
    background: rgba(0, 123, 255, 0.15);
    border-color: rgba(0, 123, 255, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}

.offer-badge .badge {
    font-size: 0.8rem;
    padding: 4px 8px;
}

.offer-badge small {
    font-size: 0.75rem;
    margin-top: 4px;
}

.flat-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.flat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.flat-card-image {
    position: relative;
    overflow: hidden;
}

.flat-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.flat-card:hover .flat-card-image img {
    transform: scale(1.05);
}

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

.flat-card-title {
    margin-bottom: 12px;
}

.flat-card-title a {
    color: #161e2d;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.flat-card-title a:hover {
    color: #502d7d;
}

.flat-card-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.flat-card-info span {
    color: #6c757d;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.flat-card-info i {
    color: #502d7d;
    width: 16px;
}

.flat-card-price {
    font-weight: 600;
    color: #502d7d;
    font-size: 1rem;
    margin-bottom: 12px;
}

/* Tab Styles */
.nav-tabs {
    border-bottom: 2px solid #e9ecef;
}

.nav-tabs .nav-link {
    border: none;
    color: #6c757d;
    font-weight: 500;
    padding: 12px 20px;
    border-radius: 0;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    color: #502d7d;
    background: rgba(80, 45, 125, 0.05);
}

.nav-tabs .nav-link.active {
    color: #502d7d;
    background: transparent;
    border-bottom: 2px solid #502d7d;
}

/* Empty State Styles */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #adb5bd;
}

.user-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: #161e2d;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.3s ease;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
}

.user-dropdown .dropdown-item:hover {
    background: #f8f9fa;
    color: #0d6efd;
}

.user-dropdown .dropdown-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.user-dropdown .dropdown-divider {
    margin: 8px 0;
    border: none;
    border-top: 1px solid #e9ecef;
}

.user-dropdown .dropdown-item-form {
    margin: 0;
}

.user-dropdown .logout-btn {
    color: #dc3545;
}

.user-dropdown .logout-btn:hover {
    background: #f8d7da;
    color: #dc3545;
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #f8f9fa;
    color: #6c757d;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.contact-icon.whatsapp {
    background-color: #25d366;
    color: white;
}

.contact-icon:hover {
    background-color: #502d7d;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(80, 45, 125, 0.3);
}

.contact-icon svg {
    width: 25px;
    height: 25px;
}

/* Responsive adjustments */
@media only screen and (max-width: 767px) {
    .user-name {
        display: none;
    }

    .user-avatar {
        padding: 6px 8px;
    }

    .user-dropdown .dropdown-menu {
        right: -10px;
        min-width: 180px;
    }
}

@media only screen and (max-width: 575px) {
    .user-dropdown .dropdown-menu {
        right: -20px;
        min-width: 160px;
    }
}