/* Agent Pages Specific Styles */

/* Agent List Page */


.agent-card {
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
    display: block;
}

.agent-card:hover {
    transform: translateY(-5px);
}

.agent-card:hover .card-title {
        color: #2563eb; /* Blue color when hovered - you can change this to any color you want */
        transition: color 0.3s ease;
    }

.agent-img-container {
    height: 250px;
    overflow: hidden;
    position: relative;
    border-radius: 8px 8px 0 0;
}

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

.agent-card .card {
    transition: box-shadow 0.3s ease;
    border-radius: 8px;
}

.agent-card:hover .card {
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

/* Agent Detail Page */
.agent-detail-section {
    padding: 50px 0;
}

.agent-profile-img {
    width: 150px;
    height: 150px;
    overflow: hidden;
    margin: 0 auto;
}

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

.agent-contact-info i {
    width: 20px;
    text-align: center;
    margin-right: 8px;
}

.property-img-container {
    height: 180px;
    overflow: hidden;
    position: relative;
}

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

.property-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 123, 255, 0.8);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
}

.sold-badge {
    background-color: rgba(220, 53, 69, 0.8);
}

/* Bootstrap Utility Classes */
.me-1 {
    margin-right: 0.25rem !important;
}

.me-2 {
    margin-right: 0.5rem !important;
}

.me-3 {
    margin-right: 1rem !important;
}

.ms-1 {
    margin-left: 0.25rem !important;
}

.ms-2 {
    margin-left: 0.5rem !important;
}

.ms-3 {
    margin-left: 1rem !important;
}

.mx-1 {
    margin-left: 0.25rem !important;
    margin-right: 0.25rem !important;
}

.mx-2 {
    margin-left: 0.5rem !important;
    margin-right: 0.5rem !important;
}

/* Active state for buttons */
.btn.active {
    pointer-events: none;
    opacity: 1;
}

/* Property page navigation */
.property-nav {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Transition effects for hover states */
.sold-property {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.sold-property:hover {
    opacity: 1;
}

.property-price {
    font-weight: bold;
    color: #28a745;
    font-size: 1.1em;
}

.sold-price {
    color: #6c757d;
    text-decoration: line-through;
}

.property-features {
    display: flex;
    justify-content: space-between;
}

.property-features span {
    font-size: 0.9em;
    color: #6c757d;
}

.property-features i {
    margin-right: 5px;
}

.sold-property {
    opacity: 0.8;
}

.sold-property:hover {
    opacity: 1;
}

/* Dark Mode Adjustments */
html[data-theme="dark"] .card {
    background-color: #1e2a45;
    border-color: #2a3959;
}

html[data-theme="dark"] .card-header {
    background-color: #2a3959;
    border-color: #364569;
}

html[data-theme="dark"] .card-title {
    color: #e0e0e0;
}

html[data-theme="dark"] .text-muted {
    color: #9aa0ac !important;
}

html[data-theme="dark"] .property-price {
    color: #4caf50;
}

html[data-theme="dark"] .property-features span {
    color: #9aa0ac;
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    .agent-img-container {
        height: 200px;
    }
    
    .property-features {
        flex-direction: column;
        gap: 5px;
    }
}

@media (max-width: 575.98px) {
    .agent-profile-img {
        width: 120px;
        height: 120px;
    }
}

  .best-agent-card {
        border: 2px solid #ffc107 !important;
        position: relative;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15), 0 5px 15px rgba(0, 0, 0, 0.1) !important;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        margin: 8px 4px;
    }
    
    .best-agent-card:hover {
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 12px 24px rgba(0, 0, 0, 0.12) !important;
    }
      .best-agent-badge {
        position: absolute;
        top: 10px;
        right: 10px;
        background-color: #ffc107;
        color: #212529;
        padding: 5px 10px;
        border-radius: 20px;
        font-weight: bold;
        z-index: 10;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }
    
    .best-agents-of-the-month {
        /* background-color: #ffffff; */
        border-radius: 12px;
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.05);
        position: relative;
        overflow: hidden;
    }
    
    .best-agents-of-the-month::before {
        content: '';
        position: absolute;
        top: -20px;
        right: -20px;
        width: 120px;
        height: 120px;
        background-color: #ffc107;
        opacity: 0.1;
        border-radius: 50%;
        z-index: 0;
    }