/*
 Theme Name:     Real Spaces Child Theme
 Theme URI:      https://dubaiapartmentshub.ae/
 Description:    Child theme for Dubai Apartments Hub
 Author:         BonoSys
 Author URI:     https://bonosys.in
 Template:       real-spaces
 Version:        1.8.1
 Text Domain:    dubaih
*/

/* Image handling only */
.property-gallery img,
.property-card img,
.wp-block-image img {
    contain-intrinsic-size: initial !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: var(--img-ratio, 16/9) !important;
    object-fit: contain !important;
}

.property-image-container {
    position: relative;
    padding-bottom: 56.25%;
    overflow: hidden;
    background: #f5f2ea;
}

.property-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.top-header {
        display: block;
    }
/* Basic layout adjustments */
.site-content {
    padding-top: 2em;
    padding-bottom: 2em;
}
.content {
    padding: 0px 0 !important;
}
@media (max-width: 768px) {
    .property-card {
        margin-bottom: 1.5em;
    }
	 
}
@media only screen and (max-width: 767px) {
    .top-header {
        display: block;
    }
}
.spacer-10 {
    height: 15px;
    clear: both;
    width: 100%;
}
/* City Links Section */
.simple-city-links {
    font-size: 16px;
    line-height: 1.6;
    margin: 20px 0;
}

.simple-city-links a {
    color: #2a5db0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.simple-city-links a:hover {
    color: #e74c3c;
    text-decoration: underline;
}

.city-wrapper {
    display: inline-block;
    margin-right: 5px;
}

.rent-link {
    font-size: 0.85em;
    color: #e74c3c;
}

.rent-link:hover {
    text-decoration: underline;
}
/* Search menu style */
.menu-item.menu-item-search-term > a {
    background: #f5f5f5;
    border-radius: 4px;
}
.property-id {
    display: block;
    color: #d4af37;
    font-weight: 600;
    font-size: 16px;
    margin: 10px 0;
}
.property-id .property-id {
    display: inline !important;
    color: inherit;
    font-weight: bold;
}

.property-excerpt {
    margin: 12px 0;
    color: #555;
    line-height: 1.5;
    font-size: 0.95em;
}
.property-amenities > span {
    color: #001e60 !important;
}

/* Font Awesome specific */
.area i.fas {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900; /* Solid icons require 900 */
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
}
.sidebar.right-sidebar.col-md-4 {
    float: right;
}


/* PARALLAX BANNER CONTAINER */
.page-header.parallax {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Creates parallax effect */
    min-height: 400px; /* Adjust height as needed */
    display: flex;
    align-items: center; /* Vertical center */
    overflow: hidden; /* Keeps everything contained */
}

/* Overlay for better text readability */
.page-header.parallax::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3); /* Adjust opacity as needed */
    z-index: 1;
}

/* Container for centering content */
.page-header.parallax .container {
    position: relative;
    z-index: 2; /* Above the overlay */
    width: 100%;
}

/* TITLE BOX WITH BACKGROUND */
.page-header-title {
    background: rgb(0 30 96 / 50%);
    padding: 30px 40px;
    display: inline-block;
    border-left: 4px solid #e1bb68; /* Accent color */
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    max-width: 90%; /* Prevents edge-to-edge on mobile */
    margin: 0 auto; /* Center horizontally */
}

/* MAIN HEADING */
.page-header-title h1 {
    color: #fff !important;
    margin: 0;
    padding: 0;
    font-size: 2.5em;
    line-height: 1.3;
    text-transform: uppercase; /* Matches your existing style */
    position: static; /* Resets any absolute positioning */
}

/* LOCATION TEXT */
.page-header-title .property-location {
    display: block;
    font-size: 0.7em;
    margin-top: 10px;
    font-weight: normal;
    text-transform: none; /* Different from main title */
    opacity: 0.9;
}

/* RESPONSIVE ADJUSTMENTS */
@media (max-width: 992px) {
    .page-header.parallax {
        min-height: 350px;
    }
    .page-header-title {
        padding: 25px 30px;
    }
    .page-header-title h1 {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-header.parallax {
        min-height: 300px;
        background-attachment: scroll; /* Disable parallax on mobile */
    }
    .page-header-title {
        padding: 20px;
        max-width: 95%;
    }
    .page-header-title h1 {
        font-size: 1.7em;
    }
}

@media (max-width: 576px) {
    .page-header-title h1 {
        font-size: 1.4em;
    }
    .property-location {
        font-size: 0.6em;
    }
}

/* Base styling */
.visible-location {
    display: flex;
    align-items: center;
    font-size: 1.1em;
    margin: 15px 0;
    color: #333;
}

/* Map icon */
.visible-location .fa-map-marker-alt {
    color: #ff6b6b; /* Red pin color */
    margin-right: 8px;
    font-size: 1.1em;
}

/* Location text */
.visible-location .location-text {
    font-weight: 600;
    color: #2a3f54; /* Dark blue text */
    background: rgba(42, 63, 84, 0.05);
    padding: 4px 10px;
    border-radius: 4px;
    border-left: 2px solid #ff6b6b; /* Accent bar */
}

/* Comma separator */
.visible-location .location-separator {
    color: #888;
    margin: 0 2px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .visible-location {
        font-size: 1em;
        flex-wrap: wrap;
    }
    .visible-location .location-text {
        margin-top: 5px;
    }
}
