/*
Theme Name: Astra Child
Theme URI: https://astra.pro
Author: Your Name
Author URI: https://yourwebsite.com
Description: Astra Child Theme
Version: 1.0.2
Template: astra
*/

/* --------------------------
  HEADER & NAVBAR
--------------------------- */

/* Make Astra header sticky */
/* Make Above Header + Primary Header sticky */
/* Make the entire header sticky */
/* Stick desktop header */
/* Above header normal */
.ast-above-header-wrap {
    position: relative; /* just normal flow */
}

/* Primary header sticky */
/* Stick the whole desktop header */
#masthead,
#ast-desktop-header {
    position: sticky;
    top: 0;
    z-index: 9999;
}





/*.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background-color: #0073aa;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.main-header-bar {
    width: 100%;
}

.main-header-menu a {
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
}

.main-header-menu a:hover,
.main-header-menu .current-menu-item > a,
.main-header-menu .current-menu-ancestor > a {
    color: #ffcc00;
}
*/
/* Push page content below header */
#content,
#primary {
    margin-top: 00px; /* Adjust based on header height */
}

/* Responsive Navbar */
@media (max-width: 921px) {
    .main-header-bar-navigation {
        width: 100%;
    }
}

/* --------------------------
  PROPERTY LISTINGS
--------------------------- */

.property-info-list {
    list-style: none;
    padding: 0;
    margin: 5px 0;
}

.property-info-list li {
    margin: 4px 0;
    line-height: 1.3;
    display: flex;
    align-items: center;
}

.property-icon {
    margin-right: 8px;
    font-size: 14px;
}

/* Builder name bold in red */
.property-builder {
    color: red;
    font-weight: 700;
}

.property-listings-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.property-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    width: 320px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.property-container:hover {
    transform: translateY(-5px);
}

.property-image-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.property-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hot / Featured Tag */

.property-tag.hot-property-tag.featured-property-tag {
    display: inline-block;   /* shrink to text width */
    width: 30%  /* ensure it doesn't stretch */
    padding: 5px 10px;       /* space around text */
    white-space: nowrap;      /* prevent wrapping */
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: red;
    color: #fff;
    font-weight: bold;
    font-size: 12px;
	text-align:right;
    border-radius: 4px;
    z-index: 10;
}

.hot-property-tag { background-color: red; }
.featured-property-tag { background-color: blue; }

/* PROPERTY DETAILS */
.property-details {
    padding: 15px;
}

.property-title a {
    color: #333;
    text-decoration: none;
    font-size: 1.25rem;
    line-height: 1.2;
}

.property-location {
    color: #777;
    font-size: 0.9rem;
    margin: 5px 0;
}

.property-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #0073aa;
    margin-top: 10px;
}

.property-details-button {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    background-color: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.property-details-button:hover {
    background-color: #005f88;
}
.property-details p {
    margin: 2px 0;       /* reduce top & bottom margins */
    line-height: 1.8;    /* optional: tighten line spacing */
}

/* --------------------------
  SINGLE PROPERTY PAGE
--------------------------- */
.property-banner-container {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    margin-bottom: 20px;
}

.property-featured-image {
    width: 100%;
    height: auto;
    display: block;
}

.property-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.gallery-thumbnail {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
}

.property-master-plan img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 30px;
}

.property-map iframe {
    width: 100%;
    height: 400px;
    border: 0;
}

.property-address {
    font-weight: 500;
}

.property-builder-name {
    color: #0073aa;
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 0;
}

/* --------------------------
  AMENITIES TWO COLUMN LIST
--------------------------- */
.property-amenities {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 20px;
    margin-bottom: 20px;
}

.property-amenities label {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

/* --------------------------
  LIGHTBOX2 STYLING
--------------------------- */
.lb-image {
    max-width: 100%;
}

/* --------------------------
  ELEMENTOR SHORTCODE WIDGET FIX
--------------------------- */
.elementor-widget-shortcode .property-listings-container {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
    justify-content: center !important;
}

.elementor-widget-shortcode .property-container {
    width: 320px !important;
}

.elementor-widget-shortcode .property-image-wrapper {
    position: relative !important;
    height: 200px !important;
    overflow: hidden !important;
}

.elementor-widget-shortcode .property-tag {
    top: 10px !important;
    right: 10px !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.elementor-widget-shortcode .property-details-button {
    width: 100% !important;
}


/* Sticky header for all pages */



.property-image-wrapper {
    position: relative; /* ensures absolute positioning works */
}

.property-tag.hot-property-tag {
    position: absolute;
    top: 10px;       /* distance from top */
    left: 10px;      /* top-left corner */
    background-color: red;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 4px;
    z-index: 10;
	white-space: nowrap; /* prevent line breaks */
    display: inline-block; /* shrink to text width */
}

/* Property Search Form */
.property-search-form,
.property-search-form label,
.property-search-form select,
.property-search-form input[type="search"],
.property-search-form input[type="number"],
.property-search-form input[type="submit"] {
    font-size: 12px;        /* smaller font */
    line-height: 1.4;       /* tighter line spacing */
    padding: 5px 6px;       /* smaller input padding */
    height: auto;           /* adjust height */
    margin: 0px 2px 2px 0;  /* reduce spacing between fields */
}

.property-search-form input[type="submit"] {
    background-color: #0073aa;
    color: #fff;
    border: none;
    cursor: pointer;
    padding: 6px 8px;      /* smaller button */
    font-size: 12px;
    border-radius: 3px;
}

.property-search-form input[type="submit"]:hover {
    background-color: #005f88;
}

/* Make form labels inline for compact layout */
.property-search-form label {
    display: inline-block;
    margin-right: 10px;
}

  
