/*
 Theme Name:     Divi Child
 Theme URI:      
 Description:    Divi Child Theme
 Author:         
 Author URI:     
 Template:       Divi
 Version:        1.0.0
*/
 
 
/* =Theme customization starts here - Solidreal
------------------------------------------------------- */

body {
  font-family: "new-hero", sans-serif;
}

/* Links */
a {
  color: #9a7438;
  transition: color 0.25s ease;
}

/* Use a:hover only where it will not be overridden by button/menu rules */
a:hover {
  color: #c19048;
}


/* =========================
   Header & Menu
========================= */

#main-header {
  position: relative;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06) !important;
}

.container.clearfix.et_menu_container {
  width: 90%;
}

#top-menu li a {
  font-weight: 400 !important;
  color: #2A2A2A !important;
  opacity: 1 !important;
  transition: color 0.25s ease;
}

#top-menu li a:hover,
#top-menu > li.current-menu-item > a,
#top-menu > li.current_page_item > a,
#top-menu > li.current-menu-ancestor > a,
#top-menu li li.current-menu-item > a,
#top-menu li li.current_page_item > a,
#top-menu li li.current-menu-ancestor > a {
  color: #c19048 !important;
  opacity: 1 !important;
}

#top-menu li a::before {
  display: none !important;
}

#top-menu .menu-item-has-children > a:first-child:hover::after,
#top-menu .menu-item-has-children.current-menu-ancestor > a:first-child::after,
#top-menu .menu-item-has-children.current-menu-item > a:first-child::after {
  color: #c19048 !important;
}


/* =========================
   Desktop Dropdown
========================= */

#top-menu li ul.sub-menu {
  width: 250px !important;
  left: -70px !important;
  padding: 18px !important;
  position: absolute;
  display: block !important;
  overflow: hidden;

  background: #ffffff !important;
  border-top: 3px solid #c19048 !important;
  border-radius: 0 0 10px 10px !important;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06) !important;

  opacity: 0;
  visibility: hidden;
  transform: translateY(-18px);
  pointer-events: none;

  transition:
    opacity 0.8s cubic-bezier(.4, 0, .2, 1),
    transform 0.8s cubic-bezier(.4, 0, .2, 1),
    visibility 0s linear 0.8s;
}

#top-menu li:hover > ul.sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;

  transition:
    opacity 0.8s cubic-bezier(.4, 0, .2, 1),
    transform 0.8s cubic-bezier(.4, 0, .2, 1);
}

#top-menu li ul.sub-menu li,
#top-menu li ul.sub-menu li a,
.nav li ul li,
.nav li ul li a {
  background: transparent !important;
}

#top-menu li ul.sub-menu li {
  width: 100% !important;
  padding: 0 !important;
  position: relative;
  z-index: 1;
}

#top-menu li ul.sub-menu li a {
  width: 100% !important;
  padding: 10px 14px !important;
  font-weight: 400 !important;
  color: #2A2A2A !important;
}

#top-menu li ul.sub-menu li a:hover {
  color: #c19048 !important;
  background: transparent !important;
}


/* =========================
   Mobile Menu
========================= */

/* Mobile-menu logo size */
@media (max-width: 980px) {
  .et_header_style_left #logo, .et_header_style_split #logo {
    max-width: 190px !important;
  }
}

