/* ==========================================================================
   GJ Profits Global Theme & Inner-Page Design System
   Applies the exact same Header, Footer, Palette, Typography, Card & Button
   rules from the Homepage across every inner page on the site.
   ========================================================================== */

:root {
  --gj-ivory: #faf7f2;
  --gj-cream: #f4efe6;
  --gj-white: #ffffff;
  --gj-ink: #1e2229;
  --gj-ink-soft: #313640;
  --gj-body: #595e68;
  --gj-muted: #7b8089;
  --gj-gold: #a9864b;
  --gj-gold-dark: #8c6d38;
  --gj-gold-light: #c8a86b;
  --gj-gold-tint: #f8f2e7;
  --gj-border: #eae2d5;
  --gj-border-strong: #d8cebe;
  --gj-dark: #14171d;
  --gj-shadow-sm: 0 4px 14px rgba(20, 23, 29, 0.05);
  --gj-shadow-md: 0 12px 32px rgba(20, 23, 29, 0.08);
  --gj-radius-sm: 6px;
  --gj-radius-md: 10px;
  --gj-radius-lg: 14px;
  --gj-font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --gj-font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Unify WpResidence theme custom properties with GJ Profits palette */
  --wp-estate-main-color-option: #a9864b !important;
  --wp-estate-second-color-option: #8c6d38 !important;
  --wp-estate-hover-button-color-option: #8c6d38 !important;
  --wp_estate_link_color-option: #a9864b !important;
  --wp_estate_headings_color-option: #1e2229 !important;
  --wp-estate-font-color-option: #595e68 !important;
  --wp_estate_breadcrumbs_font_color-option: #7b8089 !important;
  --wp-estate-unit-border-color-option: #eae2d5 !important;
  --wp-estate-card-details-font-family-option: "Plus Jakarta Sans", sans-serif !important;
  --wp_estate_map_controls_back-option: #a9864b !important;
}

/* ==========================================================================
   1. Hide Legacy WpResidence Header, Footer & Cluttered Floating Chrome
   ========================================================================== */
body.gj-inner-page .master_header,
body.gj-inner-page .mobile_header,
body.gj-inner-page .mobilewrapper,
body.gj-inner-page .mobilewrapper-user,
body.gj-inner-page footer#colophon,
body.gj-inner-page .backtop,
body.gj-inner-page .contact-box,
body.gj-inner-page .lightbox_property_wrapper,
body.gj-inner-page .lightbox_property_wrapper_level2,
body.gj-inner-page .lightbox_property_content,
body.gj-inner-page .lightbox_property_slider,
body.gj-inner-page .lightbox_property_sidebar,
body.gj-inner-page .agent_contanct_form,
body.gj-inner-page .mobile_agent_area_wrapper,
body.gj-inner-page .realtor-contact-buttons,
body.gj-inner-page #wpestate_property_slider_lightbox,
body.gj-inner-page #modal_login_wrapper,
body.gj-inner-page .contactformwrapper,
body.gj-inner-page #footer-contact-form,
body.gj-inner-page .prop-compare,
body.gj-inner-page .modal,
body.gj-inner-page .modal-backdrop,
body.gj-inner-page .login_form,
body.gj-inner-page .login_modal_control,
.lightbox_property_wrapper,
.mobile_agent_area_wrapper,
#modal_login_wrapper,
.contactformwrapper,
.prop-compare {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  position: absolute !important;
  pointer-events: none !important;
  clip: rect(0, 0, 0, 0) !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

body.gj-inner-page #all_wrapper,
body.gj-inner-page .wpresidence_main_wrapper_class {
  padding-top: 0 !important;
  margin-top: 0 !important;
  background-color: var(--gj-ivory) !important;
}

/* ==========================================================================
   2. Shared Site Header & Footer Chrome (Matches Homepage 1:1)
   ========================================================================== */
.gj-chrome,
.gj-chrome *,
.gj-chrome *::before,
.gj-chrome *::after {
  box-sizing: border-box;
}

.gj-chrome {
  font-family: var(--gj-font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gj-ink);
  -webkit-font-smoothing: antialiased;
}

.gj-chrome a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.gj-chrome img {
  display: block;
  max-width: 100%;
  height: auto;
}

.gj-chrome :focus-visible {
  outline: 2px solid var(--gj-gold);
  outline-offset: 2px;
}

.gj-chrome .gj-container {
  width: min(1220px, 100% - 48px);
  margin-inline: auto;
}

.gj-chrome .gj-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: var(--gj-radius-sm);
  font-family: var(--gj-font-sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.gj-chrome .gj-btn-gold {
  background-color: var(--gj-gold);
  color: var(--gj-white) !important;
}

.gj-chrome .gj-btn-gold:hover {
  background-color: var(--gj-gold-dark);
  color: var(--gj-white) !important;
  transform: translateY(-1px);
}

.gj-chrome .gj-btn-pill {
  border-radius: 999px;
  padding: 10px 22px;
  min-height: 40px;
  font-size: 13.5px;
}

/* Sticky White Header */
.gj-chrome-header {
  position: sticky;
  top: 0;
  z-index: 9900;
}

body.admin-bar .gj-chrome-header {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .gj-chrome-header {
    top: 46px;
  }
}

.gj-chrome .gj-header {
  background-color: #ffffff;
  border-bottom: 1px solid #ece6dc;
  box-shadow: 0 2px 10px rgba(20, 23, 29, 0.04);
}

.gj-chrome .gj-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}

.gj-chrome .gj-brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.gj-chrome .gj-brand img {
  height: 58px;
  width: auto;
  max-height: 58px;
  object-fit: contain;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  transform: translateZ(0);
}

.gj-chrome .gj-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.gj-chrome .gj-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--gj-ink-soft);
  padding: 6px 2px;
  position: relative;
}

