/**
 * Legacy Real Estate Theme Styles
 * Custom styles for the Legacy Real Estate WordPress theme
 */

/* Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--wp--preset--font-family--worksans);
    line-height: 1.6;
    color: var(--wp--preset--color--body);
    background-color: #fff;
}

/* Typography Enhancements */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--wp--preset--font-family--worksans);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

/* Link Styles */
a {
    color: var(--wp--preset--color--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--wp--preset--color--secondary);
}

/* ========================================
   CONTENT LINKS STYLING - WORDPRESS THEME REVIEW REQUIREMENTS
   ======================================== */

/* Links within ALL content areas - Required by WordPress Theme Review Guidelines */
/* Covers: the_content(), the_excerpt(), comments, widgets, and custom text blocks */
.wp-block-post-content a,
.entry-content a,
.post-content a,
.page-content a,
article a,
.comment-content a,
.comment-text a,
.wp-block-post-excerpt a,
.post-excerpt a,
.excerpt a,
.widget a,
.widget-content a,
.wp-block-text a,
.textwidget a,
.wp-block-paragraph a,
.wp-block-list a,
.wp-block-quote a,
.wp-block-pullquote a,
.wp-block-verse a,
.wp-block-preformatted a,
.content a,
main a,
.site-content a {
    color: var(--wp--preset--color--primary);
    text-decoration: underline;
    text-underline-offset: 0.125em;
    text-decoration-thickness: 1px;
    transition: all 0.3s ease;
}

/* Content link hover state */
.wp-block-post-content a:hover,
.entry-content a:hover,
.post-content a:hover,
.page-content a:hover,
article a:hover,
.comment-content a:hover,
.comment-text a:hover,
.wp-block-post-excerpt a:hover,
.post-excerpt a:hover,
.excerpt a:hover,
.widget a:hover,
.widget-content a:hover,
.wp-block-text a:hover,
.textwidget a:hover,
.wp-block-paragraph a:hover,
.wp-block-list a:hover,
.wp-block-quote a:hover,
.wp-block-pullquote a:hover,
.wp-block-verse a:hover,
.wp-block-preformatted a:hover,
.content a:hover,
main a:hover,
.site-content a:hover {
    color: var(--wp--preset--color--secondary);
    text-decoration-thickness: 2px;
}

/* Content link focus state for accessibility */
.wp-block-post-content a:focus,
.entry-content a:focus,
.post-content a:focus,
.page-content a:focus,
article a:focus,
.comment-content a:focus,
.comment-text a:focus,
.wp-block-post-excerpt a:focus,
.post-excerpt a:focus,
.excerpt a:focus,
.widget a:focus,
.widget-content a:focus,
.wp-block-text a:focus,
.textwidget a:focus,
.wp-block-paragraph a:focus,
.wp-block-list a:focus,
.wp-block-quote a:focus,
.wp-block-pullquote a:focus,
.wp-block-verse a:focus,
.wp-block-preformatted a:focus,
.content a:focus,
main a:focus,
.site-content a:focus {
    outline: 2px solid var(--wp--preset--color--primary);
    outline-offset: 2px;
    text-decoration-thickness: 2px;
}
/* EXCLUDE specific elements from underline styling */
/* Buttons */
.wp-block-button a,
.wp-block-buttons a,
.button,
.btn,
/* Images and Media */
.wp-block-image a,
.wp-block-gallery a,
.wp-block-media-text a,
.wp-block-cover a,
/* Navigation and Menus */
.wp-block-navigation a,
.navigation a,
.nav a,
.menu a,
.navbar a,
/* Headers and Logos */
.site-title a,
.site-header a,
.header a,
.logo a,
/* Social Links */
.wp-block-social-links a,
.social-links a,
/* Post Meta */
.wp-block-post-title a,
.wp-block-post-author a,
.wp-block-post-date a,
.wp-block-post-terms a,
.post-meta a,
.entry-meta a,
/* Cards and Special Blocks */
.wp-block-latest-posts a,
.wp-block-archives a,
.wp-block-categories a,
.wp-block-tag-cloud a,
.card a,
/* Pagination */
.wp-block-query-pagination a,
.pagination a,
.page-numbers,
/* Footer specific */
.site-footer .wp-block-navigation a,
.footer-navigation a {
    text-decoration: none !important;
}

/* Ensure excluded elements stay without underlines on hover */
.wp-block-button a:hover,
.wp-block-buttons a:hover,
.button:hover,
.btn:hover,
.wp-block-image a:hover,
.wp-block-gallery a:hover,
.wp-block-media-text a:hover,
.wp-block-cover a:hover,
.wp-block-navigation a:hover,
.navigation a:hover,
.nav a:hover,
.menu a:hover,
.navbar a:hover,
.site-title a:hover,
.site-header a:hover,
.header a:hover,
.logo a:hover,
.wp-block-social-links a:hover,
.social-links a:hover,
.wp-block-post-title a:hover,
.wp-block-post-author a:hover,
.wp-block-post-date a:hover,
.wp-block-post-terms a:hover,
.post-meta a:hover,
.entry-meta a:hover,
.wp-block-latest-posts a:hover,
.wp-block-archives a:hover,
.wp-block-categories a:hover,
.wp-block-tag-cloud a:hover,
.card a:hover,
.wp-block-query-pagination a:hover,
.pagination a:hover,
.page-numbers:hover,
.site-footer .wp-block-navigation a:hover,
.footer-navigation a:hover {
    text-decoration: none !important;
}

/* ========================================
   BUTTON ENHANCEMENTS
   ======================================== */

