/* ================================================================
1. GLOBAL & BASE STYLES
================================================================
*/

body, html {
	margin:0;
	padding:0;
}

.heading-border {
	height:3px;
	width:70px;
	background-color: var(--dac-accent, var(--e-global-color-accent, #333)); 
	margin:20px 0 20px 0;
}

button {
	border:none;
}

.btn {
	border:none;
}

.btn-primary, .btn-primary:focus,.btn-primary:not(.disabled):active:focus {
	background: var(--dac-accent, var(--e-global-color-accent, #333)) !important;
	transition: opacity .15s ease-in-out;
    -moz-transition: opacity .15s ease-in-out;
    -webkit-transition: opacity .15s ease-in-out;
}

.btn-primary:hover {
	opacity:0.9;
}

.fixed-width {
	max-width:1500px;
	padding:0 20px;
}

.visually-hidden { 
    position: absolute !important; 
    width: 1px !important; 
    height: 1px !important; 
    padding: 0 !important; 
    margin: -1px !important; 
    overflow: hidden !important; 
    clip: rect(0,0,0,0) !important; 
    white-space: nowrap !important; 
    border: 0 !important; 
}

/* ================================================================
2. FEATURED PROPERTIES (MULTIPLE/SLIDER)
================================================================
*/

.featured-wrapper {
    width: 100%;
    padding-right: var(--bs-gutter-x, 0.75rem);
    padding-left: var(--bs-gutter-x, 0.75rem);
    margin-right: auto;
    margin-left: auto;
}

.featured-slider-row {
    margin-right: -15px;
    margin-left: -15px;
}

.slider-item-padding {
    padding: 15px;
    box-sizing: border-box;
}

.featured-property-container {
	opacity: 1;
	position:relative;
    transition: opacity .25s ease-in-out;
    -moz-transition: opacity .25s ease-in-out;
    -webkit-transition: opacity .25s ease-in-out;
    overflow: hidden;
    border-radius: 15px;
    display: block; 
    text-decoration: none !important; /* [FRIENDLY LABEL: Remove link underlines] */
}

.featured-property-container:hover {
	opacity: 0.8;
}

img.featured-property-image {

	width:100%;
	object-fit: cover;
	-webkit-border-top-left-radius: 15px;
	-webkit-border-top-right-radius: 15px;
	-moz-border-radius-topleft: 15px;
	-moz-border-radius-topright: 15px;
	border-top-left-radius: 15px;
	border-top-right-radius: 15px;
}

.featured-property-details {
	background:#FFF;
   	padding:20px;
}

.featured-property-details .featured-details-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.featured-details-price-column {
    flex-grow: 1; 
    padding-right: 10px;
}

.featured-details-status-column {
    flex-shrink: 0;
    text-align: right;
}

.featured-details-address-row {
    width: 100%;
    margin-top: 5px;
}

.featured-price-label { 
	font-size:0.75rem;
	color:#666666;
	letter-spacing: 5px;
}

.featured-price { 
	font-size:1.5rem;
	color:#000;
	font-weight:500;
	margin:2px 0 5px 0;
}

.featured-address {
	font-size:0.9rem;
	color:#666666;
	font-weight:300;
}

.featured-status-label-available, .featured-status-label-unavailable, .featured-status-label-new-valuation {
	float:right;
	padding:8px 20px;
	border-radius:10px;
	font-size:0.9rem;
	color:#FFF;
	text-transform:uppercase;
}

.featured-status-label-available { background-color: #333; }
.featured-status-label-unavailable { background-color: #BB1C1C; }
.featured-status-label-new-valuation { background-color: #E78F30; }

.prev, .next {
	font-size:55px;
	cursor:pointer;
}

.next i, .prev i {
	color:#000;
	opacity:0.1;
}

.prev i:hover, .next i:hover {
	opacity:0.15;
}

.featured-nav-row {
    width: 100%;
    margin-top: 15px;
}

.featured-nav-center {
    width: 100%;
    text-align: center;
}

/* ================================================================
3. SEARCH RESULTS (LIST & GRID)
================================================================
*/

#search-results-container {
	background: var(--dac-secondary, var(--e-global-color-secondary, #F5F5F5));
	padding:0 0 40px 0;
}

/* [FRIENDLY LABEL: MOBILE SEARCH BAR STYLES] */
@media (max-width: 991px) {
    .search-bar-unified {
        display: block; /* Stack vertically on mobile */
        background: #fff;
        padding: 15px;
        border-radius: 10px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }

    .search-group {
        display: flex;
        align-items: center;
        padding: 10px 0;
        border-bottom: 1px solid #eee; /* Horizontal lines instead of vertical */
    }

    .search-group:last-of-type {
        border-bottom: none;
    }

    .search-group label {
        width: 30px;
        /*color: var(--dac-accent);*/
        text-align: center;
    }

    .search-group .form-select, 
    .search-group .form-control {
        border: none !important;
        font-size: 16px; /* Prevents iOS auto-zoom on focus */
        width: 100%;
    }

    .group-price {
        flex-wrap: wrap;
    }

    .group-price .form-select {
        width: 45%; /* Side by side min/max */
    }

    .search-group-button {
        margin-top: 15px;
    }

    .search-group-button .btn-primary {
        width: 100%; /* Big chunky button for thumbs */
        padding: 15px !important;
        /*border-radius: 8px !important;*/
    }
    
    /* Hide the "Show Sold" group on mobile if you want to keep it simple, 
       or keep it visible but styled for touch */
    .group-sold {
        border-bottom: none;
        padding-top: 15px;
    }
}

/* [FRIENDLY LABEL: Unified Search Bar Styles] */
@media (min-width: 992px) {
    .search-bar-unified {
        display: flex;
        align-items: center;
        background: #fff;
        /*border-radius: 50px;*/ /* Makes it a pill */
    	border-radius: var(--dac-radius, 50px);
        padding: 7px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.06);
        /*border: 1px solid #e0e0e0;*/
    }

    .search-group {
        position: relative;
        flex: 1;
        display: flex;
        align-items: center;
        padding: 0 15px;
        border-right: 1px solid #eee; /* Vertical separators */
    }

    .search-group:last-of-type { border-right: none; }

    .search-group i {
        margin-right: 8px;
        color: #999;
    }

    .search-group .form-select, 
    .search-group .form-control {
        border: none !important;
        background: transparent !important;
        padding: 10px 5px !important;
        font-weight: 400;
        box-shadow: none !important;
    }

    .group-location { flex: 1.5; } /* Give location more room */
	
	.group-location i {
		
		/*color: var(--dac-accent, var(--e-global-color-accent, #333));*/
		
	}

    .group-price { flex: 2; } /* Room for min/max side by side */
    .price-sep { color: #ccc; padding: 0 5px; }

    .search-group-button {
        /*padding-right: 5px;*/
    }

    .search-group-button .btn-primary {
        
        padding: 12px 25px !important;
        display: flex;
        align-items: center;
        gap: 8px;
    }
}

#search-bar {
	color:#333;
	padding:35px 0;
}

#search-bar form {
	font-size:0.9rem;
}

#search-bar input.area-field, #search-bar select {
	border:none;
	padding:10px 15px;
	color:#666;
}

#search-bar .btn-primary {
	padding:10px 15px;
	width:100%;
}

#search-options h1 {
	font-size:1.7rem; 
	font-weight:400; 
}

#search-options select {
	border:none;
	padding:10px 35px 10px 15px;
	color:#666;
	font-weight:300;
}

input::placeholder, textarea::placeholder {
	color:#666;
	font-weight:300;
}

#home-search-area input:focus {
	border:1px solid #CCC;
}

.form-select:focus, .form-control:focus {
	box-shadow:0 0 0 .25rem rgba(0,0,0,0.1);
	border-color:rgba(0,0,0,0.1);
}

.btn-check:active+.btn-primary:focus, .btn-check:checked+.btn-primary:focus, .btn-primary.active:focus, .btn-primary:active:focus, .show>.btn-primary.dropdown-toggle:focus, .btn-check:focus+.btn-primary, .btn-primary:focus {
	box-shadow:0 0 0 .25rem #CCC;
}

.form-check-input:focus {
	border-color:#666;
	outline:0;
	box-shadow:0 0 0 .25rem rgba(0,0,0,.10);
}

.form-check-input:checked {
	background-color:#333;
	border-color:#333;
}

#search-results-view {
	border-bottom:0;
}