.gj-chrome .gj-nav a:hover,
.gj-chrome .gj-nav a.is-active {
  color: var(--gj-gold);
}

.gj-chrome .gj-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--gj-gold);
  border-radius: 2px;
}

.gj-chrome .gj-header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.gj-chrome .gj-phone-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gj-ink);
  white-space: nowrap;
}

.gj-chrome .gj-phone-link:hover {
  color: var(--gj-gold);
}

.gj-chrome .gj-phone-link svg {
  color: var(--gj-gold);
  flex-shrink: 0;
}

.gj-chrome .gj-mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--gj-radius-sm);
  border: 1px solid var(--gj-border-strong);
  background: var(--gj-white);
  color: var(--gj-ink);
  cursor: pointer;
}

.gj-chrome .gj-mobile-nav {
  background: var(--gj-white);
  border-bottom: 1px solid var(--gj-border);
  padding: 18px 24px 24px;
}

.gj-chrome .gj-mobile-nav[hidden] {
  display: none;
}

.gj-chrome .gj-mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gj-chrome .gj-mobile-nav-list a {
  padding: 10px 6px;
  font-size: 15px;
  font-weight: 500;
  color: var(--gj-ink);
  border-bottom: 1px solid var(--gj-cream);
}

.gj-chrome .gj-mobile-nav-cta {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Dark 3-Column Footer */
.gj-chrome .gj-footer {
  background-color: var(--gj-dark);
  color: rgba(255, 255, 255, 0.75);
  padding-top: 62px;
  margin-top: 0;
}

.gj-chrome .gj-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.25fr 1fr;
  gap: 44px;
  padding-bottom: 46px;
}

.gj-chrome .gj-footer h3 {
  font-family: var(--gj-font-serif);
  color: var(--gj-white);
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 18px;
  line-height: 1.3;
}

.gj-chrome .gj-footer p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13.5px;
  line-height: 1.68;
  margin: 0;
}

.gj-chrome .gj-footer-rera {
  margin-top: 12px;
  font-size: 12px;
  color: var(--gj-gold-light);
  word-break: break-word;
}

.gj-chrome .gj-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.gj-chrome .gj-social-btn {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--gj-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gj-chrome .gj-social-btn:hover {
  background: var(--gj-gold);
  border-color: var(--gj-gold);
  color: var(--gj-white);
}

.gj-chrome .gj-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.gj-chrome .gj-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.76);
}