/* Button Enhancements */
.wp-block-button__link {
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

/* ========================================
   HEADER NAVIGATION STYLING
   ======================================== */

/* HEADER NAVIGATION SPACING - Desktop */
.legacy-real-estate-header .legacy-real-estate-main-navigation ul {
    display: flex !important;
    align-items: center !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.legacy-real-estate-header .wp-block-navigation .wp-block-navigation-item__content.wp-block-navigation-item__content{
    color: #000000 !important;
}

.legacy-real-estate-header .legacy-real-estate-main-navigation .wp-block-navigation-item {
    margin-right: 32px !important;
    margin-left: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}
.legacy-real-estate-header .legacy-real-estate-main-navigation .current-menu-item.wp-block-navigation-item::after, 
.legacy-real-estate-header li.wp-block-navigation-item.wp-block-navigation-link:hover::after{
    position: absolute;
    content: "";
    width: 100%;
    height: 2px;
    background: var(--wp--preset--color--primary);
    top: 0px;
}
.legacy-real-estate-header .legacy-real-estate-main-navigation .current-menu-item.wp-block-navigation-item::before,
.legacy-real-estate-header li.wp-block-navigation-item.wp-block-navigation-link:hover::before{
    position: absolute;
    content: "";
    width: 100%;
    height: 2px;
    background: var(--wp--preset--color--primary);
    bottom: 0;
}

.legacy-real-estate-header li.wp-block-navigation-item.wp-block-navigation-link:hover span,.legacy-real-estate-header li.wp-block-navigation-item.current-menu-item.wp-block-navigation-link span{
    color: var(--wp--preset--color--primary);
}

.legacy-real-estate-header .legacy-real-estate-main-navigation .wp-block-navigation-item:last-child {
    margin-right: 0 !important;
}

.legacy-real-estate-header .legacy-real-estate-main-navigation .wp-block-navigation__container {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
}

.legacy-real-estate-header .legacy-real-estate-main-navigation {
    display: block !important;
}

/* Header CTA Button - Awesome styling for all screens */
.legacy-real-estate-header-cta .wp-block-button__link {
    padding: 8px 30px 8px 2px !important;
    transition: all 0.3s ease !important;
    position: relative !important;
}
.slide-btn{
    position: relative !important;
}
.slide-btn::after {
    font-family: "Dashicons";
    content: "\f508";
    display: flex;
    font-size: 20px;
    background: var(--wp--preset--color--tertiary);
    position: absolute;
    border-radius: 50px;
    height: 50px;
    justify-content: center;
    top: -5px;
    color: #fff;
    z-index: 999;
    width: 16px;
    padding: 0px 16px;
    right: -22px;
    align-items: center;
}

.legacy-real-estate-header-cta .wp-block-button__link:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4) !important;
    color: white !important;
}

.legacy-real-estate-header-cta .wp-block-button__link::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent) !important;
    transition: left 0.5s !important;
}

.legacy-real-estate-header-cta .wp-block-button__link:hover::before {
    left: 100% !important;
}

/* Header-specific styling */
.legacy-real-estate-header-container {
    align-items: center;
}

.legacy-real-estate-header-logo {
    align-items: center;
}

.legacy-real-estate-header-nav {
    align-items: center;
}

.legacy-real-estate-header-cta {
    margin-left: var(--wp--preset--spacing--medium);
}

.header-logo img.custom-logo {
    position: absolute;
    top: -28px;
    z-index: 999;
}

.header-logo h1 a {
    background: var(--wp--preset--color--primary);
    position: absolute;
    height: 115px;
    width: 115px;
    z-index: 999;
    top: 50%;
    border-radius: 50%;
    padding: 20px;
    font-size: 13px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #fff;
    color: #fff;
    text-align: center;
    line-height: 20px;
    transform: translateY(-50%);
}

.legacy-real-estate-header{
/*    padding-top: 10px !important;*/
    border-bottom: 1px solid #000;
}

.home .legacy-real-estate-header{
    border-bottom: unset;
}
.blog-default-image{
  border-radius: 16px 16px 0px 0px;
  height: 200px;  
}
.blog-default-image img {
    height: 200px;
    border-radius: 16px 16px 0px 0px;
    padding: 0;
}

/* ========================================
   GENERAL COMPONENT STYLES
   ======================================== */

/* Navigation Enhancements */
.wp-block-navigation-item a {
    font-weight: 500;
    transition: all 0.3s ease;
}

.wp-block-navigation-item a:hover {
    color: var(--wp--preset--color--primary);
}

/* Footer Navigation Links - Only links have hover effects */
footer .wp-block-navigation-item a {
    color: var(--wp--preset--color--background);
    transition: all 0.3s ease;
}

footer .wp-block-navigation-item a:hover {
    color: var(--wp--preset--color--primary);
    transform: translateY(-2px);
}

/* Footer Links Hover Effect */
footer .wp-block-group .wp-block-paragraph a {
    transition: all 0.3s ease;
}

footer .wp-block-group .wp-block-paragraph a:hover {
    transform: translateY(-2px);
    text-decoration: underline;
}

/* Remove hover effects from footer columns themselves */
footer .wp-block-column {
    transition: none;
}

footer .wp-block-column:hover {
    transform: none;
}

/* ========================================
   FOOTER STYLING - SIMPLE FIX
   ======================================== */

/* SIMPLE: Just remove white backgrounds from footer elements */
footer,
footer * {
    background-color: inherit !important;
}

/* Footer navigation styling */
footer .wp-block-navigation {
    display: block !important;
}