@media (max-width: 1015px) {

  #et_mobile_nav_menu {
    display: block;
  }

  #top-menu {
    display: none;
  }

  .et_non_fixed_nav.et_transparent_nav #main-header,
  .et_non_fixed_nav.et_transparent_nav #top-header,
  .et_fixed_nav #main-header,
  .et_fixed_nav #top-header {
    position: fixed;
  }

  #main-header {
    height: 80px;
  }

  .logo_container {
    height: 80px !important;
  }

  #et-top-navigation {
    padding-top: 25px !important;
  }

  .et_header_style_left #logo,
  .et_header_style_split #logo {
    max-width: 190px !important;
  }

  #mobile_menu {
    position: fixed;
    top: 80px;
    left: 5%;
    right: 5%;
    width: 90% !important;
    max-height: calc(100dvh - 90px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;

    padding: 20px 24px calc(30px + env(safe-area-inset-bottom)) !important;
    background: #ffffff !important;
    border-top: 3px solid #c19048 !important;
    border-radius: 0 0 10px 10px !important;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08) !important;
  }

  .et_mobile_menu {
    background: transparent !important;
    border-top: 0 !important;
  }

  .et_mobile_menu li,
  .et_mobile_menu ul,
  .et_mobile_menu li a,
  .et_mobile_menu .menu-item-has-children,
  .et_mobile_menu .menu-item-has-children > a,
  .et_mobile_menu ul.sub-menu,
  .et_mobile_menu ul.sub-menu li,
  .et_mobile_menu ul.sub-menu li a {
    background: transparent !important;
  }

  .et_mobile_menu li,
  .et_mobile_menu li a {
    position: relative;
    z-index: 1;
  }

  .et_mobile_menu li a {
    display: block;
    padding: 15px 0 !important;
    text-align: left;
    font-size: 18px !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
    color: #2A2A2A !important;
    opacity: 1 !important;
    border-bottom: 0 !important;
    background: none !important;
    transition: color 0.25s ease;
  }

  .et_mobile_menu li a:hover,
  .et_mobile_menu li.current-menu-item > a,
  .et_mobile_menu li.current_page_item > a,
  .et_mobile_menu li.current-menu-ancestor > a {
    color: #c19048 !important;
    background: none !important;
    opacity: 1 !important;
  }

  .et_mobile_menu li a::before {
    display: none !important;
  }

  .et_mobile_menu ul.sub-menu {
    padding-left: 0 !important;
    margin-left: 0 !important;
    background: transparent !important;
  }

  .et_mobile_menu li li a {
    padding: 12px 0 12px 16px !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    color: #2A2A2A !important;
  }

  .et_mobile_menu li li a:hover {
    color: #c19048 !important;
  }

  .et_mobile_menu li a,
  .et_mobile_menu li ul.sub-menu a {
    border-bottom: 0 !important;
    box-shadow: none !important;
  }

  .et_mobile_menu .parent-menu-item > a {
    position: relative;
    background-color: transparent !important;
  }

  .et_mobile_menu .parent-menu-item > a::after {
    content: "\43";
    font-family: ETmodules;
    font-weight: normal;
    position: absolute;
    top: 14px;
    right: 0;
    color: #2A2A2A;
    transform-origin: center;
    visibility: visible;

    transition:
      transform 0.45s cubic-bezier(.4, 0, .2, 1),
      color 0.25s ease;
  }

  .et_mobile_menu .parent-menu-item > a:hover::after,
  .et_mobile_menu .parent-menu-item > a.switched-icon::after {
    color: #c19048 !important;
  }

  .et_mobile_menu .parent-menu-item > a.switched-icon::after {
    transform: rotate(180deg);
  }

  .child-menu-item {
    display: block !important;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-8px);
    pointer-events: none;

    transition:
      max-height 0.5s cubic-bezier(.4, 0, .2, 1),
      opacity 0.35s cubic-bezier(.4, 0, .2, 1),
      transform 0.5s cubic-bezier(.4, 0, .2, 1);
  }

  .show-menu-items {
    max-height: 1000px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}

/* =========================
   Scroll to top button
========================= */

.et_pb_scroll_top.et-pb-icon.et-visible,
.et_pb_scroll_top.et-hidden {
  margin-right: 5px;
  background: #9a7438;
  color: #ffffff;
  border-radius: 100px;
}

.et_pb_scroll_top::before {
  content: '\42';
}

/* =========================
   Buttons
========================= */

.button-wrapper {
  display: flex;
  gap: 5px;
  align-items: center;
}

.button-wrapper .et_pb_button,
.button-wrapper .hero-button-light,
.button-wrapper .hero-button-dark,
.button-wrapper .et_pb_button:hover,
.button-wrapper .hero-button-light:hover,
.button-wrapper .hero-button-dark:hover {
  padding-left: 40px !important;
  padding-right: 40px !important;
}

.hero-button-light {
  background: transparent !important;
  color: #9a7438 !important;
}

.hero-button-light:hover {
  background: #c19048 !important;
  border-color: #c19048 !important;
  color: #fff !important;
}


/* =========================
   Cards
========================= */

.card {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
}

.equal-card-row {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: stretch !important;
}

.equal-card-row .card {
  width: 22.75% !important;
  margin-right: 3% !important;
  display: flex !important;
  flex-direction: column !important;
  height: auto !important;
  min-height: 100%;
}

.equal-card-row .card:nth-child(4n),
.equal-card-row.services-grid .card:nth-child(3) {
  margin-right: 0 !important;
}

.equal-card-row.services-grid {
  justify-content: center !important;
}

.equal-card-row .card .et_pb_blurb {
  flex: 1 1 auto !important;
}

.equal-card-row .card .et_pb_text {
  margin-top: auto !important;
  padding-bottom: 20px !important;
}

.equal-card-row .card .et_pb_text_inner p {
  margin-bottom: 0 !important;
}


/* =========================
   Responsive
========================= */

@media only screen and (max-width: 980px) {

  #main-header .container,
  .container.clearfix.et_menu_container {
    width: 90% !important;
    max-width: 90% !important;
  }

  .button-wrapper {
    justify-content: center;
  }

  .equal-card-row .card {
    width: 47% !important;
    margin-right: 6% !important;
  }

  .equal-card-row .card:nth-child(2n) {
    margin-right: 0 !important;
  }
}

