/* Property Single Page Styles */
.property-card-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.property-card-link:hover {
    transform: translateY(-8px);
}

.property-card-link:hover .property-card {
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.property-card {
    transition: box-shadow 0.3s ease;
}

.property-single-container {
    font-family: 'Roboto', sans-serif;
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
}

.property-back-button {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: #F3B521;
    color: white;
    transform: translateX(-4px);
    box-shadow: 0 4px 12px rgba(243, 181, 33, 0.3);
}

.back-btn i {
    font-size: 16px;
}

.property-gallery-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    margin-bottom: 70px;
    overflow: visible;
}

.property-gallery-banner {
    display: grid;
    gap: 8px;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.gallery-pills {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0;
    z-index: 10;
}

.gallery-pill:first-child {
    border-radius: 8px 0 0 8px;
}

.gallery-pill:last-child {
    border-radius: 0 8px 8px 0;
}

.gallery-pill {
    background: white;
    border: 1px solid #f0f0f0;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 6px;
    color: #333;
    outline: none;
    border-style: solid;
}

.gallery-pill:hover {
    background: #f9f9f9;
    border-color: #d0d0d0;
}

.gallery-pill.active {
    background: white;
    color: #333;
    border-color: #333;
}

.gallery-pill i {
    font-size: 13px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.0125);
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    z-index: 10000;
}

.lightbox-close:hover {
    color: #F3B521;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-prev,
.lightbox-next {
    position: fixed;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10001;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(243, 181, 33, 0.8);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 20px;
    border-radius: 20px;
}

.gallery-slideshow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.slideshow-close {
    position: fixed;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    z-index: 10000;
    border: none;
    background: none;
}

.slideshow-close:hover {
    color: #F3B521;
}

.slideshow-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slideshow-content {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 90%;
    max-height: 90%;
}

.slideshow-images {
    display: flex;
    align-items: center;
    justify-content: center;
}

.slideshow-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.slideshow-prev,
.slideshow-next {
    position: fixed;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 28px;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10001;
}

.slideshow-prev:hover,
.slideshow-next:hover {
    background: rgba(243, 181, 33, 0.8);
}

.slideshow-prev {
    left: 20px;
}

.slideshow-next {
    right: 20px;
}

.slideshow-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 20px;
    border-radius: 20px;
}

/* Floorplan Viewer Styles */
.floorplan-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.floorplan-close {
    position: fixed;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    z-index: 10000;
    border: none;
    background: none;
}

.floorplan-close:hover {
    color: #F3B521;
}

.floorplan-download {
    position: fixed;
    top: 20px;
    right: 100px;
    background: transparent;
    color: white;
    border: none;
    font-size: 20px;
    padding: 12px 18px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    z-index: 10000;
}

.floorplan-download:hover {
    color: #e0a318;
    transform: translateY(-2px);
}

.floorplan-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floorplan-content {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 90%;
    max-height: 90%;
}

.floorplan-images {
    display: flex;
    align-items: center;
    justify-content: center;
}

.floorplan-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.floorplan-prev,
.floorplan-next {
    position: fixed;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 28px;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10001;
}

.floorplan-prev:hover,
.floorplan-next:hover {
    background: rgba(243, 181, 33, 0.8);
}

.floorplan-prev {
    left: 20px;
}

.floorplan-next {
    right: 20px;
}

.floorplan-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 20px;
    border-radius: 20px;
}

.gallery-grid-1 {
    grid-template-columns: 1fr;
}

.gallery-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.gallery-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.gallery-grid-4 {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: repeat(2, 1fr);
}

.gallery-grid-4 .gallery-item:first-child {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

.gallery-grid-5 {
    grid-template-columns: 2fr repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

.gallery-grid-5 .gallery-item:first-child {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.property-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 40px auto;
    max-width: 1200px;
    padding: 0 20px;
}

.property-header {
    margin-bottom: 30px;
}

.property-name {
    font-size: 32px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #333;
}

.property-location-line {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

.property-location-line i {
    color: #F3B521;
    margin-right: 8px;
}

.property-price-specs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-top: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
}

.property-price {
    font-size: 28px;
    font-weight: 500;
    color: #F3B521;
}

.property-specs-icons {
    display: flex;
    gap: 20px;
    font-size: 16px;
    color: #666;
}

.property-specs-icons span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.property-specs-icons i {
    color: #F3B521;
}

.property-description-section {
    margin-top: 30px;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #333;
}

.section-description {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin: 0;
}

.property-map {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: 450px;
}

.property-map iframe {
    border-radius: 12px;
}

.property-details-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
    padding: 30px;
    border-radius: 12px;
    max-width: 1200px;
    margin: 0 auto 100px;
    padding: 0 20px;
    width: calc(100% - 40px);
    box-sizing: border-box;
}

.property-details-section h3 {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: #333;
}

.details-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    background: white;
    border-radius: 8px;
    font-size: 16px;
}

.detail-label {
    font-weight: 600;
    color: #333;
}

.detail-value {
    color: #666;
}

@media (max-width: 768px) {
    .property-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid-4,
    .gallery-grid-5 {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    
    .gallery-grid-4 .gallery-item:first-child,
    .gallery-grid-5 .gallery-item:first-child {
        grid-column: 1;
        grid-row: auto;
    }
}
