/* Washington76 Properties - Property Detail Styles */

/* Property Page Header Override */
.site-header {
    background: white !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky !important;
}

.site-header .contact-link {
    color: #2C2C2C !important;
    text-shadow: none !important;
}

.site-header .contact-link svg {
    filter: none !important;
}

.site-header .header-logo .logo {
    filter: none !important;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo h1 {
    color: #FFE500;
    font-size: 1.5rem;
    margin: 0;
}

.header-nav {
    display: flex;
    gap: 30px;
}

.header-nav a {
    color: #2C2C2C;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.header-nav a:hover {
    color: #FFE500;
}

/* Property Hero */
.property-hero {
    background: #f5f5f5;
    padding: 40px 0;
}

.back-link {
    margin-bottom: 20px;
}

.back-link a {
    color: #2C2C2C;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-link a:hover {
    color: #FFE500;
}

.property-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
}

.property-title h1 {
    color: #2C2C2C;
    font-size: 2.5rem;
    margin: 0;
    flex: 1;
}

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

.property-price .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #FFE500;
}

.property-price .period {
    font-size: 1rem;
    color: #666666;
    margin-left: 5px;
}

/* Property Layout */
.property-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 40px;
    min-width: 0;
}

.property-main {
    min-width: 0;
}

/* Image Gallery */
.image-gallery {
    margin-bottom: 40px;
    min-width: 0;
}

.gallery-main {
    position: relative;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.gallery-main img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: rgba(0, 0, 0, 0.3);
}

.gallery-main:hover .gallery-overlay {
    opacity: 1;
}

.gallery-enlarge-btn {
    background: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    letter-spacing: 0.3px;
    transition: background 0.2s ease;
}

.gallery-enlarge-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 22px;
    font-weight: bold;
    color: #2C2C2C;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.gallery-nav-btn:hover {
    background: #FFE500;
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav-btn.prev-btn {
    left: 15px;
}

.gallery-nav-btn.next-btn {
    right: 15px;
}

.gallery-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
    cursor: grab;
    user-select: none;
}

.gallery-thumbnails.dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

.gallery-thumbnails.dragging .thumbnail {
    pointer-events: none;
}

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

.gallery-thumbnails::-webkit-scrollbar-track {
    background: transparent;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    min-width: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.thumbnail:hover,
.thumbnail.active {
    opacity: 1;
    border-color: #FFE500;
}

/* Property Details */
.property-details {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: block;
}

.property-details h2 {
    color: #2C2C2C;
    margin-bottom: 25px;
    margin-top: 0;
    border-bottom: 2px solid #FFE500;
    padding-bottom: 10px;
    font-size: 1.75rem;
    display: block;
    width: 100%;
}

.property-details h3 {
    color: #2C2C2C;
    margin-bottom: 15px;
    margin-top: 0;
    font-size: 1.25rem;
    display: block;
}

.description {
    margin-bottom: 30px;
    display: block;
    clear: both;
}

.description p {
    line-height: 1.6;
    color: #666666;
    margin-top: 0;
}

.specifications {
    margin-bottom: 30px;
    display: block;
    clear: both;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.spec-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #FFE500;
    gap: 8px;
}

.spec-label {
    font-weight: 500;
    color: #666666;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spec-value {
    font-weight: 600;
    color: #2C2C2C;
    font-size: 1.1rem;
}

.status-available {
    color: #28a745 !important;
}

.status-rented {
    color: #dc3545 !important;
}

/* Sidebar */
.property-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-card,
.application-card,
.share-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.contact-card h3,
.application-card h3,
.share-card h3 {
    color: #2C2C2C;
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.contact-card p,
.application-card p {
    color: #666666;
    margin-bottom: 20px;
}

.contact-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.contact-actions .btn {
    width: 100%;
    text-align: center;
}

.contact-info {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.contact-item {
    margin-bottom: 10px;
}

.contact-item strong {
    color: #2C2C2C;
    display: block;
    margin-bottom: 5px;
}

.contact-item a {
    color: #FFE500;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.share-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.share-buttons .btn {
    width: 100%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Back Section */
.back-section {
    padding: 40px 0;
    background: #f5f5f5;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .header-nav {
        gap: 20px;
    }
    
    .property-title {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .property-title h1 {
        font-size: 2rem;
    }
    
    .property-price {
        text-align: left;
    }
    
    .property-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .gallery-main img {
        height: 250px;
    }
    
    .gallery-nav-btn {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .gallery-nav-btn.prev-btn {
        left: 10px;
    }

    .gallery-nav-btn.next-btn {
        right: 10px;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-actions {
        flex-direction: column;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .property-policies {
        grid-template-columns: 1fr;
    }
    
    .policy-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .policy-icon {
        width: 60px;
        height: 60px;
    }
    
    .policy-icon i {
        font-size: 60px;
    }
    
    .policy-icon .fa-stack {
        font-size: 30px;
    }
}

@media (max-width: 480px) {
    .property-title h1 {
        font-size: 1.75rem;
    }
    
    .property-price .price {
        font-size: 2rem;
    }
    
    .gallery-main img {
        height: 200px;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .property-details {
        padding: 20px;
    }
    
    .contact-card,
    .application-card,
    .share-card {
        padding: 20px;
    }
}

/* Property Policies Section */
.property-policies {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.policy-card {
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 2px solid;
}

/* Policy Cards - Not Allowed (Red Border) */
.policy-card.policy-not-allowed {
    background: #ffffff;
    border-color: #dc3545;
}

.policy-card.policy-not-allowed .policy-text h3 {
    color: #dc3545;
}

.policy-card.policy-not-allowed .policy-icon i,
.policy-card.policy-not-allowed .policy-icon .fa-ban {
    color: #dc3545;
}

/* Policy Cards - Allowed (Green Border) */
.policy-card.policy-allowed {
    background: #ffffff;
    border-color: #28a745;
}

.policy-card.policy-allowed .policy-text h3 {
    color: #28a745;
}

.policy-card.policy-allowed .policy-icon i {
    color: #28a745;
}

/* Icon Container */
.policy-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
}

.policy-icon i {
    font-size: 80px;
    display: block;
}

/* Font Awesome Icon Stacking */
.policy-icon .fa-stack {
    font-size: 36px;
}

.policy-card.policy-not-allowed .policy-icon .fa-stack .fa-dog {
    color: #dc3545;
    font-size: 0.85em;
}

.policy-card.policy-not-allowed .policy-icon .fa-stack .fa-ban {
    color: #dc3545;
}

.policy-text h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.policy-text p {
    color: #484848;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

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

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

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    cursor: default;
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    display: block;
    border-radius: 4px;
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    z-index: 10001;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.lightbox-close:hover {
    opacity: 1;
}

.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    font-size: 32px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.lightbox-nav:hover {
    background: rgba(255, 229, 0, 0.4);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-counter {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    z-index: 10001;
}

/* Print Styles */
@media print {
    .property-header,
    .gallery-overlay,
    .contact-card,
    .application-card,
    .share-card,
    .back-section,
    .footer {
        display: none !important;
    }
    
    .property-layout {
        grid-template-columns: 1fr;
    }
    
    .gallery-main img {
        height: auto;
        max-height: 300px;
    }
    
    .gallery-thumbnails {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
    
    .property-details {
        page-break-inside: avoid;
    }
}
