/* Property Detail Styles */
.property-detail {
    padding: 180px 0 80px;
    background: #f8f9fa;
    min-height: 100vh;
}

/* Header Styles */
.property-header {
    background: #fff;
    padding: 25px;
    border-radius: 16px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

/* Share Menu Styles */
.header-actions {
    position: relative;
}

.share-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    min-width: 200px;
    margin-top: 10px;
    border: 1px solid #e0e0e0;
}

.share-options {
    padding: 10px 0;
}

.share-option {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.share-option:hover {
    background-color: #f5f5f5;
    text-decoration: none;
    color: #333;
}

.share-option i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.share-option.copy-link {
    border-top: 1px solid #e0e0e0;
    margin-top: 5px;
    padding-top: 10px;
}

.header-content {
    flex: 1;
}

.price-info {
    margin-bottom: 15px;
}

.price-info h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.payment-info {
    color: #666;
    font-size: 0.9rem;
}

.property-header h1 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.location {
    color: #666;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.property-meta {
    display: flex;
    gap: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.9rem;
}

.meta-item i {
    color: #0d6efd;
    font-size: 1.1rem;
}

.header-actions .header-actions-button {
    display: flex;
    gap: 10px;
}

.header-actions .header-actions-button .btn {
    padding: 8px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Gallery Styles */
.property-gallery {
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.main-image {
    display: block;
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
}

.main-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.1);
    opacity: 0;
    transition: all 0.3s ease;
}

.main-image:hover::after {
    opacity: 1;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.main-image:hover img {
    transform: scale(1.05);
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.thumbnail-grid a {
    display: block;
    position: relative;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
}

.thumbnail-grid a::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.1);
    opacity: 0;
    transition: all 0.3s ease;
}

.thumbnail-grid a:hover::after {
    opacity: 1;
}

.thumbnail-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.thumbnail-grid a:hover img {
    transform: scale(1.05);
}

.more-photos {
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.more-photos:hover {
    background: rgba(0,0,0,0.7);
    color: #fff;
}

/* Fancybox Customization */
.fancybox__container {
    --fancybox-bg: #fff;
    --fancybox-color: #333;
}

.fancybox__toolbar {
    --fancybox-toolbar-bg: #fff;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.fancybox__toolbar__column {
    font-family: 'Poppins', sans-serif;
}

.fancybox__toolbar__column.is-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fancybox__toolbar__column.is-right {
    display: flex;
    gap: 10px;
}

.fancybox__nav {
    --fancybox-accent-color: #0d6efd;
}

.fancybox__button {
    color: #666;
    background: none;
}

.fancybox__button:hover {
    color: #333;
    background: rgba(0,0,0,0.05);
}

.fancybox__button.is-close {
    position: absolute;
    top: 15px;
    right: 15px;
}

.fancybox__slide {
    padding: 0;
}

.fancybox__content {
    padding: 0;
    border-radius: 0;
    background: #fff;
}

.fancybox__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.fancybox__counter {
    font-family: 'Poppins', sans-serif;
    color: #666;
    font-size: 0.9rem;
}

/* Custom Header for Fancybox */
.fancybox-custom-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
}

.fancybox-custom-header img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.fancybox-custom-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.fancybox-custom-info p {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
}

/* Hover effects */
.thumbnail-grid a:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Responsive Styles */
@media (max-width: 991px) {
    .property-header {
        flex-direction: column;
    }

    .header-actions {
        width: 100%;
        margin-top: 20px;
        justify-content: flex-end;
    }

    .header-actions .header-actions-button {
        display: block;
    }

    .header-actions .header-actions-button .btn {
        width: 100%;
        margin-top: 10px;
    }

    .main-image {
        height: 300px;
    }

    .property-detail {
        padding: 100px 0 60px;
    }

    .property-gallery {
        margin-bottom: 60px;
    }
}

@media (max-width: 768px) {
    .property-detail {
        padding: 90px 0 40px;
    }

    .property-header {
        padding: 20px;
    }

    .price-info h2 {
        font-size: 1.5rem;
    }

    .property-header h1 {
        font-size: 1.2rem;
    }

    .thumbnail-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .thumbnail-grid a,
    .more-photos {
        height: 100px;
    }

    .property-gallery {
        margin-bottom: 40px;
    }
}

/* Property Info Styles */
.property-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.info-card {
    background: #fff;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

/* KPR Estimation Styles */
.kpr-estimation .card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0;
    border: none;
    padding: 0;
}

.header-left {
    flex: 1;
}

.kpr-estimation h3 {
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    margin-bottom: 10px;
}

.kpr-details {
    margin-bottom: 0;
}

.kpr-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.kpr-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.kpr-info span {
    font-size: 0.9rem;
    color: #666;
}

.kpr-link {
    color: #0d6efd;
    text-decoration: none;
    font-size: 0.9rem;
}

.kpr-link:hover {
    text-decoration: underline;
}

.kpr-note {
    font-size: 0.85rem;
    color: #666;
}

.kpr-simulation {
    margin-top: 20px;
}

/* Property Features Styles */
.features-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    padding: 20px;
}

.property-features h3 {
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    margin: 0;
}

.link-more {
    color: #0d6efd;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.link-more:hover {
    text-decoration: underline;
}

/* Update Features Styles */
.features-grid-wrapper {
    position: relative;
    /* padding: 0 40px; */
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
}

.features-grid {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 5px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
    z-index: 1;
    margin: 0 -5px;
}

.features-grid::-webkit-scrollbar {
    display: none;
}

.feature-item {
    flex: 0 0 calc(25% - 12px);
    min-width: 280px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
    white-space: normal;
    scroll-snap-align: start;
    margin: 0 5px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d6efd;
    padding: 20px;
}

.feature-info {
    flex: 1;
    overflow: hidden;
}

