/* ===== PROPERTY DETAILS PAGE STYLES ===== */

/* Page Layout */
.property-details-container {
    background: #f8f9fa;
    min-height: 100vh;
    padding: 20px 0;
}

/* Page Property Title */
.page-property-title {
    font-size: 1.6rem !important;
    font-weight: 700 !important;
    color: #055A42 !important;
    margin-bottom: 0 !important;
    line-height: 1.3 !important;
}

/* ===== IMAGE GAL.property-title {
    font-size: 1rem;
    fo.main-price {
    font-size: 1rem;
    font-weight: 700;
    color: #055A42;
    margin-bottom: 5px;
}ght: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1.3;
}

.property-location {
    display: flex;
    align-items: center;
    color: #6c757d;
    font-size: 1rem;
    margin-bottom: 20px;
}=== */
.property-gallery {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 
        0 2px 20px rgba(0,0,0,0.08),
        0 0 0 1px rgba(5, 90, 66, 0.05);
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.property-gallery:hover {
    box-shadow: 
        0 4px 25px rgba(0,0,0,0.12),
        0 0 0 1px rgba(5, 90, 66, 0.1);
    transform: translateY(-2px);
}

/* Main Image Container */
.main-image-viewer {
    position: relative;
    width: 100%;
    height: 500px;
    background: #000;
    overflow: hidden;
    border: 2px solid rgba(5, 90, 66, 0.1);
    transition: all 0.3s ease;
}

.main-image-viewer:hover {
    border-color: rgba(5, 90, 66, 0.3);
    box-shadow: 0 0 20px rgba(5, 90, 66, 0.2);
}

.main-image-viewer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg, 
        rgba(5, 90, 66, 0.2) 0%, 
        rgba(5, 90, 66, 0.1) 50%, 
        rgba(251, 191, 36, 0.1) 100%
    );
    z-index: 2;
    pointer-events: none;
}

.main-property-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.main-image-viewer:hover .main-property-img {
    transform: scale(1.02);
}

.main-image-viewer:hover::before {
    background: linear-gradient(
        135deg, 
        rgba(5, 90, 66, 0.3) 0%, 
        rgba(5, 90, 66, 0.15) 50%, 
        rgba(251, 191, 36, 0.15) 100%
    );
}

/* Navigation Controls */
.gallery-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.95);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    color: #333;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.gallery-controls:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.prev-control { left: 20px; }
.next-control { right: 20px; }

/* Image Info Overlay */
.image-info {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 8px 15px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
}

/* Property Status Badge */
.property-status {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 5;
}