@media (max-width: 767px) {

  #mobile_menu {
    left: 0;
    right: 0;
    width: 100% !important;
    border-radius: 0 !important;
  }

  .button-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .button-wrapper .et_pb_button,
  .button-wrapper .hero-button-light,
  .button-wrapper .hero-button-dark {
    width: 100%;
    text-align: center;
  }

  .equal-card-row .card {
    width: 100% !important;
    margin-right: 0 !important;
    margin-bottom: 32px !important;
  }

  .equal-card-row .card:last-child {
    margin-bottom: 0 !important;
  }
}

/* =========================
   Why Section
========================= */

.why-section {
  overflow: hidden;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.why-row {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;

  display: grid !important;
  grid-template-columns: 5fr 2fr;
  align-items: stretch;
}

.why-row > .et_pb_column {
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  display: block !important;
}

/* Left brown area */
.why-left {
  background: #9a7438;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;

  padding-top: 80px !important;
  padding-bottom: 80px !important;
  padding-left: calc((100vw - min(90vw, 1280px)) / 2) !important;
  padding-right: 80px !important;
}

/* Nested rows inside left column */
.why-left .et_pb_row_nested {
  width: 100% !important;
  max-width: 900px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 0 !important;
}

.why-left .et_pb_row_nested + .et_pb_row_nested {
  margin-top: 40px !important;
}

/* Nested columns stay 2 columns */
.why-left .et_pb_row_nested > .et_pb_column {
  width: 50% !important;
  margin: 0 !important;
}

/* Blurb cleanup */
.why-left .et_pb_blurb {
  margin-bottom: 0 !important;
}

.why-left .et_pb_blurb_content {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  text-align: left !important;
}

.why-left .et_pb_main_blurb_image {
  width: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
  margin-right: -25px !important;
  display: block !important;
}

.why-left .et_pb_main_blurb_image img {
  width: 40px !important;
  height: auto !important;
}

.why-left .et_pb_blurb_container {
  display: block !important;
  flex: 1 1 auto !important;
  text-align: left !important;
  padding-right: 24px !important;
}

.why-left .et_pb_blurb_description,
.why-left .et_pb_blurb_description p {
  color: #ffffff !important;
  margin-bottom: 0 !important;
}

/* Right image */
.why-image {
  display: block !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  margin-top: 0 !important;
}

@media (max-width: 980px) {
  .why-row {
    grid-template-columns: 1fr;
    gap: 0 !important;
    row-gap: 0 !important;
  }

  .why-left {
    padding: 70px 5% !important;
  }

  .why-left .et_pb_row_nested {
    max-width: none !important;
    width: 100% !important;
  }

  .why-left .et_pb_row_nested > .et_pb_column {
    width: 50% !important;
  }

  .why-image {
    display: block !important;
    width: 100% !important;
    min-height: 320px;
    margin-top: 0 !important;
  }

  .why-image .et_pb_module {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
}

@media (max-width: 767px) {
  .why-left {
    padding: 50px 5% !important;
  }

  .why-left .et_pb_row_nested {
    margin-top: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 28px !important;
  }

  .why-left .et_pb_row_nested + .et_pb_row_nested {
    margin-top: 28px !important;
  }

  .why-left .et_pb_row_nested > .et_pb_column {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    display: block !important;
  }


  .why-image {
    display: block !important;
    width: 100% !important;
    min-height: 300px;
    margin-top: 0 !important;
  }
}

/* =========================
   Latest Listings
========================= */

.sr-latest-listings {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.sr-latest-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.35s cubic-bezier(.4, 0, .2, 1);
}

.sr-latest-card:hover {
  transform: translateY(-5px);
}

.sr-latest-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

/* Image */
.sr-latest-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.sr-latest-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform 0.8s cubic-bezier(.4, 0, .2, 1);
}

.sr-latest-card:hover .sr-latest-image img {
  transform: scale(1.035);
}

/* Content */
.sr-latest-content {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 28px;
}

.sr-latest-location {
  color: #9a7438;
  font-size: 15px;
  line-height: 1.4;
  margin-bottom: 10px;
}

/* H4-style title */
.sr-latest-title {
  padding-bottom: 10px;
  letter-spacing: -1px;
  line-height: 1.1em;
  font-weight: 300;
  color: var(--gcid-body-color, #333333) !important;
  font-size: 26px;
  margin: 0 0 18px 0;
}

/* Meta */
.sr-latest-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  color: #666;
  font-size: 15px;
  line-height: 1.4;
  margin-bottom: 18px;
}

/* Price sticks to same vertical area */
.sr-latest-price {
  margin-top: auto;
  color: #9a7438;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 600;
  padding-top: 18px;
}

/* Button */
.sr-latest-button {
  display: inline-block;
  width: fit-content;
  margin-top: 18px;
  color: #9a7438;
  font-size: 16px;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.25s ease;
}

.sr-latest-card:hover .sr-latest-button {
  color: #c19048;
}

/* Latest listings: default desktop = 3 cards */
.sr-latest-listings .sr-latest-card:nth-child(4) {
  display: none;
}

/* Tablet = show 4 cards in 2x2 */
@media (min-width: 768px) and (max-width: 980px) {
  .sr-latest-listings .sr-latest-card:nth-child(4) {
    display: block;
  }
}

/* Mobile = back to 3 cards */
@media (max-width: 767px) {
  .sr-latest-listings .sr-latest-card:nth-child(4) {
    display: none;
  }
}

/* Tablet */
@media (max-width: 980px) {
  .sr-latest-listings {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .sr-latest-content {
    padding: 24px;
  }

  .sr-latest-title {
    font-size: 24px;
  }
}


/* =========================
   All Listings - Nehnuteľnosti
========================= */

.sr-listings-wrap {
  width: 100%;
}

/* Filter */
.sr-filter {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
  padding: 28px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
}

.sr-filter select,
.sr-filter input:not([type="checkbox"]) {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 6px;
  background: #ffffff;
  color: #333333;
  font-family: inherit;
  font-size: 15px;
}

.sr-filter label {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  color: #333333;
  font-size: 15px;
}

.sr-filter input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: 0 0 18px !important;
}

.sr-filter label:nth-of-type(1) {
  grid-column: 1;
}

.sr-filter label:nth-of-type(2) {
  grid-column: 2;
}

.sr-filter label:nth-of-type(3) {
  grid-column: 3;
}

.sr-filter label:nth-of-type(4) {
  grid-column: 4;
}

/* Filter buttons */
.sr-filter button[type="submit"] {
  display: inline-block;
  grid-column: 1 / span 2;
  min-height: auto;
  padding: .3em 40px !important;
  font-family: inherit;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.7em !important;
  text-align: center;
  border: 2px solid #9a7438;
  border-radius: 10px;
  background: #9a7438;
  color: #ffffff !important;
  cursor: pointer;
  transition: all 0.25s ease;
}

.sr-filter button[type="submit"]:hover {
  background: #c19048;
  border-color: #c19048;
  color: #ffffff !important;
}

.sr-reset-filter {
  display: inline-flex;
  grid-column: 3 / span 2;
  align-items: center;
  justify-content: center;
  min-height: auto;
  padding: .3em 40px !important;
  font-family: inherit;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.7em !important;
  text-align: center;
  border: 2px solid #9a7438;
  border-radius: 10px;
  background: transparent;
  color: #9a7438 !important;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.sr-reset-filter:hover {
  background: #c19048;
  border-color: #c19048;
  color: #ffffff !important;
}

/* Count */
.sr-listings-count {
  margin-bottom: 24px;
  color: #333333;
  font-size: 16px;
}

/* Grid uses latest listing card styling */
.sr-listings-grid {
  margin-bottom: 44px;
}

/* Price monthly suffix */
.sr-listing-price small {
  margin-left: 4px;
  font-size: 14px;
  font-weight: 400;
}

/* Pagination */
.sr-listings-pagination {
  display: flex;
  justify-content: center;
  margin-top: 44px;
}

.sr-listings-pagination ul {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sr-listings-pagination li {
  margin: 0;
  padding: 0;
}

.sr-listings-pagination a,
.sr-listings-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.7em !important;
  border: 2px solid #9a7438;
  border-radius: 10px;
  background: transparent;
  color: #9a7438 !important;
  text-decoration: none;
  transition: all 0.25s ease;
}

.sr-listings-pagination .current {
  background: #9a7438;
  border-color: #9a7438;
  color: #ffffff !important;
}

.sr-listings-pagination a:hover {
  background: #c19048;
  border-color: #c19048;
  color: #ffffff !important;
}

/* No results */
.sr-no-results {
  padding: 28px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
}

/* Tablet */
@media (max-width: 980px) {
  .sr-filter {
    grid-template-columns: repeat(2, 1fr);
  }

  .sr-filter label:nth-of-type(1),
  .sr-filter label:nth-of-type(3) {
    grid-column: 1;
  }

  .sr-filter label:nth-of-type(2),
  .sr-filter label:nth-of-type(4) {
    grid-column: 2;
  }

  .sr-filter button[type="submit"] {
    grid-column: 1;
  }

  .sr-reset-filter {
    grid-column: 2;
  }
}

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

  .sr-filter label,
  .sr-filter label:nth-of-type(1),
  .sr-filter label:nth-of-type(2),
  .sr-filter label:nth-of-type(3),
  .sr-filter label:nth-of-type(4),
  .sr-filter button[type="submit"],
  .sr-reset-filter {
    grid-column: 1;
  }

  .sr-listings-pagination ul {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* =========================
   Listing detail Page
========================= */

.sr-revista-style {
  width: 100%;
  max-width: none;
  margin: 0;
  font-family: "new-hero", sans-serif;
  color: #333333;
}

/* Breadcrumb */
.sr-breadcrumb-note {
  margin-bottom: 24px;
  color: #9a7438;
  font-size: 15px;
}

/* Hero */
.sr-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: start;
  margin-top: 40px;
}

.sr-hero-info h1 {
  margin-bottom: 24px;
  color: #333333;
  font-size: 42px;
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -1px;
}

/* Info table */
.sr-info-table {
  width: 100%;
  margin-bottom: 24px;
  border-collapse: collapse;
}

.sr-info-table th,
.sr-info-table td {
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  vertical-align: top;
}

.sr-info-table th {
  width: 42%;
  color: #666666;
  text-align: left;
  font-weight: 400;
}

.sr-info-table td {
  color: #333333;
}

/* Price */
.sr-price-box {
  display: inline-block;
  margin: 24px 0;
  padding: 18px 24px;
  border: 2px solid #9a7438;
  border-radius: 10px;
  color: #9a7438;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
}

.sr-price-box span {
  margin-left: 5px;
  font-size: 15px;
  font-weight: 400;
}

/* Buttons */
.sr-action-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sr-action-grid .et_pb_button,
.sr-action-grid .hero-button-dark,
.sr-action-grid .hero-button-light,
.sr-action-grid .et_pb_button:hover,
.sr-action-grid .hero-button-dark:hover,
.sr-action-grid .hero-button-light:hover {
  padding-left: 40px !important;
  padding-right: 40px !important;
}

.sr-action-grid .hero-button-light {
  background: transparent !important;
  color: #9a7438 !important;
}

.sr-action-grid .hero-button-light:hover {
  background: #c19048 !important;
  border-color: #c19048 !important;
  color: #ffffff !important;
}

/* Gallery */
.sr-hero-gallery {
  position: relative;
}

.sr-main-photo {
  display: block;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.sr-main-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.sr-thumb-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.sr-thumb-strip a {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
}

.sr-thumb-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Content sections */
.sr-description,
.sr-features,
.sr-map,
.sr-contact-section {
  margin-top: 56px;
}

.sr-description h2,
.sr-features h2,
.sr-map h2,
.sr-broker h2,
.sr-contact-box h2 {
  margin-bottom: 20px;
  color: #9a7438;
  font-size: 34px;
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -1px;
}

.sr-description {
  width: 100%;
  max-width: none;
}

.sr-description p {
  line-height: 1.7;
}

/* Features */
.sr-features-table {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 44px;
}

.sr-feature-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.sr-feature-row span {
  color: #666666;
}

.sr-feature-row strong {
  color: #333333;
  font-weight: 500;
  text-align: right;
}

/* Map */
.sr-map iframe {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
}

/* Contact */
.sr-contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: start;
}

.sr-broker-card,
.sr-contact-box .wpcf7 {
  padding: 32px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
}

.sr-broker-card {
  display: flex;
  gap: 20px;
  align-items: center;
}

.sr-broker-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  background: #eeeeee;
  flex-shrink: 0;
}

