/* Design 03 styles for Available Homes */
:root {
    --ah-white: #fff;
    --ah-light-gray: #444;
    --ah-medium-gray: #888;
    --ah-border-gray: #bbb;
    --ah-text-dark: #222;
    --ah-accent-red: #b94a2c;
    --ah-shadow: rgba(0, 0, 0, 0.18);
    --ah-shadow-hover: rgba(0, 0, 0, 0.10);
    --ah-shadow-light: rgba(0, 0, 0, 0.08);
    --ah-shadow-medium: rgba(0, 0, 0, 0.15);
}

body, .homes-grid, .home-card, .single-home, .featured-heading, .featured-bar, .home-title, .home-desc, .sidebar, .sidebar-title, .sidebar input, .sidebar textarea, .sidebar button, .view-btn {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif !important;
}

.homes-grid {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  gap: 2rem;
  margin: 2rem auto;
  width: 100%;
  max-width: 1200px;
  padding: 18px 24px;
}
.home-card {
  background: var(--ah-white);
  border-radius: 0;
  box-shadow: 0 8px 32px var(--ah-shadow);
  overflow: hidden;
  transition: box-shadow 0.2s;
  width: 350px;
}
.home-card:hover {
  box-shadow: 0 2px 8px var(--ah-shadow-hover);
}

.home-image-link {
  display: block;
  position: relative;
}
.home-image {
  width: 100%;
  height: 220px !important;
  object-fit: cover;
  display: block;
}
.no-image {
  width: 100%;
  height: 220px;
  background: var(--ah-bg-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ah-primary);
  font-size: 1.1rem;
}