footer .wp-block-navigation ul {
    display: flex !important;
    flex-direction: column !important;
    gap: var(--wp--preset--spacing--x-small) !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

footer .wp-block-navigation .wp-block-navigation-item {
    margin: 0 !important;
}

footer .wp-block-navigation .wp-block-navigation__container {
    display: flex !important;
    flex-direction: column !important;
    gap: var(--wp--preset--spacing--x-small) !important;
}

/* Footer groups - prevent unwanted effects */
footer .wp-block-group {
    transition: none !important;
    transform: none !important;
    box-shadow: none !important;
}

footer .wp-block-group:hover {
    transform: none !important;
    box-shadow: none !important;
}

footer .wp-block-social-links .wp-social-link svg{
    color: #000 !important;
    font-size: 20px;
}
footer .wp-block-social-links .wp-social-link svg:hover{
    color:var(--wp--preset--color--primary) !important;
}
.foot-grid{
    display: grid !important;
    grid-template-columns: 150px auto auto auto;
    margin: 0;
}
.footer-coll {
    height: 100%;
}
.footer-contact,.footer-mail,.footer-location{
    border-radius: 10px;
    height: 100%;
    position: relative;
    display: flex;
}
.footer-logo img{
    max-height: 100px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

.footer-detail-icon{
    background: var(--wp--preset--color--tertiary) !important;
    position: absolute;
    width: 40px;
    height: 40px;
    top: 0;
    left: 0;
    border-radius: 8px 0px 8px 0px !important;
    display: flex;
    justify-content: center;
    align-items: center;
}
.footer-detail-icon img{
        object-fit: contain !important;
}

/* ========================================
   topbar
   ======================================== */

.topbar .wp-block-social-links, .topbar .wp-block-social-links.has-normal-icon-size {
    font-size: 24px;
    margin: 0;
}

.topbar .wp-block-social-links{
    margin: 0 !important;
}
.topbar-margin{
    margin: 4px 0;
}
.menu-margin{
    margin: 0px;
}
.legacy-real-estate-header .header-admin a, .slider-popup a {
    height: 48px !important;
    width: 48px !important; 
    padding: 0 !important;
    background: var(--wp--preset--color--secondary) !important;
}
.header-btn,.slide-btn{
    position: relative;
}
.header-btn a,.slide-btn a{
    margin-right: 20px;
}
.header-btn::after {
    font-family: "Dashicons";
    content: "\f508";
    display: flex;
    font-size: 20px;
    background: var(--wp--preset--color--tertiary);
    position: absolute;
    border-radius: 50px;
    height: 50px;
    justify-content: center;
    top: -4px;
    color: #fff;
    width: 16px;
    padding: 0px 16px;
    right: -22px;
    align-items: center;
}
.slide-btn::after {
    font-family: "Dashicons";
    content: "\f344";
    display: flex;
    font-size: 20px;
    background: var(--wp--preset--color--tertiary);
    position: absolute;
    border-radius: 50px;
    height: 50px;
    justify-content: center;
    top: -4px;
    color: #fff;
    width: 16px;
    padding: 0px 16px;
    right: -22px;
    align-items: center;
}
.mail-address{
    position: relative;
}
.mail-address::after {
    content: "";
    position: absolute;
    display: inline-block;
    border-right: 2px solid #fff;
    height: 20px;
    right: -10%;
    vertical-align: middle;
}

/* ========================================
   BANNER
   ======================================== */

/*.banner-img img{
    position: absolute;
    right: 0;
    left: 0;
    margin: 0 auto;
    height: 520px;
    bottom: 0;
    width: 40%;
    object-fit: cover;
}*/
.main-banner-section{
    position: relative;
    background: var(--wp--preset--color--primary-gradient);
}
.banner-content {
    position: absolute;
    bottom: -30px;
    transform: translate(-50%);
    left: 50%;
    width: 100%;
    margin: 0 auto;
}
.banner-heading{
    margin-top: 50px;
}
.banner-heading{
    position: absolute;
    right: 0;
    left: 0;
}
.banner-image img{
 margin-top: 20px !important;
}
.slider-btnns{
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 38px;
}

span.wpzoom-video-popup-block_icon{
    background: #ffffff;
}
span.wpzoom-video-popup-block_icon svg{
    color: var(--wp--preset--color--secondary) !important;
    height: 20px !important;
    width: 20px !important;
}
a.wpzoom-video-popup-block .wpzoom-video-popup-block_icon {
    padding: 14px;
    border-radius: 30px;
    display: flex;
    justify-content: center;
}
.testi-box{
    width: fit-content !important;
    padding: 15px;
    border-radius: 20px;
    margin-top: -50%;
    margin-left: 65%;
}
.testi-para,.testi-count{
    margin: 0;
}


/* ========================================
   PROPERTY
   ======================================== */
.property-head {
    border-radius: 100px;
}
.property-small-head {
    padding: 5px 33px !important;
    clip-path: polygon(20% 400%, 70% 650%, 100% 0, 0 0);
    width: fit-content;
}
h6.land-name,.legacy-real-estate-services-section figure{
    margin: 0;
}
.legacy-real-estate-services-section .land-address{
    margin: 15px 0 !important;
}
.legacy-real-estate-services-section .property-content-bg p{
    margin: 5px;
}
.property-img img {
    border-radius: 30px 30px 0px 0px !important;
    height: 240px;
    object-fit: cover;
    width: 100%;
}
.property-content-bg{
    border-radius: 0px 0px 30px 30px;
}
.legacy-real-estate-services-section i {
    color: #C5C6C7;
}
/*.service-owl {
    display: grid;
    grid-template-columns: auto auto auto;
    column-gap: 25px;
    row-gap: 25px;
}*/
.legacy-real-estate-services-section .es-address.es-listing--hide-on-list,ul.js-es-control.es-control.es-control--property-content{
    display: none;
}
.legacy-real-estate-services-section .es-listings[class*=" es-listings--grid-"] .es-listing .es-listing--hide-on-grid{
    display: block !important;
}
.legacy-real-estate-services-section .es-btn.es-btn--default {
    position: relative;
    right: 15px;
    top: 10px;
}
.legacy-real-estate-services-section span.es-icon.es-icon_heart::before{
    position: absolute;
    top: 8px;
    right: 6px;
}
.legacy-real-estate-services-section .es-listing__image__background{
    border-radius: 25px 25px 0px 0px;
}
.legacy-real-estate-services-section h3.es-listing__title a {
    font-size: 22px !important;
    color: #182027;
    font-weight: 600 !important;
    font-family: var(--wp--preset--font-family--worksans);
}
.legacy-real-estate-services-section .es-listings{
    background: unset !important;
}

.es-listing{
    box-shadow: none !important;
    background: unset !important;
    font-size: unset !important;
    color: none !important;
    font-weight: unset !important;
    width: unset !important;
}
.legacy-real-estate-services-section .es-listings[class*=" es-listings--grid-"]>.type-properties{
    box-shadow: 0 1px 4px rgba(38,50,56,.2);
    background: #fff;
    font-size: 10px;
    color: #263238;
    font-weight: 400;
    width: 100%;
    border-radius: 25px;
}
.legacy-real-estate-services-section .es-listing__content__left {
    display: flex;
    flex-direction: column;
    font-family: var(--wp--preset--font-family--worksans);
}
.legacy-real-estate-services-section h3.es-listing__title {
    margin-bottom: 0 !important;
}

.legacy-real-estate-services-section .es-address.es-listing--hide-on-grid{
    order:2;
}
.legacy-real-estate-services-section .es-listing__meta{
    order: 3;
}
.legacy-real-estate-services-section span.es-price{
    order: 4;
}
.legacy-real-estate-services-section ul.es-listing__terms,.es-badges.es-listing--hide-on-list,.es-listings-filter.js-es-listings-filter,.es-powered.content-font {
    display: none;
}
.legacy-real-estate-services-section .es-listings[class*=" es-listings--grid-"] .es-listing .es-listing__content{
    padding: 10px 20px;
}
.legacy-real-estate-services-section .es-listings[class*=" es-listings--grid-"] .es-listing .es-address{
    margin-top: -15px;
    color: #666666;
    font-size: 15px;
    font-family: var(--wp--preset--font-family--worksans);
}
.legacy-real-estate-services-section ul.es-listing__meta {
    font-size: 12px !important;
}
.legacy-real-estate-services-section ul.es-listing__meta span,.legacy-real-estate-services-section .es-listing {
    color: #666666;
}
.legacy-real-estate-services-section ul.es-listing__meta svg path {
    fill: #C5C6C7;
    font-size: 16px;
}

.property-block{
    display: grid !important;
    grid-template-columns: auto auto auto;
}

/* ========================================
   PORTFOLIO ENHANCEMENTS
   ======================================== */


/* ========================================
   FEATURED PROJECTS - SPECIFIC TARGETING
   ======================================== */

/* Target ONLY the Featured Projects section on homepage using background color selector */
.wp-block-group.has-light-gray-background-color .wp-block-columns .wp-block-column .wp-block-group {
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    background: var(--wp--preset--color--background) !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.3s ease !important;
}

.wp-block-group.has-light-gray-background-color .wp-block-columns .wp-block-column .wp-block-group:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12) !important;
}

