/*
Theme Name: Homeid Child Theme
Theme URI: https://homeid.g5plus.net/
Author: G5 Theme
Author URI: https://themeforest.net/user/g5theme
Description: Child theme for Homeid Theme
Version: 1.0.0
Template: homeid
Text Domain: homeid-child
*/


/* Krishna Realty: remove residential-demo modules from industrial property details. */
body.single-property .g5ere__property-block-floor-plans,
body.single-property .g5ere__property-block-mortgage,
body.single-property .g5ere__property-block-nearby-places,
body.single-property .g5ere__property-block-review,
body.single-property #sidebar {
    display: none !important;
}
body.single-property #main-content {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
}
body.single-property .g5ere__property-block-description,
body.single-property .g5ere__property-block-overview,
body.single-property .g5ere__property-block-address,
body.single-property .g5ere__property-block-details {
    border-radius: 12px;
    border-color: #e7eaee;
    box-shadow: 0 8px 28px rgba(22,34,51,.06);
}


/* Keep the property archive compact below pagination. */
body.post-type-archive-property {
    --g5-content-padding-bottom: 50px !important;
}
body.post-type-archive-property #primary-content,
body.tax-property-type #primary-content,
body.tax-property-city #primary-content,
body.tax-property-status #primary-content {
    padding-bottom: 50px !important;
}