.sr-broker-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sr-broker-info h3 {
  margin-bottom: 12px;
  color: #333333;
  font-size: 26px;
  font-weight: 300;
  line-height: 1.1;
}

.sr-broker-contact-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.sr-broker-contact-line img {
  width: 22px;
  height: 22px;
  display: block;
  flex-shrink: 0;
}

.sr-broker-contact-line a {
  color: #333333;
  text-decoration: none;
  transition: color 0.25s ease;
}

.sr-broker-contact-line a:hover {
  color: #c19048;
}

/* =========================
   Detail CF7 Form
========================= */

.sr-contact-box .wpcf7 form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sr-contact-box .wpcf7 p {
  margin: 0;
}

.sr-contact-box .wpcf7 input:not([type="checkbox"]):not([type="submit"]),
.sr-contact-box .wpcf7 textarea,
.sr-contact-box .wpcf7 select {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 6px;
  font-family: inherit;
  font-size: 15px;
  color: #333333;
  background: #ffffff;
}

.sr-contact-box .wpcf7 textarea {
  min-height: 140px;
  padding-top: 14px;
  padding-bottom: 14px;
  resize: vertical;
}

.sr-contact-box .wpcf7 input::placeholder,
.sr-contact-box .wpcf7 textarea::placeholder {
  color: #777777;
}