.status-badge {
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-for-sale { background: #e74c3c; }
.status-for-rent { background: #27ae60; }
.status-mortgage { background: #3498db; }

/* Action Buttons */
.gallery-actions {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 5;
}

.action-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255,255,255,0.95);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.action-btn:hover {
    background: white;
    transform: scale(1.1);
}

.action-btn i {
    font-size: 16px;
    color: #333;
}

/* Thumbnail Gallery */
.thumbnail-gallery {
    display: flex;
    gap: 12px;
    padding: 20px;
    background: #f8f9fa;
    overflow-x: auto;
    scrollbar-width: thin;
}

.thumbnail-gallery::-webkit-scrollbar {
    height: 6px;
}

.thumbnail-gallery::-webkit-scrollbar-track {
    background: #e9ecef;
    border-radius: 3px;
}

.thumbnail-gallery::-webkit-scrollbar-thumb {
    background: #fbbf24;
    border-radius: 3px;
}

.thumbnail-item {
    width: 90px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    flex-shrink: 0;
    opacity: 0.7;
    transition: all 0.3s ease;
    position: relative;
}

.thumbnail-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg, 
        rgba(5, 90, 66, 0.25) 0%, 
        rgba(251, 191, 36, 0.15) 100%
    );
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.thumbnail-item:hover,
.thumbnail-item.active {
    border-color: #055A42;
    opacity: 1;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(5, 90, 66, 0.3);
}

.thumbnail-item:hover::before,
.thumbnail-item.active::before {
    opacity: 1;
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.thumbnail-item:hover img {
    transform: scale(1.1);
}

/* ===== PROPERTY INFORMATION SECTION ===== */
.property-info-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    overflow: hidden;
}

.property-header {
    padding: 30px;
    border-bottom: 1px solid #e9ecef;
}

.property-title {
    font-size: 1rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1.3;
}

.property-location {
    display: flex;
    align-items: center;
    color: #6c757d;
    font-size: 1rem;
    margin-bottom: 20px;
}

.property-location i {
    margin-right: 8px;
    color: #055A42;
}

.property-pricing {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.price-section {
    flex: 1;
}

.main-price {
    font-size: 1rem;
    font-weight: 700;
    color: #055A42;
    margin-bottom: 5px;
}

.price-label {
    font-size: 0.9rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Property Stats */
.property-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding: 25px 30px;
    background: #f8f9fa;
}

.stats-title {
    width: 100%;
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 15px 0;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #495057;
    font-weight: 500;
}

.stat-item i {
    color: #055A42;
    font-size: 18px;
    width: 20px;
    text-align: center;
}

/* ===== CONTENT SECTIONS ===== */
.content-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    overflow: hidden;
}

.section-header {
    padding: 25px 30px;
    background: white;
    border-bottom: 1px solid #e9ecef;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.section-content {
    padding: 30px;
}

/* Description Section */
.property-description {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #495057;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-weight: 500;
    color: #495057;
}

.feature-item i {
    color: #055A42;
    font-size: 16px;
    width: 20px;
}

/* ===== SIDEBAR SECTIONS ===== */
.sidebar-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    overflow: hidden;
}

/* Action Card */
.action-card .section-content {
    padding: 25px;
}

.primary-action {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-buy {
    background: #e74c3c;
    color: white;
}

.btn-rent {
    background: #27ae60;
    color: white;
}

.btn-mortgage {
    background: #3498db;
    color: white;
}

.primary-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.secondary-action {
    width: 100%;
    padding: 12px;
    font-weight: 500;
    border-radius: 8px;
    border: 2px solid #fbbf24;
    background: white;
    color: #055A42;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.secondary-action:hover {
    background: #fbbf24;
    color: white;
}

/* Agent Card */
.agent-profile {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
}

.agent-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #055A42 0%, #08b32d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    flex-shrink: 0;
}

.agent-info h6 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #2c3e50;
}

.agent-info .agent-title {
    color: #6c757d;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.agent-contact {
    font-size: 0.9rem;
    color: #6c757d;
}

.agent-contact i {
    margin-right: 5px;
    color: #055A42;
}

/* Contact Form */
.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 8px;
}

.contact-form .form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 12px 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: #055A42;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

/* Map Section */
.map-container {
    height: 300px;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}

.map-container i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #055A42;
}

/* Similar Properties */
.similar-property {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f1f3f4;
    align-items: center;
}

.similar-property:last-child {
    border-bottom: none;
}

.similar-image {
    width: 90px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.similar-info h6 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #2c3e50;
}

.similar-info .location {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 5px;
}

