/**
 * Single Property Page Styles
 */

.melkabroad-single-property {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    direction: rtl;
}

/* Breadcrumb */
.property-breadcrumb {
    margin-bottom: 30px;
    font-size: 0.9rem;
    color: #666;
    padding: 15px 20px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e5e5;
}

.property-breadcrumb a {
    color: #667eea;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 5px;
}

.property-breadcrumb a:hover {
    color: #764ba2;
    background: #f8f9fa;
}

.breadcrumb-separator {
    margin: 0 10px;
    color: #ccc;
    font-weight: 300;
}

.breadcrumb-category {
    color: #667eea;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 5px;
}

.breadcrumb-category:hover {
    color: #764ba2;
    background: #f8f9fa;
}

.breadcrumb-current {
    color: #1a1a1a;
    font-weight: 600;
    padding: 4px 8px;
}

/* English Breadcrumb (Left-to-Right) */
.property-breadcrumb-english {
    direction: ltr;
    text-align: left;
}

.breadcrumb-category {
    color: #667eea;
    font-weight: 500;
    padding: 4px 8px;
}



/* Horizontal Strip Gallery Styles */
.property-gallery-strip-wrapper {
    position: relative;
    margin-bottom: 30px;
    direction: ltr; /* جهت چپ به راست برای اسکرول صحیح */
}

.gallery-strip-track {
    display: flex;
    gap: 15px; /* فاصله بین عکس‌ها */
    overflow-x: auto; /* اجازه اسکرول افقی */
    scroll-behavior: smooth;
    scrollbar-width: none; /* مخفی کردن اسکرول‌بار در فایرفاکس */
    -ms-overflow-style: none; /* مخفی کردن اسکرول‌بار در IE */
    padding-bottom: 10px;
}

/* مخفی کردن اسکرول‌بار در کروم */
.gallery-strip-track::-webkit-scrollbar {
    display: none;
}

.gallery-strip-item {
    flex: 0 0 calc(33.333% - 10px); /* نمایش ۳ عکس در هر ردیف (برای دسکتاپ) */
    height: 250px; /* ارتفاع ثابت برای همه عکس‌ها */
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: transform 0.2s;
}

.gallery-strip-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* پر کردن کادر بدون دفرمه شدن عکس */
    display: block;
}

.gallery-strip-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* دکمه‌های ناوبری اسلایدر */
.gallery-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 10;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #333;
    opacity: 0.9;
    transition: all 0.3s;
}

.gallery-scroll-btn:hover {
    background: #333;
    color: white;
}

.prev-btn { left: -20px; }
.next-btn { right: -20px; }

/* Lightbox Styles (همان استایل قبلی) */
.gallery-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 3px solid white;
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
}

.lightbox-nav span {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 15px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    z-index: 10000;
}
.lightbox-nav span:hover { background: rgba(255,255,255,0.2); }
.lightbox-next { left: 20px; }
.lightbox-prev { right: 20px; }

/* Responsive */
@media (max-width: 768px) {
    .gallery-strip-item {
        flex: 0 0 85%; /* در موبایل یک عکس (با کمی دید عکس بعدی) نمایش داده شود */
        height: 220px;
    }
    
    .gallery-scroll-btn {
        display: none; /* در موبایل دکمه نیاز نیست، با لمس اسکرول می‌شود */
    }
}


/* در فایل CSS این تغییرات را چک کنید */
.prev-btn { right: -20px; left: auto; } /* دکمه قبلی سمت راست */
.next-btn { left: -20px; right: auto; } /* دکمه بعدی سمت چپ */

.lightbox-prev { right: 20px; left: auto; } /* فلش قبلی لایت باکس سمت راست */
.lightbox-next { left: 20px; right: auto; } /* فلش بعدی لایت باکس سمت چپ */




.property-featured-image {
    margin-bottom: 30px;
    border-radius: 6px;
    overflow: hidden;
}

.property-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Header Section (Below Gallery) */
.property-header {
    margin-bottom: 40px;
}

.property-header-content {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: right;
}

.property-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #1a1a1a;
    line-height: 1.5;
}

/* Location and Price Row */
.property-location-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 20px;
    flex-wrap: wrap;
}

.property-location {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #666;
    flex: 1;
    min-width: 0;
    justify-content: flex-start; /* Align to left */
    direction: ltr;
}

.property-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-shrink: 0;
    justify-content: flex-end; /* Align to right */
}

.location-icon {
    font-size: 0.95rem;
    flex-shrink: 0;
}

.location-separator {
    margin: 0 4px;
}

.property-address,
.property-location-terms {
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.property-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-shrink: 0;
    justify-content: flex-end; /* Align to right */
}

.price-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a1a;
}

.price-currency {
    font-size: 1rem;
    color: #666;
    font-weight: 400;
}

/* Main Content Layout */
.property-content-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    margin-top: 40px;
}

.property-content-layout > * {
    min-width: 0;
}

.property-main-content {
    min-width: 0;
    position: relative;
}

/* Section Titles */
.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: #1a1a1a;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e5e5;
}

/* Specifications Section (Two Columns) */
.property-specs {
    margin-bottom: 40px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 30px;
}

.specs-table {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: transparent;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
}

.specs-column {
    display: flex;
    flex-direction: column;
}

.specs-column-left {
    border-left: 1px solid #e5e5e5;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-label {
    font-size: 0.95rem;
    color: #666;
    font-weight: 400;
}

.spec-value {
    font-size: 0.95rem;
    color: #1a1a1a;
    font-weight: 500;
}

/* Description and Amenities Section (White Background) */
.property-content-section {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 40px;
}

.property-description {
    margin-bottom: 40px;
}