#search-results-view a {
	text-decoration:none;
	color:#333;
	border:none;
	font-size:1rem;
	padding:0 20px 0 0;
}

#search-results-view i {
	color:#999;
	margin-right:5px;
}

#search-results-view a.active {
	background:none;
	border:none;
}

#search-results-view a:hover .fas, #search-results-view a.active .fas, #search-results-view a.active:hover .fas {
	color: var(--dac-accent, var(--e-global-color-accent, #333));
}

a#refine-button {
	background: var(--dac-accent, var(--e-global-color-accent, #333));
	color:#fff;
	-webkit-border-radius: var(--dac-radius, 10px);
    -moz-border-radius: var(--dac-radius, 10px);
    border-radius: var(--dac-radius, 10px);
	font-size:1.1rem;
	padding:10px 0;
	text-decoration:none;
	display:none;
	cursor:pointer;
}

.property-link {
	
	text-decoration:none;
	
}

.search-result:hover {
	background: var(--e-global-color-c4946b0);
}

.property-container {
	/*opacity: 1;*/
	position:relative;
	border-radius: var(--dac-radius, 15px);
	overflow:hidden;
   /* transition: opacity .25s ease-in-out;
    -moz-transition: opacity .25s ease-in-out;
    -webkit-transition: opacity .25s ease-in-out;*/
    display: block; 
    text-decoration: none !important; /* [FRIENDLY LABEL: Remove link underlines] */
}

/* [FRIENDLY LABEL: IMAGE HOVER ZOOM EFFECT] */
.grid-image-wrapper {
	overflow: hidden; /* Keep the zoom inside the box */
}

.grid-image-wrapper img {
	transition: transform 0.4s ease; /* Smooth zoom transition */
}

.property-container:hover .grid-image-wrapper img {
	transform: scale(1.08); /* Slight zoom on hover */
}

.property-details {
   padding:20px 30px 20px 30px;
   background:#FFF;
   text-decoration:none;
}

/* [FRIENDLY LABEL: META BAR DIVIDER] */
.grid-result-meta {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid #eee; /* Light divider line */
}

.grid-image-wrapper, img.property-image, img#property-image, .image-coming-soon, img.featured-property-image {
	width:100%;
	height:270px;
	object-fit: cover;
}

.status-label, .status-label-under-offer, .status-label-new, .status-label-available {
	position:absolute;
	font-size:0.8rem;
	top:15px;
	right:15px;
	display:block;
	padding:8px 15px;
	font-weight:300;
	color:#fff;
	border-radius:10px;
	z-index:10;
	/*text-transform:uppercase;*/
}

.status-label { background:var( --e-global-color-e58a26a ); }
.status-label-under-offer { background:var( --e-global-color-9c435f3 ); }

.grid-result-type {
	font-size:0.9rem;
	text-decoration:none;
	color:#333;
	font-weight:300;
}

.grid-result-type i {
	color: var(--dac-accent, var(--e-global-color-accent, #333)) !important;
}

.grid-result-address {
	font-size:0.9rem;
	color:#666666;
	font-weight:300;
}

.grid-result-price {
	font-size:1.2rem;
	color:#000;
	font-weight:500;
	margin:0px 0 5px 0;
}

.price-qualifier {
	font-size:80%;
}

.page-item .page-link {
	color:#333;
    padding: 6px 12px; 
    font-size: 1.1rem;   
    min-width: 35px;    
    text-align: center;
}

.page-item.active .page-link {
  border-color: var(--dac-accent, var(--e-global-color-accent, #333));
  background: var(--dac-accent, var(--e-global-color-accent, #333));
}

.page-item.active .page-link:hover {
	color:#FFF;
}

/* ================================================================
4. MAP VIEW & LEAFLET STYLES
================================================================
*/

#map-wrapper { position: relative; }
#map-column #map { height: 825px; width: 100%; }

#search-results #map, #maptab #map {
	height:825px;
    min-height: 820px;
	box-shadow: 0px 1px 2px #DADADA;
	background: url('../images/preloader.gif')  center no-repeat;
	z-index:0;
	display:block;
} 

#map-preloader {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.loader-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.map-list-item {
	background:#fff;
}

.map-list-item:hover {
	background: var(--e-global-color-c4946b0);
}

.my-fontawesome-icon {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

i.map-icon {
	color: var(--dac-accent, var(--e-global-color-accent, #333)); 
	font-size: 25px;
	text-shadow: 0 3px 3px rgba(0,0,0,0.2);
	line-height: 1;
}

.leaflet-popup-tip {
    background: #FFF;
	padding-top:0;	
}

#search-results #map .leaflet-popup-content-wrapper {
	background: #FFF;
    color: #ffffff;
	padding:5px 0 0px 0;
	height:130px;
	width:350px;
	margin-bottom:0;
	position:relative;
}

.popup-photo {
	width:180px;
	position:absolute;
	top:10px;
	left:10px;	
}

.popup-photo .status-label, .popup-photo .status-label-under-offer {
	position:absolute;
	top:5px;
	left:5px;
	display:block;
	width:90px;
	text-align:center;
	font-size:0.7em;
}

.popup-details {
	width:150px;
	position:absolute;
	top:10px;
	left:180px;
	font-family:var(--e-global-typography-primary-font-family);
}

.popup-type {
	color:#333;
	font-weight:500;
	padding:4px 0 4px 0;
	font-size:1em;
	border-bottom:2px dotted #E4E4E4;
}

.popup-address {
	color:#333;
	font-weight:300;
	padding:4px 0 4px 0;
	font-size:1em;
	border-bottom:2px dotted #E4E4E4;
}

.popup-price {
	color:#000;
	font-weight:600;
	padding:3px 0 3px 0;
	font-size:1.2em;
}

.popup-button a.btn-primary, .popup-button .btn-primary:focus, .popup-button .btn-primary:not(.disabled):active:focus {
	position:absolute;
	bottom:5px;
	right:5px;
	color:#fff;
	padding:8px 8px;
	font-size:0.7rem;
	background: var(--dac-accent, var(--e-global-color-accent, #333)) !important;
}

.popup-price-qualifier { font-size:0.8em; }

a.openpopuplink { text-decoration:none; }

.map-list-type {
	font-size:0.75rem;
	color:#333;
	width:100%;
	padding:10px 10px 0 7px;
}

.map-list-price {
	font-size:0.9rem;
	font-weight:500;
	color:#333;
	width:100%;
	padding:5px 10px 10px 7px;
}

/* [FRIENDLY LABEL: MATCHING MAP PIN STYLES] */
.custom-pin {
    width: 34px; height: 34px; border-radius: 50% 50% 50% 0;
    background: var(--dac-accent, var(--e-global-color-accent, #333));
    position: absolute; transform: rotate(-45deg);
    left: 50%; top: 50%; margin: -17px 0 0 -17px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: -2px 2px 4px rgba(0,0,0,0.3); 
}
.custom-pin i { transform: rotate(45deg); color: white; font-size: 16px; margin-bottom: 2px; margin-left: 2px; }
.custom-div-icon { background: transparent !important; border: none !important; }

/* ================================================================
4.1 HYBRID MAP & RESULTS SPLIT VIEW
================================================================
*/

#hybrid-container {
    display: flex;
    height: calc(100vh - 100px); 
    overflow: hidden;
    background: #fff;
}

#map-column {
    flex: 0 0 60%; 
    height: 100%;
    position: relative;
}

#results-column {
    flex: 0 0 40%; 
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #ffffff;
    border-left: 1px solid #eee;
}

.scrollable-results {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.hybrid-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 20px;
}

.hybrid-card {
    background: #fff;
    border-radius: var(--dac-radius, 10px);
    border: 1px solid #f0f0f0;
    overflow: hidden;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    color: inherit;
}

.hybrid-card:hover {
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    border-color: var(--dac-accent, var(--e-global-color-accent, #333));
}

.hybrid-thumb-wrapper {
    position: relative;
    height: 180px; 
    width: 100%;
    background: #f4f4f4;
    overflow: hidden; /* [FRIENDLY LABEL: Keeps zoom inside] */
}

.hybrid-thumb-wrapper img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.4s ease;
}

.hybrid-card:hover .hybrid-thumb-wrapper img {
    transform: scale(1.08); /* [FRIENDLY LABEL: Match main results zoom] */
}

.thumb-placeholder {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #bbb;
    background: #f9f9f9;
}
.thumb-placeholder i { font-size: 24px; margin-bottom: 8px; opacity: 0.5; }
.thumb-placeholder span { font-size: 11px; font-weight: 700; letter-spacing: 1px; }

.hybrid-price-overlay {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: var(--dac-accent, var(--e-global-color-accent, #333));
    color: #fff;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.hybrid-card-content { padding: 18px; flex-grow: 1; }
.hybrid-card-address { font-size: 14px; font-weight: 600; color: #111; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.hybrid-meta-bar {
    display: flex; align-items: center; gap: 15px; margin-top: 12px;
    padding-top: 12px; border-top: 1px solid #f0f0f0; color: #444; font-size: 14px; 
}
.hybrid-meta-item { display: flex; align-items: center; gap: 6px; }
.hybrid-meta-item i { color: var(--dac-accent, var(--e-global-color-accent, #333)); }

/* [FRIENDLY LABEL: Custom Leaflet Overrides for Hybrid Map] */
.leaflet-popup-content-wrapper { padding: 0 !important; overflow: hidden !important; border-radius: var(--dac-radius, 10px) !important; width: 260px !important; box-shadow: 0 10px 25px rgba(0,0,0,0.2) !important; }
.leaflet-popup-content { 
    margin: 0 !important; 
    width: 260px !important; 
    font-family: var(--e-global-typography-primary-font-family, inherit) !important; 
}
.popup-image-container { position: relative; height: 160px; width: 100%; background: #eee; }
.popup-image-container img { width: 100%; height: 100%; object-fit: cover; }
.popup-price-badge { position: absolute; bottom: 12px; left: 12px; background: var(--dac-accent, var(--e-global-color-accent, #333)); color: #fff; padding: 6px 14px; border-radius: 6px; font-weight: 600; font-size: 15px; }
.popup-text-content { padding: 18px; }
.popup-text-content h6 { 
    margin: 0 0 6px 0; font-weight: 700; font-size: 17px; color: #111; 
    font-family: var(--e-global-typography-primary-font-family, inherit) !important; 
}
.popup-text-content p { 
    margin: 0 0 15px 0; font-size: 14px; color: #666; line-height: 1.4; 
    font-family: var(--e-global-typography-secondary-font-family, inherit) !important; 
}
.popup-view-footer { font-size: 12px; font-weight: 600; text-transform: uppercase; color: var(--dac-accent, var(--e-global-color-accent, #333)); display: block; }


/* ================================================================
5. PROPERTY PARTICULARS (SINGLE VIEW)
================================================================
*/

#particulars-container {
	background: var(--dac-secondary, var(--e-global-color-secondary, #F5F5F5));
	padding:0 0 40px 0;
}

#particulars-viewing-box {
	background:#FFF;
	padding:30px;
	border-radius: var(--dac-radius, 15px);
}

#particulars-viewing-box h5 {
	border-bottom:3px solid var(--dac-accent, var(--e-global-color-accent, #333));
	font-size:1.4rem;
	font-weight:400;
	color:#333;
}

#particulars-viewing-box .btn-primary i { color:#FFF; }

#particulars-viewing-box p.error, #particulars-viewing-box .error { color:#C00; }

.particulars-type {
	font-size:0.95em;
	color:#333;
	margin-bottom:13px;
	background: rgb(255,255,255);
	background: linear-gradient(270deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
	padding:10px 12px;
	border-radius: var(--dac-radius, 15px);
}

.particulars-type .material-symbols-outlined {
	font-size:22px;
	color:#999;
	vertical-align:text-top;
}

.particulars-address {
	color: #333;
	font-size:1.05rem;
	margin-bottom:10px;
	font-weight:400;
}

.particulars-address i {
	color: var(--dac-accent, var(--e-global-color-accent, #333)) !important;
}

.particulars-price {
	color:#000;
	font-size:1.7rem;
	font-weight:400;
}

.status-label-particulars {
	font-size:1rem;
	display:inline-block;
	padding:5px 15px;
	background-color: #C22E2E;
	color:#fff;
	text-transform:uppercase;
	font-weight:300;
	border-radius:10px;
} 

#features-list {
	margin:20px 5px 20px 5px;
	padding:0;
	list-style-position:inside;
	font-size:1rem;
	font-weight:300;
}

#features-list li {
	width:50%;
	float:left;
	margin:0 0 6px 0;
	color: var(--dac-accent, var(--e-global-color-accent, #333));
}

#features-list li span { color:#333; }

#description h2 {
	font-size:1.3rem;
	color:#000;
	font-weight:600;
}

#description h3 {
	font-size:1.1rem;
	font-weight:500;
}

#description p {
	font-weight:200;
	line-height:1.4em;
	color:#333;
}

#maptab #map,
#floorplans img {
	border-radius: var(--dac-radius, 15px);
	overflow: hidden;
}

#particulars-contact-box, #particulars-features-box {
	background-color:#F5F5F5;
	box-shadow: 0px 0 25px #E8E8E8;
}

#particulars-contact-box { display:none; }

#particulars-contact-box h4, #particulars-features-box h4 {
	border-bottom:3px solid var(--dac-accent, var(--e-global-color-accent, #333));
	font-size:1.3em;
} 

#particulars-contact-box a {
	color:#333;
	text-decoration:none;
	font-weight:300;
}

#particulars-contact-box i { color:#999; }

#particulars-contact-box a:hover { color:#000; }

   .domus-enquiry-container {
        width: 100%;
        margin: 0 auto;

    }
    #domus-enquiry-form {
        background: transparent !important; /* Let your template box show through */
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important; /* Removed outer padding */
        margin: 0 !important;
    }
    #domus-enquiry-form .form-control, 
    #domus-enquiry-form .form-select {
        border: 1px solid #d1d5da;
        padding: 0.75rem;
        font-size: 14px;
        transition: border-color 0.2s, box-shadow 0.2s;
        background-color: #fcfcfc;
    }
    #domus-enquiry-form .form-control:focus, 
    #domus-enquiry-form .form-select:focus {
        
        box-shadow: 0 0 0 3px rgba(0,86,179,0.1);
        outline: none;
        background-color: #fff;
    }
    #domus-enquiry-form .consent-title {
        color: #444;
        margin-bottom: 10px;
        border-bottom: 1px solid #eee;
        padding-bottom: 5px;
    }

/* ================================================================
6. GALLERY & SLIDER-PRO STYLES
================================================================
*/

/* Gallery with thumbs on right style */

    .gallery-outer-wrapper {
        width: 100%;
        max-width: 1500px; 
        margin: 0 auto;
        padding: 0 15px;
    }

    .gallery-grid {
        display: grid;
        grid-template-columns: 3fr 1fr; 
        gap: 10px;
        margin-bottom: 25px;
		margin-top:20px;
        height: 650px; 
        width: 100%;
    }
    
    .gallery-main {
        position: relative;
        height: 100%; 
        width: 100%;
        overflow: hidden;
        border-radius: var(--dac-radius);
        background: #000; 
        cursor: zoom-in;
    }
    
    #active-photo {
        position: absolute;
        top: 0; left: 0; width: 100%; height: 100%;
        object-fit: cover; 
        display: block;
        transition: opacity 0.4s ease-in-out;
    }

    .photo-counter {
        position: absolute;
        top: 20px;
        right: 20px;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(8px);
        color: #fff;
        padding: 4px 12px;
        border-radius: 20px;
        font-size: 12px;
        letter-spacing: 0.5px;
        z-index: 6;
        display: flex;
        align-items: center;
        gap: 6px;
        pointer-events: none;
        border: 1px solid rgba(255,255,255,0.15);
    }

    /* [FRIENDLY LABEL: Main Navigation Styling] */
    .gallery-nav {
        position: absolute;
        top: 0; bottom: 0; width: 120px; 
        color: white !important;
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
        cursor: pointer;
        z-index: 5;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: opacity 0.4s ease; 
        opacity: 0.3; 
    }

    .nav-prev { 
        left: 0; 
        background: linear-gradient(to right, rgba(0,0,0,0.4), transparent) !important;
    }
    .nav-next { 
        right: 0; 
        background: linear-gradient(to left, rgba(0,0,0,0.4), transparent) !important;
    }

    .gallery-main:hover .gallery-nav,
    .modal-body:hover .gallery-nav {
        opacity: 1; 
    }

    .gallery-nav i {
        font-size: 24px;
        text-shadow: 0px 2px 10px rgba(0,0,0,0.5);
        transition: transform 0.3s ease;
    }
    .gallery-nav:hover i { transform: scale(1.1); }
    
    .sidebar-container {
        position: relative;
        height: 100%;
        overflow: hidden;
    }

    .gallery-sidebar {
        display: flex;
        flex-direction: column;
        gap: 10px;
        height: 100%;
        overflow-y: scroll;
        scroll-behavior: smooth;
        scrollbar-width: none;
    }
    .gallery-sidebar::-webkit-scrollbar { display: none; }
    
    .gallery-sidebar-img {
        position: relative;
        flex: 0 0 calc(33.333% - 7px);
        width: 100%;
        overflow: hidden;
        border-radius: var(--dac-radius);
        background: #000;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .gallery-sidebar-img:hover { filter: brightness(1.1); }
    .gallery-sidebar-img img {
        position: absolute;
        top: 0; left: 0; width: 100%; height: 100%;
        object-fit: cover;
    }

    .sidebar-scroll-btn {
        position: absolute;
        left: 0; right: 0;
        height: 50px;
        color: #fff !important;
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
        z-index: 10;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        opacity: 0;
        transition: opacity 0.3s;
    }
    .sidebar-scroll-btn:hover, .sidebar-scroll-btn:focus, .sidebar-scroll-btn:active {
        background-color: transparent !important;
        color: #fff !important;
    }

    .sidebar-container:hover .sidebar-scroll-btn { opacity: 1; }
    
    .btn-scroll-up { 
        top: 0; 
        background: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent) !important; 
        border-radius: var(--dac-radius) var(--dac-radius) 0 0; 
    }
    .btn-scroll-down { 
        bottom: 0; 
        background: linear-gradient(to top, rgba(0,0,0,0.6), transparent) !important; 
        border-radius: 0 0 var(--dac-radius) var(--dac-radius); 
    }

    .view-all-overlay {
        position: absolute;
        top: 0; left: 0; width: 100%; height: 100%;
        background: rgba(0,0,0,0.5);
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
        z-index: 2;
        pointer-events: none;
        transition: opacity 0.4s ease;
    }

    /* [FRIENDLY LABEL: Lightbox Styling] */
    #galleryLightbox .modal-dialog { max-width: 90vw; display: flex; justify-content: center; }
    #galleryLightbox .modal-content { background-color: transparent; border: none; width: auto; display: inline-block; box-shadow: none; }
    #galleryLightbox .modal-body { display: flex; align-items: center; justify-content: center; padding: 0; position: relative; background: #000; border-radius: 8px; overflow: hidden; }
    .lightbox-img { max-width: 100%; max-height: 80vh; object-fit: contain; display: block; width: auto; transition: opacity 0.3s ease; }
    .modal-header { border: none; padding: 0 0 10px 0; justify-content: space-between; align-items: center; }
    .modal-title { color: white; font-size: 1.1rem; }
    
    .btn-close-gallery {
        background: rgba(0, 0, 0, 0.5) !important; 
        border: none !important;
        color: #fff !important; 
        font-size: 28px !important;
        line-height: 1;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: background 0.3s;
        box-shadow: none !important;
        outline: none !important;
    }

.btn-close-gallery:hover { background: rgba(0, 0, 0, 0.8) !important; }



/* End of gallery with thumbs on right style */

#gallery-preloader { 
    width: 100%; 
    height: 500px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    background: #f8f9fa; 
}

.gallery-spinner { 
    width: 40px; 
    height: 40px; 
    border: 4px solid #f3f3f3; 
    border-top: 4px solid var(--e-global-color-accent, #0073aa); 
    border-radius: 50%; 
    animation: spin 1s linear infinite; 
}

#slideshow { 
    opacity: 0; 
    transition: opacity 0.5s ease; 
}

#slideshow .sp-selected-thumbnail {
	border: 4px solid var(--dac-accent, var(--e-global-color-accent, #333));
}

.sp-black {
	color:#FFF;
	background:rgba(0,0,0,0.5);
}
	
.slider-pro p.sp-layer{
	font-size:14px;
	line-height:1.4;
	margin:0;
	padding:7px 0;
	text-align:center;
}
	
.sp-buttons {
	position: relative;
	width: 100%;
	text-align: center;
	padding-top: 20px;
	padding-bottom:20px;
}	
	
.sp-button {
	width:13px;
	height:13px;
	border:none;
	background-color:#CCCCCC;
	border-radius:50%;
	margin:4px;
	display:inline-block;
	box-sizing:border-box;
	cursor:pointer;
}
	
.sp-selected-button {
	background-color: var(--dac-accent, var(--e-global-color-accent, #333));
}

/* ================================================================
7. TABS, FORMS & MISC
================================================================
*/

/* [FRIENDLY LABEL: EVOLVED PILL DESIGN] */
#page-tabs {
    border: none !important;
    display: flex !important;
    width: 100% !important;
    padding: 5px !important;
    margin: 0 !important;
    border-radius: var(--dac-radius, 50px) !important;
    background: linear-gradient(90deg, #ffffff 50%, rgba(255,255,255,0) 100%) !important;
    position: relative;
    overflow: hidden;
}

#page-tabs .nav-item {
    flex: 0 0 calc(60% / 5); 
    display: flex;
    max-width: 150px;
}

#page-tabs .nav-link {
    flex: 1;
    display: flex;
    flex-direction: row; 
    align-items: center;    
    justify-content: center;
    padding: 12px 15px !important;
    font-size: 16px;
    border-radius: var(--dac-radius, 50px) !important;
    border: none !important;
    margin: 0 2px !important;
    background: none !important;
    color: #666;
    box-shadow: none !important;
    white-space: nowrap;
    transition: all 0.3s ease;
}

#page-tabs .nav-link i {
    margin-right: 10px !important;
    font-size: 16px !important;
    background: none !important; /* Removed old circle background */
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
}

#page-tabs .nav-link.active, #page-tabs .nav-link:hover {
    color: #333;
    background-color: rgba(0,0,0,0.03) !important; /* Subtle highlight */
}

#page-tabs .nav-link.active i {
    color: var(--dac-accent, var(--e-global-color-accent, #333)) !important;

}

#domus-enquiry-form { 
    background: transparent !important; 
    border: none !important; 
    box-shadow: none !important; 
    padding: 0 !important; 
}

#domus-enquiry-form .form-control, #domus-enquiry-form .form-select { 
    border: 1px solid #d1d5da; 
    padding: 0.75rem; 
    font-size: 15px; 
    background-color: #fcfcfc; 
}

#domus-enquiry-form .consent-title { 
    color: #444; 
    margin-bottom: 10px; 
    border-bottom: 1px solid #eee; 
    padding-bottom: 5px; 
}

#share-icons i { font-size:20px; }
i.fa-facebook, .fa-facebook-f { color:#45619D; }
i.fa-twitter { color:#1CA1F3; }
i.fa-linkedin-in { color:#0077B7; }

#register-form i { font-size:55px; }


#renting-requirements, #buying-requirements, #rentingReqs, #buyingReqs { display:none; }
.error { color:#C00; }

.amber { color: #F90; }
.red { color:#C00; }
.amber, .red { font-size:90%; }

/* ================================================================
8. REGISTRATION FORM STYLES
================================================================ */

.bh-registration-container { width: 100%; box-sizing: border-box; }
.bh-registration-container * { box-sizing: border-box; }
.bh-name-grid { display: grid; grid-template-columns: 0.5fr 1fr 1fr; gap: 15px; margin-bottom: 15px; }
.bh-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin-bottom: 15px; }
.bh-section-label { display: block; text-transform: uppercase; font-weight: 700; font-size: 0.8rem; border-bottom: none; margin-top: 15px; margin-bottom: 5px; color: inherit; }
.domus-form-input { width: 100%; font-family: inherit; transition: all 0.3s ease; padding: 10px 12px; border: 1px solid #dee2e6; border-radius: 4px; }
textarea.domus-form-input { min-height: 100px; resize: vertical; }
.bh-flex-row { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 20px; }

/* [FRIENDLY LABEL: Simple Pills] */
.bh-check-item { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    cursor: pointer; 
    font-size: 0.9rem; 
 
}

/* [FRIENDLY LABEL: Custom Checkbox Styling] */
.bh-registration-container input[type="checkbox"] {
    appearance: none; -webkit-appearance: none; background-color: #fff; margin: 0;
    border: 1px solid #dee2e6; border-radius: 3px; display: grid; place-content: center;
    width: 1.2em; height: 1.2em; transition: background-color 0.2s ease;
}
.bh-registration-container input[type="checkbox"]::before {
    content: ""; width: 0.65em; height: 0.65em; transform: scale(0);
    transition: 120ms transform ease-in-out; box-shadow: inset 1em 1em #fff;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}
.bh-registration-container input[type="checkbox"]:checked { border-color: transparent; background-color: #000; }
.bh-registration-container input[type="checkbox"]:checked::before { transform: scale(1); }

.bh-alert { padding: 25px; border-radius: 6px; margin-bottom: 20px; border: 1px solid transparent; }
.bh-alert-danger { background: #f8d7da; color: #721c24; }
.bh-alert-success { background: #d4edda; color: #155724; text-align: center; padding: 50px 20px; }
.bh-req-box { padding: 10px 0; margin-bottom: 20px; border-top: 1px solid #eee; }
.bh-captcha-wrapper { display: flex; width: 100%; margin-bottom: 20px; } 

/* [FRIENDLY LABEL: Dynamic Button Layout using Variables] */
.bh-button-wrapper { 
    display: flex; 
    width: 100%; 
    justify-content: var(--bh-btn-align, flex-start); 
}

#bh-submit-btn { 
    display: inline-flex;
    width: var(--bh-btn-width, auto); 
    max-width: 100%;
    justify-content: center;
}

.bh-button-content { display: flex; align-items: center; justify-content: center; gap: 8px; }


/* ================================================================
9. RESPONSIVE MEDIA QUERIES
================================================================ */


/* DESKTOP (Standard) */
@media (max-width: 1399px) {	
    .grid-image-wrapper, img.property-image, img#property-image, .image-coming-soon, img.featured-property-image { height: 230px; }
	#particulars-address { font-size:1.1rem; }
    #features-list li { width:100%; }
	
}

@media (min-width: 1200px) {
    .prev {left:30px;color:#fff;}
    .next {right:30px;color:#fff;}
    .prev:hover, .next:hover {color:#ccc;}
    
}

/* LARGE TABLETS / SMALL LAPTOPS */

@media (max-width: 1199px) {
    .grid-image-wrapper, img.property-image, img#property-image, .image-coming-soon, img.featured-property-image { height: 300px; }
	#particulars-address { font-size:1rem; }

    /* [FRIENDLY LABEL: Hybrid View Responsive] */
    .hybrid-grid { grid-template-columns: 1fr; }
	
}

@media (min-width: 992px) {
    #refine {
        max-height: none !important;
        opacity: 1 !important;
        display: block !important;
        overflow: visible !important;
    }
    #refine-button { display: none !important; }
}


/* MOBILE (Large) */
@media (max-width: 991px) {
    .grid-image-wrapper, img.property-image, img#property-image, .image-coming-soon, img.featured-property-image { height: 220px; }
	
	    #refine {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out, opacity 0.3s ease;
        opacity: 0;
        display: block !important;
    }
    #refine.is-active {
        max-height: 1200px;
        opacity: 1;
        padding-bottom: 20px;
    }
    #refine-button {
        cursor: pointer;
        display: block;
        padding: 10px;
        background: #f8f9fa;
        margin-bottom: 10px;
    }
  
    #search-options h1 { font-size:1.1rem; }
    #search-results #map, #maptab #map { height:400px; min-height: 400px; } 
	#map-column #map { height:400px; } 
    #search-results #map .leaflet-popup-content-wrapper { height:100px; width:300px; }
    .popup-photo { width:100px; }
    .popup-photo img { width:100px; height:75px; }
    .popup-details { width:170px; left:120px; }
	
	 .gallery-grid { grid-template-columns: 1fr; height: 350px; }
        .sidebar-container { display: none; } 
        .gallery-nav { opacity: 1; width: 60px; } 

    /* [FRIENDLY LABEL: Hybrid View Responsive Stacked] */
    #hybrid-container { flex-direction: column; height: auto; }
    #map-column { height: 400px; flex: none; width: 100%; }
    #results-column { flex: none; width: 100%; height: auto; }
	
}

/* MOBILE (Medium) */
@media (max-width: 767px) {
    .grid-image-wrapper, img.property-image, img#property-image, .image-coming-soon, img.featured-property-image { height: 320px; }
	
	#search-options h1 { display:none; }	
    #refine { display:none; }
    a#refine-button { display:block; }
    #search-results-view { display:none; }
	.slider-pro p.sp-layer{
        font-size:32px;
        line-height:1.4;
        margin:0;
        padding:9px 0px;
        width:100%;
        text-align:center;
	}
    #epc img { width:100%; height:auto; }
    /* FIXED SMARTPHONE POPUP IMAGE SIZE */
    .popup-photo img { width:100px !important; height: 70px !important; object-fit: cover !important; }

    /* [FRIENDLY LABEL: MOBILE SMARTPHONE TABS] */
    .gallery-grid { height: 240px !important; } 
    .tab-container-mobile { padding: 0 !important; }

    #page-tabs {
        background: #fff !important; /* No fade on mobile */
        border-radius: var(--dac-radius, 15px) !important;
        margin: 0 15px !important;
        width: auto !important;
    }

    #page-tabs .nav-item {
        flex: 1;
        max-width: none;
    }

    #page-tabs .nav-link {
        flex-direction: column; 
        padding: 10px 2px !important;
        font-size: 11px;
    }

    #page-tabs .nav-link i {
        margin-right: 0 !important;
        margin-bottom: 5px;
        display: flex !important; 
        align-items: center !important;
        justify-content: center !important;
        /*background: #999 !important;*/ /* Restore circle for mobile if desired */
        /*color: #fff */ !important;
        width: 24px !important;
        height: 24px !important;
        border-radius: 50%;
    }
}



    @media (max-width: 650px) {
        .bh-name-grid { grid-template-columns: 1fr; }
        .bh-grid { grid-template-columns: 1fr; }
        #bh-submit-btn { width: 100%; } /* Usually better for mobile UX */
    }

/* MOBILE (Small) */
@media (max-width: 500px) {
    .grid-image-wrapper, img.property-image, img#property-image, .image-coming-soon, img.featured-property-image { height: 260px; }	

}


/* MOBILE (Extra Small - This is likely your 'stuck' 260px issue) */
@media (max-width: 400px) {
    .grid-image-wrapper, img.property-image, img#property-image, .image-coming-soon, img.featured-property-image { height: 200px; }
}