/*
Theme Name: Twenty Twenty child
Theme URI: https://wordpress.org/themes/twentytwenty/
Description: A child theme of twenty twenty to perform custom functionalities.
Author: Webincline
Author URI: https://webincline.com/
Template: twentytwenty
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* custom css for Property listing page */
.property-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
	max-width: 1400px;
    margin: auto;
}

.property-bg {
    position: relative;
    height: 300px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.property-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,.15));
}

.property-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: #fff;
    z-index: 2;
}

.property-badge {
    position: absolute;
    right: 16px;
    bottom: 16px;
    background: rgba(30,60,45,.9);
    color: #c8e6c9;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
}

.cst-h-prop {
	color: #d8bb96;
	font-family: "Playfair", Sans-serif;
	font-size:33px;
	text-transform:Uppercase;
}

.cst-p-prop {
	color: #d8bb96;
	font-size:23px;
	font-family: "Playfair", Sans-serif;
	text-transform:Uppercase;
}

.cst-head-properties {
	 width: 94%;
    margin: 0 auto;
}

/* Single template - Properties */
/* ===== TOP GALLERY ===== */


.price, .location, .code {
	font-family: "Aboreto", Sans-serif;
	text-transform:uppercase;
	color:#d8bb96;
} 

.clr-wh{
	color:#ffffff;
}

.desc-s {
	font-size:16px;
	font-family: "Athiti", Sans-serif;
	letter-spacing:0.7px;
	line-height:23px;
}


.property-gallery {
    display: flex;
    gap: 10px;
    width:1400px;
	margin:auto;
}


/* .gallery-left,
.gallery-right {
    width: 50%;
} */

.gallery-left {
	width:80%;
}

.gallery-left img {
    width: 100%;
    height: 96.5%;
	border-radius: 8px;
    object-fit: cover;
   
}

.features > *{
	margin-bottom: 10px;
}


.gallery-right {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.gallery-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    
}

/* ===== NEW PROPERTY GALLERY TWO ===== */
.property-gallery-two{
	display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.property-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
	width: 100%;
    aspect-ratio: 4/3;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.property-image:hover img {
    transform: scale(1.05);
}

/* Gallery Overlay */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: background 0.3s ease;
}

.gallery-overlay:hover {
    background: rgba(0, 0, 0, 0.8);
}

.gallery-count {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 8px;
}

.gallery-text {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Lightbox Modal */
.gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    overflow: hidden;
}

.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.lightbox-close:hover {
    color: #ccc;
}

/* Navigation Buttons */
.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    font-size: 30px;
    padding: 15px 20px;
    cursor: pointer;
    z-index: 10001;
    transition: background 0.3s;
    border-radius: 4px;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Image Container */
.lightbox-image-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px 120px;
}

.lightbox-slide {
    text-align: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.lightbox-caption {
    margin-top: 15px;
    color: white;
}

.image-counter {
    font-size: 14px;
    opacity: 0.8;
}

/* Thumbnail Navigation */
.lightbox-thumbnails {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    padding: 15px;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    justify-content: center;
}

.lightbox-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
}

.lightbox-thumb:hover,
.lightbox-thumb.active {
    opacity: 1;
    border-color: white;
}

.lightbox-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== DETAILS SECTION ===== */
.property-details {
    display: flex;
    gap: 40px;
	width:1400px;
	margin:auto;
}

.details-left {
    width: 70%;
}
.details-left h1{
	padding:0px;
	margin:0px 0px 10px 0px;
	color:white;
	font-size:28px;
	text-transform:Uppercase;
	font-family: "Aboreto", Sans-serif;
	letter-spacing: 1px;
}
.details-right {
    width: 30%;
	border: 1px solid #d4af3785;
	padding: 20px 20px;
}

.property-form {
    background: #d8bb96;
    padding: 25px;
    position: sticky;
    top: 40px;
}

.features div {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.features .icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}
.features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
	margin-top:20px;
	
}

.features > div {
    width: calc(33.333% - 20px);
    display: flex;
    align-items: center;
    gap: 8px;
	font-size:16px;
}
/* right left */
.price{
	font-size : 28px;
	letter-spacing:1px;
	margin-bottom:5px;
	font-weight:600;
}
.location{
	font-size : 24px;
	letter-spacing: 2px;
	margin-bottom:5px;
}


.dl-txt {
	color:#d8bb96;
	font-family: "Aboreto", Sans-serif;
	font-size : 17px;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
	

    .property-gallery,
    .property-details {
        flex-direction: column;
		width:100%;
		padding:20px;
    }

    .gallery-left,
    .gallery-right,
    .details-left,
    .details-right {
        width: 100%;
    }

    .gallery-right {
        grid-template-columns: repeat(2, 1fr);
    }
	.features > div {
    width: calc(49.333% - 20px);
    display: flex;
    align-items: center;
    gap: 8px;
	font-size:16px;
}

	/* Lightbox responsive */
    .lightbox-prev,
    .lightbox-next {
        padding: 10px 15px;
        font-size: 24px;
		    top: 45%;
    }
    
    .lightbox-thumbnails {
        justify-content: flex-start;
    }
    
    .lightbox-thumb {
        width: 60px;
        height: 45px;
    }
	
	
	.property-grid {
		    grid-template-columns: repeat(1, 1fr);
		margin: 0px 16px;
	}
	
	.property-bg {
		height:240px;
	}
	
	.price, .location, .code {
		font-size:20px;
	}
}
	
	

	