.home-content {
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.home-title {
  color: var(--ah-primary);
  font-size: 1.5rem;
  font-weight: 500;
  text-transform: uppercase;
  margin: 0 0 1rem 0;
  width: 100%;
  text-align: center;
  letter-spacing: 0;
  line-height: 1.1;
  min-height: 3.5rem;
}
.home-details {
  font-size: 1.1rem;
  color: var(--ah-light-gray);
  margin-bottom: 1rem;
  text-align: center;
}

.single-home-title {
  color: var(--ah-primary);
  font-size: 2rem;
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  text-align: left;
  letter-spacing: 0;
  line-height: 1.1;
}

.single-subtitle-address {
  color: var(--ah-light-gray);
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 1rem;
  text-align: left;
}

.home-pricing {
  margin-bottom: 1rem;
  text-align: center;
  min-height: 4rem;
  color: var(--ah-light-gray);
}

.single-home-pricing {
  margin-bottom: 1rem;
  min-height: 4rem;
  color: var(--ah-light-gray);
}

.home-price {
  font-size: 1.5rem;
}

.home-sqft {
  font-weight: 400;
  margin-bottom: 0.25rem;
}
.home-bb {
  font-weight: 400;
  color: var(--ah-light-gray);
}

.view-btn {
  display: inline-block;
  background: var(--ah-secondary);
  color: var(--ah-white);
  border-radius: 3px;
  padding: 0.75rem 2.5rem;
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-align: center;
  text-decoration: none !important;
  margin-top: 15px;
  transition: transform 0.18s cubic-bezier(.4,2,.6,1), background 0.2s, color 0.2s;
}
.view-btn:hover {
  border: 1px solid var(--ah-secondary);
  color: var(--ah-white) !important;
  transform: scale(1.08);
  cursor: pointer;
}

/* Status ribbon styles */
.ah-status-ribbon {
    color: var(--ah-white);
    display: block;
    font-size: 16px;
    font-weight: 700;
    height: 26px;
    line-height: 22px;
    opacity: 1;
    padding-bottom: 1px;
    padding-left: 0;
    padding-right: 0;
    padding-top: 2px;
    position: absolute;
    right: -22px;
    top: 37px;
    text-align: center;
    width: 250px;
    transform: matrix(0.866025, 0.7, -0.7, 0.866025, 32.9449, 10.9378);
    z-index: 10;
}

.section-title,
.wp-block-post-title,
h1 {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  color: var(--ah-primary);
  text-transform: uppercase;
  font-size: 2rem;
  font-weight: 500;
}

/* --- Design 03 Single Home Styles --- */
.single-home {
  max-width: 1200px;
  margin: 0 auto 48px auto;
  padding: 0 16px;
}
.featured-heading {
  text-align: center;
  color: var(--ah-primary);
  font-size: 2.2rem;
  font-weight: 500;
  text-transform: uppercase;
  margin: 2.5rem 0 1.5rem 0;
  letter-spacing: 0.01em;
}
.featured-image-wrap {
  width: 100%;
  position: relative;
  margin-bottom: 0;
}
.featured-image {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  display: block;
}
.featured-bar {
  width: 100%;
  background: var(--ah-primary);
  color: var(--ah-white);
  font-size: 2.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3.5rem;
  padding: 1rem 0;
  margin-top: 0;
  border: none;
  box-shadow: none;
}
.featured-bar-item {
  display: flex;
  align-items: center;
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}
.bar-sep {
  display: inline-block;
  width: 3px;
  height: 2.5rem;
  background: var(--ah-white);
  margin: 0 2.5rem;
  border-radius: 2px;
  vertical-align: middle;
  content: "";
}
.details-row {
  display: flex;
  flex-direction: row;
  gap: 3.5rem;
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
}
.main-details {
  flex: 2;
  min-width: 0;
}
.home-desc {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ah-text-dark);
  margin-bottom: 2.2rem;
  text-align: left;
  line-height: 1.7;
}
.home-note {
  font-size: .8rem;
  font-style: italic;
  font-weight: 500;
  color: var(--ah-light-gray);
  margin-top: 1.5rem;
  text-align: left;
}
.sidebar {
  flex: 1;
  background-color: var(--ah-bg-color);
  border-radius: 0.5rem;
  padding: 2.5rem 2rem 2rem 2rem;
  min-width: 320px;
  max-width: 400px;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  box-sizing: border-box;
}
.sidebar-title {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
  color: var(--ah-primary);
  font-size: 1.6rem;
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 2rem;
  text-align: left;
}
.sidebar form {
  width: 100%;
}
.sidebar input[type="text"],
.sidebar input[type="email"],
.sidebar input[type="tel"],
.sidebar textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  margin-bottom: 1.1rem;
  border: 1px solid var(--ah-border-gray);
  border-radius: 0.25rem;
  font-size: 1rem;
  font-family: inherit;
  box-sizing: border-box;
}
.sidebar input[type="submit"],
.sidebar .gform_button,
.sidebar input.gform_button {
  background: var(--ah-primary) !important;
  color: var(--ah-white) !important;
  border: 2px solid var(--ah-white) !important;
  border-radius: 0 !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  width: 100% !important;
  box-shadow: 0 2px 10px var(--ah-shadow-light) !important;
  transition: border-color 0.18s cubic-bezier(.4,2,.6,1) !important;
  display: block !important;
  margin-top: 1.5rem !important;
  padding: 1.2rem 0 !important;
}
.sidebar input[type="submit"]:hover,
.sidebar .gform_button:hover,
.sidebar input.gform_button:hover {
  border-color: var(--ah-secondary) !important;
  color: var(--ah-white) !important;
}
.sidebar, .sidebar-title, .sidebar input, .sidebar textarea, .sidebar button, .sidebar select, .sidebar label, .sidebar form {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}
.sidebar label, .sidebar .gfield_label {
  color: var(--ah-primary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.1rem;
  text-align: left;
  display: block;
  margin-bottom: 0.25rem;
}
.sidebar .gfield_label .gfield_required,
.sidebar label .gfield_required,
.sidebar label .required,
.sidebar .gfield_label .required {
  color: var(--ah-accent-red);
  font-weight: 400;
  text-transform: none;
  font-size: 1rem;
  margin-left: 0.25em;
}
.sidebar input::placeholder,
.sidebar textarea::placeholder {
  color: var(--ah-medium-gray);
  font-weight: 400;
  opacity: 1;
  font-family: inherit;
}
/* Gravity Forms horizontal subfields for Design 03 */
.sidebar .ginput_complex.ginput_container,
.sidebar .gform_fields .gfield.gf_simple_horizontal {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.sidebar .ginput_complex.ginput_container .ginput_left,
.sidebar .ginput_complex.ginput_container .ginput_right,
.sidebar .gform_fields .gfield.gf_simple_horizontal .ginput_container {
  flex: 1 1 0;
  min-width: 0;
}
.sidebar .gform_title {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif !important;
}
@media (max-width: 900px) {
  .homes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .details-row {
    flex-direction: column;
    gap: 2.5rem;
  }
  .sidebar {
    max-width: 100%;
    min-width: 0;
    margin-left: 0;
    margin-top: 2.5rem;
  }
}
@media (max-width: 600px) {
  .homes-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 0 6px;
    justify-content: center;
  }
  .home-content {
    padding: 1.25rem 0.75rem 1rem 0.75rem;
  }
  .home-image, .no-image {
    height: 160px;
  }
  .home-card {
    width: 100%;
    margin: 0;
    border-radius: 0;
  }
  .single-home {
    padding: 0 22px;
  }
  .featured-heading {
    font-size: 1.75rem;
    margin: 1.5rem 0 1rem 0;
    padding-bottom: 1rem;
  }
  .featured-bar {
    background: var(--ah-primary);
    color: var(--ah-white);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 1.25rem;
    padding: 1.5rem 0 1.5rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    border: none;
    box-shadow: none;
  }
  .featured-bar .mobile-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 2.2rem;
    width: 100%;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
  }
  .featured-bar .mobile-row span {
    display: inline-block;
    min-width: 70px;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
  }
  .featured-bar .mobile-sqft {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 0.2rem;
    letter-spacing: 0.02em;
  }
  .featured-bar .bar-sep {
    display: none;
  }
  .details-row {
    gap: 1.2rem;
    margin-top: 1.2rem;
  }
  .sidebar {
    padding: 1.2rem 0.7rem 1.2rem 0.7rem;
  }
  .home-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  .home-desc {
    font-size: 1rem;
    margin-bottom: 1.2rem;
  }
  .home-note {
    font-size: 0.95rem;
    margin-top: 1rem;
  }
  .single-home-title {
    font-size: 1.75rem;
  }
} 