.gj-chrome .gj-contact-list svg {
  color: var(--gj-gold-light);
  flex-shrink: 0;
  margin-top: 3px;
}

.gj-chrome .gj-contact-list a:hover {
  color: var(--gj-gold-light);
}

.gj-chrome .gj-footer-props {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gj-chrome .gj-footer-prop {
  display: flex;
  align-items: center;
  gap: 13px;
}

.gj-chrome .gj-footer-prop img {
  width: 74px;
  height: 54px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.gj-chrome .gj-footer-prop span {
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.38;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gj-chrome .gj-footer-prop:hover span {
  color: var(--gj-gold-light);
}

.gj-chrome .gj-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.56);
}

.gj-chrome .gj-footer-bottom a:hover {
  color: var(--gj-white);
}

/* ==========================================================================
   3. Inner Pages Design System Alignment (Warm Ivory, Playfair + Jakarta, Gold)
   ========================================================================== */
body.gj-inner-page {
  background-color: var(--gj-ivory) !important;
  color: var(--gj-body) !important;
  font-family: var(--gj-font-sans) !important;
  -webkit-font-smoothing: antialiased;
}

body.gj-inner-page .content_wrapper,
body.gj-inner-page .wpestate_property_description,
body.gj-inner-page .container.main_wrapper {
  background-color: transparent;
}

body.gj-inner-page .content_wrapper {
  padding-top: 32px;
  padding-bottom: 64px;
}

/* Editorial Typography */
body.gj-inner-page :where(h1, h2, h3, h4),
body.gj-inner-page .entry-title,
body.gj-inner-page .elementor-heading-title,
body.gj-inner-page .panel-title,
body.gj-inner-page .widget-title-sidebar {
  font-family: var(--gj-font-serif) !important;
  font-weight: 600;
  text-wrap: balance;
}

body.gj-inner-page .entry-title,
body.gj-inner-page .panel-title,
body.gj-inner-page .widget-title-sidebar {
  color: var(--gj-ink);
}

body.gj-inner-page p,
body.gj-inner-page li,
body.gj-inner-page .single-content p {
  font-family: var(--gj-font-sans);
  line-height: 1.72;
}

/* Breadcrumbs */
body.gj-inner-page .breadcrumb,
body.gj-inner-page .breadcrumb_container {
  background: transparent;
  font-size: 12.5px;
  color: var(--gj-muted);
  margin-bottom: 14px;
}

body.gj-inner-page .breadcrumb a {
  color: var(--gj-muted);
}

body.gj-inner-page .breadcrumb a:hover {
  color: var(--gj-gold);
}

/* Page Titles & Archive Headers */
body.gj-inner-page h1.entry-title,
body.gj-inner-page .entry-title.entry-prop {
  font-size: clamp(1.85rem, 2.8vw, 2.5rem);
  line-height: 1.18;
  color: var(--gj-ink);
  margin-bottom: 16px;
}

/* Property Listing Cards (Archives, Search, Related, Agent Properties) */
body.gj-inner-page .listing_wrapper .property_listing,
body.gj-inner-page .property_listing.property_unit_type1,
body.gj-inner-page .property_listing.property_unit_type2,
body.gj-inner-page .property_listing.property_unit_type3,
body.gj-inner-page .property_listing.property_unit_type4,
body.gj-inner-page .property_listing.property_unit_type5 {
  background-color: var(--gj-white) !important;
  border: 1px solid var(--gj-border) !important;
  border-radius: var(--gj-radius-md) !important;
  box-shadow: var(--gj-shadow-sm) !important;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

body.gj-inner-page .listing_wrapper .property_listing:hover {
  transform: translateY(-4px);
  box-shadow: var(--gj-shadow-md) !important;
  border-color: rgba(169, 134, 75, 0.48) !important;
}

body.gj-inner-page .property_listing h4,
body.gj-inner-page .property_listing h4 a {
  font-family: var(--gj-font-serif) !important;
  color: var(--gj-ink) !important;
  font-weight: 600;
}

body.gj-inner-page .property_listing h4 a:hover {
  color: var(--gj-gold) !important;
}

body.gj-inner-page .listing_unit_price_wrapper,
body.gj-inner-page .price_area,
body.gj-inner-page .property_price {
  color: var(--gj-gold) !important;
  font-weight: 700;
}

body.gj-inner-page .ribbon-inside,
body.gj-inner-page .status-wrapper .action_tag_wrapper,
body.gj-inner-page .featured_div,
body.gj-inner-page .tag-wrapper .action_tag_wrapper {
  background-color: rgba(20, 23, 29, 0.86) !important;
  color: var(--gj-white) !important;
  border-radius: 4px !important;
  font-family: var(--gj-font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

body.gj-inner-page .property_unit_action a,
body.gj-inner-page .unit_details_x a,
body.gj-inner-page .read_more,
body.gj-inner-page .unit_more_x {
  color: var(--gj-gold) !important;
  font-weight: 600;
}

/* Single Property Panels & Agent Contact Cards */
body.gj-inner-page .single-overview-section,
body.gj-inner-page .property-panel,
body.gj-inner-page .wpestate_property_description,
body.gj-inner-page .agent_contanct_form,
body.gj-inner-page .agent_unit,
body.gj-inner-page .property_reviews_wrapper,
body.gj-inner-page .mortgage_calculator_div,
body.gj-inner-page .wpestate_single_content_wrapper,
body.gj-inner-page .single-content.listing-content {
  background-color: var(--gj-white) !important;
  border: 1px solid var(--gj-border) !important;
  border-radius: var(--gj-radius-md) !important;
  box-shadow: var(--gj-shadow-sm);
}

/* Blog Cards & Single Blog Articles */
body.gj-inner-page .blog_unit,
body.gj-inner-page .blog2v .property_listing_blog,
body.gj-inner-page .single-post .post_container {
  background-color: var(--gj-white) !important;
  border: 1px solid var(--gj-border) !important;
  border-radius: var(--gj-radius-md) !important;
  box-shadow: var(--gj-shadow-sm);
  overflow: hidden;
}

body.gj-inner-page .blog_unit:hover,
body.gj-inner-page .blog2v .property_listing_blog:hover {
  box-shadow: var(--gj-shadow-md);
  border-color: rgba(169, 134, 75, 0.45) !important;
}

body.gj-inner-page .blog_unit h4 a,
body.gj-inner-page .property_listing_blog h4 a {
  font-family: var(--gj-font-serif) !important;
  color: var(--gj-ink) !important;
}

body.gj-inner-page .blog_unit h4 a:hover,
body.gj-inner-page .property_listing_blog h4 a:hover,
body.gj-inner-page .blog_unit_meta a:hover,
body.gj-inner-page .read_more:hover {
  color: var(--gj-gold) !important;
}

/* Sidebar Widgets — Remove clunky Currency/Measurement widgets everywhere,
   and remove entire right sidebar on single posts, standard pages & agent pages
   for a clean, full-width luxury editorial reading experience */
body.gj-inner-page .multiple_curency_widget,
body.gj-inner-page .measurement_unit_widget,
body.gj-inner-page .currency_widget,
body.gj-inner-page .widget_multiple_currency_widget,
body.gj-inner-page .widget_measurement_unit_widget {
  display: none !important;
}

body.gj-inner-page:not(.single-estate_property) #primary,
body.gj-inner-page:not(.single-estate_property) .widget-area-sidebar {
  display: none !important;
}

body.gj-inner-page:not(.single-estate_property) .content_wrapper .col-lg-9,
body.gj-inner-page:not(.single-estate_property) .content_wrapper .col-md-9,
body.gj-inner-page:not(.single-estate_property) .content_wrapper .col-lg-8,
body.gj-inner-page:not(.single-estate_property) .content_wrapper .col-md-8 {
  flex: 0 0 100% !important;
  max-width: 1040px !important;
  width: 100% !important;
  margin-inline: auto !important;
}

body.gj-inner-page.single-post .post_container,
body.gj-inner-page.single-post .single-content {
  padding: 36px 40px !important;
}

body.gj-inner-page .widget-area-sidebar .widget-container,
body.gj-inner-page #primary .widget-container {
  background-color: var(--gj-white) !important;
  border: 1px solid var(--gj-border) !important;
  border-radius: var(--gj-radius-md) !important;
  padding: 24px !important;
  box-shadow: var(--gj-shadow-sm);
  margin-bottom: 24px;
}

body.gj-inner-page .widget-title-sidebar {
  font-size: 18px;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--gj-cream);
}

/* Buttons & Form Inputs across Inner Pages */
body.gj-inner-page .wpresidence_button,
body.gj-inner-page .wpcf7-submit,
body.gj-inner-page .wpestate_contact_form_submit,
body.gj-inner-page .elementor-button {
  background-color: var(--gj-gold) !important;
  border-color: var(--gj-gold) !important;
  color: var(--gj-white) !important;
  border-radius: var(--gj-radius-sm) !important;
  font-family: var(--gj-font-sans) !important;
  font-weight: 600 !important;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

body.gj-inner-page .wpresidence_button:hover,
body.gj-inner-page .wpcf7-submit:hover,
body.gj-inner-page .wpestate_contact_form_submit:hover,
body.gj-inner-page .elementor-button:hover {
  background-color: var(--gj-gold-dark) !important;
  border-color: var(--gj-gold-dark) !important;
  color: var(--gj-white) !important;
  transform: translateY(-1px);
}

body.gj-inner-page input[type="text"],
body.gj-inner-page input[type="email"],
body.gj-inner-page input[type="tel"],
body.gj-inner-page input[type="search"],
body.gj-inner-page input[type="number"],
body.gj-inner-page textarea,
body.gj-inner-page select,
body.gj-inner-page .form-control {
  background-color: var(--gj-white);
  border: 1px solid #d5cfc4 !important;
  border-radius: var(--gj-radius-sm) !important;
  color: var(--gj-ink);
  font-family: var(--gj-font-sans);
  font-size: max(1rem, 1em);
  min-height: 46px;
}

body.gj-inner-page input:focus,
body.gj-inner-page textarea:focus,
body.gj-inner-page select:focus,
body.gj-inner-page .form-control:focus {
  border-color: var(--gj-gold) !important;
  box-shadow: 0 0 0 3px rgba(169, 134, 75, 0.16) !important;
  outline: none;
}

/* Pagination */
body.gj-inner-page .pagination > li > a,
body.gj-inner-page .pagination > li > span {
  background-color: var(--gj-white) !important;
  border: 1px solid var(--gj-border) !important;
  color: var(--gj-ink) !important;
  border-radius: var(--gj-radius-sm) !important;
  margin-right: 6px;
}

body.gj-inner-page .pagination > .active > a,
body.gj-inner-page .pagination > .active > span,
body.gj-inner-page .pagination > li > a:hover {
  background-color: var(--gj-gold) !important;
  border-color: var(--gj-gold) !important;
  color: var(--gj-white) !important;
}

/* ==========================================================================
   4. Responsive Header & Footer Rules for Inner Pages
   ========================================================================== */
@media (max-width: 1140px) {
  .gj-chrome .gj-nav {
    gap: 16px;
  }
}

@media (max-width: 1024px) {
  .gj-chrome .gj-nav,
  .gj-chrome .gj-header-actions {
    display: none;
  }
  .gj-chrome .gj-mobile-toggle {
    display: inline-flex;
  }
  .gj-chrome .gj-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) {
  .gj-chrome .gj-container {
    width: min(1220px, 100% - 32px);
  }
  .gj-chrome .gj-footer-grid {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   WpResidence Half-Map Layout Integration (Matching gjprofits.com)
   ========================================================================== */
body.half_map_body,
body.wpresidence_half_map_body_class {
  height: 100vh !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.half_map_body .gj-chrome-header {
  position: relative !important;
  flex-shrink: 0 !important;
  z-index: 1000 !important;
}

body.half_map_body #all_wrapper {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  height: calc(100vh - 84px) !important;
  background-color: var(--gj-ivory) !important;
}

body.half_map_body .container-fluid.px-0,
body.half_map_body .content_wrapper {
  flex: 1 1 auto !important;
  display: flex !important;
  overflow: hidden !important;
  height: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.half_map_body .content_wrapper > .row,
body.half_map_body .content_wrapper > .d-flex {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: row !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
}

body.half_map_body #google_map_prop_list_wrapper {
  flex: 0 0 50% !important;
  max-width: 50% !important;
  width: 50% !important;
  height: 100% !important;
  position: relative !important;
  padding: 0 !important;
  background-color: #2b353b;
  overflow: hidden !important;
}

body.half_map_body #google_map_prop_list_wrapper #gmap_wrapper {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  height: 100% !important;
  width: 100% !important;
  min-height: 100% !important;
}

body.half_map_body #google_map_prop_list_wrapper #googleMap {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  height: 100% !important;
  width: 100% !important;
  min-height: 100% !important;
}

body.half_map_body #google_map_prop_list_wrapper .gmap-controls {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  margin-left: 0 !important;
  transform: none !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 10 !important;
  pointer-events: none !important;
}

body.half_map_body #google_map_prop_list_wrapper .gmap-controls > div,
body.half_map_body #google_map_prop_list_wrapper .gmap-controls span {
  pointer-events: auto !important;
}

body.half_map_body #google_map_prop_list_wrapper #gmap-control {
  position: absolute !important;
  top: 15px !important;
  right: 15px !important;
}