/* Acceptance */
.sr-contact-box .wpcf7 .wpcf7-acceptance .wpcf7-list-item {
  margin: 0;
}

.sr-contact-box .wpcf7 .wpcf7-acceptance label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #333333;
  font-size: 15px;
  line-height: 1.4;
  text-align: left;
}

.sr-contact-box .wpcf7 input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: 0 0 18px !important;
}

/* Cloudflare Turnstile */
.sr-contact-box .wpcf7 .cf-turnstile,
.sr-contact-box .wpcf7 .wpcf7-turnstile,
.sr-contact-box .wpcf7 [class*="turnstile"] {
  margin-top: 4px;
}

/* Submit button */
.sr-contact-box .wpcf7-submit {
  display: inline-block;
  align-self: flex-end;
  min-height: auto;
  padding: .3em 40px !important;
  border: 2px solid #9a7438;
  border-radius: 10px;
  background: #9a7438;
  color: #ffffff !important;
  font-family: inherit;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.7em !important;
  cursor: pointer;
  transition: all 0.25s ease;
}

.sr-contact-box .wpcf7-submit:hover {
  background: #c19048;
  border-color: #c19048;
  color: #ffffff !important;
}

/* Lightbox */
.solidreal-lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.92);
  opacity: 0;
  animation: srLightboxFadeIn 0.25s ease forwards;
}

