/**
 * Modern Agent Block Styling for Daft Integration
 * 
 * This file contains improved styling for the agent block in the sidebar
 * on single property pages, using the user's preferred color scheme.
 */

/* CSS Variables for consistent theming */
:root {
    --primary-color: #BCD62C;
    --secondary-color: #13adb7;
    --primary-hover: #a8c125;
    --secondary-hover: #0f9aa1;
    --text-dark: #2c3e50;
    --text-medium: #6c757d;
    --text-light: #8e9aaf;
    --background-light: #f8f9fa;
    --border-light: #e9ecef;
    --shadow-light: rgba(0, 0, 0, 0.08);
    --shadow-medium: rgba(0, 0, 0, 0.15);
}

/* Agent Card Container */
.agent-card {
    background: white !important;
    border-radius: 16px !important;
    padding: 24px !important;
    box-shadow: 0 4px 20px var(--shadow-light) !important;
    border: 1px solid var(--border-light) !important;
    margin-bottom: 24px !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
}

.agent-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.agent-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 30px var(--shadow-medium) !important;
}

/* Agent Info Section */
.agent-info {
    margin-bottom: 20px !important;
    padding-bottom: 20px !important;
    border-bottom: 1px solid var(--border-light) !important;
}

/* Agent Details */
.agent-details {
    flex: 1 !important;
    min-width: 0 !important;
}

.agent-name {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: var(--text-dark) !important;
    margin: 0 0 8px 0 !important;
    line-height: 1.3 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.agent-company {
    font-size: 0.95rem !important;
    color: var(--secondary-color) !important;
    font-weight: 600 !important;
    margin: 0 0 12px 0 !important;
    line-height: 1.2 !important;
}

/* Agent Contact Info */
.agent-contact-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
}

.agent-phone,
.agent-phone-2,
.agent-email,
.agent-email-cc {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 0.9rem !important;
    color: var(--text-medium) !important;
    margin: 0 !important;
    line-height: 1.4 !important;
}

.agent-phone-info {
    font-size: 0.8rem !important;
    color: var(--text-light) !important;
    margin: 4px 0 0 22px !important;
    font-style: italic !important;
}

.contact-icon {
    color: var(--secondary-color) !important;
    flex-shrink: 0 !important;
}

/* Contact Form Section */
.contact-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

.contact-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    padding: 14px 20px !important;
    border: none !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    position: relative !important;
    overflow: hidden !important;
}

.contact-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.contact-btn:hover::before {
    left: 100%;
}

.contact-btn.primary {
    background: var(--secondary-color) !important;
    color: #fff !important; 
}

.contact-btn.primary:hover {
    background: var(--secondary-hover) !important;
    transform: translateY(-2px) !important; 
}

.contact-btn.secondary {
    background: white !important;
    color: var(--secondary-color) !important;
    border: 2px solid var(--secondary-color) !important; 
}

.contact-btn.secondary:hover {
    background: var(--secondary-color) !important;
    color: white !important;
    transform: translateY(-2px) !important; 
}
.btn, .btn-theme, .btn-theme-2, .btn-theme-radius, .btn, .btn-white, .btn-gray, .btn-black, input[type*="submit"]:not(.fa):not(.btn-theme):not(.newsletter-submit):not(.las), #tribe-events .tribe-events-button, .tribe-events-button{
    background: var(--secondary-color) !important;
    color: #fff !important; 
}

.contact-btn svg {
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0 !important;
}

/* Contact Form Section */
.contact-form-section {
    margin-top: 24px !important;
    padding-top: 24px !important;
    border-top: 1px solid var(--border-light) !important;
}

.contact-form-section h3 {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: var(--text-dark) !important;
    margin: 0 0 16px 0 !important;
    text-align: center !important;
}

.contact-form-shortcode {
    /* Style the form container */
}

.no-form-message {
    color: var(--text-medium) !important;
    font-style: italic !important;
    text-align: center !important;
    margin: 16px 0 !important;
}