body.half_map_body #google_map_prop_list_wrapper #gmapzoomplus {
  position: absolute !important;
  top: 15px !important;
  left: 15px !important;
}

body.half_map_body #google_map_prop_list_wrapper #gmapzoomminus {
  position: absolute !important;
  top: 55px !important;
  left: 15px !important;
}

body.half_map_body #google_map_prop_list_sidebar {
  flex: 0 0 50% !important;
  max-width: 50% !important;
  width: 50% !important;
  height: 100% !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  padding: 24px 32px 48px !important;
  background-color: var(--gj-ivory) !important;
}

body.half_map_body .wpresidence_half_map_filter_wrapper {
  margin-bottom: 20px;
}

body.half_map_body #google_map_prop_list_sidebar .listing_wrapper {
  flex: 0 0 50% !important;
  max-width: 50% !important;
  padding-left: 10px !important;
  padding-right: 10px !important;
  margin-bottom: 24px !important;
}

body.half_map_body #google_map_prop_list_sidebar .listing_wrapper .property_listing {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  background: #ffffff !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06) !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

body.half_map_body #google_map_prop_list_sidebar .listing_wrapper .listing-unit-img-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  height: 220px !important;
  position: relative !important;
}

body.half_map_body #google_map_prop_list_sidebar .listing_wrapper .listing-unit-img-wrapper img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

body.half_map_body #google_map_prop_list_sidebar .listing_wrapper .title-container {
  width: 100% !important;
  max-width: 100% !important;
  padding: 16px 18px 20px !important;
}

@media (max-width: 767px) {
  body.half_map_body #google_map_prop_list_sidebar .listing_wrapper {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
}

@media (max-width: 991px) {
  body.half_map_body,
  body.wpresidence_half_map_body_class {
    height: auto !important;
    overflow: auto !important;
  }
  body.half_map_body #all_wrapper,
  body.half_map_body .content_wrapper,
  body.half_map_body #google_map_prop_list_sidebar {
    height: auto !important;
    overflow: visible !important;
    max-width: 100% !important;
    width: 100% !important;
    flex: 0 0 100% !important;
  }
  body.half_map_body .content_wrapper > .row,
  body.half_map_body .content_wrapper > .d-flex {
    flex-direction: column !important;
  }
  body.half_map_body #google_map_prop_list_wrapper {
    height: 380px !important;
    max-width: 100% !important;
    width: 100% !important;
    flex: 0 0 100% !important;
  }
}