@keyframes srLightboxFadeIn {
  to {
    opacity: 1;
  }
}

.solidreal-lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
  animation: srLightboxZoomIn 0.25s ease forwards;
}

@keyframes srLightboxZoomIn {
  from {
    transform: scale(0.97);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.solidreal-lightbox-close,
.solidreal-lightbox-prev,
.solidreal-lightbox-next {
  position: absolute;
  border: none;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  line-height: 1;
}

.solidreal-lightbox-close {
  top: 24px;
  right: 28px;
  font-size: 42px;
}

.solidreal-lightbox-prev,
.solidreal-lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 60px;
}

.solidreal-lightbox-prev {
  left: 28px;
}

.solidreal-lightbox-next {
  right: 28px;
}

/* Tablet */
@media (max-width: 980px) {
  .sr-hero-grid,
  .sr-contact-section {
    grid-template-columns: 1fr;
  }

  .sr-hero-info h1 {
    font-size: 36px;
  }

  .sr-features-table {
    grid-template-columns: 1fr;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .sr-hero-info h1 {
    font-size: 30px;
  }

  .sr-description h2,
  .sr-features h2,
  .sr-map h2,
  .sr-broker h2,
  .sr-contact-box h2 {
    font-size: 28px;
  }

  .sr-broker-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 24px;
  }

  .sr-broker-avatar {
    width: 88px;
    height: 88px;
  }

  .sr-broker-info h3 {
    font-size: 28px;
  }

  .sr-broker-contact-line {
    gap: 8px;
  }

  .sr-broker-contact-line a {
    font-size: 18px;
    line-height: 1.35;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .sr-contact-box .wpcf7 {
    padding: 24px;
  }

  .sr-contact-box .wpcf7-submit {
    width: 100% !important;
    align-self: stretch;
    text-align: center;
  }

  .sr-thumb-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .sr-action-grid {
    gap: 14px;
  }

  .sr-action-grid .et_pb_button,
  .sr-action-grid .hero-button-dark,
  .sr-action-grid .hero-button-light {
    width: 100% !important;
    text-align: center;
  }

  .solidreal-lightbox-prev {
    left: 14px;
  }

  .solidreal-lightbox-next {
    right: 14px;
  }
}

/* ==========================================================================
   SOLIDREAL: EARLY DESKTOP COLLAPSE (EXACT TABLET MIRROR FOR CSS GRID)
   Range: 1085px down to 981px
   ========================================================================== */

@media only screen and (max-width: 1085px) and (min-width: 981px) {
  /* 1. Main Row: Force the 3-column grid into a 1-column vertical stack */
  .solidreal-early-break.et_grid_row {
    --column-count: 1 !important;
    grid-template-columns: 1fr !important;
  }

  /* 2. Image Blocks: Targets all 3 agent image modules in this row */
  .solidreal-early-break .et_pb_code {
    background-position: center top 12% !important;
    min-height: 450px !important;
  }

  /* 3. Nested Rows: Targets all 3 name/role containers to mirror the tablet 2-column split */
  .solidreal-early-break .et_pb_row_nested {
    --column-count: 2 !important;
    grid-template-columns: repeat(2, 1fr) !important;
    grid-auto-flow: dense !important;
    justify-items: center !important;
    justify-content: start !important;
  }

  /* 4. Contact Text Alignment: Targets all 3 contact blocks via your custom class */
  .solidreal-early-break .sr-push-bottom {
    justify-content: start !important;
    flex-wrap: nowrap !important;
    text-align: left !important;
    align-self: center !important;
  }

  /* 5. Role Column Alignment: Targets the right-side role columns inside the nested rows */
  .solidreal-early-break .et_pb_row_nested > .et-last-child {
    align-items: stretch !important;
  }
}

/* ==========================================================================
   DESKTOP ALIGNMENT: PUSH CONTACT INFO TO BOTTOM
   ========================================================================== */

@media only screen and (min-width: 981px) {
    /* Safely targets your contact blocks using your custom class */
    .solidreal-early-break .sr-push-bottom {
        margin-top: auto !important;
    }
}


/* ==========================================================================
   Services EDGE-TO-EDGE TIMELINE CARD
   ========================================================================== */

/* 1. Mobile First: Image on Bottom, Edge-to-Edge Left/Right/Bottom */
.sr-edge-split {
    display: flex !important;
    flex-direction: column !important;
    min-height: 100% !important;
    
    /* Recreates the card look */
    background-color: #ffffff !important;
    border-radius: 10px !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06) !important;
    overflow: hidden !important; /* Keeps the image inside the rounded corners */
}

/* Specific Padding Request: 15px top/bottom, 20px left/right */
.sr-edge-text {
    padding: 15px 20px !important; 
}

/* Replicate Native Divi Heading Styles */
.sr-edge-text h3 {
    margin-top: 0 !important;
    margin-bottom: 15px !important; /* Adjust if you need more space below the title */
    font-weight: 300 !important;
    color: var(--gcid-heading-color) !important;
    font-size: 26px !important;
    line-height: 1.3em !important;
}

/* The Graphic Engine: Fills width, forced height, cropped perfectly */
.sr-edge-image {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    width: 100% !important;
    min-height: 400px !important; /* Controls mobile image height */
}

/* 2. Desktop Switch: Image on Right, Edge-to-Edge Top/Right/Bottom */
@media only screen and (min-width: 981px) {
    
    .sr-edge-split {
        flex-direction: row !important;
        align-items: stretch !important; /* Forces image to match text height */
    }

    .sr-edge-text {
        width: 60% !important;
    }

    .sr-edge-image {
        width: 40% !important;
        min-height: auto !important; /* Unlocks height for desktop */
    }
}

/* Replicate Native Divi Timeline Date */
.sr-edge-text .sr-edge-date {
    display: block !important;
    font-family: "new-hero", sans-serif !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    line-height: 1.7em !important;
    color: var(--gcid-body-color) !important;
    margin-bottom: 5px !important;
}

/* ==========================================================================
   SINGLE TEXT TIMELINE CARD (Bulletproof Div Structure with P Styles)
   ========================================================================== */

.sr-edge-text-single {
    background-color: #ffffff !important;
    border-radius: 10px !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06) !important;
    padding-bottom: 15px !important;
    width: 100% !important;
    display: block !important;
}

