/* Component Styles for Properti Nigeria */

/* Property Cards */
.property-card {
    position: relative;
    border-radius: 12px !important;;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid #ccc !important;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.property-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.property-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.bg-special {
    background-color: #006633 !important;
    color: #ffffff !important;
}

.property-card:hover .property-card-image img {
    transform: scale(1.05);
}

.property-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
}

.property-card-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
    display: flex;
    gap: 5px;
}

.property-card-action {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.property-card-action:hover {
    background: white;
    transform: scale(1.1);
}

.property-card-body {
    padding: 1rem;
}

.property-card-title, .request-card-location {
    font-size: 17px !important;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    font-family: "AnotherGroteskW05" !important;
}

.property-card-location {
    color: var(--secondary-color);
    font-size: 13px !important;
    margin-bottom: 0.5rem;
}

.property-card-price {
    font-size: 17px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.property-card-features {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.property-card-feature {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: var(--secondary-color);
}

/* Request Cards */
.request-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    margin-bottom: 1rem;
    border: 1px solid #ccc !important;
}

.request-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.request-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.request-card-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: 1rem;
    object-fit: cover;
}

.request-card-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--secondary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 1rem;
}

.request-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.request-card-meta {
    color: var(--secondary-color);
    font-size: 0.875rem;
}

.request-card-details {
    margin-bottom: 1rem;
}

.request-card-detail {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.request-card-detail i {
    width: 20px;
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.request-card-tags {
    margin-bottom: 1rem;
}

.request-card-tag {
    display: inline-block;
    background: var(--light-color);
    color: var(--dark-color);
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius);
    font-size: 0.75rem;
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
}

.request-card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Offer Cards */
.offer-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-color);
    border: 1px solid #ccc !important;
}

.offer-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.offer-match-percentage {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--success-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.875rem;
}

/* Search Filters */
.filter-sidebar {
    background: white;
    border-radius: 12px !important;
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 100px;
    font-size: 14px !important;
    border: 1px solid #ccc !important;
    box-shadow: none !important;
}

.filter-group {
    margin-bottom: 1rem;
}

.filter-title {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    font-size: 13px !important;
}

.filter-dropdown {
    position: relative;
}

.filter-dropdown-toggle {
    background: white;
    border: 1px solid #ced4da;
    border-radius: var(--border-radius);
    padding: 0.5rem 1rem;
    width: 100%;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.filter-dropdown-toggle:hover {
    border-color: var(--primary-color);
}

.filter-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ced4da;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    z-index: 1000;
    display: none;
    padding: 0.5rem;
    margin-top: 0.25rem;
}

.filter-dropdown-menu.show {
    display: block;
}

.filter-option {
    display: block;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.filter-option:hover {
    background: var(--light-color);
}

.filter-option.active {
    background: var(--primary-color);
    color: white;
}

/* Pagination */
.pagination {
    justify-content: center;
    margin-top: 2rem;
}

.page-link {
    color: var(--primary-color);
    border: 1px solid #dee2e6;
    margin: 0 2px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.page-link:hover {
    color: var(--primary-dark);
    background-color: var(--light-color);
    border-color: var(--primary-color);
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--light-color);
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--secondary-color);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.empty-state-description {
    margin-bottom: 1.5rem;
}

/* Notifications */
.notification-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 350px;
    max-height: 400px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    z-index: 1000;
    overflow: hidden;
}

.dropdown-menu[data-bs-popper] {
    margin-top: 7px !important;
}

.dropdown-item{
    padding: 10px 20px !important;
}

.notification-header {
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-list {
    max-height: 400px !important;
    overflow-y: auto;
    padding-bottom: 100px !important;
}

.notification-item {
    padding: 1rem;
    border-bottom: 1px solid #f1f3f4;
    transition: var(--transition);
    cursor: pointer;
}

.notification-item:hover {
    background: var(--light-color);
}

.notification-item.unread {
    background: #f8f9ff;
    border-left: 3px solid var(--primary-color);
}

.notification-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.notification-message {
    color: var(--secondary-color);
    font-size: 0.8125rem;
    margin-bottom: 0.25rem;
}

.notification-time {
    color: var(--secondary-color);
    font-size: 0.75rem;
}

/* Profile Completion */
.profile-completion {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    margin-bottom: 1.5rem;
}

.profile-completion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.profile-completion-title {
    font-weight: 600;
    color: var(--dark-color);
}

.profile-completion-percentage {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.progress {
    height: 8px;
    border-radius: 4px;
    background: #e9ecef;
}

.progress-bar {
    background: var(--primary-color);
    border-radius: 4px;
}

/* Stats Cards */
.stats-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
    border: 1px solid #ccc !important;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.stats-card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stats-card-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.stats-card-label {
    color: var(--secondary-color);
    font-size: 0.875rem;
}


@media (max-width: 991px){
    #mobileNav .dropdown-menu{
        margin-bottom: 10px;
    }
}