/* --- Begin Slick Carousel Gallery Styles (copied from design 2) --- */
.ah-gallery {
    margin-bottom: 0;
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding: 0;
}
.ah-gallery-main {
    position: relative;
    width: 100%;
    text-align: center;
    margin: 0;
    padding: 0;
    overflow: hidden;
}
.ah-gallery-main img {
    width: 100%;
    height: 600px;
    max-height: 600px;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
    display: block;
    margin: 0;
    padding: 0;
}
.ah-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--ah-primary);
    border: none;
    font-size: 2rem;
    font-weight: 700;
    color: var(--ah-white);
    cursor: pointer;
    z-index: 2;
    padding: 0 12px;
    border-radius: 50%;
    box-shadow: 0 2px 8px var(--ah-shadow-hover);
    transition: background 0.2s;
}
.ah-slider-prev {
    left: 10px;
}
.ah-slider-next {
    right: 10px;
}
.ah-slider-nav:hover {
  background: var(--ah-secondary);
  box-shadow: 0 4px 16px var(--ah-shadow-medium);
}

@media (max-width: 600px) {
    .ah-gallery-main img {
        height: 220px;
        max-height: 220px;
    }
    .featured-bar {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 1rem;
    }
    .featured-bar-item {
        font-size: 1rem;
    }
}
/* --- End Slick Carousel Gallery Styles --- */

/* Gravity Forms Font Override */
.gform_wrapper,
.gform_wrapper *,
.gform_wrapper h2,
.gform_wrapper input,
.gform_wrapper label,
.gform_wrapper button,
.gform_wrapper textarea,
.gform_wrapper select {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Oxygen-Sans", Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
} 

.ah-home-list-button {
  background: var(--ah-primary);
  color: var(--ah-white) !important;
  border: 2px solid var(--ah-white);
  border-radius: 0 !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  box-shadow: 0 2px 10px var(--ah-shadow-light) !important;
  transition: border-color 0.18s cubic-bezier(.4,2,.6,1) !important;
  margin-top: 1.5rem !important;
  padding: 1.2rem 2.5rem !important;
  text-align: center;
  text-decoration: none;
  display: inline-block !important;
}
.ah-home-list-button:hover {
  border-color: var(--ah-secondary) !important;
} 
.ah-home-list-button-container {
  text-align: center;
}

.ah-button {
  background: var(--ah-primary);
  color: var(--ah-white) !important;
  border: 2px solid var(--ah-white);
  border-radius: 0 !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  box-shadow: 0 2px 10px var(--ah-shadow-light) !important;
  transition: border-color 0.18s cubic-bezier(.4,2,.6,1) !important;
  margin-top: 1.5rem !important;
  padding: 1.2rem 2.5rem !important;
  text-align: center;
  text-decoration: none;
  display: inline-block !important;
  width: 100%;
}
.ah-button:hover {
  border-color: var(--ah-secondary) !important;
}