/* Featured Projects - Zero gap images */
.wp-block-group.has-light-gray-background-color .wp-block-columns .wp-block-column .wp-block-group .wp-block-image {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
    border-radius: 16px 16px 0 0 !important;
    overflow: hidden !important;
}

.wp-block-group.has-light-gray-background-color .wp-block-columns .wp-block-column .wp-block-group .wp-block-image img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 16px 16px 0 0 !important;
    vertical-align: top !important;
    transition: all 0.3s ease !important;
}

.wp-block-group.has-light-gray-background-color .wp-block-columns .wp-block-column .wp-block-group .wp-block-image figure {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
}

/* Featured Projects - Content area gets padding */
.wp-block-group.has-light-gray-background-color .wp-block-columns .wp-block-column .wp-block-group .wp-block-group[style*="padding"] {
    padding: var(--wp--preset--spacing--medium) !important;
    margin: 0 !important;
}

/* Featured Projects - Image hover effect */
.wp-block-group.has-light-gray-background-color .wp-block-columns .wp-block-column .wp-block-group:hover .wp-block-image img {
    transform: scale(1.02) !important;
}

/* ========================================
   FORM ELEMENTS AND INTERACTIONS
   ======================================== */

/* Service Cards */
.wp-block-group[style*="border-radius:16px"] {
    transition: all 0.3s ease;
}

