/* Property Detail Page - Enhanced Modern Design */

.property-detail-page {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

/* Breadcrumb Enhanced */
.breadcrumb-section {
    background: white;
    padding: 15px 0;
    border-bottom: 1px solid #e8ecef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.breadcrumb-section .container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    flex-direction: row;
}

.breadcrumb-section a {
    color: #6c757d;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

.breadcrumb-section a:hover {
    color: #ff6b35;
}

.breadcrumb-section i {
    color: #dee2e6;
    font-size: 10px;
}

.breadcrumb-section span {
    color: #ff6b35;
    font-size: 14px;
    font-weight: 600;
}

.property-detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 30px 0;
    max-width: 1400px;
    margin: 0 auto;
}

/* Gallery Section Enhanced */
.property-gallery-section {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
}

.main-image {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
}

.main-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.4) 100%);
    pointer-events: none;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.property-gallery-section:hover .main-image img {
    transform: scale(1.05);
}

.featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(255,193,7,0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.listing-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.listing-badge.sale {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.listing-badge.rent {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
}

/* Details Section Enhanced */
.property-details-section {
    background: white;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border: 1px solid rgba(0,0,0,0.05);
}

.property-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 20px;
    color: #2c3e50;
    line-height: 1.3;
}

.property-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 3px solid #f0f3f5;
    flex-wrap: wrap;
    gap: 15px;
}

.property-location {
    color: #495057;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.property-location i {
    color: #ff6b35;
    font-size: 16px;
}

.property-views {
    color: #6c757d;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f8f9fa;
    padding: 6px 12px;
    border-radius: 20px;
}

.property-views i {
    color: #ff6b35;
}

.property-price-box {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c5a 100%);
    color: white;
    padding: 18px 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 6px 20px rgba(255,107,53,0.3);
    position: relative;
    overflow: hidden;
}

.property-price-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-20%, -20%); }
}

.price-label {
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.price-value {
    font-size: 32px;
    font-weight: 800;
    position: relative;
    z-index: 1;
    line-height: 1;
}

.price-period {
    font-size: 18px;
    font-weight: 500;
    opacity: 0.9;
}

/* Key Features Enhanced */
.key-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-color: rgba(255,107,53,0.3);
}

.feature-item i {
    font-size: 28px;
    color: #ff6b35;
    background: white;
    padding: 12px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(255,107,53,0.2);
}

.feature-item strong {
    display: block;
    font-size: 20px;
    color: #2c3e50;
    font-weight: 700;
}

.feature-item span {
    display: block;
    font-size: 13px;
    color: #6c757d;
    font-weight: 500;
}

/* Action Buttons Enhanced - Compact & Premium */
.property-actions-box {
    margin-bottom: 30px;
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
}

.property-actions-box .btn {
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 8px;
    transition: all 0.3s;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    flex: 1;
    white-space: nowrap;
}

.property-actions-box .btn i {
    font-size: 16px;
}

.property-actions-box .btn-primary {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
}

.property-actions-box .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37,211,102,0.4);
}

.property-actions-box .btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
}

.property-actions-box .btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108,117,125,0.3);
}

/* Property Sections Enhanced */
.property-section {
    margin-bottom: 35px;
    padding-bottom: 30px;
    border-bottom: 3px solid #f0f3f5;
}

.property-section:last-child {
    border-bottom: none;
}

.property-section h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #2c3e50;
}

.property-section h3 i {
    color: #ff6b35;
    background: rgba(255,107,53,0.1);
    padding: 10px;
    border-radius: 10px;
    font-size: 18px;
}

.property-section p {
    color: #495057;
    line-height: 1.8;
    font-size: 15px;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 2px solid #f8f9fa;
    transition: all 0.3s;
}

.detail-item:hover {
    background: #f8f9fa;
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 8px;
}

.detail-label {
    font-weight: 600;
    color: #6c757d;
    font-size: 14px;
}

.detail-value {
    color: #2c3e50;
    font-weight: 600;
    font-size: 14px;
}

/* Features List Enhanced */
.features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 25px;
    font-size: 14px;
    color: #2c3e50;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.feature-tag:hover {
    background: white;
    border-color: #ff6b35;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255,107,53,0.2);
}

.feature-tag i {
    color: #ff6b35;
    font-size: 13px;
}

/* Similar Properties Enhanced */
.similar-properties-section {
    padding: 50px 0;
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin-top: 30px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.similar-properties-section h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 30px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 12px;
}

.similar-properties-section h2::before {
    content: '🏠';
    font-size: 32px;
}

.properties-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.property-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.4s;
    border: 1px solid rgba(0,0,0,0.05);
}

.property-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