/* Flex row using neutral divs */
.sr-edge-text-single .sr-list-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: baseline !important;
    justify-content: flex-start !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Typography styles switched to default P values */
.sr-edge-text-single .sr-number,
.sr-edge-text-single .sr-content {
    font-family: "new-hero", sans-serif !important;
    font-weight: 400 !important;
    color: var(--gcid-body-color) !important;
    font-size: 18px !important;
    line-height: 1.7em !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Hard-lock the number width so single and double digits take exactly the same space */
.sr-edge-text-single .sr-number {
    flex: 0 0 30px !important; /* Forces a fixed 35px width block for the number */
    margin-right: 10px !important; /* Distance from the edge of the 35px block to the text */
    min-width: 0 !important;
}

/* Let the content fill the rest */
.sr-edge-text-single .sr-content {
    flex: 1 1 auto !important;
    text-align: left !important;
}

/* =========================
   Regular 3 Cards: equal height + centered 3rd on tablet
   Row = three-card-row
   Each card/column = three-card-column equal-card
========================= */

/* Equal-height columns */
.three-card-row {
  align-items: stretch;
}

.three-card-row .three-card-column.equal-card {
  display: flex;
}

/* Make module inside the column stretch */
.three-card-row .three-card-column.equal-card > .et_pb_module,
.three-card-row .three-card-column.equal-card .et_pb_blurb {
  width: 100%;
  height: 100%;
}

/* Equal-height blurb/card internals */
.three-card-row .three-card-column.equal-card .et_pb_module_inner,
.three-card-row .three-card-column.equal-card .et_pb_blurb_content {
  height: 100%;
}

.three-card-row .three-card-column.equal-card .et_pb_blurb_content {
  display: flex;
  flex-direction: column;
}

.three-card-row .three-card-column.equal-card .et_pb_blurb_container {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.three-card-row .three-card-column.equal-card .et_pb_blurb_description {
  flex: 1;
}

/* Tablet: 2 cards + centered 3rd */
@media (min-width: 768px) and (max-width: 980px) {
  .three-card-row {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .three-card-row .three-card-column.equal-card {
    width: 100% !important;
    margin: 0 !important;
  }

  .three-card-row .three-card-column.equal-card:nth-child(3) {
    grid-column: 1 / -1;
    width: calc((100% - 30px) / 2) !important;
    justify-self: center;
  }
}

/* Mobile: stacked */
@media (max-width: 767px) {
  .three-card-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 30px;
  }

  .three-card-row .three-card-column.equal-card {
    width: 100% !important;
    margin: 0 !important;
  }
}

/* ************************************************* */
/* Contacts map */
/* ************************************************* */
/* Force the Divi Code Module to expand and fill the flex column */
.sr-map-fill {
  flex-grow: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  margin-bottom: 0 !important; /* Strips any default Divi module spacing */
}

/* Force the inner wrapper to expand */
.sr-map-fill .et_pb_code_inner {
  flex-grow: 1 !important;
  display: flex !important;
}

/* Force the Google Map iframe to fill the space and kill the baseline gap */
.sr-map-fill iframe {
  flex-grow: 1 !important;
  width: 100% !important;
  height: 100% !important;   /* Overrides Google's hardcoded 450px height */
  display: block !important; /* Converts from inline to block, destroying the gap */
  border: none !important;
}

/* Tablet and Mobile: Hardcode minimum height when columns stack */
@media only screen and (max-width: 980px) {
  .sr-map-fill iframe {
    min-height: 400px !important;
  }
}

/* --- GDPR banner --- */

/* Banner */
.cmplz-cookiebanner {
    background: #ffffff !important;
    color: #333333 !important;
    border: 0 !important;
    border-radius: 10px !important;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1) !important;
    font-family: "new-hero", sans-serif !important;
}

/* --- Title and Text --- */
.cmplz-cookiebanner .cmplz-title,
.cmplz-cookiebanner .cmplz-header,
.cmplz-cookiebanner .cmplz-message,
.cmplz-cookiebanner .cmplz-description,
.cmplz-cookiebanner p,
.cmplz-cookiebanner span {
    color: #333333 !important;
}

.cmplz-cookiebanner .cmplz-title {
    font-weight: 400 !important;
}

.cmplz-description {
    line-height: 1.5em !important;
}

/* --- Buttons --- */
.cmplz-buttons .cmplz-btn {
    border: 2px solid #9a7438 !important;
    border-radius: 10px !important;
    letter-spacing: 0 !important;
    transition: all 250ms ease !important;
    text-transform: none !important;
    padding: 10px 24px !important;
    font-family: inherit !important;
}

/* Primary buttons */
.cmplz-btn.cmplz-accept,
.cmplz-btn.cmplz-save-preferences {
    background-color: #9a7438 !important;
    border-color: #9a7438 !important;
    color: #ffffff !important;
}

/* Secondary buttons */
.cmplz-btn.cmplz-deny,
.cmplz-btn.cmplz-view-preferences,
.cmplz-btn.cmplz-manage-options {
    background-color: #ffffff !important;
    border-color: #9a7438 !important;
    color: #9a7438 !important;
}

/* Hover */
.cmplz-btn.cmplz-accept:hover,
.cmplz-btn.cmplz-deny:hover,
.cmplz-btn.cmplz-view-preferences:hover,
.cmplz-btn.cmplz-save-preferences:hover,
.cmplz-btn.cmplz-manage-options:hover {
    background-color: #c19048 !important;
    border-color: #c19048 !important;
    color: #ffffff !important;
}

/* --- Document Links --- */
.cmplz-link.privacy-statement,
.cmplz-link.cookie-statement,
.cmplz-cookiebanner a {
    color: #9a7438 !important;
    text-decoration: none !important;
    transition: color 0.25s ease !important;
}

.cmplz-link.privacy-statement:hover,
.cmplz-link.cookie-statement:hover,
.cmplz-cookiebanner a:hover {
    color: #c19048 !important;
}

/* --- Categories/Toggles --- */
.cmplz-cookiebanner .cmplz-category-title {
    color: #333333 !important;
}

.cmplz-category {
    background: #ffffff !important;
    border: 1px solid rgba(0,0,0,0.12) !important;
    border-radius: 10px !important;
    margin-top: 15px !important;
}

.cmplz-icon {
    fill: #9a7438 !important;
    color: #9a7438 !important;
}

.cmplz-always-active {
    color: #333333 !important;
    opacity: .75 !important;
}

/* Scrollbar inside the banner */
.cmplz-cookiebanner *::-webkit-scrollbar-thumb {
    background-color: #9a7438 !important;
}

.cmplz-cookiebanner * {
    scrollbar-color: #9a7438 transparent !important;
}


/* ************************************************* */
/* Footer */
/* ************************************************* */
/* Footer social icons */
.sm-social-icons {
  display: flex;
}

.sm-social-icons a {
  margin-right: 15px;
  cursor: pointer;
}

.sm-social-icons a img {
  width: 40px;
  height: 40px;
}

/* Footer link contacts */
.sm-contact-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.sm-contact-line:last-child {
  margin-bottom: 0;
}

.sm-contact-icon {
  width: 30px;
  height: 30px;
}

/* Contact links */
.sm-contact-line a {
  color: #333333;
  text-decoration: none;
  margin: 0;
  padding: 0;
  line-height: 1.35;
}