/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* ================================
   PARENT SETTINGS
================================ */
/* :root {
    --primary-gold: ;
    --dark-navy: #0a1828;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --text-dark: #333333;
} */
:root {
    --primary-gold: #d30023;
    --primary-silver: #c5a059;
    --dark-navy: #303441;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --text-dark: #1F1F1F;
}
.mw-container {margin:-22px 0 0 0;}
a {color:var(--primary-gold);text-decoration: none;}
.comments-area a, .page-content a {text-decoration: none;}
[type=button]:focus, [type=button]:hover, [type=submit]:focus, [type=submit]:hover, button:focus, button:hover {color:#fff;background:var(--primary-gold);border:2px solid var(--primary-gold);text-transform: uppercase !important;}
[type=button]:hover, [type=submit]:hover, button:hover {color:#fff;background:transparnet !important;border:2px solid var(--primary-gold);text-transform: uppercase !important;}



.bootstrap-realtypress .btn-primary {text-transform: uppercase !important;}
.bootstrap-realtypress .btn-primary:hover {background:var(--primary-silver) !important;border-color:var(--primary-silver) !important;}

.cta-button { background-color: var(--primary-silver); font-size: 20px; font-weight: 600; display: inline-block; padding: 14px 28px; border-radius: 50px; color: #fff; text-decoration: none; font-weight: 700; transition: 0.3s; }
.cta-button:hover { transform: translateY(-2px); box-shadow: 0 5px 10px rgba(0,0,0,0.2);color:#fff; }
.cta-button-elementor { transition: 0.3s;}
.cta-button-elementor:hover {transform: translateY(-2px);}

/* .res-btn { 
    display: inline-block; 
    margin-top: 15px; 
    padding: 10px 20px; 
    background: #0a1828; 
    color: #fff; 
    text-decoration: none; 
    border-radius: 5px; 
    font-weight: 600; 
    text-transform: uppercase; 
    font-size:0.8em;
}
.res-btn:hover { color:#fff; } */

/* Optional CTA inside hero */
/* .page-hero a, .cta-button {
    background-color: var(--primary-silver);
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    border-style: solid;
    border-color: var(--primary-silver);
    border-radius: 4px;
    color:#fff;
    padding: 16px 25px 16px 25px;
    display:inline-block;
    transition:.25s ease;
    box-shadow:0 10px 30px rgba(0,0,0,.35);
}
.page-hero a:hover .cta-button:hover {
    transform:translateY(-3px);
    box-shadow:0 15px 40px rgba(0,0,0,.5);
}
.cta-button {
    background-color: var(--e-global-color-primary);
    border-color: var(--e-global-color-primary);
}
.cta-button:hover {
    background-color: #54595F00;
    color: var(--primary-silver);
} */



/* ================================
   HEADER
================================ */
.menu-item a.hfe-menu-item {border-radius:8px;}
.menu-item.current-menu-item a.hfe-menu-item:hover, .menu-item a.hfe-menu-item:focus {background:var( --e-global-color-primary ) !important;color:#fff !important;}
/* .bx-wrapper .bx-controls-direction a {z-index: 90 !important;} */
@media (min-width: 1025px) {.mw-fav-desktop {display: none !important;}}
@media (max-width: 1024px) {.mw-fav-mobile {display: none !important;}}
.bootstrap-realtypress .rps-favorited-heart {z-index:90 !important;}
.site-content {padding-bottom:0;}
.title-box_style_1 {display:none;}
.ehf-header #masthead {box-shadow:0px 0px 10px rgba(0,0,0, 0.2);margin-bottom:20px;}
.stm_mobile_switcher {padding: 10px !important; width: 50px !important; height: 40px !important; opacity: 1 !important; margin: 0 !important; overflow: visible !important;}
.stm_nav_menu .stm_mobile_switcher.active:after {display:block !important;}
.stm_nav_menu.active .stm_mobile_switcher.active {top:-999em;}
.menu-main-menu.div.active {top:-999em;}
.title-box_style_1 .breadcrumbs-wrap .breadcrumbs {display:none;}

.page-header {display:none !important;}
.eael-tabs-nav ul li:before {display:none;}
.eael-tabs-nav ul li {width:25%;}
.heading-title {position: relative; text-transform: uppercase; padding-bottom: 12px; margin-bottom: 36px;display:block;}
.heading-title:after {content: ''; display: inline-block; position: absolute; bottom: 0; left:0; right:0; max-width: 90px; width: 50%; margin: 0 auto; height: 2px; background: #d30023;}

/*TABLET MOBILE*/
.hfe-creative-menu, .hfe-creative-menu a {z-index: 999999999 !important;}
@media screen and (min-width: 1024px){
.stm_nav_menu .stm_mobile_switcher {display:none !important;}

}
@media (max-width: 1024px){
.stm_nav_menu .stm_mobile_switcher {display:block !important;}

}

@media (max-width: 768px){
.elementor-icon-box-wrapper{text-align:center !important;}

.eael-tabs-nav ul li {width:47%}
	
.elementor-8542 .elementor-element.elementor-element-b254905 .elementor-repeater-item-b69e215 .swiper-slide-bg {background-position:-100px 0;}	
	
.heading-title {text-align:left;}
.heading-title:after {right:0;left:0;}

}

@media (max-width: 425px){
.contact-karan-photo {float:right;}
.elementor-8542 .elementor-element.elementor-element-b254905 .elementor-repeater-item-b69e215 .swiper-slide-bg {background-position:-300px 0;}	

.elementor-icon-box-wrapper{text-align:center;}

.heading-title {text-align:center;}
.heading-title:after {right:0;left:0;}

}

/*HEADER END*/

/* ================================
   FOOTER
================================ */
.realtor-logo {width: 100%; max-width: 176px !important; margin: 0 20px 15px 0; display: inline-block; float: left;}
.rps-footer {} /*display:none !important;*/
.elementor-message {color:green;text-align:center;}
.crea_text {justify-content: left; padding-left: 0px; padding-right: 0px;margin: 0; line-height: 16px;color:#aaa; font-size: 13px;margin-bottom:20px;}
.crea_text .realtorLogo span {background: url(https://soldbykaran.com/wp-content/uploads/2020/10/realtorLogo.svg) no-repeat; background-size: auto 100%; display: block; width: 35px; min-width: 30px; height: 30px; float: left;}
.crea_text .mlsLogo span{background: url(https://soldbykaran.com/wp-content/uploads/2020/10/mlsLogo.svg) no-repeat; background-size: auto 100%; display: block; width: 75px; min-width: 65px; height: 30px; float: left; margin-top: 2px;}

.grecaptcha-badge {visibility: hidden;}

.subscribe-left {float: left !important;width: 58% !important;}
.subscribe-right {float: right !important;width: 40% !important;background:#d30023;border:2px solid #d30023 !important;color:#fff;text-transform:uppercase;font-weight: bold;}
.subscribe-right:hover {background:transparent;}
/*FOOTER END*/

/* ================================
   HOME PAGE
================================ */
.bx-wrapper .bx-controls-direction a {z-index: 9 !important;}
/* .home-sliders .bx-wrapper .bx-wrapper {margin:0;padding:0;max-width: unset !important;} */
.home-big-button {border-radius: 10px !important;}
.home-big-button .elementor-icon-box-description a {font-size: 1rem; font-weight: bold; border: 1px solid #fff; padding: 6px 13px 6px 15px; text-decoration: none !important; border-radius: 50px; background-color: #fff; color: #111 !important; text-transform: uppercase;}
.home-big-button .elementor-icon-box-description a:hover {background:transparent;color:#fff !important;}


/* ================================
   BLOG - LAYOUT
================================ */
.blog-container {
  max-width: 1200px;
  margin: auto;
  padding: 40px 20px;
}

/* Hero */
.blog-hero,
.archive-header {
  text-align: center;
  margin-bottom: 50px;
}

.blog-hero h1,
.archive-header h1 {
  font-size: 2.4rem;
}

.blog-hero p {
  max-width: 720px;
  margin: 10px auto 0;
  color: #555;
}

/* ================================
   BLOG - GRID VIEW
================================ */
.blog-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Desktop */
@media (min-width: 1200px) {
  .blog-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1199px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 767px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* LIST VIEW */
.blog-grid.list-view {
  grid-template-columns: 1fr;
}

.blog-grid.list-view .post-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
}

.blog-grid.list-view .post-thumb img {
  height: 100%;
  min-height: 180px;
}

@media (max-width: 767px) {
  .blog-grid.list-view .post-card {
    grid-template-columns: 1fr;
  }
}

/* ================================
   BLOG - POST CARD
================================ */
.post-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  transition: transform .25s ease, box-shadow .25s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.post-thumb img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.post-card-content {
  padding: 22px;
}

.post-card h2 {
  font-size: 1.15rem;
  margin: 10px 0;
}

.post-meta {
  font-size: 12px;
  color: #777;
}

/* ================================
   BLOG - FEATURED POST
================================ */
.featured-post {
  position: relative;
  margin-bottom: 50px;
}

.featured-post img {
  width: 100%;
  border-radius: 16px;
}

.featured-content {
  position: absolute;
  bottom: 30px;
  left: 30px;
  max-width: 60%;
  color: #fff;
}

.featured-content span {
  display: inline-block;
  background: #000;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  margin-bottom: 10px;
}

/* ================================
   BLOG - TOOLBAR
================================ */
.blog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 30px 0;
  gap: 15px;
}

.blog-toolbar-left {
  display: flex;
  gap: 8px;
}

.blog-toolbar button {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #fff;
  font-weight: 600;
  cursor: pointer;
}

.blog-toolbar button.active {
  background: #111;
  color: #fff;
}

.blog-toolbar select {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

/* ================================
   BLOG - PAGINATION
================================ */
.pagination {
  margin: 60px 0;
  text-align: center;
}

.pagination a,
.pagination span {
  display: inline-block;
  margin: 0 6px;
  padding: 10px 14px;
  border-radius: 6px;
  background: #eee;
}

.pagination .current {
  background: #111;
  color: #fff;
}

/* ================================
   BLOG - SINGLE POST LAYOUT
================================ */

.single-post-layout {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 40px;
}

@media (max-width: 991px) {
  .single-post-layout {
    grid-template-columns: 1fr;
  }
}

.single-featured-image img {
  width: 100%;
  border-radius: 12px;
  margin: 20px 0;
}

.single-content {
  line-height: 1.8;
}

/* ================================
   BLOG - NEWSLETTER (CARD STYLE)
================================ */
.post-card.newsletter-card,
.newsletter-inline {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  padding: 32px;
  text-align: center;
}

/* Icon */
.post-card.newsletter-card::before,
.newsletter-inline::before {
  content: "✉️";
  font-size: 40px;
  display: block;
  margin-bottom: 15px;
}

/* Text */
.newsletter-card h2,
.newsletter-inline h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.newsletter-card p,
.newsletter-inline p {
  color: #555;
  margin-bottom: 20px;
}

/* Newsletter plugin */
.tnp {
  max-width: 100%;
}

.tnp-field-email input {
  width: 100%;
  padding: 14px;
  border-radius: 6px;
  border: 1px solid #ddd;
}

.tnp-submit {
  width: 100%;
  padding: 14px;
  margin-top: 10px;
  background: #111;
  color: #fff;
  border-radius: 6px;
  border: none;
  font-weight: 600;
  cursor: pointer;
}

.tnp-submit:hover {
  background: #000;
}

/* ================================
   BLOG - AUTHOR + NAVIGATION
================================ */
.author-box {
  display: flex;
  gap: 15px;
  padding: 30px;
  background: #f8f8f8;
  border-radius: 12px;
  margin-top: 50px;
}

.post-navigation {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 60px 0;
}

.post-navigation a {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 45%;
}

.post-navigation img {
  border-radius: 50%;
  width: 60px;
  height: 60px;
  object-fit: cover;
}

/* ================================
   BLOG - SIDEBAR (THEME NORMALIZED)
================================ */
/* Sticky container - apply this class to your sidebar column in Elementor/PHP */
.blog-sidebar, 
.rps-sidebar-col {
  position: sticky;
  top: 155px; /* Adjusted to clear your 135px header + gap */
  align-self: flex-start;
}

/* Unified widget container */
.sidebar-widget, 
.blog-bottom-widget,
.blog-sidebar .panel {
    background: #fff !important;
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    margin-bottom: 30px;
    overflow: hidden; /* Clips the background to the border radius */
}

/* Widget Titles - Navy Background with Gold Accent */
.sidebar-widget h4, 
.blog-bottom-widget h4,
.blog-sidebar .panel-heading {
    background: #0a1828 !important; /* Navy */
    color: #fff !important;
    padding: 12px 15px !important;
    font-size: 16px !important;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 15px 0 !important;
    border-left: 4px solid var(--primary-gold) !important; /* Gold accent */
    border-bottom: none !important;
}

/* Inner padding for widget content */
.sidebar-widget > *:not(h4),
.blog-bottom-widget > *:not(h4) {
    padding: 0 20px 20px 20px;
}

/* Reset plugin specific widget internal styles */
.blog-sidebar .widget,
.blog-sidebar .panel-body {
  background: none !important;
  border: none !important;
  padding: 0 20px 20px 20px !important;
  box-shadow: none !important;
}

/* Disable sticky on mobile */
@media (max-width: 991px) {
  .blog-sidebar, 
  .rps-sidebar-col {
    position: relative;
    top: 0;
  }
}

/* ================================
   SINGLE PROPERTY - SIDEBAR - CTA BUTTONS
================================ */
/* Hide the first sidebar widget to prevent ghosting/spacing issues */
.right-sidebar .sidebar-widget:first-of-type {
    display: none !important;
}

/* --- CTA Grid Layout --- */
.custom-sidebar-ctas {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important; /* Force 4 columns */
    gap: 8px;
    margin: 20px 0;
    width: 100%;
}

/* Force grid to ignore any empty P or BR tags WordPress injects */
.custom-sidebar-ctas > p, 
.custom-sidebar-ctas > br {
    display: none !important;
}

/* --- The Button Style --- */
.bootstrap-realtypress .custom-sidebar-ctas a.cta-btn,
.custom-sidebar-ctas a.cta-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 12px 5px !important;
    background-color: var(--primary-gold) !important;
    border: 2px solid var(--primary-gold)  !important;
    color: #FFFFFF !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 11px !important; /* Smaller for 4-in-a-row */
    text-transform: uppercase !important;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    min-width: 0; /* Prevents overflow */
}

/* FontAwesome Icon Styling (White) */
.custom-sidebar-ctas a.cta-btn i {
    position: absolute;
    left: 8px;
    font-size: 14px;
    color: #FFFFFF !important;
    font-style: normal;
}

.cta-text {
    width: 100%;
    text-align: center;
    padding-left: 15px;
}

/* --- Hover State --- */
.bootstrap-realtypress .custom-sidebar-ctas a.cta-btn:hover {
    border-color: var(--primary-silver) !important;
    background: var(--primary-silver) !important;
    color: #fff  !important;
    cursor: pointer;
}

.custom-sidebar-ctas a.cta-btn:hover i {
    color: #fff  !important;
}

/* --- Responsive Breakpoints --- */

/* Tablet: 2x2 */
@media (max-width: 1024px) {
    .custom-sidebar-ctas {
        grid-template-columns: 1fr 1fr !important;
    }
    .custom-sidebar-ctas a.cta-btn {
        font-size: 13px !important;
    }
}

/* Mobile: 1 Column Stacked */
@media (max-width: 767px) {
    .custom-sidebar-ctas {
        grid-template-columns: 1fr !important;
    }
    .custom-sidebar-ctas a.cta-btn {
        font-size: 15px !important;
        padding: 15px !important;
    }
}

/* Tablet: 2 by 2 (Between 768px and 1024px) */
@media (max-width: 1024px) {
    .custom-sidebar-ctas {
        grid-template-columns: 1fr 1fr;
    }
}

/* Mobile: 1 Column (Below 767px) */
@media (max-width: 767px) {
    .custom-sidebar-ctas {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .custom-sidebar-ctas a.cta-btn {
        font-size: 15px;
        padding: 15px 10px;
    }
}

/* --- Lightbox Overlay --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 24, 40, 0.9); /* Dark Navy Overlay */
    z-index: 99999;
    display: none;
    justify-content: center;
    align-items: flex-start; /* Align to top for better mobile scrolling */
    padding: 20px;
    overflow-y: auto; /* Allows background scroll if needed */
}

/* --- Modal Container --- */
.modal-inner {
    background: #fff;
    border-radius: 12px;
    position: relative;
    max-width: 500px;
    width: 100%;
    margin: 40px auto; /* Space from top */
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    max-height: 85vh; /* Prevents disappearing off-screen */
}

/* --- Sticky Modal Header --- */
.modal-header {
    padding: 20px 40px 15px 25px;
    background: #fff;
    border-bottom: 2px solid var(--primary-gold); /* Gold accent */
    border-radius: 12px 12px 0 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.modal-header h3 {
    margin: 0;
    color: #0a1828;
    font-size: 1.2rem;
}

/* --- Scrollable Form Area --- */
.modal-body {
    padding: 25px;
    overflow-y: auto; /* This makes the form scrollable */
    flex-grow: 1;
    -webkit-overflow-scrolling: touch;
}

/* --- Fixed Close Button --- */
.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #0a1828;
    z-index: 11;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eee;
    border-radius: 50%;
}

/* --- Mobile Specific Fixes --- */
@media (max-width: 767px) {
    .modal-overlay {
        padding: 10px;
    }
    .modal-inner {
        margin: 20px auto;
        max-height: 90vh;
    }
    
    /* CTA Reordering on Mobile */
    .rps-property-single-header {
        display: flex;
        flex-direction: column;
    }
    .sidebar-ctas-mobile {
        order: 2;
        margin-top: 15px;
    }
    .rps-pricing {
        order: 1;
    }
}


/* ===============================
   SINGLE PROPERTY - GALLERY
   =============================== */
.bootstrap-realtypress .rps-single-listing {max-width:1140px; margin:0 auto;}
.rps-gallery-main {
	position: relative;
	background: #f7f7f7;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 10px 28px rgba(0,0,0,.08);
}

.rps-gallery-main img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: contain;
}

/* SOLD */
.rps-ribbon-sold {
	position: absolute;
	top: 15px;
	left: -40px;
	background: #d30023;
	color: #fff;
	padding: 6px 45px;
	transform: rotate(-45deg);
	font-size: 12px;
	font-weight: 700;
	z-index: 5;
}

/* THUMBNAILS */
.rps-gallery-thumbs {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
	height: 100%;
	overflow-y: auto;
}

@media (max-width: 991px) {
	.rps-gallery-thumbs {
		display: flex;
		grid-template-columns: none;
		overflow-x: auto;
		overflow-y: hidden;
		gap: 8px;
		padding-top: 12px;
	}
}

/* THUMB */
.rps-thumb {
	position: relative;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 6px;
	background: #ddd;
	cursor: pointer;
	overflow: hidden;
	transition: border-color .2s ease;
	flex: 0 0 auto;
	width: 100%;
}

@media (max-width: 991px) {
	.rps-thumb {
		width: 80px;
	}
}

.rps-thumb::before {
	content: '';
	display: block;
	padding-top: 100%;
}

.rps-thumb img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: .7;
	transition: opacity .2s ease;
}

.rps-thumb:hover img,
.rps-thumb.active img {
	opacity: 1;
}

.rps-thumb.active {
	border-color: var(--primary-gold);
}

.rps-gallery-main {
    position: relative; /* Ensure this is relative */
}

/* Full Height Navigation Overlays */
.rps-nav-btn {
    position: absolute;
    top: 0;
    height: 100%;
    width: 15%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    cursor: pointer;
    user-select: none;
    transition: background 0.3s ease;
}

.prev-btn { left: 0; }
.next-btn { right: 0; }

.rps-nav-btn span {
    color: #fff;
    font-size: 24px;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease, background 0.3s ease;
}

.rps-gallery-main:hover .rps-nav-btn span {
    opacity: 1;
}

.rps-nav-btn:hover span {
    background: rgba(255,255,255,0.3);
}

/* Height Constraint for Thumbs */
@media (min-width: 992px) {
    .rps-gallery-thumbs {
        max-height: 0; /* Will be set by JS to match main image exactly */
        height: 100%;
    }
}

@media (max-width: 991px) {
    .rps-property-photo-row {
        overflow: hidden !important;
        /* Force the row to stay put */
        display: block !important; 
    }

    .rps-gallery-thumbs {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        gap: 8px;
        padding: 12px 0px;
        /* Key fix: Use max-width to prevent container from stretching the page */
        max-width: 100%; 
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }

    .rps-thumb {
        flex: 0 0 80px !important;
        width: 80px !important;
        scroll-snap-align: center;
    }
}

/* ================================
   LISTINGS PAGE - LAYOUT
================================ */
/* --- DESKTOP BEHAVIOR (768px+) --- */
@media (min-width: 768px) {
    .result-filter-frm .panel {
        display: flex !important;
        flex-direction: column;
        height: calc(100vh - 155px);
        position: sticky;
        top: 155px;
        margin-bottom: 20px;
    }
    .result-filter-frm .panel-body {
        display: block !important;
        overflow-y: auto;
        flex: 1;
        padding: 15px;
    }
    .result-filter-frm .panel-footer {
        display: block !important;
        padding: 15px;
        border-top: 1px solid #eee;
    }
}

/* --- MOBILE BEHAVIOR (767px and below) --- */
@media (max-width: 767px) {
    .result-filter-frm.is-sticky {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 9999;
    }

    .result-filter-frm:not(.is-open) .panel-body,
    .result-filter-frm:not(.is-open) .panel-footer {
        height: 0;
        margin: 0;
        padding: 0;
        visibility: hidden;
        overflow: hidden;
        opacity: 0;
    }

    .result-filter-frm:not(.is-open) .panel {
        border: none;
        background: transparent;
        margin-bottom: 10px;
    }

    /* FULL SCREEN OPEN STATE */
    .result-filter-frm.is-open {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        /* Using dvh (dynamic viewport height) to account for browser bars */
        height: 100dvh !important; 
        z-index: 10000;
        background: #fff;
    }

    .result-filter-frm.is-open .panel {
        height: 100%;
        display: flex;
        flex-direction: column;
        margin: 0;
        border: none;
    }

    .result-filter-frm.is-open .panel-body {
        display: block !important;
        visibility: visible;
        opacity: 1;
        flex: 1;
        overflow-y: auto;
        padding: 20px;
    }

    .result-filter-frm.is-open .panel-footer {
        display: block !important;
        visibility: visible;
        opacity: 1;
        padding: 15px 15px calc(15px + env(safe-area-inset-bottom)); /* Pushes button above mobile browser bar */
        background: #fff;
        border-top: 1px solid #eee;
        min-height: 80px; /* Ensures button has enough room */
    }

    .result-filter-frm .panel-heading {
        cursor: pointer;
        background: #0a1828 !important;
        color: #fff !important;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
    }

    .result-filter-frm .panel-heading::after {
        content: '\f078';
        font-family: "Font Awesome 5 Free", "FontAwesome";
        font-weight: 900;
        transition: transform 0.3s ease;
    }

    .result-filter-frm.is-open .panel-heading::after {
        transform: rotate(180deg);
    }
}

.rps-crea-terms-wrap .btn .fa-check {display:none !important;}
.rps-crea-terms-wrap .btn {width:100% !important;}
.bootstrap-realtypress .rps-favorites .rps-favorites-result .rps-remove-favorite {color:#fff !important;}
.rps-single-listing-information-link {color:#aaa !important;}

/* Sticky sidebar for RealtyPress single listing */
.bootstrap-realtypress {margin:0 !important;}
.mw_sidebar_container {}
.mw_sidebar_inner {
    position: sticky;
    top: 00px; /* adjust for header height */
    align-self: flex-start;
    margin-bottom:10px;
}

@media (max-width: 768px) {
  #page {overflow: hidden;} 
}
@media (min-width: 769px) {
  #page {overflow: visible;} /**/
  .single-rps_listing .rps-single-listing .row > .col-md-3.col-sm-4.col-xs-12, 
  .page-id-9514 .row-property-result > .col-md-3.col-sm-4.col-xs-12,
  .post-type-archive-rps_listing .row-property-result .col-md-3.col-sm-4.col-xs-12  {
    position: sticky !important;
    top: 00px; /* adjust for header height */
    align-self: flex-start;
    margin-bottom:10px;
  }


}
/* ================================
   LISTINGS PAGE - GRID FIX
================================ */
/* Remove all clearing spans */
.rps-grid-result .clearfix.visible-xs,
.rps-grid-result .clearfix.visible-sm,
.rps-grid-result .clearfix.visible-md,
.rps-grid-result .clearfix.visible-lg  {
    display: none !important;
}

/* Force the row to behave as a Flex container */
.rps-grid-result .row {
    display: flex !important;
    flex-wrap: wrap !important;
}

/* 1 Column: Mobile (Under 768px) */
@media (max-width: 767px) {
    .rps-grid-result .listing-container {
        width: 100% !important;
    }
}

/* 2 Columns: Tablets/Small Laptops (768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .rps-grid-result .listing-container {
        width: 50% !important;
        display: flex; /* Makes the card inside fill the height */
    }
}

/* 3 Columns: Medium Desktop (992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .rps-grid-result .listing-container {
        width: 33.333% !important;
        display: flex;
    }
}

/* 4 Columns: Large Desktop (1200px and up) */
@media (min-width: 1200px) {
    .rps-grid-result .listing-container {
        width: 25% !important;
        display: flex;
    }
}

/* Optional: Forces the white box (rps-property-result) to fill the full height of the flex column */
.rps-grid-result .rps-property-result {
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* ===============================
   LISTINGS - MAP-VIEW  FULL-HEIGHT.
   =============================== */
@media (min-width: 768px) {
    
    /* Only trigger these rules if the Map button is active */
    /* We target the container only when the map results are visible */
    
    .col-property-result:has(.rps-result-view-map.active) {
        height: calc(100vh - 150px) !important; /* Adjust 150px based on your header height */
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
    }

    .col-property-result:has(.rps-result-view-map.active) .col-inner-result {
        display: flex !important;
        flex-direction: column !important;
        height: 100% !important;
    }

    /* Target the map panel specifically while in map view */
    .col-property-result:has(.rps-result-view-map.active) .panel.panel-default,
    .col-property-result:has(.rps-result-view-map.active) .panel-body,
    .col-property-result:has(.rps-result-view-map.active) #rps-result-wrap,
    .col-property-result:has(.rps-result-view-map.active) #rps-map {
        flex-grow: 1 !important;
        height: 100% !important;
        min-height: 0 !important;
        display: flex !important;
        flex-direction: column !important;
    }

    /* Ensure the map engine fills the newly stretched div */
    .leaflet-container, .gm-style {
        height: 100% !important;
        width: 100% !important;
    }
}

/* 1. RESTORE MAP ANIMATIONS 
   Overwrites the "prefers-reduced-motion" rule that freezes map tile transitions */
html .leaflet-container *, 
html .leaflet-zoom-animated, 
html .leaflet-tile-pane * {
    transition-duration: 175ms !important; /* Standard Leaflet zoom speed */
    transition-delay: 0s !important;
}
html .leaflet-container {z-index: 90 !important;}



/* ===============================
   CUSTOM 404 - PAGE
   =============================== */
/* --- LUXURY 404 STYLING --- */
.error-404-luxury {
    padding:2em 0 4em;
    background-color: #fff;
    overflow: hidden; /* Prevents large text from causing horizontal scroll */
}

/* THE SOLD BEHIND 404 VISUAL */
.visual-404-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

.bg-text {
    position: absolute;
    font-size: 16vw; /* Scaled for desktop */
    font-weight: 900;
    color: #f7f7f7; 
    z-index: 1;
    letter-spacing: -2px;
    text-transform: uppercase;
    line-height: 1;
}

.main-404 {
    position: relative;
    z-index: 2;
    font-size: 140px;
    font-weight: 700;
    color: #303441; /* Dark Charcoal/Navy */
    margin: 0;
    letter-spacing: -4px;
}

.error-headline {
    font-size: 36px;
    font-weight: 600;
    color: #303441;
    text-align:center;
}
.error-subline {text-align:center;}

/* --- SEARCH FORM (CENTERED & FULL LINE) --- */
.search-wrap-404 {
    width: 100% !important;
    max-width: 600px !important;
    margin: 0 auto !important;  
}

.search-wrap-404 .input-group {
    display: flex !important;
    width: 100% !important;
    align-items: stretch !important;
}
.search-wrap-404 .tester {
    flex-grow: 1 !important;
}

.search-wrap-404 input.rps_input_map_look {
    width: 100% !important;
    display: block !important;
    height: 65px !important;
    font-size: 18px !important;
    border: 2px solid #e1e1e1 !important;
    border-right: none !important;
    flex-grow: 1;
    border-radius: 4px 0 0 4px !important;
}

/* Search Submit Button Styled like View All */
.search-wrap-404 .btn-submit-look {
    height: 65px !important;
    padding: 0 35px !important;
    background: #d30023 !important;
    border: 2px solid #d30023 !important;
    color: #fff !important;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 0 4px 4px 0 !important;
    transition: all 0.3s ease !important;
}

/* Hover: Solid Red -> Outline */
.search-wrap-404 .btn-submit-look:hover {
    background: transparent !important;
    color: #d30023 !important;
}

/* --- BUTTONS --- */
.button-container-404 {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin:3em 0 0 0;
}

.btn-404 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 30px;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

/* Red Solid -> Outline */
.btn-view-listings {
    background: #d30023;
    border: 2px solid #d30023 !important;
    color: #fff !important;
}
.btn-view-listings:hover {
    background: transparent !important;
    color: #d30023 !important;
    box-shadow: none;
}
.btn-view-listings i, .btn-view-listings:hover i { color: inherit; margin-right: 8px; }

/* Red Outline -> Solid */
.btn-back-home {
    background: transparent;
    border: 2px solid #d30023 !important;
    color: #d30023 !important;
}
.btn-back-home:hover {
    background: #d30023 !important;
    color: #fff !important;
}
.btn-back-home i { margin-right: 8px; }

/* --- RESPONSIVE FIXES --- */
@media (max-width: 768px) {
    .bg-text { font-size: 33vw; } /* Keeps SOLD visible on small screens */
    .main-404 { font-size: 100px; }
    .error-headline { font-size: 26px; }
    
    .search-wrap-404 .input-group {
        flex-direction: row !important; /* Forces button next to input on mobile */
    }
    .button-container-404 {
        flex-direction: column;
    }
    .btn-404 { width: 100%; }
}



/* ================================
   PAGE - CONTAINER
================================ */
.mw-page-wrapper { 
    max-width: 1200px; 
    margin: -50px auto 60px; 
    display: grid; 
    grid-template-columns: 1fr 1.5fr; 
    gap: 30px; padding: 0 20px; 
}
.page-hero{
    /* Base color (always visible) */
    background-color:#0a1828;
    /* Color → gradient → image (image wins if it loads) */
    background-image:
        linear-gradient(rgba(10,24,40,.82), rgba(10,24,40,.82)),
        linear-gradient(135deg, rgba(15,32,39,.85), rgba(44,83,100,.85)),
        url("https://soldbykaran.com/wp-content/uploads/2020/10/Real-Estate-Broker-Appointment.jpg");
    background-position:center;
    background-repeat:no-repeat;
    background-size:cover;
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
    color:#fff;
    padding:3em 50px 3.5em;
    text-align:center;
    margin:0 -20px;
}
/* Title */
.page-hero h1{
    font-size:3rem;
    font-weight:700;
    margin-bottom:12px;
    letter-spacing:-0.04em;
    line-height:1.05;
    text-transform:uppercase;
    color:var(--primary-silver);
    text-shadow:0 4px 40px rgba(0,0,0,.65);
}
/* Subtitle */
.page-hero-badge { background:var(--primary-silver); color: var(--text-dark); padding: 5px 15px; border-radius: 20px; font-weight: 700; font-size: 12px; text-transform: uppercase; margin-bottom: 20px; display: inline-block; }
.page-hero p{
    font-size:1.25rem;
    max-width:800px;
    margin:0 auto 30px;
    color:rgba(255,255,255,.92);
    letter-spacing:.02em;
    text-shadow:0 2px 25px rgba(0,0,0,.5);
}
/* Optional CTA inside hero */
/* .page-hero a, .cta-button {
    background-color: var(--primary-silver);
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    border-style: solid;
    border-color: var(--primary-silver);
    border-radius: 4px;
    color:#fff;
    padding: 16px 25px 16px 25px;
    display:inline-block;
    transition:.25s ease;
    box-shadow:0 10px 30px rgba(0,0,0,.35);
}
.page-hero a:hover .cta-button:hover {
    transform:translateY(-3px);
    box-shadow:0 15px 40px rgba(0,0,0,.5);
}
.cta-button {
    background-color: var(--e-global-color-primary);
    border-color: var(--e-global-color-primary);
}
.cta-button:hover {
    background-color: #54595F00;
    color: var(--primary-silver);
} */


/* ================================
   PAGE - CONTACT
================================ */
.contact-page-hero { padding-top: 5em; padding-bottom: 6em;
    background-image:
        linear-gradient(135deg, rgba(39, 31, 15, 0.85), rgba(100, 90, 44, 0.85)),
        url("https://soldbykaran.com/wp-content/uploads/2020/10/Real-Estate-Broker-Appointment.jpg");}
.contact-page-hero h1 {
    background:linear-gradient(135deg,#f5d07a,#caa34d,#f8e7b0);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;}
.contact-wrapper { max-width: 1200px; margin: -50px auto 60px; display: grid; grid-template-columns: 1fr 1.5fr; gap: 30px; padding: 0 20px; }
@media (max-width: 991px) {
    .contact-wrapper { grid-template-columns: 1fr; margin-top:-50px; }
    .page-hero { border-radius: 0; }
}
/* Left Side Info */
.contact-info-card {z-index: 1; background: #fff; padding: 40px; border-radius: 15px; box-shadow: 0 15px 35px rgba(0,0,0,0.1); border-top: 5px solid var(--primary-gold); }
.info-group { margin-bottom: 30px; }
.info-group h4 { color: var(--primary-gold); text-transform: uppercase; font-size: 0.8rem; letter-spacing: 2px; margin-bottom: 10px; }
.info-group p, .info-group a { font-size: 1.1rem; color: #0a1828; font-weight: 600; text-decoration: none; display: block; }
.info-group i { margin-right: 10px; color: var(--primary-gold); }
.contact-karan-photo { max-width: 157px !important; margin: 0 20px 0 0; padding: 0 !important; border-radius: 999px !important; width: 100%; border: 1px solid #eee !important; float: left; }

/* Right Side Map & Form */
.contact-main-card {z-index: 1; background: #fff; border-radius: 15px; box-shadow: 0 15px 35px rgba(0,0,0,0.1); overflow: hidden; }
.map-container { height: 350px; background: #eee; width: 100%; border: none; }
.map-container iframe { width: 100% !important; height: 100% !important; border: 0; }
.form-container { padding: 40px; }

/* ================================
   PAGE - LOW COMISSION
================================ */
/* Features Grid */
.features-section {
    padding: 1em 20px 0.6em;
    background: var(--white);
    text-align: center;
}
.feature-grid{
    display:grid;
    gap:30px;
    max-width:1100px;
    margin:40px auto;
}

/* Desktop (4 in a row) */
@media (min-width:1024px){
    .feature-grid{
        grid-template-columns:repeat(4,1fr);
    }
}

/* Tablet (2x2 grid) */
@media (min-width:600px) and (max-width:1023px){
    .feature-grid{
        grid-template-columns:repeat(2,1fr);
    }
}

/* Mobile (stacked) */
@media (max-width:599px){
    .feature-grid{
        grid-template-columns:1fr;
    }
}
.feature-card {
    padding: 30px;
    background: var(--light-bg);
    border-bottom: 4px solid var(--primary-gold);
    border-radius: 8px;
}
.feature-card h3 {
    color: var(--dark-navy);
    margin-top: 0;
}
/* Steps Section */
.steps-section {
    background: var(--dark-navy);
    color: var(--white);
    padding:1.5em 20px 2.5em;
    text-align: center;
    margin:0 -20px;
}
.steps-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}
.step-box {
    background: rgba(255,255,255,0.05);
    padding: 30px;
    border-radius: 10px;
    flex: 1;
    min-width: 280px;
    max-width: 350px;
}
.step-box span {
    font-size: 2rem;
    text-transform: uppercase;
    font-weight:bolder;
    color: var(--primary-silver);
    display: block;
    margin-bottom: 10px;
}
/* Checklist Section */
.checklist-section {
    padding: 1em 20px 2em;
    max-width: 900px;
    margin: 0 auto;
}
.checklist-section h2 {
    text-align: center;
    color: var(--dark-navy);
    margin-bottom: 40px;
}
.checklist-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.check-item {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}
.check-item:before {
    content: '✔';
    color: var(--primary-gold);
    margin-right: 15px;
    font-weight: bold;
}
.disclaimer {
    font-size: 0.85rem;
    color: #777;
    margin-top: 40px;
    text-align: center;
    font-style: italic;
}
@media (max-width: 768px) {
    .checklist-items { grid-template-columns: 1fr; }
    .hero-section h1 { font-size: 2rem; }
}

/* ================================
   PAGE - VALUATION
================================ */
.val-container { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; padding: 20px;margin:-4em auto 3em;}
.val-form-wrapper {z-index: 30;}
.val-benefits { padding-top: 80px; }
.val-benefit-item { display: flex; align-items: flex-start; margin-bottom: 25px; }
.val-benefit-item i { color: var(--primary-silver) !important; font-size: 2em; margin-right: 15px; margin-top:-10px; }
.val-benefit-text h4 { margin: 0 0 5px 0; color: #0a1828; }
.val-benefit-text p { margin: 0; color: #666; font-size: 0.95rem;max-width:300px; }
@media (max-width: 991px) {
    .val-container { grid-template-columns: 1fr; }
    .val-benefits { padding: 20px; order: 2;margin:0 0 4em 0; }
    .val-form-wrapper { order: 1; }
}
@media (max-width: 460px) {
.val-container {padding:20px !important;}
.mh-form-card {padding:20px !important;}
}

/* ================================
   PAGE - ALERTS
================================ */
.alert-main { max-width: 1200px; margin: -60px auto 60px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; padding: 0 20px; }
.alert-content { padding-top: 100px; }
.alert-card { background: #fff; padding: 40px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); border: 1px solid #eee; z-index: 30;}
.benefit-row { display: flex; align-items: center; margin-bottom: 20px; background: #f8f9fa; padding: 15px; border-radius: 10px; border-left: 4px solid var(--primary-silver); }
.benefit-row i { font-size: 24px; margin-right: 15px; }
@media (max-width: 991px) { .alert-main { grid-template-columns: 1fr; } .alert-content { order: 2; padding-top: 20px; } }

/* ================================
   PAGE - RESOURCES
================================ */
/* Container for resource cards (keeps them centered) */
.res-container{
    max-width:1100px;
    margin:0 auto;
    padding:0 20px;
}
/* Resource Grid - responsive and even spacing */
.res-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 25px;
    margin-top: -40px;
}

/* Tablet / small desktops */
@media (max-width: 1024px) {
    .res-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

}
/* Mobile */
@media (max-width: 768px) {
    .res-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
}
/* Individual Card */
.res-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* ensures even spacing of icon, text, button */
    z-index: 30;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-bottom: 4px solid var(--primary-silver);
    transition: 0.3s;
    text-align: center;
    min-height: 100%; /* ensures all cards in a row are equal height */
}
.res-card:hover { transform: translateY(-10px); }
.res-card i { 
    font-size: 40px; 
    color: #0a1828; 
    margin-bottom: 15px; 
    display: block; 
}
.res-card h3 { 
    margin-bottom: 10px; 
    color: #0a1828; 
}
.res-card p {
    flex-grow: 1; /* ensures description pushes the CTA down */
}
/* .res-btn { 
    display: inline-block; 
    margin-top: 15px; 
    padding: 10px 20px; 
    background: #0a1828; 
    color: #fff; 
    text-decoration: none; 
    border-radius: 5px; 
    font-weight: 600; 
    text-transform: uppercase; 
    font-size:0.8em;
}
.res-btn:hover { color:#fff; } */
/* Emergency List */
.emergency-list { 
    max-width: 1100px; 
    margin: 60px auto; 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 20px; 
    background: #f8f9fa; 
    padding: 40px; 
    border-radius: 15px; 
}
.e-item { 
    display: flex; 
    justify-content: space-between; 
    border-bottom: 1px solid #ddd; 
    padding: 8px 0; 
    font-size: 14px; 
}
.e-name { font-weight: 600; color: #333; }
.e-num { color: #D30023; font-weight: 700; }
/* Ensure resource cards are evenly spaced (already in grid) */
.res-card p { flex-grow: 1; }
.res-container hr {margin:60px 0; border:0; border-top:1px solid #eee;}

/* Emergency list responsive */
@media (max-width: 768px) {
    .emergency-list { 
        grid-template-columns: 1fr; 
    }
    .e-item { 
        flex-wrap: wrap; 
    }
    .e-name { 
        min-width: 60%; 
        margin-bottom: 5px; 
    }
    .e-num { 
        min-width: 40%; 
        margin-bottom: 5px; 
        text-align:right;
    }
}

/* ================================
   PAGE - BOOK APPINTMENT
================================ */
.book-container { max-width: 1000px; margin: 60px auto; display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; padding: 0 20px; }
.book-info { padding-top: 100px; }
.book-form-wrap {background: #fff; padding: 40px; border-radius: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.15); border: 1px solid #eee; z-index: 30; }
@media (max-width: 767px) { .book-container { grid-template-columns: 1fr;gap:20px;padding:0 20px;margin:40px auto; } .book-info { order: 0; padding: 0px 20px; } }

.book-info h2 { color: #0a1828; font-size: 2.2rem; margin-bottom: 20px; }
.step-item { position: relative; padding-left: 40px; margin-top: 30px; }
.step-num { position: absolute; left: 0; top: 0; width: 30px; height: 30px; background: var(--primary-silver); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; }

/* ================================
   PAGE - BUYERS GUIDE
================================ */
.buyer-hero { background: #f4f7f9; padding: 80px 20px; text-align: center; border-bottom: 5px solid var(--primary-silver); }
.buyer-hero h1 { color: #0a1828; font-size: 2.8rem; margin-bottom: 15px; }
.buyer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; max-width: 1200px; margin: 50px auto; padding: 0 20px; }
.buyer-step { background: #fff; padding: 40px; border-radius: 15px; border: 1px solid #eee; transition: 0.3s; position: relative; }
.buyer-step:hover { border-color: var(--primary-silver); transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.05); }
.buyer-step-num { font-size: 4rem; color: #f0f0f0; position: absolute; top: 10px; right: 20px; font-weight: 900; z-index: 1; }
.buyer-step h3 { color: #0a1828; position: relative; z-index: 2; margin-bottom: 10px; }
.buyer-step p { color: #666; position: relative; z-index: 2; font-size: 0.95rem; }


/* ================================
   PAGE - SELLERS GUIDE
================================ */
.guide-hero { background: #0a1828; color: #fff; padding: 80px 20px; text-align: center; border-radius: 0 0 30px 30px; }
.guide-hero h1 { color: var(--primary-silver); font-size: 2.8rem; margin-bottom: 15px; }
.guide-hero p { max-width: 800px; margin: 0 auto; opacity: 0.9; line-height: 1.6; }
.roadmap-container { max-width: 900px; margin: 60px auto; position: relative; padding: 0 20px; }
/* The Vertical Line */
.roadmap-container::before {
    content: ''; position: absolute; left: 50%; width: 2px; height: 100%; background: #eee; transform: translateX(-50%);
}
.step-card { position: relative; width: 45%; padding: 30px; background: #fff; border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.05); margin-bottom: 40px; border: 1px solid #f0f0f0; }
.step-card:nth-child(even) { margin-left: auto; }
.step-card h3 { color: #0a1828; margin-bottom: 10px; font-size: 1.2rem; }
.step-number { position: absolute; top: 20px; right: -75px; width: 40px; height: 40px; background: var(--primary-silver); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; z-index: 2; border: 4px solid #fff; }
.step-card:nth-child(even) .step-number { right: auto; left: -75px; }
@media (max-width: 768px) {
    .roadmap-container::before { left: 20px; }
    .step-card { width: 90%; margin-left: 40px !important; }
    .step-number { left: -55px !important; right: auto !important; }
}

/* ================================
   PAGE - FIRST TIME BUYERS
================================ */
.fthb-card { background: #fff; padding: 2em 1.5em; border-radius: 12px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); margin-bottom: 30px; border-left: 5px solid var(--primary-silver); }
.fthb-card h2 { color: #0a1828; margin-bottom: 15px; font-size: 1.6rem; }
.highlight-box { background: #fdf8ef; border: 1px dashed var(--primary-silver); padding: 25px; border-radius: 10px; margin: 20px 0; font-size: 1.05rem; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin: 30px 0; }
.stat-item { text-align: center; padding: 25px; background: #f8f9fa; border-radius: 12px; font-weight: 600; color: #0a1828; }
.stat-num { display: block; font-size: 1.8rem; font-weight: 800; color: var(--primary-silver); margin-bottom: 5px; }

/* ================================
   PAGE - FHSA
================================ */
.benefit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-bottom: 50px; }
.benefit-card { background: #fff; padding: 35px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); border-bottom: 5px solid #0a1828; text-align: center; }
.benefit-card i { font-size: 3rem; margin-bottom: 15px; display: block; }
/* FHSA SPECIFIC STYLES */
.fhsa-strategy-box { background: #f4f7f9; padding: 80px 0; margin-top: 60px; border-top: 1px solid #e1e8ed; border-bottom: 1px solid #e1e8ed; width: 100%; position: relative; }
.strategy-flex { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 50px; align-items: center; }
.fhsa-form-card { margin-bottom:3em;background: #ffffff; border: 1px solid var(--primary-silver); padding: 40px !important; box-shadow: 0 20px 40px rgba(0,0,0,0.1) !important; border-radius: 20px; }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin: 25px 0; }
.stat-item { text-align: center; padding: 20px; background: #fff; border-radius: 12px; border: 1px solid #e1e8ed; box-shadow: 0 4px 6px rgba(0,0,0,0.02); }
.stat-num { display: block; font-size: 22px; font-weight: 800; color: var(--primary-silver); }
@media (max-width: 991px) { .strategy-flex { grid-template-columns: 1fr; gap: 00px; } .fhsa-strategy-box { padding: 40px 0; } .stat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .stat-grid { grid-template-columns: 1fr; } .fhsa-strategy-box { margin-top: 40px; } }

/* ================================
   PAGE - NEW HOME HST REBATE
================================ */
.hst-hero { 
    background: linear-gradient(rgba(10,24,40,0.85), rgba(10,24,40,0.85)), url('https://images.unsplash.com/photo-1503387762-592dea58ef21?auto=format&fit=crop&w=1400&q=80'); 
    background-size: cover; background-position: center; padding: 40px 20px 70px; text-align: center; color: #fff; 
}
.hst-hero h1 { color: var(--primary-silver); font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 10px; }
.rebate-box-container { display: flex; gap: 20px; margin: -50px auto 40px; max-width: 1100px; z-index: 40; position: relative; }
.rebate-card { flex: 1; background: #fff; padding: 30px; border-radius: 15px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); border-top: 6px solid var(--primary-silver); text-align: center; }
.rebate-card h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); color: #0a1828; margin: 10px 0; }
.info-section { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding: 10px 0 40px; align-items: center; }
.info-content { padding: 20px; }
.info-image-wrap { border-radius: 20px; overflow: hidden; }
.info-img { border-radius: 20px !important; box-shadow: 15px 15px 0 rgba(0,0,0, 0.2) !important; width: 100%; height: auto; transition: 0.3s; }
.check-list { list-style: none; padding: 0; margin: 20px 0; }
.check-list li { padding: 12px 0; border-bottom: 1px solid #eee; display: block;  gap: 10px; }
.check-list li:before { content: '✓'; color: var(--primary-silver); font-weight: 900; margin-right: 15px; }
@media (max-width: 991px) { .info-section { grid-template-columns: 1fr; gap: 30px; } .info-image-wrap { order: -1; } .rebate-box-container { flex-direction: column; margin-top: -30px; } }
@media (max-width: 768px) { .hst-hero { padding: 30px 20px 60px; } }
/* @media (max-width: 991px) { .info-section { grid-template-columns: 1fr !important; } .ltt-card { order: 2 !important; } .info-content { order: 1 !important; } } */


/* ================================
   PAGE - LAND TRANSFER TAX
================================ */
.tax-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.tax-table th { background: #0a1828; color: #fff; text-align: left; padding: 12px; }
.tax-table td { padding: 12px; border-bottom: 1px solid #eee; }
.tax-table tr:nth-child(even) { background: #f9f9f9; }
.calc-link-box { background: #0a1828; color: #fff; padding: 40px; text-align: center; border-radius: 12px; margin: 40px 0; }

.ltt-card { background: #fff; padding: 35px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); border-top: 5px solid var(--primary-silver); }
.ltt-result-box { background: #f9f9f9; padding: 25px; border-radius: 12px; margin-top: 20px; text-align: center; }
.ltt-val { font-size: 2rem; font-weight: 800; color: #0a1828; }

.tax-table { width: 100%; border-collapse: collapse; border: none !important; }
.tax-table tr { border: none !important; }
.tax-table tr:nth-child(odd) { background-color: #f9f9f9; }
.tax-table tr:nth-child(even) { background-color: #ffffff; }
.tax-table td { padding: 12px; border-bottom: 1px solid #eee; }
.page-id-8983 .info-section {align-items: flex-start;}
.ltt-calc-wrapper {margin:-40px 0 0 !important;}
@media (max-width: 767px) {.ltt-calc-wrapper {order:-1;}}


/* ================================
   PAGE - MORTGAGE
================================ */
.calc-container { max-width: 1100px; margin: -4em auto 4em; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding: 20px; font-family: 'Inter', sans-serif; }
.calc-card { z-index: 30;background: #fff; padding: 40px; border-radius: 20px; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15); border: 1px solid #eee; z-index: 30; }
.calc-ready {margin-top:30px; border-top:1px solid rgba(0,0,0,0.1); padding-top:20px;}
.results-card { background:#f9f9f9; color: #333; padding: 40px; border-radius: 20px; display: flex; flex-direction: column; justify-content: center; text-align: center; }
.results-card h3 { color: var(--text-dark); margin-bottom: 20px; font-size: 1.8rem; }
.payment-amt { font-size: 3.5rem; font-weight: 800; color: #fff; margin: 10px 0; }
.payment-period { opacity: 0.7; font-size: 1rem; text-transform: uppercase; letter-spacing: 1px; }
.calc-disclaimer { font-size: 12px; color: #333; margin-top: 20px; line-height: 1.4; }
@media (max-width: 850px) { .calc-container { grid-template-columns: 1fr;margin:-4em 0 0 0;} .calc-card {z-index: 30;} .results-card { order: 2; } }

/* ================================
   MULTI-STEP FORM
================================ */
/* FORM CARD CONTAINER */
.mh-form-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border: 1px solid #eee;
}

/* PROGRESS BAR */
.mh-steps {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}
.mh-steps .step {
    flex: 1;
    font-size: 14px;
    color: #999;
    font-weight: 600;
    display: flex;
    align-items: center;
}
.mh-steps .step span {
    width: 24px;
    height: 24px;
    background: #eee;
    color: #666;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 12px;
}
.mh-steps .step.active { color: #0a1828; }
.mh-steps .step.active span { background: var(--primary-gold); color: #fff; }

/* INPUTS */
.mh-multistep-form h5 { font-size: 22px; color: #0a1828; margin: 0 0 5px 0; }
.mh-form-header { margin-bottom: 25px; }
.mh-form-header p { color: #777; font-size: 14px; margin: 0; }

.mh-multistep-form input[type="text"],
.mh-multistep-form input[type="email"],
.mh-multistep-form input[type="tel"],
.mh-multistep-form select,
.mh-multistep-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fdfdfd;
    margin: 10px 0 0px 0;
    font-size: 15px;
    transition: 0.3s;
}

/* CALCULATOR & INFO STYLES */
.mh-field label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; margin: 20px 0 0px; color: #444; }
.mh-field input, .mh-field select { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 8px; margin: 10px 0 0px 0; }

.mh-trust {margin:10px 0 !important;padding:10px 0px 10px;}

.mh-multistep-form input:focus { border-color: var(--primary-gold); outline: none; box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.1); }

/* GRID */
.mh-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
@media (max-width: 600px) { .mh-grid { grid-template-columns: 1fr; } }

/* BUTTONS */
.mh-next-btn, .mh-submit {
    background: #0a1828;
    border:3px solid #0a0a0a;
    color: #fff;
    border: none;
    padding: 14px 30px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    font-size: 18px;
    transition: 0.3s;
    text-transform: uppercase;
}
.mh-next-btn:hover, .mh-submit:hover { background: var(--primary-silver);border:0px solid var(--primary-gold) }

.mh-prev-btn {
    background: none;
    text-transform: capitalize;
    border: none;
    color: #888;
    cursor: pointer;
    font-weight: 600;
}
.mh-prev-btn:hover {
    background: none;
    border: none;
    text-transform: capitalize !important;
    color: #000;
    cursor: pointer;
    font-weight: 600;
}
/* STEPS LOGIC */
.mh-step { display: none; }
.mh-step.active { display: block; animation: fadeIn 0.4s; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* RADIO GROUPS */
.wpcf7 p {margin:0 !important;}
.wpcf7 .wpcf7-submit {margin:15px 0 0 0;}
.wpcf7-list-item { margin: 0 15px 0 0; }
.wpcf7-spinner { display: none !important; }
.mh-radio-label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; color: #0a1828; }

/* ================================
   MORTGAGE CALCULATOR
================================ */
.wpcf7-response-output {margin:0 !important;}
.mortgage-form-fields label {
    display: block;
    font-weight: 700;
    font-size: 13px;
    color: #0a1828;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.mortgage-form-fields input {
    margin-bottom: 20px !important;
    border: 2px solid #f0f0f0 !important;
    font-weight: 600;
}
.mortgage-form-fields input:focus, .mortgage-form-fields [type=submit]:focus {
    border-color: var(--primary-gold) !important;
    background: #fff !important;
}
/* Specific styling for the result numbers */
#display-payment{
    color:#0a1828; /* dark navy for readability */
    text-shadow:0 2px 8px rgba(0,0,0,0.12);
    animation:pulse 1.6s infinite ease-in-out;
}
@keyframes pulse{
    0%{
        transform:scale(1);
        color:var(--text-dark);
        text-shadow:0 2px 8px rgba(0,0,0,0.12);
    }
    50%{
        transform:scale(1.04);
        color:var(--primary-silver);
        text-shadow:0 4px 20px rgba(197,160,89,0.6); /* warm glow instead of light blur */
    }
    100%{
        transform:scale(1);
        color:var(--text-dark);
        text-shadow:0 2px 8px rgba(0,0,0,0.12);
    }
}



/* ================================
   PAGE - THANK YOU
================================ */
.ty-container { max-width: 800px; margin: 0px auto 2em; text-align: center; padding: 20px; font-family: 'Inter', sans-serif; }
.ty-icon { font-size: 80px; color: #c5a059; margin-bottom: 20px; }
.ty-title { color: #0a1828; font-size: 3rem; margin-bottom: 10px; }
.ty-sub { font-size: 1.2rem; color: #666; margin-bottom: 40px; }
.ty-social-box { background: #f8f9fa; padding: 40px; border-radius: 20px; border: 1px solid #eee; }
.ty-social-icons { display: flex; justify-content: center; gap: 20px; margin-top: 20px; }
.ty-social-icons a { background: #0a1828; color: #fff; width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-decoration: none; transition: 0.3s; }
.ty-social-icons a:hover { background: #c5a059; transform: translateY(-5px); }