.similar-info .price {
    font-size: 1.1rem;
    font-weight: 600;
    color: #055A42;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .property-title {
        font-size: 1.8rem;
    }
    
    .main-price {
        font-size: 2rem;
    }
    
    .property-stats {
        gap: 20px;
    }
    
    .stat-item {
        flex: 1;
        min-width: calc(50% - 10px);
    }
    
    .main-image-viewer {
        height: 300px;
    }
    
    .gallery-controls {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .property-header {
        padding: 20px;
    }
    
    .section-content {
        padding: 20px;
    }
    
    .property-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .stat-item {
        min-width: auto;
    }
    
    .property-pricing {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .thumbnail-gallery {
        padding: 15px;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-primary { color: #055A42 !important; }
.text-success { color: #27ae60 !important; }
.text-danger { color: #e74c3c !important; }
.text-muted { color: #6c757d !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }

/* ===== MORTGAGE CALCULATOR STYLES ===== */
.mortgage-calculator-section {
    background: linear-gradient(135deg, #055A42 0%, #04472e 100%);
    color: white;
    border-radius: 12px;
    margin-bottom: 30px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(5, 90, 66, 0.2);
}

.mortgage-calculator-section .section-header {
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mortgage-calculator-section .section-title {
    color: white;
    font-weight: 600;
}

/* Financial Partners Section */
.financial-partners {
    margin-bottom: 25px;
}

.partners-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.partners-title::before {
    content: "🏦";
    margin-right: 8px;
    font-size: 1rem;
}

.partners-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.partner-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 60px;
}

.partner-item:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.partner-item.selected {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.partner-logo {
    width: 50px;
    height: 40px;
    object-fit: contain;
    background: white;
    border-radius: 6px;
    padding: 6px;
    margin-right: 8px;
    flex-shrink: 0;
}

.partner-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 0;
}

.partner-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    line-height: 1.2;
    margin-bottom: 2px;
}

.partner-rate {
    font-size: 0.7rem;
    color: #ffd700;
    font-weight: 500;
}

/* Calculator Form */
.calculator-form {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.calculator-form .form-group {
    margin-bottom: 18px;
}

.calculator-form label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

.calculator-form .form-control,
.calculator-form .form-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 0.9rem;
}

.calculator-form .form-control:focus,
.calculator-form .form-select:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffd700;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
    outline: none;
}

.calculator-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Range Slider */
.form-range {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    outline: none;
    margin-bottom: 8px;
}

.form-range::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    background: #ffd700;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.form-range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #ffd700;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.range-value {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Calculator Results */
.calculator-results {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.result-item:last-child {
    border-bottom: none;
}

.result-item.total {
    border-top: 2px solid #ffd700;
    margin-top: 10px;
    padding-top: 15px;
    font-weight: 600;
}

.result-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.result-value {
    font-size: 1rem;
    font-weight: 600;
    color: #ffd700;
}

.result-item.total .result-value {
    font-size: 1.1rem;
    color: white;
}

/* Calculator Actions */
.calculator-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.calculator-actions .btn-mortgage {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #055A42;
    border: none;
    font-weight: 600;
}

.calculator-actions .btn-mortgage:hover {
    background: linear-gradient(135deg, #ffed4e 0%, #ffd700 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.calculator-actions .secondary-action {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.calculator-actions .secondary-action:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .partners-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .partner-item {
        padding: 6px;
        min-height: 50px;
    }
    
    .partner-logo {
        width: 45px;
        height: 35px;
        margin-right: 6px;
    }
    
    .partner-name {
        font-size: 0.7rem;
    }
    
    .partner-rate {
        font-size: 0.65rem;
    }
    
    .calculator-actions {
        flex-direction: column;
    }
    
    .calculator-actions button {
        width: 100%;
    }
}

/* ===== FINANCIAL PARTNERS PREVIEW STYLES ===== */
.financial-partners-preview {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 30px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.financial-partners-preview .section-header {
    background: linear-gradient(135deg, #055A42 0%, #04472e 100%);
    padding: 12px 20px;
    border-bottom: none;
}

.financial-partners-preview .section-title {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0;
}

.financial-partners-preview .section-content {
    padding: 15px 20px;
}

.partners-preview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 10px;
}

.partner-preview-item {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    height: 50px;
}

.partner-preview-item:hover {
    border-color: #055A42;
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(5, 90, 66, 0.1);
}

.partner-preview-logo {
    width: 60px;
    height: 35px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.partner-preview-item:hover .partner-preview-logo {
    transform: scale(1.05);
}

.partners-preview-text {
    text-align: center;
}

.partners-preview-text p {
    margin: 0;
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 500;
}

/* Responsive Design for Preview */
@media (max-width: 768px) {
    .partners-preview-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .partner-preview-item {
        height: 45px;
        padding: 6px;
    }
    
    .partner-preview-logo {
        width: 50px;
        height: 30px;
    }
    
    .partners-preview-text p {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .financial-partners-preview .section-content {
        padding: 10px 15px;
    }
    
    .partners-preview-grid {
        gap: 4px;
    }
    
    .partner-preview-item {
        height: 40px;
        padding: 4px;
    }
    
    .partner-preview-logo {
        width: 45px;
        height: 25px;
    }
}
