/* Modern Property View Page Styling */

/* Main Property Details Section */
.property-details-section {
    background: #f8f9fa;
    min-height: 100vh;
}

.property-details-content {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 30px;
}

/* Property Image Gallery */
.property-details-img {
    position: relative;
    background: #000;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

.property-details-slider {
    position: relative;
    height: 500px;
    overflow: hidden;
    background: #000;
}

.property-details-slider .item {
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.property-details-slider .item.active {
    opacity: 1;
    z-index: 2;
}

.property-details-slider .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    display: block;
    background: #f0f0f0;
}

.property-details-slider .item:hover img {
    transform: scale(1.02);
}

/* Image loading state */
.property-details-slider .item img[src=""] {
    background: #f0f0f0;
}

.property-details-slider .item img:not([src]) {
    background: #f0f0f0;
}

/* Ensure images are visible when active */
.property-details-slider .item.active {
    opacity: 1 !important;
    visibility: visible !important;
}

.property-details-slider .item:not(.active) {
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Image Navigation */
.property-details-img .slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0.8;
}

.property-details-img .slider-nav:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
    opacity: 1;
}

.property-details-img .slider-nav.prev {
    left: 20px;
}

.property-details-img .slider-nav.next {
    right: 20px;
}

.property-details-img .slider-nav i {
    font-size: 18px;
    color: #333;
}

/* Hide navigation buttons if only one image */
.property-details-img:has(.item:only-child) .slider-nav {
    display: none;
}