.property-description:last-child {
    margin-bottom: 0;
}

.description-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
}



.amenities-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
}

.amenity-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.amenity-label {
    font-size: 0.95rem;
    color: #333;
    font-weight: 400;
}

.description-content p {
    margin-bottom: 20px;
}

.description-content h1,
.description-content h2,
.description-content h3,
.description-content h4,
.description-content h5,
.description-content h6 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.description-content ul,
.description-content ol {
    margin: 20px 0;
    padding-right: 30px;
}

.description-content li {
    margin-bottom: 10px;
}

.description-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 20px 0;
}

.description-content a {
    color: #333;
    text-decoration: underline;
}

.description-content a:hover {
    color: #000;
}

/* Related Properties */
.related-properties {
    margin-bottom: 50px;
}

.related-properties-fullwidth {
    grid-column: 1 / -1;
    max-width: 1400px;
    margin: 60px auto 0;
    padding: 0 40px;
    box-sizing: border-box;
}

.related-properties-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 0 auto;
}

.related-property-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.related-property-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.related-property-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.related-property-image {
    width: 100%;
    padding-top: 65%;
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
}

.related-property-image img {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-property-placeholder {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.placeholder-icon {
    font-size: 3rem;
    opacity: 0.7;
}

.related-property-content {
    padding: 15px;
}

.related-property-title {
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0 0 10px 0;
    color: #1a1a1a;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-property-price {
    margin-bottom: 10px;
}

.related-property-price .price-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
}

.related-property-price .price-currency {
    font-size: 0.85rem;
    color: #666;
    margin-right: 5px;
}

.related-property-details {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.detail-separator {
    color: #ccc;
}

.related-property-location {
    font-size: 0.85rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

.related-property-location .location-icon {
    font-size: 0.85rem;
}

/* Sidebar */
.property-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
    align-self: start;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.sidebar-content {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 25px;
}

.sidebar-section {
    margin-bottom: 30px;
}

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

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #1a1a1a;
}

.sidebar-contact-info {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.sidebar-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    font-family: inherit;
}

.sidebar-button-call {
    background: #dc2626;
    color: #ffffff;
    border: none;
    cursor: pointer;
}

.sidebar-button-call:hover {
    background: #b91c1c;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
    transform: translateY(-2px);
}

.sidebar-button-telegram {
    background: #0088cc;
    color: #ffffff;
    border: none;
    cursor: pointer;
}

.sidebar-button-telegram:hover {
    background: #006ba3;
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3);
    transform: translateY(-2px);
}


.button-icon {
    font-size: 1.2rem;
}

.button-text {
    font-size: 1rem;
}

.sidebar-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-detail-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.detail-label {
    font-size: 0.95rem;
    color: #666;
}

.detail-value {
    font-size: 0.95rem;
    color: #1a1a1a;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .property-content-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .property-sidebar {
        position: static;
        order: -1;
        max-height: none;
        overflow-y: visible;
    }
    
    .related-properties-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .melkabroad-single-property {
        padding: 15px;
    }
    
    .property-title {
        font-size: 1.5rem;
    }
    
    .price-value {
        font-size: 1.5rem;
    }
    
    .specs-table {
        grid-template-columns: 1fr;
    }
    
    .specs-column-left {
        border-left: none;
        border-bottom: 1px solid #e5e5e5;
    }
    
    .property-content-section {
        padding: 20px;
    }
    
    .amenities-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .related-properties-fullwidth {
        grid-column: 1 / -1;
        max-width: 1400px;
        padding: 0 20px;
    }
    
    .related-properties-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .gallery-slider-wrapper {
        aspect-ratio: 4/3;
    }
    
    .gallery-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .gallery-prev {
        right: 10px;
    }
    
    .gallery-next {
        left: 10px;
    }
    
    .gallery-dots {
        bottom: 10px;
        padding: 8px 12px;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .gallery-images-scroll {
        gap: 6px;
    }
    
    .gallery-image-item {
        width: 250px;
    }
    
    .property-title {
        font-size: 1.3rem;
    }
    
    .property-content-section {
        padding: 15px;
    }
    
    .amenities-list {
        grid-template-columns: 1fr;
    }
    
    .related-properties-fullwidth {
        grid-column: 1 / -1;
        max-width: 1400px;
        padding: 0 15px;
    }
    
    .related-properties-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-nav {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .gallery-dots {
        gap: 8px;
    }
}

/* Contact Modal */
.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.contact-modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    text-align: center;
}

.contact-modal-close {
    position: absolute;
    top: 15px;
    left: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.contact-modal-close:hover {
    color: #dc2626;
}

.contact-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: #1a1a1a;
}

.contact-modal-phone {
    font-size: 1.8rem;
    font-weight: 700;
    color: #dc2626;
    margin: 20px 0;
    padding: 15px;
    background: #fef2f2;
    border-radius: 8px;
}

.contact-modal-call-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    background: #dc2626;
    color: #ffffff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.contact-modal-call-btn:hover {
    background: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.contact-modal-message {
    color: #666;
    margin: 15px 0 25px 0;
    font-size: 1rem;
    line-height: 1.6;
}

.contact-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
}

.contact-modal-btn {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.contact-modal-btn-login {
    background: #dc2626;
    color: #ffffff;
}

.contact-modal-btn-login:hover {
    background: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.contact-modal-btn-register {
    background: #f3f4f6;
    color: #1a1a1a;
    border: 2px solid #e5e7eb;
}

.contact-modal-btn-register:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
    transform: translateY(-2px);
}
        padding: 6px 10px;
    }
    
    .gallery-dot {
        width: 10px;
        height: 10px;
    }
    
    .gallery-dot.active {
        width: 25px;
    }
}