.no-form-message + p {
    text-align: center !important;
}

.no-form-message + p a {
    color: var(--secondary-color) !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}

.no-form-message + p a:hover {
    color: var(--secondary-hover) !important;
    text-decoration: underline !important;
}

/* Property Overview Card in Sidebar */
.property-overview-card {
    background: white !important;
    border-radius: 16px !important;
    padding: 24px !important;
    box-shadow: 0 4px 20px var(--shadow-light) !important;
    border: 1px solid var(--border-light) !important;
    margin-bottom: 24px !important;
    position: relative !important;
    overflow: hidden !important;
}

.property-overview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.property-overview-card h3 {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: var(--text-dark) !important;
    margin: 0 0 16px 0 !important;
    text-align: center !important;
}

.property-overview-card .overview-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

.property-overview-card .overview-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 8px 0 !important;
    border-bottom: 1px solid var(--border-light) !important;
}

.property-overview-card .overview-item:last-child {
    border-bottom: none !important;
}

.property-overview-card .overview-item .label {
    font-weight: 600 !important;
    color: var(--text-medium) !important;
    font-size: 0.9rem !important;
}

.property-overview-card .overview-item .value {
    font-weight: 700 !important;
    color: var(--text-dark) !important;
    font-size: 0.9rem !important;
    text-align: right !important;
}

/* Special styling for BER rating */
.property-overview-card .overview-item .value.ber-a1,
.property-overview-card .overview-item .value.ber-a2,
.property-overview-card .overview-item .value.ber-a3 {
    color: #28a745 !important;
    font-weight: 700 !important;
}

.property-overview-card .overview-item .value.ber-b1,
.property-overview-card .overview-item .value.ber-b2,
.property-overview-card .overview-item .value.ber-b3 {
    color: #17a2b8 !important;
    font-weight: 700 !important;
}

.property-overview-card .overview-item .value.ber-c1,
.property-overview-card .overview-item .value.ber-c2,
.property-overview-card .overview-item .value.ber-c3 {
    color: #ffc107 !important;
    font-weight: 700 !important;
}

.property-overview-card .overview-item .value.ber-d1,
.property-overview-card .overview-item .value.ber-d2 {
    color: #fd7e14 !important;
    font-weight: 700 !important;
}

.property-overview-card .overview-item .value.ber-e1,
.property-overview-card .overview-item .value.ber-e2 {
    color: #dc3545 !important;
    font-weight: 700 !important;
}

.property-overview-card .overview-item .value.ber-f,
.property-overview-card .overview-item .value.ber-g {
    color: #6f42c1 !important;
    font-weight: 700 !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .agent-card {
        padding: 20px !important;
        margin-bottom: 20px !important;
    }
    
    .agent-info {
        gap: 12px !important;
    }
    
    .agent-avatar {
        width: 56px !important;
        height: 56px !important;
        min-width: 56px !important;
    }
    
    .agent-name {
        font-size: 1.1rem !important;
    }
    
    .contact-btn {
        padding: 12px 16px !important;
        font-size: 0.9rem !important;
    }
}

@media (max-width: 480px) {
    .agent-card {
        padding: 16px !important;
    }
    
    .agent-info {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 16px !important;
    }
    
    .agent-details {
        width: 100% !important;
    }
    
    .agent-name {
        white-space: normal !important;
        text-align: center !important;
    }
    
    .agent-contact-info {
        align-items: center !important;
    }
    
    .agent-phone,
    .agent-phone-2,
    .agent-email,
    .agent-email-cc {
        justify-content: center !important;
    }
    
    .agent-phone-info {
        margin-left: 0 !important;
        text-align: center !important;
    }
}

/* Animation for smooth loading */
.agent-card {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus states for accessibility */
.contact-btn:focus {
    outline: 2px solid var(--primary-color) !important;
    outline-offset: 2px !important;
}

.contact-btn.secondary:focus {
    outline-color: var(--secondary-color) !important;
}