/* Image Counter */
.image-counter {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

/* Property Info Header */
.property-details-info {
    padding: 30px;
    border-bottom: 1px solid #e9ecef;
}

.property-details-info h2 {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.3;
}

.property-location {
    display: flex;
    align-items: center;
    color: #6c757d;
    font-size: 16px;
    margin-bottom: 20px;
}

.property-location i {
    color: #dc3545;
    margin-right: 10px;
    font-size: 18px;
}

.property-price {
    text-align: right;
}

.property-price h3 {
    font-size: 32px;
    font-weight: 700;
    color: #088178;
    margin-bottom: 5px;
}

.property-price p {
    font-size: 16px;
    color: #6c757d;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Property Features Grid */
.property-features {
    padding: 30px;
    border-bottom: 1px solid #e9ecef;
}

.property-features h3 {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 25px;
}

.feature-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.feature-item i {
    font-size: 24px;
    color: #088178;
    margin-right: 15px;
    width: 30px;
    text-align: center;
}

.feature-item span {
    font-size: 16px;
    font-weight: 500;
    color: #2c3e50;
}

/* Property Description */
.property-description {
    padding: 30px;
    border-bottom: 1px solid #e9ecef;
}

.property-description h3 {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
}

.property-description p {
    font-size: 16px;
    line-height: 1.8;
    color: #495057;
    margin: 0;
}

/* Amenities Section */
.property-amenities {
    padding: 30px;
    border-bottom: 1px solid #e9ecef;
}

.property-amenities h3 {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 25px;
}

.amenity-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.amenity-item:last-child {
    border-bottom: none;
}

.amenity-item i {
    color: #28a745;
    margin-right: 12px;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.amenity-item span {
    font-size: 15px;
    color: #495057;
}

/* Additional Features */
.property-features-list {
    padding: 30px;
}

.property-features-list h3 {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 25px;
}

/* Property Sidebar */
.property-sidebar {
    position: sticky;
    top: 100px;
}

/* Contact Form Widget */
.contact-form-widget {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    margin-bottom: 30px;
}

.contact-form-widget h3 {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 25px;
    text-align: center;
}

.contact-form-widget .form-group {
    margin-bottom: 20px;
}

.contact-form-widget .form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.contact-form-widget .form-control:focus {
    border-color: #088178;
    background: #fff;
    box-shadow: 0 0 0 0.2rem rgba(8, 129, 120, 0.25);
}

.contact-form-widget .btn-primary {
    background: #088178;
    border: none;
    border-radius: 8px;
    padding: 15px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.contact-form-widget .btn-primary:hover {
    background: #066b63;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(8, 129, 120, 0.3);
}

/* Owner Info Widget */
.owner-info-widget {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    margin-bottom: 30px;
}

.owner-info-widget h3 {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 25px;
    text-align: center;
}

.owner-details {
    text-align: center;
}

.owner-avatar {
    margin-bottom: 20px;
}

.owner-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #088178;
}

.owner-info h4 {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

.owner-info p {
    font-size: 15px;
    color: #6c757d;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.owner-info p i {
    margin-right: 8px;
    color: #088178;
    width: 16px;
}

/* Property Actions */
.property-actions {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
}

.action-buttons {
    list-style: none;
    padding: 0;
    margin: 0;
}

.action-buttons li {
    margin-bottom: 15px;
}

.action-buttons li:last-child {
    margin-bottom: 0;
}

.action-buttons .btn {
    width: 100%;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-buttons .btn i {
    margin-right: 8px;
    font-size: 16px;
}

.action-buttons .btn-outline-primary {
    border: 2px solid #088178;
    color: #088178;
}

.action-buttons .btn-outline-primary:hover {
    background: #088178;
    color: #fff;
    transform: translateY(-2px);
}

.action-buttons .btn-outline-secondary {
    border: 2px solid #6c757d;
    color: #6c757d;
}

.action-buttons .btn-outline-secondary:hover {
    background: #6c757d;
    color: #fff;
    transform: translateY(-2px);
}

.action-buttons .btn-outline-info {
    border: 2px solid #17a2b8;
    color: #17a2b8;
}

.action-buttons .btn-outline-info:hover {
    background: #17a2b8;
    color: #fff;
    transform: translateY(-2px);
}

/* Related Properties Section */
.related-properties-section {
    background: #f8f9fa;
    padding: 60px 0;
}

.related-properties-section .section-title {
    margin-bottom: 50px;
}

.related-properties-section .section-title h2 {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.related-properties-section .section-title p {
    font-size: 18px;
    color: #6c757d;
    margin: 0;
}

/* Property Details Table */
.property-details-table {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    margin-bottom: 30px;
}

.property-details-table h3 {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 25px;
}

.details-table {
    width: 100%;
    border-collapse: collapse;
}

.details-table tr {
    border-bottom: 1px solid #e9ecef;
}

.details-table tr:last-child {
    border-bottom: none;
}

.details-table td {
    padding: 15px 0;
    font-size: 15px;
}

.details-table td:first-child {
    font-weight: 600;
    color: #2c3e50;
    width: 40%;
}

.details-table td:last-child {
    color: #495057;
}

/* Responsive Design */
@media (max-width: 768px) {
    .property-details-slider {
        height: 300px;
    }
    
    .property-details-info {
        padding: 20px;
    }
    
    .property-details-info h2 {
        font-size: 24px;
    }
    
    .property-price h3 {
        font-size: 28px;
    }
    
    .property-features,
    .property-description,
    .property-amenities,
    .property-features-list {
        padding: 20px;
    }
    
    .contact-form-widget,
    .owner-info-widget,
    .property-actions {
        padding: 20px;
    }
    
    .property-sidebar {
        position: static;
        margin-top: 30px;
    }
}

/* Image Gallery Thumbnails */
.image-thumbnails {
    display: flex;
    gap: 10px;
    padding: 20px 30px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    justify-content: center;
    flex-wrap: wrap;
}

.thumbnail {
    width: 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.thumbnail.active {
    border-color: #088178;
    box-shadow: 0 2px 8px rgba(8, 129, 120, 0.3);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.thumbnail:hover {
    border-color: #088178;
    transform: scale(1.05);
}

.thumbnail:hover img {
    transform: scale(1.1);
}

/* Hide thumbnails if only one image */
.image-thumbnails:has(.thumbnail:only-child) {
    display: none;
}

/* Loading States */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: #6c757d;
}

.loading i {
    font-size: 24px;
    margin-right: 10px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success/Error Messages */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: none;
}

.alert-success {
    background: #d4edda;
    color: #155724;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
}