.feature-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    line-height: 1.3;
}

.feature-info p {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
    line-height: 1.4;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.scroll-indicator {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    z-index: 2;
    border: none;
    color: #0d6efd;
    transition: all 0.3s ease;
}

.scroll-left {
    left: 0;
    right: 95%;
}

.scroll-right {
    left: 88%;
    right: 0;
}

.scroll-indicator:hover {
    background: #f8f9fa;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

@media (max-width: 1200px) {
    .feature-item {
        flex: 0 0 calc(33.333% - 12px);
    }
}

@media (max-width: 992px) {
    .feature-item {
        flex: 0 0 calc(50% - 12px);
    }
}

@media (max-width: 768px) {
    .feature-item {
        flex: 0 0 260px;
        min-width: 260px;
    }
    
    /* .features-grid-wrapper {
        padding: 0 20px;
    } */
}

/* Responsive Styles */
@media (max-width: 991px) {
    .property-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .info-card {
        padding: 20px;
    }

    .kpr-estimation .card-header {
        flex-direction: column;
        gap: 15px;
    }

    .header-right {
        width: 100%;
    }

    .header-right .btn {
        width: 100%;
    }

    .kpr-price {
        font-size: 1.2rem;
    }

    .features-grid {
        gap: 15px;
    }
}

/* Chat Popup Styles */
.chat-popup {
    position: fixed;
    top: 180px;
    right: 20px;
    width: 320px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
    z-index: 1000;
    overflow: hidden;
}

.chat-header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.chat-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.company-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.company-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.company-info p {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
}

.btn-close {
    background: none;
    border: none;
    color: #666;
    font-size: 1.1rem;
    padding: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-close:hover {
    color: #333;
}

.chat-body {
    padding: 15px 20px;
}

.btn-whatsapp {
    background: #25D366;
    color: #fff;
    padding: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    background: #128C7E;
    color: #fff;
}

.btn-whatsapp i {
    font-size: 1.2rem;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .chat-popup {
        top: 80px;
    }
}

@media (max-width: 768px) {
    .chat-popup {
        top: 70px;
        width: calc(100% - 40px);
    }
}

/* Chat Button Styles */
.btn-show-chat {
    position: fixed;
    bottom: 90px;
    right: 30px;
    background: #25D366;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 12px 25px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 999;
}

.btn-show-chat i {
    font-size: 1.3rem;
}

.btn-show-chat:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .btn-show-chat {
        bottom: 70px;
        right: 20px;
        padding: 10px 20px;
    }
}

/* Location Styles */
.property-location {
    margin-bottom: 20px;
}

.location-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.location-header h3 {
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    margin: 0;
}

.location-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.location-address {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #666;
}

.location-address i {
    color: #0d6efd;
    margin-top: 4px;
}

.location-address p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.location-map {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #f8f9fa;
}

.location-map iframe {
    width: 100%;
    height: 300px;
    border: none;
    display: block;
}

.btn-map {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: #fff;
    padding: 8px 15px;
    font-size: 0.9rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-decoration: none;
}

.btn-map:hover {
    color: #fff;
    background: #0d6efd;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.location-tabs {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tab-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 8px 15px;
    border: none;
    background: none;
    font-size: 0.9rem;
    color: #666;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-btn:hover {
    background: #f0f4ff;
    color: #0d6efd;
}

.tab-btn.active {
    background: #e8f0fe;
    color: #0d6efd;
    font-weight: 500;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.nearby-places {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.place-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.place-icon {
    width: 36px;
    height: 36px;
    background: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d6efd;
}

.place-info {
    flex: 1;
}

.place-info h4 {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    margin: 0 0 3px;
}

.place-info p {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .location-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .tab-buttons {
        flex-wrap: wrap;
    }

    .location-map iframe {
        height: 250px;
    }
}

/* Specs & Facilities Styles */
.property-specs {
    margin-bottom: 20px;
    display: block;
}

.specs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.specs-header h3 {
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    margin: 0;
}

.specs-note {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #666;
}

.specs-note i {
    color: #0d6efd;
}

.specs-content {
    padding: 5px;
}

.specs-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 10px;
}

.specs-icon {
    width: 36px;
    height: 36px;
    background: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d6efd;
}

.specs-info {
    flex: 1;
}

.specs-info span {
    font-size: 0.9rem;
    color: #333;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .specs-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .specs-item {
        margin-bottom: 8px;
    }
}

/* Description Styles */
.property-description {
    margin-bottom: 20px;
}

.description-header {
    margin-bottom: 20px;
}

.description-header h3 {
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    margin: 0;
}

.description-content {
    position: relative;
}

.description-text {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    max-height: 300px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.description-text.expanded {
    max-height: none;
}

.description-text p {
    margin-bottom: 15px;
}

.description-text ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.description-text ul li {
    margin-bottom: 8px;
}

.description-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #333;
    font-weight: 500;
}

.description-note i {
    color: #0d6efd;
}

.btn-show-more {
    position: absolute;
    bottom: -26px;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(transparent, #fff 50%);
    border: none;
    color: #0d6efd;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-show-more:hover {
    color: #0a58ca;
}

@media (max-width: 1200px) {
    .features-grid-wrapper {
        max-width: 600px;
    }
}

@media (max-width: 900px) {
    .features-grid-wrapper {
        max-width: 600px;
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .description-text {
        max-height: 250px;
    }

    .features-grid-wrapper {
        max-width: 600px;
    }
} 

@media (max-width: 576px) {
    .features-grid-wrapper {
        max-width: 400px;
    }
}

@media (max-width: 480px) {
    .features-grid-wrapper {
        max-width: 300px;
    }
}

@media (max-width: 360px) {
    .features-grid-wrapper {
        max-width: 200px;
    }
}