.property-card .property-image {
    display: block;
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.property-card .property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.property-card:hover .property-image img {
    transform: scale(1.15);
}

.property-card .property-info {
    padding: 20px;
}

.property-card .property-price {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c5a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.property-card .property-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
}

.property-card .property-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s;
}

.property-card .property-title a:hover {
    color: #ff6b35;
}

.property-card .property-location {
    color: #6c757d;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.property-card .property-location i {
    color: #ff6b35;
}

/* Tablet */
@media (min-width: 768px) {
    .property-detail-grid {
        grid-template-columns: 1.2fr 1fr;
        gap: 25px;
    }
    
    .main-image {
        height: 420px;
    }
    
    .property-title {
        font-size: 28px;
    }
    
    .key-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .properties-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .property-actions-box {
        flex-direction: row;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .property-detail-grid {
        grid-template-columns: 1.4fr 1fr;
        gap: 30px;
    }
    
    .main-image {
        height: 500px;
    }
    
    .property-title {
        font-size: 30px;
    }
    
    .key-features {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .properties-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .property-detail-grid {
        grid-template-columns: 1.5fr 1fr;
    }
    
    .main-image {
        height: 520px;
    }
    
    .properties-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Features and Amenities Section */
.features-amenities-section {
    margin-top: 30px;
}

/* Mobile Specific - Enhanced Responsiveness */
@media (max-width: 767px) {
    .property-detail-page {
        padding-bottom: 20px;
    }
    
    /* Breadcrumb */
    .breadcrumb-section {
        padding: 12px 0;
    }
    
    .breadcrumb-section .container {
        padding: 0 15px;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    .breadcrumb-section .container::-webkit-scrollbar {
        display: none;
    }
    
    .breadcrumb-section a,
    .breadcrumb-section span {
        font-size: 13px;
        white-space: nowrap;
    }
    
    /* Container */
    .container {
        padding: 0 15px;
    }
    
    /* Gallery Section */
    .property-gallery-section {
        border-radius: 15px;
        margin-bottom: 20px;
    }
    
    .main-image {
        height: 280px;
        border-radius: 15px 15px 0 0;
    }
    
    .featured-badge {
        top: 12px;
        left: 12px;
        padding: 8px 15px;
        font-size: 12px;
    }
    
    .listing-badge {
        top: 12px;
        right: 12px;
        padding: 8px 15px;
        font-size: 12px;
    }
    
    /* Description */
    .property-gallery-section .property-section {
        padding: 20px 15px !important;
        border-radius: 0 0 15px 15px !important;
    }
    
    .property-gallery-section .property-section h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .property-gallery-section .property-section h3 i {
        font-size: 16px;
        padding: 8px;
    }
    
    .property-gallery-section .property-section p {
        font-size: 14px;
        line-height: 1.6;
    }
    
    /* Property Details Section */
    .property-details-section {
        padding: 20px 15px;
        border-radius: 15px;
        margin-bottom: 20px;
    }
    
    .property-title {
        font-size: 22px;
        margin-bottom: 15px;
        line-height: 1.3;
    }
    
    .property-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 20px;
        padding-bottom: 15px;
    }
    
    .property-location {
        font-size: 14px;
    }
    
    .property-location i {
        font-size: 14px;
    }
    
    .property-views {
        font-size: 13px;
        padding: 5px 10px;
    }
    
    .property-price-box {
        padding: 20px;
        border-radius: 12px;
        margin-bottom: 20px;
    }
    
    .price-label {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .price-value {
        font-size: 28px;
    }
    
    .price-period {
        font-size: 16px;
    }
    
    /* Key Features */
    .key-features {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .feature-item {
        padding: 15px;
        border-radius: 10px;
    }
    
    .feature-item i {
        font-size: 24px;
        padding: 10px;
    }
    
    .feature-item strong {
        font-size: 18px;
    }
    
    .feature-item span {
        font-size: 12px;
    }
    
    /* Action Buttons - Mobile Optimized */
    .property-actions-box {
        margin-bottom: 20px;
        flex-direction: column;
        gap: 8px;
    }
    
    .property-actions-box .btn {
        font-size: 12px;
        padding: 10px 16px;
        border-radius: 8px;
        width: 100%;
        min-width: auto;
    }
    
    .property-actions-box .btn i {
        font-size: 14px;
    }
    
    /* Property Sections */
    .property-section {
        margin-bottom: 25px;
        padding-bottom: 20px;
    }
    
    .property-section h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .property-section h3 i {
        font-size: 16px;
        padding: 8px;
    }
    
    .property-section p {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .details-grid {
        gap: 0;
    }
    
    .detail-item {
        padding: 12px 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .detail-label,
    .detail-value {
        font-size: 13px;
    }
    
    .detail-label {
        font-weight: 700;
    }
    
    /* Features List */
    .features-list {
        gap: 8px;
    }
    
    .feature-tag {
        padding: 8px 14px;
        font-size: 13px;
        border-radius: 20px;
    }
    
    .feature-tag i {
        font-size: 12px;
    }
    
    /* Features and Amenities Section */
    .features-amenities-section {
        margin-top: 20px;
    }
    
    .features-amenities-section .property-section {
        padding: 20px 15px !important;
        border-radius: 15px !important;
        margin-bottom: 15px !important;
    }
    
    .features-amenities-section .property-section:last-child {
        margin-bottom: 0 !important;
    }
    
    .features-amenities-section h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .features-amenities-section h3 i {
        font-size: 16px;
        padding: 8px;
    }
    
    /* Similar Properties */
    .similar-properties-section {
        padding: 30px 20px;
        border-radius: 15px;
        margin-top: 20px;
    }
    
    .similar-properties-section h2 {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    .similar-properties-section h2::before {
        font-size: 26px;
    }
    
    .properties-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .property-card .property-image {
        height: 200px;
    }
    
    .property-card .property-info {
        padding: 15px;
    }
    
    .property-card .property-price {
        font-size: 20px;
        margin-bottom: 8px;
    }
    
    .property-card .property-title {
        font-size: 15px;
        margin-bottom: 8px;
    }
    
    .property-card .property-location {
        font-size: 13px;
    }
    
    /* On mobile, reorder sections */
    .container {
        display: flex;
        flex-direction: column;
    }
    
    .property-detail-grid {
        order: 1;
        display: flex;
        flex-direction: column;
    }
    
    .property-gallery-section {
        order: 1;
    }
    
    .property-details-section {
        order: 2;
    }
    
    .features-amenities-section {
        order: 3;
    }
    
    .similar-properties-section {
        order: 4;
    }
}

/* Extra Small Mobile (320px - 374px) */
@media (max-width: 374px) {
    .property-title {
        font-size: 20px;
    }
    
    .price-value {
        font-size: 24px;
    }
    
    .main-image {
        height: 240px;
    }
    
    .feature-tag {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .property-actions-box .btn {
        font-size: 13px;
        padding: 12px 16px;
    }
}

/* Print Styles */
@media print {
    .property-actions-box,
    .similar-properties-section,
    .breadcrumb-section {
        display: none;
    }
    
    .property-detail-grid {
        grid-template-columns: 1fr;
    }
}


/* ========================================
   PROPERTY GALLERY - MULTIPLE IMAGES
======================================== */

/* Gallery Navigation Arrows */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.gallery-nav:hover {
    background: rgba(255,107,53,0.9);
    transform: translateY(-50%) scale(1.1);
}

.gallery-prev {
    left: 20px;
}

.gallery-next {
    right: 20px;
}

/* Gallery Counter */
.gallery-counter {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    z-index: 10;
}

/* Thumbnail Gallery */
.thumbnail-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 0 0 20px 20px;
    max-height: 150px;
    overflow-x: auto;
    overflow-y: hidden;
}

.thumbnail {
    position: relative;
    width: 100%;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s;
}

.thumbnail:hover {
    border-color: #ff6b35;
    transform: translateY(-3px);
}

.thumbnail.active {
    border-color: #ff6b35;
    box-shadow: 0 4px 15px rgba(255,107,53,0.4);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mobile Responsive for Gallery */
@media (max-width: 767px) {
    .gallery-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .gallery-prev {
        left: 10px;
    }
    
    .gallery-next {
        right: 10px;
    }
    
    .gallery-counter {
        bottom: 10px;
        right: 10px;
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .thumbnail-gallery {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 8px;
        padding: 10px;
        max-height: 120px;
    }
    
    .thumbnail {
        height: 60px;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
    .thumbnail-gallery {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    }
}

/* Desktop - Horizontal Scroll for Many Images */
@media (min-width: 1024px) {
    .thumbnail-gallery {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        max-height: 160px;
    }
    
    .thumbnail {
        height: 90px;
    }
}

/* Scrollbar Styling for Thumbnail Gallery */
.thumbnail-gallery::-webkit-scrollbar {
    height: 6px;
}

.thumbnail-gallery::-webkit-scrollbar-track {
    background: #e9ecef;
    border-radius: 10px;
}

.thumbnail-gallery::-webkit-scrollbar-thumb {
    background: #ff6b35;
    border-radius: 10px;
}

.thumbnail-gallery::-webkit-scrollbar-thumb:hover {
    background: #ff8c5a;
}
