/* Modern Property Detail Page Styles */

.modern-property-detail {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    min-height: 100vh;
}

/* Hero Gallery Section */
.property-hero-gallery {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    padding: 40px 0;
    position: relative;
}

.main-gallery-wrapper {
    position: relative;
}

.main-image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.main-gallery-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.main-image-container:hover .main-gallery-image {
    transform: scale(1.02);
}

/* Badges on Image */
.image-badges {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    z-index: 20;
    pointer-events: none;
}

.image-badge {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.image-badge.badge-sale {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
}

.image-badge.badge-rent {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.image-badge.badge-rating {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1f2937;
}

.image-badge.badge-rating i {
    color: #1f2937;
    font-size: 12px;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.main-image-container:hover .image-overlay {
    opacity: 1;
}

.overlay-actions {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 12px;
}

.gallery-btn {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    color: #1f2937;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-btn:hover {
    background: white;
    transform: scale(1.1);
}

.gallery-favorite {
    color: #ef4444;
}

.gallery-favorite.active {
    background: #ef4444;
    color: white;
}

/* Gallery Thumbnails */
.gallery-thumbnails {
    margin-top: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
}

.thumbnails-slider {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 5px;
}

.thumbnails-slider::-webkit-scrollbar {
    height: 6px;
}

.thumbnails-slider::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.thumbnails-slider::-webkit-scrollbar-thumb {
    background: rgba(251, 191, 36, 0.5);
    border-radius: 3px;
}

.thumbnail-item {
    flex: 0 0 120px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.thumbnail-item:hover {
    transform: translateY(-2px);
    border-color: rgba(251, 191, 36, 0.5);
}

.thumbnail-item.active {
    border-color: #fbbf24;
}

.thumbnail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
}

/* Property Summary Card */
.property-summary-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    position: sticky;
    top: 20px;
}

.property-header {
    margin-bottom: 24px;
}

.property-title {
    color: white;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
}

.property-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.property-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.badge-sale {
    background: rgba(16, 185, 129, 0.9);
    color: white;
}

.badge-rent {
    background: rgba(59, 130, 246, 0.9);
    color: white;
}

.badge-rating {
    background: rgba(251, 191, 36, 0.9);
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 4px;
}

.property-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 12px;
}

.property-location i {
    color: #fbbf24;
}

/* Resort Badge */
.property-resort {
    margin-bottom: 20px;
}

.resort-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(245, 158, 11, 0.1) 100%);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.resort-badge:hover {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.25) 0%, rgba(245, 158, 11, 0.2) 100%);
    border-color: rgba(251, 191, 36, 0.5);
    transform: translateY(-2px);
}

.resort-badge i {
    color: #fbbf24;
    font-size: 16px;
}

.resort-badge span {
    color: #fbbf24;
    font-weight: 600;
    font-size: 14px;
}

.resort-badge .resort-stars {
    display: flex;
    gap: 2px;
    margin-left: 4px;
}

.resort-badge .resort-stars i {
    font-size: 10px;
    color: #fbbf24;
}

.property-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.spec-item i {
    width: 20px;
    color: #fbbf24;
}

.property-pricing {
    margin-bottom: 24px;
}

.price-block {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.price-label {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    margin-bottom: 4px;
}

.price-value {
    display: block;
    color: #fbbf24;
    font-size: 20px;
    font-weight: 700;
}

.property-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 24px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn.btn-primary {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1f2937;
}

.action-btn.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.3);
    color: #1f2937;
}

.action-btn.btn-outline {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.action-btn.btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.action-btn.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.action-btn.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.3);
}

.action-btn.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(251, 191, 36, 0.4);
}

.action-btn.btn-secondary:hover {
    background: rgba(251, 191, 36, 0.15);
    border-color: #fbbf24;
    transform: translateY(-2px);
    color: #fbbf24;
}

/* Content Section */
.property-content-section {
    padding: 60px 0;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
}

.content-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    margin-bottom: 30px;
    overflow: hidden;
}

.content-card:last-child {
    margin-bottom: 0;
}

.card-header {
    padding: 24px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.card-title {
    color: white;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-title i {
    color: #fbbf24;
}

.card-body {
    padding: 30px;
}

.description-content p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0;
}

/* Amenities Grid */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.amenity-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.amenity-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1f2937;
    font-size: 20px;
}

.amenity-info {
    flex: 1;
}

.amenity-info strong {
    display: block;
    color: white;
    font-size: 16px;
    margin-bottom: 4px;
}

.amenity-info span {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.other-amenities {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.other-amenities h4 {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.other-amenities-content {
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.other-amenities-content p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.6;
}

/* Location */
.location-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.location-address h4 {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.location-address p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.location-map {
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
}

.map-placeholder i {
    font-size: 48px;
    margin-bottom: 16px;
}

/* Sidebar Cards */
.sidebar-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    margin-bottom: 30px;
    overflow: hidden;
}

.sidebar-card:last-child {
    margin-bottom: 0;
}

.sidebar-card .card-header {
    padding: 20px 24px;
}

.sidebar-card .card-header .card-title {
    font-size: 18px;
}

.sidebar-card .card-body {
    padding: 24px;
}

/* Owner Profile */
.owner-profile {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.owner-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.owner-avatar-placeholder {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1f2937;
    font-size: 24px;
}

.owner-info h5 {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.owner-username {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin-bottom: 8px;
}

.owner-badge {
    display: inline-block;
    padding: 4px 8px;
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.owner-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.stat-icon {
    width: 40px;
    height: 40px;
    background: rgba(251, 191, 36, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fbbf24;
    font-size: 16px;
}

.stat-info {
    flex: 1;
}

.stat-number {
    display: block;
    color: white;
    font-size: 18px;
    font-weight: 700;
}

.stat-label {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

.listing-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.listing-date i {
    color: #fbbf24;
}

/* No Image Container */
.no-image-container {
    height: 500px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-image-content {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

.no-image-content i {
    font-size: 64px;
    margin-bottom: 16px;
}

/* Lightbox Styles */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    border-radius: 12px;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lightbox-prev {
    left: -70px;
}

.lightbox-next {
    right: -70px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .property-hero-gallery .row {
        flex-direction: column;
    }
    
    .property-summary-card {
        position: static;
        margin-top: 20px;
    }
    
    .location-info {
        grid-template-columns: 1fr;
    }
    
    .amenities-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .property-hero-gallery {
        padding: 20px 0;
    }
    
    .main-gallery-image {
        height: 300px;
    }
    
    .property-content-section {
        padding: 40px 0;
    }
    
    .card-body {
        padding: 20px;
    }
    
    .property-specs {
        grid-template-columns: 1fr;
    }
    
    .overlay-actions {
        top: 10px;
        right: 10px;
    }
    
    .gallery-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .property-summary-card {
        padding: 20px;
    }
    
    .property-title {
        font-size: 20px;
    }
    
    .amenity-item {
        padding: 16px;
    }
    
    .amenity-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}
