/* assets/css/property.css */


/* Property Header */

.property-header {
    background: linear-gradient(rgba(30, 58, 138, 0.9), rgba(30, 58, 138, 0.9)), url('../images/property-bg.svg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    background-size: 170px;
}


/* Property Meta */

.property-meta {
    transition: transform 0.3s ease;
}

.property-meta:hover {
    transform: translateY(-5px);
}

.meta-icon {
    width: 48px;
    height: 48px;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.property-header .container {
    overflow: visible;
    /* Allow the label to overflow */
}


/* Status label positioning and transform */

.status {
    position: absolute;
    transform-origin: top left;
    transform: rotate(-45deg) translateX(-50%);
    box-shadow: -2px 2px 4px rgba(0, 0, 0, 0.25);
    z-index: 10;
}


/* Optional: Add different background colors based on status */

.status-sale {
    background-color: #ff4444;
}

.status-rent {
    background-color: #4CAF50;
}

.status-pending {
    background-color: #FFA726;
}

.swiper-wrapper,
.swiper-slide {
    height: auto !important
}


/* Image Gallery */

.image-gallery {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.gallery-main {
    height: 400px;
    margin-bottom: 10px;
}

.gallery-main .swiper-slide {
    cursor: pointer;
}

.gallery-main .swiper-wrapper {
    height: 100%;
}

.gallery-thumbs {
    height: 90px;
}

.gallery-thumbs .swiper-slide {
    opacity: 0.4;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.gallery-thumbs .swiper-slide-thumb-active {
    opacity: 1;
}


/* Features Grid */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}


/* QR Section */

.qr-section {
    /*position: sticky;*/
    top: 20px;
}

.qr-section img {
    margin: 0 auto;
}


/* Maps Section */

.map-card {
    animation: fade-in 0.5s ease forwards;
    transition: all 0.3s ease;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.swiper-pagination {
    bottom: 0 !important;
}

.map-card:nth-child(1) {
    animation-delay: 0.1s;
}

.map-card:nth-child(2) {
    animation-delay: 0.2s;
}

.map-card:nth-child(3) {
    animation-delay: 0.3s;
}

.map-card:nth-child(4) {
    animation-delay: 0.4s;
}

.map-card h3,
.map-card p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 4rem;
}

.maps-swiper {
    padding: 16px 0 48px;
    /* Increased bottom padding for pagination */
}

.maps-swiper .swiper-pagination {
    bottom: 0 !important;
}

.maps-swiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #E2E8F0;
    opacity: 1;
}

.maps-swiper .swiper-pagination-bullet-active {
    background: #1E3A8A;
}


/* Custom styles for container */

.maps-container {
    position: relative;
}

.map-card .download-btn {
    margin-top: auto;
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Download Button */

.download-btn {
    transition: background-color 0.3s ease;
}

.download-btn:hover {
    background-color: #1e40af;
}


/* Status Labels */

.status-upcoming {
    color: #6435c9;
}

.status-available {
    color: #21ba45;
}

.status-reserved {
    color: #f2711c;
}

.status-sold {
    color: #db2828;
}

.status-under_construction {
    color: #2185d0;
}


/* Google Map */

.acf-map {
    width: 100%;
    height: 100%;
}

.acf-map img {
    max-width: none;
}


/* Property Category Tag */

.category {
    background-color: #f59e0b;
}


/* Similar Properties Section */

.similar-properties {
    padding-bottom: 40px;
}

.similar-properties .swiper-slide {
    height: auto;
}


/* Modal Styles */

.property-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.property-modal.active {
    opacity: 1;
    visibility: visible;
}

.property-modal img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}

.property-modal .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 24px;
    cursor: pointer;
}


/* Property Features Animation */

.property-meta:hover .meta-icon {
    transform: scale(1.1);
}


/* Constructor Info Section */

.constructor-info {
    border-left: 4px solid #1e40af;
    padding-left: 1rem;
}


/* Responsive Styles */

@media (max-width: 768px) {
    .property-header {
        padding: 60px 0;
    }
    .image-gallery {
        height: 400px;
    }
    .gallery-main {
        height: 300px;
    }
    .gallery-thumbs {
        height: 70px;
    }
    .features-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}


/* Document List Styles */

.document-list {
    display: grid;
    gap: 1rem;
}

.document-item {
    background: white;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.document-icon {
    font-size: 1.5rem;
    color: #1e40af;
}


/* Loading States */

.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Notifications */

.notification {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    background: #10B981;
    color: white;
    z-index: 50;
    transform: translateY(100%);
    animation: slideUp 0.3s ease forwards;
}

@keyframes slideUp {
    to {
        transform: translateY(0);
    }
}


/* Print Styles */

@media print {
    .property-header {
        background: none;
        color: black;
        padding: 2rem 0;
    }
    .qr-section,
    .download-btn,
    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }
    .property-meta {
        page-break-inside: avoid;
    }
}
.constructor-id-section {
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.id-display {
    display: flex;
    align-items: center;
    gap: 10px;
}

.id-display .label {
    font-weight: bold;
    color: #666;
}

.id-display .value {
    font-family: monospace;
    font-size: 1.1em;
    color: #333;
    background: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
}
.constructor-details {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.constructor-id {
    margin-bottom: 15px;
}

.constructor-id .label {
    font-weight: bold;
    margin-left: 10px;
}

.constructor-qr {
    text-align: center;
}

.qr-code-image {
    max-width: 200px;
    height: auto;
    margin: 15px auto;
    padding: 10px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.download-qr {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.download-qr:hover {
    background: #0056b3;
    color: white;
}

.dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}