/*!
Theme Name: UMH Rebuild
Theme URI: 
Author: Theme Admin
Author URI: 
Description: Description
Version: 1.2.3
Tested up to: 8.4
Requires PHP: 8.2
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: umh-rebuild
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/


.umh .community-details__amenities img {
  max-width: 0.8125rem;
  margin-right: 0.5rem;
  margin-top: 0.3125rem;
}

/* Featured Homes Promotions Links */
ul.featured-homes__promotions-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: var(--space-s);
}

ul.featured-homes__promotions-list li {
  font-size: 16px;
  color: #34a853;
  font-weight: 600;
  line-height: 24px;
  font-family: Montserrat;
  padding: 8px 12px;
  border: 1px solid #34A853;
  background: #F0F8F2;
}

ul.featured-homes__promotions-list li a {
  color: #34a853;
}

ul.featured-homes__promotions-list li:hover {
  background: #cef1d6;
}

/* Promotions Styles */

.community-details__promotions {
  padding-top: 27px;
}

.community-details__promotions p {
  color: #464855;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
}

.promotions-block__item {
  border-radius: 4px;
  border: 1px solid #34A853;
  background: #F0F8F2;
  padding: 16px 24px;
}

.promotions-block__title {
  color: #34A853;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 24px;
  margin: 0 0 12px 0;
  display: flex;
  gap: 12px;
}

.promotions-block__description {
  color: #464855;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 140%;
  padding-left: 36px;
}

.promotions-block__description p {
  margin: 0 0 1rem 0;
}

.promotions-block__description p:last-child {
  margin-bottom: 0;
}

/* Accordion Styles (Multiple Promotions) */
.promotions-accordion {
  width: 100%;
}

.promotions-accordion__item {
  margin-bottom: 0.75rem;
  border-radius: 4px;
  border: 1px solid #34A853;
  background: #F0F8F2;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.promotions-accordion__item:hover {
  box-shadow: 0 2px 4px rgba(52, 168, 83, 0.2);
}

.promotions-accordion__header {
  width: 100%;
  padding: 16px 24px;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: background-color 0.3s ease;
  position: relative;
}

.promotions-accordion__header:hover {
  background-color: rgba(52, 168, 83, 0.05);
}

.promotions-accordion__header:focus {
  outline: none;
}

.promotions-accordion__icon-before {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.promotions-accordion__header .promotions-accordion__title {
  flex: 1;
  color: #34A853;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 24px;
  text-align: left;
}

.promotions-accordion__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.promotions-accordion__header[aria-expanded="true"] .promotions-accordion__icon {
  transform: rotate(180deg);
}

.promotions-accordion__content {
  display: none;
  padding: 0 1.5rem 1.5rem;
}

.promotions-accordion__body {
  padding-left: 36px;
}

.promotions-accordion__description {
  color: #464855;
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 140%;
}

.promotions-accordion__description p {
  margin: 0 0 1rem 0;
}

.promotions-accordion__description p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .promotions-block__item {
    padding: 1rem;
  }

  .promotions-accordion__header {
    padding: 1rem;
  }

  .promotions-accordion__content {
    padding: 0 1rem 1rem;
  }
}

.umh.featured-homes .featured-homes__tag--sale a {
  color: #fff;
}

.featured-homes__tag.featured-homes__tag--sale:hover {
  background-color: #ab252f !important;
}

a.featured-homes__title-link {
  color: #212d58;
}

.featured-homes__total-price a:hover,
.featured-homes__monthly-price a:hover,
a.featured-homes__title-link:hover,
.featured-homes__amount:hover {
  color: #23527c !important;
}

/* Community FAQ */
section.section--community-faq {
  padding: var(--space-xl) 0;
}

section.section--community-faq .promotions-accordion {
  border: 1px solid #222d58;
  border-radius: 4px;
  width: 100%;
}

.section--community-faq .promotions-accordion__item:hover {
  box-shadow: none;
}

.section--community-faq .promotions-accordion__item button .promotions-accordion__title {
  color: #222d58;
}

.section--community-faq .promotions-accordion__item button .promotions-accordion__icon svg path {
  stroke: #222d58;
}

.section--community-faq .promotions-accordion__item button:hover {
  background: #f9fafd;
}

.section--community-faq .promotions-accordion__item .promotions-accordion__body {
  padding-left: 0;
}

.section--community-faq .promotions-accordion__item {
  margin-bottom: 0;
  border: 0;
  background: transparent;
}

.section--community-faq .promotions-accordion__item:not(:last-child) {
  border-bottom: 1px solid #222d58;
  border-radius: 0;
}

.section--community-faq .promotions-accordion__item .promotions-accordion__content {
  padding: 24px;
}

.section--community-faq .promotions-accordion__item button[aria-expanded="true"] {
  background: #f9fafd;
  border-radius: 4px 4px 0 0;
}

@media (min-width: 1024px) {
  .section--community-faq .promotions-accordion {
    min-width: 70%;
    max-width: 790px;
  }
}

section.section.section--hero .umh.hero,
section.section.section--hero .umh.hero picture img {
  min-height: 50dvh;
}

section.section--hero:has(.hero-award-logo) .umh.hero,
section.section--hero:has(.hero-award-logo) .umh.hero picture img {
  min-height: 75dvh;
}

.umh.hero figure.aspect-box {
  --aspect-ratio: 513/2560;
  /* position: absolute;
  bottom: var(--space-xs); */
  background: transparent;
}


.umh.hero .hero-award-logo {
  position: absolute;
  bottom: 0;
  padding-bottom: var(--space-s);
  width: 100%;
  left: 0;
  right: 0;
  margin: auto auto 0;
  object-fit: contain;
  max-width: 390px;
  display: flex;
  height: auto;
}


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

  section.section.section--hero .umh.hero,
  section.section.section--hero .umh.hero picture img {
    min-height: 500px;
  }

  .umh.hero .hero-award-logo {
    object-fit: contain;
  }
}

section.section--hero:has(.hero-award-logo) .umh.hero picture::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.umh.hero .hero__logos {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.umh.hero .hero__logos .hero__logos-list {
  display: flex;
  gap: 20px;
}

.umh.hero .hero__logos .hero__logos-list figure.aspect-box {
  --aspect-ratio: 240 / 390;
}