/* Krishna Realty page spacing and white industrial-network redesign — 2026-09-10 */
body.page-id-5766 #primary-content,
body.page-id-3606 #primary-content { padding-top:0 !important; padding-bottom:0 !important; }
body.page-id-3615 #primary-content .elementor-element-4a644e8 { margin-bottom:-15px !important; }
body.page-id-3615 .kra-coverage.krp-about-locations {
  grid-template-columns:minmax(300px,.8fr) minmax(0,1.5fr) !important;
  gap:24px !important; background:#f6f8fb !important;
  padding:72px max(24px,calc((100vw - 1170px)/2)) !important; box-sizing:border-box;
}
body.page-id-3615 .krp-about-map {
  background:#fff !important; color:#111827 !important; padding:40px !important;
  border:1px solid #e5e7eb !important; border-radius:12px !important;
  box-shadow:0 12px 35px rgba(16,24,39,.07) !important;
}
body.page-id-3615 .krp-about-map h2 { color:#111827 !important; font-size:34px !important; }
body.page-id-3615 .krp-about-map p { color:#667085 !important; }
body.page-id-3615 .krp-about-map a { color:#ea4335 !important; }
body.page-id-3615 .krp-about-city-list { background:transparent !important; padding:0 !important; gap:14px !important; }
body.page-id-3615 .krp-about-city-list>a {
  background:#fff !important; border:1px solid #e5e7eb !important; border-radius:10px !important;
  padding:20px !important; box-shadow:0 6px 20px rgba(16,24,39,.05) !important;
}
@media (max-width:991px) {
  body.page-id-3615 .kra-coverage.krp-about-locations { grid-template-columns:1fr !important; padding:56px 24px !important; }
}
@media (max-width:575px) {
  body.page-id-3615 .krp-about-city-list { grid-template-columns:1fr !important; }
}


/* Property-card facts: compact, consistent across archive and homepage. */
.g5ere__property-item .kr-property-facts{display:flex;flex-wrap:wrap;gap:7px 12px;margin-top:12px;padding-top:11px;border-top:1px solid #edf0f3;font-size:12px;line-height:1.45;font-weight:600;color:#344054}
.g5ere__property-item .kr-fact-price{color:#d93025}
.g5ere__property-item:has(.g5ere__loop-property-size) .kr-fact-area{display:none}
.g5ere__property-item .g5ere__loop-property-meta{margin-top:10px!important;margin-bottom:0!important}
@media(max-width:575px){.g5ere__property-item .kr-property-facts{display:block}.g5ere__property-item .kr-property-facts span{display:block;margin-top:4px}}

/* Krishna homepage Featured Properties white background */
body.home .kr-featured-section {
  background: #ffffff !important;
}

/* Krishna card area and price on one line */
.g5ere__property-item .g5ere__loop-property-meta,
.g5ere__property-item .kr-property-facts {
  display: inline-flex !important;
  align-items: center !important;
  vertical-align: middle !important;
}
.g5ere__property-item .g5ere__loop-property-meta { margin: 10px 16px 0 0 !important; }
.g5ere__property-item .kr-property-facts {
  margin: 10px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  font-size: 15px !important;
  line-height: 1.4 !important;
  font-weight: 700 !important;
  color: #111111 !important;
}
.g5ere__property-item .kr-fact-price { color: #111111 !important; display: inline !important; }


/* Match card area typography with price */
.g5ere__property-item .g5ere__loop-property-meta,
.g5ere__property-item .g5ere__loop-property-meta li,
.g5ere__property-item .g5ere__loop-property-meta li * {
  color: #111111 !important;
  font-size: 15px !important;
  line-height: 1.4 !important;
  font-weight: 700 !important;
}

/* Card area row: remove inherited divider and restore missing icon */
.g5ere__property-item .g5ere__loop-property-meta {
  border: 0 !important;
  padding-top: 0 !important;
}
.g5ere__property-item .g5ere__loop-property-meta li.size {
  display: flex !important;
  align-items: center !important;
}
.g5ere__property-item .g5ere__loop-property-meta li.size > i.svg-icon {
  display: inline-block !important;
  width: 18px !important;
  height: 18px !important;
  flex: 0 0 18px !important;
  margin-right: 7px !important;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpath d='M2 2h14v14H2zM7 2v5h9M2 11h5v5' fill='none' stroke='%23111111' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}
.g5ere__property-item .g5ere__loop-property-meta li.size > i.svg-icon svg { display: none !important; }


/* Align every property-card content row consistently */
.g5ere__property-item .g5ere__loop-content {
  display: grid !important;
  grid-template-columns: max-content minmax(0, 1fr) !important;
  column-gap: 16px !important;
  align-items: center !important;
}
.g5ere__property-item .g5ere__loop-property-title,
.g5ere__property-item .g5ere__loop-property-address {
  grid-column: 1 / -1 !important;
}
.g5ere__property-item .g5ere__loop-property-title { min-height: 44px !important; }
.g5ere__property-item .g5ere__loop-property-address { min-height: 42px !important; }
.g5ere__property-item .g5ere__loop-property-meta { grid-column: 1 !important; margin-right: 0 !important; }
.g5ere__property-item .kr-property-facts { grid-column: 2 !important; }


/* Compact aligned property-card text rows */
.g5ere__property-item .g5ere__loop-property-title {
  min-height: 42px !important;
  margin-bottom: 4px !important;
}
.g5ere__property-item .g5ere__loop-property-address {
  min-height: 0 !important;
  height: 20px !important;
  line-height: 20px !important;
  margin-bottom: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.g5ere__property-item .g5ere__loop-property-address a {
  display: block !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.g5ere__property-item .g5ere__loop-property-meta,
.g5ere__property-item .kr-property-facts { margin-top: 8px !important; }


/* Krishna Realty: consistent desktop header and logo sizing */
@media (min-width: 1200px) {
  .g5core-header-desktop-wrapper.sticky-area,
  .g5core-header-desktop-wrapper > .container,
  .g5core-header-desktop-wrapper .g5core-header-inner,
  .g5core-header-desktop-wrapper .g5core-site-branding {
    height: 100px !important;
    min-height: 100px !important;
  }
  .g5core-header-desktop-wrapper .g5core-site-branding {
    display: flex !important;
    align-items: center !important;
  }
  .g5core-header-desktop-wrapper .site-logo.has-sticky {
    height: 80px !important;
    max-height: 80px !important;
    width: auto !important;
    margin: 0 !important;
  }
  .g5core-header-desktop-wrapper .site-logo.site-logo-sticky {
    height: 60px !important;
    max-height: 60px !important;
    width: auto !important;
    margin: 0 !important;
  }
}


/* Remove Elementor wrapper gaps around Home and About page content */
body.page-id-2427 .elementor-element-3510414 > .elementor-widget-wrap,
body.page-id-3615 .elementor-element-1a98af6 > .elementor-widget-wrap {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
body.page-id-3615 .elementor-element-4a644e8 {
  margin-bottom: 0 !important;
}

body.page-id-3615 .elementor-element-1a98af6 > .elementor-container > .elementor-column > .elementor-widget-wrap {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