.wp-block-group[style*="border-radius:16px"]:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Form Elements */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
textarea,
select {
    border: 1px solid var(--wp--preset--color--border);
    border-radius: 8px;
    padding: 12px 16px;
    font-family: var(--wp--preset--font-family--worksans);
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
    border-color: var(--wp--preset--color--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

/* Search Block Styling */
.wp-block-search {
    border-radius: 8px;
}

.wp-block-search__input {
    border: 1px solid var(--wp--preset--color--border);
    border-radius: 8px;
    padding: 12px 16px;
    font-family: var(--wp--preset--font-family--worksans);
}

.wp-block-search__button {
    background: var(--wp--preset--color--primary);
    border: none;
    color: white;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.wp-block-search__button:hover {
    background: var(--wp--preset--color--secondary);
}

/* ========================================
   BLOG AND PAGINATION STYLES
   ======================================== */

/* Pagination */
.wp-block-query-pagination {
    margin-top: var(--wp--preset--spacing--xx-large);
}

.wp-block-query-pagination .page-numbers {
    display: inline-block;
    padding: 12px 16px;
    margin: 0 4px;
    border: 1px solid var(--wp--preset--color--border);
    border-radius: 8px;
    color: var(--wp--preset--color--heading);
    text-decoration: none;
    transition: all 0.3s ease;
}

.wp-block-query-pagination .page-numbers:hover,
.wp-block-query-pagination .page-numbers.current {
    background: var(--wp--preset--color--primary);
    color: white;
    border-color: var(--wp--preset--color--primary);
}

/* Social Links */
.wp-block-social-links .wp-social-link {
    transition: all 0.3s ease;
}

.wp-block-social-links .wp-social-link:hover {
    transform: translateY(-2px);
}

/* Portfolio Card Styling */
.legacy-real-estate-portfolio-card {
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.legacy-real-estate-portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Blog Archive Grid Layout - SIMPLIFIED TO MATCH SEARCH TEMPLATE */
.wp-block-query .wp-block-post-template.is-layout-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--wp--preset--spacing--large) !important;
/*    max-width: 1200px;*/
    margin: 0 auto;
}

.simple-blog .wp-block-query .wp-block-post-template.is-layout-grid{
    max-width: 100% !important;
}

/* Blog Archive Specific - Make Cards Wider to Match Portfolio */
.wp-block-query .legacy-real-estate-portfolio-card {
    max-width: none;
    width: 100%;
}

/* Portfolio Grid Specific - Keep Original Sizing */
.wp-block-columns .wp-block-column .wp-block-group {
    max-width: none;
    width: 100%;
}

/* MOBILE RESPONSIVE - SIMPLE OVERRIDE */
@media (max-width: 768px) {
    /* Force single column on mobile - simple approach */
    .wp-block-query .wp-block-post-template.is-layout-grid {
        grid-template-columns: 1fr !important;
        gap: var(--wp--preset--spacing--medium) !important;
    }
    
    /* Mobile blog grid - single column - MATCHING EXISTING RULE */
    .wp-block-query .wp-block-post-template.is-layout-grid {
        grid-template-columns: 1fr !important;
    }
    .property-block{
        grid-template-columns: auto auto;
    }
}

/* Blog Archive Specific - Make Cards Wider to Match Portfolio */
.wp-block-query .legacy-real-estate-portfolio-card {
    max-width: none;
    width: 100%;
}

/* Portfolio Grid Specific - Keep Original Sizing */
.wp-block-columns .wp-block-column .wp-block-group {
    max-width: none;
    width: 100%;
}

/* Blog Archive Featured Images */
.legacy-real-estate-portfolio-card .wp-block-post-featured-image {
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    height: 200px;
    margin: 0 !important;
    padding: 0 !important;
}

.legacy-real-estate-portfolio-card .wp-block-post-featured-image img {
    border-radius: 16px 16px 0 0;
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    margin: 0 !important;
    padding: 0 !important;
}

.legacy-real-estate-portfolio-card .wp-block-post-featured-image figure {
    margin: 0 !important;
    padding: 0 !important;
    height: 200px;
    overflow: hidden;
}

/* Blog Cards - Same Height as Portfolio Cards */
.legacy-real-estate-portfolio-card {
    padding: 0 !important;
    min-height: 420px;
    width: 100%;
    max-width: none;
}

.legacy-real-estate-portfolio-card > .wp-block-post-featured-image:first-child {
    margin-top: 0 !important;
    border-radius: 16px 16px 0 0;
}

/* Force Blog Archive Query to Use Full Available Width */
.wp-block-group .wp-block-query.alignwide {
/*    max-width: 1200px;*/
    width: 100%;
}

/* Override WordPress Default Query Constraints for Blog Cards */
.wp-block-query .wp-block-post-template {
    max-width: none;
    width: 100%;
}

/* Prevent child elements from inheriting shadow effects */
.legacy-real-estate-portfolio-card * {
    box-shadow: none !important;
}

.legacy-real-estate-portfolio-card:hover * {
    box-shadow: none !important;
}

/* ========================================
   PRICING CARD STYLING
   ======================================== */

/* Pricing Card Styling - Remove shadow effects completely */
.legacy-real-estate-pricing-card {
    transition: all 0.3s ease;
    position: relative;
    transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.legacy-real-estate-pricing-card:hover {
    transform: translateY(-4px) translateZ(0);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.legacy-real-estate-pricing-featured {
    position: relative;
    overflow: visible;
}

.legacy-real-estate-pricing-features {
    list-style: none;
}

.legacy-real-estate-pricing-features li {
    color: var(--wp--preset--color--body);
    font-weight: 500;
    padding-left: 0;
}

.legacy-real-estate-pricing-features li::before {
    content: "";
    margin-right: 0;
}

/* Complete text shadow elimination for pricing cards */
.legacy-real-estate-pricing-card,
.legacy-real-estate-pricing-card *,
.legacy-real-estate-pricing-card .wp-block-paragraph,
.legacy-real-estate-pricing-card .wp-block-heading,
.legacy-real-estate-pricing-card h1, .legacy-real-estate-pricing-card h2, .legacy-real-estate-pricing-card h3,
.legacy-real-estate-pricing-card h4, .legacy-real-estate-pricing-card h5, .legacy-real-estate-pricing-card h6,
.legacy-real-estate-pricing-card p, .legacy-real-estate-pricing-card span, .legacy-real-estate-pricing-card div {
    text-shadow: none !important;
    -webkit-text-shadow: none !important;
    -moz-text-shadow: none !important;
    filter: none !important;
    -webkit-filter: none !important;
    -moz-filter: none !important;
    -ms-filter: none !important;
    -o-filter: none !important;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.legacy-real-estate-pricing-card:hover,
.legacy-real-estate-pricing-card:hover *,
.legacy-real-estate-pricing-card:hover .wp-block-paragraph,
.legacy-real-estate-pricing-card:hover .wp-block-heading,
.legacy-real-estate-pricing-card:hover h1, .legacy-real-estate-pricing-card:hover h2, .legacy-real-estate-pricing-card:hover h3,
.legacy-real-estate-pricing-card:hover h4, .legacy-real-estate-pricing-card:hover h5, .legacy-real-estate-pricing-card:hover h6,
.legacy-real-estate-pricing-card:hover p, .legacy-real-estate-pricing-card:hover span, .legacy-real-estate-pricing-card:hover div {
    text-shadow: none !important;
    -webkit-text-shadow: none !important;
    -moz-text-shadow: none !important;
    filter: none !important;
    -webkit-filter: none !important;
    -moz-filter: none !important;
    -ms-filter: none !important;
    -o-filter: none !important;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   FOOTER NAVIGATION LISTS
   ======================================== */

/* Footer Navigation Lists */
footer .footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/*footer .footer-nav-list li {
    margin-bottom: var(--wp--preset--spacing--x-small);
}*/

footer .footer-nav-list li a {
    text-decoration: none;
    transition: all 0.3s ease;
    color: #fff;
    display: flex;
    gap: 10px;
    margin: 20px 0px;
}

.cover-padding {
    align-items: start;
    padding: 0;
}

.footer-head{
    margin-top: 0;
    clip-path: polygon(0 0, 100% 0, 88% 100%, 0% 100%);

}

footer .footer-nav-list li a:hover {
    color: var(--wp--preset--color--primary);
    transform: translateY(-2px);
}

footer .footer-col ul li a:before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 12px;
    content: "\f105";
    display: inline-block;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 30px;
}

.footer-gallery figure figure{
    height: 80px;
}
.footer-gallery figure img{
    border-radius: 10px;
    object-fit: cover;
}

/* FAQ's Section */
.FAQ details.faq-btm-title summary{ 
    padding: 5px 0px 5px 50px;
  list-style: none;
  position: relative;
}
.FAQ details.faq-btm-title summary:after {
    content: "\f067";
    font-family: "Font Awesome 5 Free";
    position: absolute;
    font-weight: 900;
    font-size: 12px;
    left: 0px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 30px;
}
.FAQ details[open].faq-btm-title summary:after{
    content: "\f068";
    font-family: "Font Awesome 5 Free";
    position: absolute;
    font-weight: 900;
    font-size: 12px;
    left: 0px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 30px;
}
.FAQ details[open].faq-btm-title > summary{
  background: var(--wp--preset--gradient--banner-background-main);
  color: var(--wp--preset--color--background);
  border-color: var(--wp--preset--color--secondary);
}

.FAQ details p {
    background: #fff !important;
    color: rgba(36, 36, 36, 1);
    padding: 14px;
    border-radius: 16px;
    margin: 0;
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */
@media (min-width: 300px) and (max-width: 600px){
    .foot-grid{
        grid-template-columns: auto;
    }
    .property-block{
        grid-template-columns: auto;
    }
    p.footer-detail-text {
        margin-left: 50px;
    }
    figure.footer-logo {
        display: flex;
        justify-content: center;
    }
    .copy-row{
        display: flex;
        justify-content: center;
    }
}
@media (min-width: 300px) and (max-width: 1023px){
        .header-logo h1 a {
        position: static;
        color: var(--wp--preset--color--primary);
        background: none;
        font-size: 20px;
        border: unset;
        display: inline;
        padding: 0;
    }
}
@media (max-width: 1024px){
    h6.land-name{
    line-height: unset !important;
}
}
@media (min-width: 1024px){
.legacy-real-estate-header .legacy-real-estate-main-navigation .wp-block-navigation-item{
    position: relative;
    padding: 20px 0px;
}
.legacy-real-estate-header .legacy-real-estate-main-navigation .wp-block-navigation-item ul li{
    position: relative;
    padding: 0px;
    width: 100%;
}
}
@media (min-width: 1024px) and (max-width: 1024px) {
    .legacy-real-estate-header .legacy-real-estate-main-navigation .wp-block-navigation-item {
        padding: 10px 0px !important;
    }
}
@media (min-width: 767px) and (max-width: 1920px){
    .service-owl{
        position: relative !important;
        z-index: 9;
    }
    .service-owl::after {
        content: '';
        background: var(--wp--preset--color--primary);
        position: absolute;
        left: -13%;
        top: -30px;
        width: 300px;
        height: calc(100% + 60px);
        z-index: -1;
    }

    .service-owl::before {
        content: '';
        background: var(--wp--preset--color--primary);
        position: absolute;
        right: -12%;
        top: -30px;
        width: 300px;
        height: calc(100% + 60px);
        z-index: -1;
    }
    .es-listings{
        position: relative !important;
        z-index: 999;
    }
    .es-listings::after {
        content: '';
        background: var(--wp--preset--color--primary);
        position: absolute;
        left: -13%;
        top: -30px;
        width: 300px;
        height: calc(100% + 60px);
        z-index: -1;
    }
    .es-listings::before{
        content: '';
        background: var(--wp--preset--color--primary);
        position: absolute;
        right: -12%;
        top: -30px;
        width: 300px;
        height: calc(100% + 60px);
        z-index: -1;
    }
}
@media (max-width: 1200px){
    .mail-address::after{
        display: none !important;
    }
    .empty-top  { 
        display:none !important;
     }
}
@media (min-width: 781px) and (max-width: 1200px){
    .top-address{
        flex-basis: 70% !important;
    }
}
@media (max-width: 767px){
    .topbar-detail{
        flex-wrap: wrap;
        justify-content: center;
        column-gap: 40px;
    }
    .header-social-icon{
        justify-content: center;
    }
    .menu-margin{
        display: grid !important;
        grid-template-columns: auto auto;
        grid-template-rows: auto auto;
        grid-template-areas:
            "logo logo"
            "menu btns";
        gap: 10px;
    }
    .header-logo  { grid-area: logo;
    }
    .header-menu { grid-area: menu;
    }
    .header-btns { grid-area: btns;
    }
    .menu-margin{
        text-align: center;
    }
    .banner-img img {
        height: 560px !important;
    }
    .testi-box{
        margin-left: 25%;
        margin-top: unset;
    }
}
@media (min-width: 781px) and (max-width: 999px){
    .header-logo ,.header-btns{
        flex-basis: 40% !important;
    }
    .header-menu{
         flex-basis: 20% !important;
    }
}
@media (min-width: 700px) and (max-width: 781px){
     .menu-margin{
        display: grid !important;
        grid-template-columns: auto auto;
        grid-template-rows: auto auto;
        grid-template-areas:"logo menu btns";
        gap: 10px;
}
.header-logo  { grid-area: logo;
 }
.header-menu { grid-area: menu;
 }
.header-btns { grid-area: btns;
 }
}
@media (min-width: 450px) and (max-width: 700px){
     .menu-margin{
        display: grid !important;
        grid-template-columns: auto auto;
        grid-template-rows: auto auto;
        grid-template-areas:"logo logo"
                            "menu btns";
        gap: 10px;
    }
    .header-logo  { 
        grid-area: logo;
    }
    .header-menu { 
        grid-area: menu;
    }
    .header-btns { 
        grid-area: btns;
    }
}
@media (min-width: 300px) and (max-width: 450px){
     .menu-margin{
        display: grid !important;
        grid-template-columns: auto auto;
        grid-template-rows: auto auto;
        grid-template-areas:"logo menu"
                            "btns btns";
        gap: 10px;
    }
    .header-logo  { 
        grid-area: logo;
    }
    .header-menu { 
        grid-area: menu;
    }
    .header-btns { 
        grid-area: btns;
    }
    .legacy-real-estate-header-cta{
        justify-content: center !important;
    }
    .property-gap{
        row-gap: 0;
    }
}
@media (min-width: 768px) and (max-width: 1023px){
.main-banner-section h1{
    font-size: 48px !important;
    }
    .banner-img img {
        height: 450px !important;
    }
    .testi-box{
        margin-top: 22% !important;
        margin-left: 34% !important;
    }
    .property-gap{
        row-gap: 0;
    }
    .foot-grid{
        grid-template-columns: auto auto;
    }
    .service-owl{
        grid-template-columns: auto auto;
    }
    p.footer-detail-text {
        margin-left: 30px;
    }
    .footer-contact{
        padding-right: 10px;
        padding-left: 10px;
    }
    .topbar .wp-block-social-links, .topbar .wp-block-social-links.has-normal-icon-size {
        display: flex;
        justify-content: center;
    }
    .footer-col{
        display: grid !important;
        grid-template-columns: auto auto;
    }
    .copy-row{
        display: flex;
        justify-content: center;
    }
}
@media (min-width: 1440px) and (max-width: 1600px){
    .testi-box{
        margin-left: 45% !important;
    }
    .top-address{
        flex-basis: 50% !important;
    }
    .mail-address::after{
        display: none !important;
    }
    h1.banner-heading {
    font-size: 103px !important;
}
}
@media (max-width: 768px) {
    /* Base responsive */
    .wp-block-columns {
        flex-direction: column;
    }

/*    .service-owl::after{
        left: -30%;
    }

    .service-owl::before{
        right: -30%;
    }*/
    
    .wp-block-column {
        flex-basis: 100% !important;
    }
    
    h1, .has-huge-font-size {
        font-size: 2.5rem !important;
    }
    
    h2, .has-xxxx-large-font-size {
        font-size: 2rem !important;
    }
    
    /* Services mobile adjustments - Works for BOTH old and new patterns */
    .legacy-real-estate-service-card-1,
    .legacy-real-estate-service-card-2,
    .legacy-real-estate-service-card-3,
    .has-service-card-1-gradient-gradient-background,
    .has-service-card-2-gradient-gradient-background,
    .has-service-card-3-gradient-gradient-background {
        height: 350px !important;
        padding: var(--wp--preset--spacing--large) var(--wp--preset--spacing--medium) !important;
    }
    
    .legacy-real-estate-service-card-1:hover,
    .legacy-real-estate-service-card-2:hover,
    .legacy-real-estate-service-card-3:hover,
    .has-service-card-1-gradient-gradient-background:hover,
    .has-service-card-2-gradient-gradient-background:hover,
    .has-service-card-3-gradient-gradient-background:hover {
        transform: translateY(-8px) scale(1.01) !important;
    }
    
    /* Testimonial mobile adjustments */
    .legacy-real-estate-testimonial-card {
        min-height: 400px !important;
        padding: var(--wp--preset--spacing--large) !important;
    }
    
    /* Mobile blog grid - single column */
    .wp-block-query .wp-block-post-template.is-layout-grid {
        grid-template-columns: 1fr !important;
        gap: var(--wp--preset--spacing--medium) !important;
    }
    
    /* Ensure cards are full width */
    .legacy-real-estate-portfolio-card {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: var(--wp--preset--spacing--large) !important;
    }
}
@media (min-width: 1024px) and (max-width: 1400px) {
     .mail-address::after{
        display: none;
    }
    .main-banner-section h1{
    font-size: 70px !important;
    }
    .banner-img img {
        height: 480px !important;
    }
    .testi-box{
        margin-top: -76% !important;
        margin-left: 0% !important;
    }
    .foot-grid{
        grid-template-columns: auto auto;
    }
    p.footer-detail-text {
        margin-left: 50px;
    }
    .service-owl{
        grid-template-columns: auto auto;
    }
    figure.footer-gallery{
    display: grid;
    grid-template-columns: auto auto;
}
    figure.foot-gal-img{
    width: 100% !important;
}
}
@media (max-width: 999px) {
    .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
        display: none;
    }
        .wp-block-navigation__responsive-container-open:not(.always-shown)
 {
        display: block;
    }
     /* MOBILE HEADER - Logo left, hamburger right, single row */
    .legacy-real-estate-header-container {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    /* Mobile navigation - hamburger button */
    .legacy-real-estate-header .wp-block-navigation .wp-block-navigation__responsive-container-open {
        background: var(--wp--preset--color--primary) !important;
        color: white !important;
        border: none !important;
        border-radius: 8px !important;
        padding: 12px !important;
        width: 48px !important;
        height: 48px !important;
        cursor: pointer !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* Mobile menu when open */
    .legacy-real-estate-header .wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open {
        background: white !important;
        padding: 40px 20px !important;
    }
    
    /* Vertical menu items */
    .legacy-real-estate-header .wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open ul {
        flex-direction: column !important;
        gap: 0 !important;
        align-items: stretch !important;
        width: 100%;
    }
    
    /* Menu item styling */
    .legacy-real-estate-header .wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
        width: 100% !important;
        margin: 0 !important;
        border-bottom: 1px solid #eee !important;
    }
    
    .legacy-real-estate-header .wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:last-child {
        border-bottom: none !important;
    }
    
    /* Menu link styling */
    .legacy-real-estate-header .wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item a {
        display: block !important;
        padding: 12px 0 !important;
        text-align: center !important;
        font-size: 18px !important;
        font-weight: 600 !important;
        color: var(--wp--preset--color--heading) !important;
        text-decoration: none !important;
    }
    
    .legacy-real-estate-header .wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item a:hover {
        color: var(--wp--preset--color--primary) !important;
    }
    
    /* MOBILE TEAM SECTION - Professional styling */
    .legacy-real-estate-team-section .wp-block-image img[style*="border-radius:100px"] {
        width: 120px !important;
        height: 120px !important;
        border: 3px solid var(--wp--preset--color--surface) !important;
    }
}
@media (min-width: 1399px) {
/*    .main-banner-section h1{
    font-size: 100px !important;
    }*/
    .banner-img img {
        height: 500px !important;
    }
} 
@media (min-width: 1100px) and (max-width: 1200px) {
    .legacy-real-estate-header .legacy-real-estate-main-navigation .wp-block-navigation-item {
        padding: 36px 0px !important;
        margin-right: 8px !important;
    }
}
/* ========================================
   PRINT STYLES
   ======================================== */

/* Print Styles */
@media print {
    .wp-block-navigation,
    .wp-block-buttons,
    .wp-block-social-links {
        display: none;
    }
    
    .wp-block-group {
        box-shadow: none !important;
        transform: none !important;
    }
}


/* rental plugin  */
.mphb_sc_rooms-wrapper.mphb-room-types.property-rental {
    display: grid;
    grid-template-columns: auto auto auto;
    gap: 20px;
}

.property-rental a{
    text-decoration: none;
}

.property-rental p.post-thumbnail.mphb-loop-room-thumbnail{
    margin: 0;
    padding: 0;
}

.property-rental .mphb_room_type{
    background: #ffffff;
    border-radius: 30px;
}

.property-rental.mphb_sc_rooms-wrapper .mphb-room-type:not(:first-of-type){
    margin-top: unset;
}

.property-rental p.post-thumbnail.mphb-loop-room-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 30px 30px 0px 0px;
}

h2.mphb-room-type-title.entry-title {
    margin: 0;
    font-size: 22px;
}

h3.mphb-room-type-details-title {
    display: none;
}

h2.mphb-room-type-title.entry-title,ul.mphb-loop-room-type-attributes,p.mphb-view-details-button-wrapper,.mphb-room-type p{
    padding: 0px 20px;
}
a.button.mphb-view-details-button {
    background: var(--wp--preset--color--primary);
    padding: 10px;
    color: #fff;
    border-radius: 8px;
}
ul.mphb-loop-room-type-attributes {
    margin-left: 18px;
}

a.proper-tittle {
    text-decoration: none;
}
.video-banner-main-wrap-second {
    display: none;
}
#play-video-btn{
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border: none;
    border-radius: 50%;
    width: 90px;
    height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

#close-video{
        position:absolute;
        top:20px;
        right:20px;
        background:#fff;
        color:#000;
        border:none;
        border-radius:50%;
        width:45px;
        height:45px;
        cursor:pointer;
        font-size:20px;
        font-weight:bold;
        box-shadow:0 3px 10px rgba(0,0,0,0.4);
}