/*
 * Available Homes Alternate/Modern Design CSS
 *
 * How to Enable:
 *   - Go to WP Admin > Available Homes > Settings > Design Selection
 *   - Choose the alternate design option
 *
 */

@import url('https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Dosis:wght@400;500;600;700&display=swap');

:root {
    --ah-light-gray: #f0f0f0;
    --ah-medium-gray: #e0e0e0;
    --ah-white: white;
    --ah-shadow: rgba(0, 0, 0, 0.2);
    --ah-shadow-hover: rgba(0, 0, 0, 0.3);
    --ah-text-dark: #333;
    --ah-text-light: #666;
    --ah-overlay-bg: rgba(255, 255, 255, 0.5);
    --ah-overlay-bg-hover: rgba(255, 255, 255, 0.8);
    --ah-border-gray: #ddd;
    --gallery-width: 600px;
    --thumb-width: 112px;
    --thumb-gap: 10px;
}

body {
    font-family: 'Dosis', sans-serif !important;
}

/* BEGIN Available Homes Grid */
.ah-home {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 15px;
}

.ah-home-details {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 0;
}

.ah-detail-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    white-space: nowrap;
}

.ah-detail-item svg {
    width: 14px;
    height: 14px;
    fill: var(--ah-primary);
}

.ah-detail-item strong {
    white-space: nowrap;
}

.ah-homes-grid-item {
    height: 100%;
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0;
    border-radius: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.ah-homes-grid-image {
    position: relative;
    width: 100%;
    padding-bottom: 75%;
    overflow: hidden;
}

.ah-homes-grid-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ah-homes-grid-info {
    margin-top: 15px;
    width: 100%;
    padding: 0;
}

.ah-home-price {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--ah-text-dark);
    margin-bottom: 5px;
}

.ah-home-subtitle {
    font-size: 1em;
    color: var(--ah-text-light);
    margin-bottom: 10px;
}

.ah-home-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    width: 100%;
    position: relative;
    padding: 15px;
    border-radius: 4px;
    background-color: var(--ah-white);
}

.ah-home-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 1;
}

.ah-home-link:hover .ah-home-price,
.ah-home-link:hover .ah-home-subtitle {
    color: inherit;
}
/* END Available Homes Grid */


/* BEGIN Available Home Single */
.ah-single-wrapper {
    width: 100%;
    margin: 0px auto;
}

.ah-image-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 75%;
    overflow: hidden;
}

.ah-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ah-home-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.ah-gallery-item {
    width: 100%;
}

.ah-single-home {
    margin: 0 auto;
    padding: 20px;
}

.home-details {
    margin-bottom: 30px;
}

.ah-subtitle {
    font-size: 1.2em;
    color: var(--ah-primary);
    margin-top: -10px;
    margin-bottom: 10px;
    display: inline-block;
}

.ah-subtitle-bar {
    height: 2px;
    width: 50%;
    max-width: 100px;
    background-color: var(--ah-primary);
    margin-top: 20px;
    margin-bottom: 20px;
}

.ah-address, .ah-price, .ah-year-built {
    margin-bottom: 10px;
}

.ah-floorplan a,
.ah-video-tour a {
    display: inline-block;
    padding: 5px 15px;
    background-color: var(--ah-light-gray);
    border-radius: 4px;
    text-decoration: none;
    color: var(--ah-text-dark);
    transition: background-color 0.2s ease;
}

.ah-floorplan a:hover,
.ah-video-tour a:hover {
    background-color: var(--ah-medium-gray);
    text-decoration: none;
}

.ah-title-banner {
    background-color: var(--ah-primary);
    width: 100%;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
    box-sizing: border-box;
}

.ah-title-banner h1 {
    color: var(--ah-white);
    padding: 0;
    max-width: 1200px;
    margin: 0 auto;
}

/* Two-column layout */
.ah-two-column-layout {
    display: flex;
    flex-wrap: wrap;
    margin-top: 20px;
    max-width: 1300px;
    margin: 0 auto;
}

.ah-main-column {
    flex: 2;
    min-width: 0;
    padding: 40px;
}

.ah-sidebar-column {
    flex: 1;
    min-width: 250px;
    padding: 40px;
}

.ah-property-details {
    margin: 0 0 30px;
    padding: 20px;
    background-color: var(--ah-bg-color);
    border-radius: 4px;
    border-left: 4px solid var(--ah-primary);
}

.ah-property-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));
    gap: 20px;
}

.ah-property-detail-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ah-property-detail-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--ah-primary);
    border-radius: 50%;
    flex-shrink: 0;
}

.ah-property-detail-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--ah-white);
}

.ah-property-detail-content {
    display: flex;
    flex-direction: column;
}

.ah-property-detail-label {
    font-size: 14px;
    color: var(--ah-text-light);
    margin-bottom: 4px;
}

.ah-property-detail-value {
    font-size: 16px;
    font-weight: bold;
    color: var(--ah-text-dark);
}

.ah-action-buttons {
    border: 1px solid var(--ah-border-gray);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ah-button {
    display: inline-block;
    background-color: var(--ah-primary);
    color: var(--ah-white);
    padding: 10px 15px;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s, box-shadow 0.3s ease;
    box-shadow: 0 2px 4px var(--ah-shadow);
}

.ah-button:hover {
    background-color: var(--ah-primary-dark);
    transform: translateY(-2px);
}

/* Contact Section Styles */
.ah-contact-section {
    margin-top: 30px;
    padding: 20px;
    background-color: var(--ah-light-gray);
    border-radius: 4px;
}

.ah-contact-heading {
    font-size: 1.2em;
    color: var(--ah-text-dark);
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--ah-primary);
}

.ah-contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.ah-contact-item:last-child {
    margin-bottom: 0;
}

.ah-contact-label {
    font-weight: bold;
    color: var(--ah-text-dark);
    min-width: 60px;
    margin-right: 10px;
}

.ah-contact-value {
    color: var(--ah-text-light);
}
/* END Available Home Single */  

@media (max-width: 768px) {
    
    .ah-home-details {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 5px;
    }
    
    .ah-detail-item {
        flex: 0 0 auto;
    }
    
    .ah-title-banner h1 {
        margin: 10px auto;
        font-size: 30px;
    }
    
    .ah-main-column {
        min-width: unset;
        padding: 0px;
    }
    .ah-home-link {
        padding: 0;
    }
    .ah-homes-grid-item {
        margin-bottom: 30px;
    }
    .ah-sidebar-column {
        padding: 0px;
    }

}

/* Image Slider */
.ah-image-slider-container {
    position: relative;
    width: 100%;
    margin-bottom: 30px;
    overflow: hidden;
}

.ah-image-slider {
    position: relative;
    width: 100%;
    padding-bottom: 75%; /* Maintain aspect ratio */
}

.ah-slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.ah-slider-slide.active {
    opacity: 1;
    z-index: 2;
}

.ah-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: var(--ah-primary);
    color: var(--ah-white);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    transition: background-color 0.3s;
}

.ah-slider-nav:hover {
    background-color: var(--ah-secondary);
    opacity: .8;
}

.ah-slider-prev {
    left: 10px;
}

.ah-slider-next {
    right: 10px;
}



.ah-slider-details-overlay {
    position: relative;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--ah-primary);
    opacity: 0.9;
    padding: 10px 15px;
    z-index: 3;
}

.ah-slider-details-overlay .ah-home-details {
    justify-content: center;
    color: var(--ah-white);
}

.ah-slider-details-overlay .ah-detail-item {
    color: var(--ah-white);
}

.ah-slider-details-overlay .ah-detail-item svg {
    fill: var(--ah-white);
}

.ah-detail-separator {
    display: inline-block;
    width: 1px;
    height: 20px;
    background-color: var(--ah-white);
    margin: 0 10px;
}

.ah-sidebar-content {
    background-color: var(--ah-bg-color);
    border-radius: 4px;
    padding: 20px;
}

.ah-sidebar-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--ah-primary);
    text-transform: uppercase;
    margin-bottom: 20px;
    text-align: center;
    font-family: 'Amiri', serif;
}

.ah-divider {
    border: none;
    border-top: 2px solid var(--ah-primary);
    margin: 66px auto;
    width: 80%;
}

.ah-form-wrapper {
    width: 800px;
    margin: 50px auto;
    padding: 20px;
}

/* Gravity Forms */
.ah-main-card .gform_fields {
    row-gap: 20px !important;
}

.gform-field-label {
    color: #000000 !important;
    font-size: 18px !important;
    font-weight: 500 !important;
}

.gform_wrapper .ginput_container input {
    font-size: 18px!important;
    border: none;
    border-bottom: 2px solid #000;
    background-color: transparent;
    border-radius: 0;
    padding: 8px 0;
    box-shadow: none;
}

.gform_wrapper .ginput_container input:focus {
    outline: none !important;
    border: none !important;
    border-bottom: 2px solid #000 !important;
    box-shadow: none !important;
}

.gform_wrapper .ginput_container input:active {
    outline: none !important;
    border: none !important;
    border-bottom: 2px solid #000 !important;
    box-shadow: none !important;
}

.ah-single-wrapper .gform_button.button {
    max-width: 200px;
    margin: auto !important;
    font-size: var(--wp--preset--font-size--base) !important;
    text-transform: capitalize !important;
    --gf-local-bg-color: var(--ah-primary) !important;
    font-weight: bold !important;
    border-radius: 22px !important;
    padding: 12px 32px !important;
    font-size: 1.1rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
}

.ah-single-wrapper .gform_button.button:hover {
    background-color: var(--ah-secondary) !important;
    box-shadow: 0 4px 8px var(--ah-shadow-hover) !important;
}

/* Block Theme Adjustments */
.wp-block-group .ah-homes-grid p {
    display: none;
}
.wp-block-post-title {
    text-align: center;
	margin-bottom: 2em;
}
.ah-status-ribbon {
    color: #fff;
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    position: absolute;
    top: 15px;
    right: 15px;
    text-align: center;
    border-radius: 999px;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
    line-height: 1;
    transform: none;
    width: auto;
    height: auto;
}

/* Alternate Grid Card Styles */
.ah-homes-grid {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    gap: 28px;
    padding: 20px;
    max-width: 1200px;
}

.ah-home-card {
    background: var(--ah-bg-color);
    border-radius: 15px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.10);
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.2s;
    min-height: 0;
    width: 365px;
}
.ah-home-card:hover {
    box-shadow: 0 12px 36px rgba(0,0,0,0.16);
}
.ah-home-image {
    width: 100%;
    max-width: 100%;
    height: 300px;
    overflow: hidden;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    object-fit: cover;
    cursor: pointer;
    position: relative;
}

.ah-home-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
}
.ah-home-img-placeholder {
    width: 100%;
    height: 100%;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: 1.2em;
}
.ah-home-features {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 0;
    padding:15px 0;
}

.ah-home-features.ah-home-features-vertical {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    padding: 16px 0 0 0;
    background: #fff;
    text-align: center;
}

.ah-home-features.ah-home-features-horizontal {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 16px 0 0 0;
    background: #fff;
}

.ah-feature-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 2px;
}

.ah-feature-row-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.ah-feature-icon {
    background: var(--ah-primary);
    width: 30px;
    height: 30px;
    padding: 8px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Dosis', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: #000;
    text-align: center;
    text-transform: capitalize;
    letter-spacing: 1px;
    box-sizing: border-box;
}

.ah-feature-icon svg {
    width: 16px;
    height: 16px;
    fill: #fff;
    display: block;
}

.ah-feature-num, .ah-feature-label {
    font-size: .9rem;
    font-weight: 500;
    color: #181818;
    text-align: center;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.2;
}

.ah-feature-text {
    font-family: 'Dosis', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: #000;
    letter-spacing: 1px;
    line-height: 1.5;
    text-align: center;
    text-transform: capitalize;
}

.ah-home-btn {
    display: inline-block;
    margin-top: 0;
    margin-left: auto;
    font-size: 1em;
    padding: 10px 30px;
    background: var(--ah-primary);
    color: #fff !important;
    font-weight: 500;
    border: none;
    border-radius: 999px;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(142,182,190,0.10);
    cursor: pointer;
}
.ah-home-btn:hover {
    background: var(--ah-secondary);
    color: #fff;
}
.ah-feature-icon span {
    font-size: 0.95em;
    font-weight: 400;
    color: #222;
}

@media (max-width: 1000px) {
    .ah-homes-grid {
        grid-template-columns: repeat(2, 1fr);
        justify-content: center;
    }
}
@media (max-width: 600px) {
    .ah-homes-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 6px 0;
        justify-content: center;
    }
    .ah-home-features {
        padding-left: 8px;
        padding-right: 8px;
    }
}

.ah-homes-grid, .ah-homes-grid * {
    font-family: 'Dosis', sans-serif;
}

.ah-home-title {
    color: #000;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0;
    text-align: left;
    padding: 15px;
    position: relative;
    border-bottom: 1px solid #edecec;
    border-top: 1px solid #edecec;
}

.ah-home-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0;
    padding: 20px 15px;
}
.ah-home-price {
    margin-bottom: 0;
    font-size: 1.4rem;
    font-weight: 800;
    color: #181818;
    letter-spacing: 0.5px;
    text-align: left;
}

/* Alternate Single Available Home Styles */

.ah-main-card {
  max-width: 1200px;
  margin: 40px auto;
  background: var(--ah-bg-color);
  border-radius: 18px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.08);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ah-main-card-inner {
    display: flex;
    flex-direction: row;
    gap: 0;
}

.ah-main-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1; /* Take up equal space */
  height: 100%;
  position: relative;
}

.ah-gallery {
  width: 100%;
  flex: 1;
}
.ah-gallery-thumbs-viewport {
  width: 600px;
  overflow: hidden;
  margin-left: auto;
  margin-right: auto;
}
.ah-gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  transition: transform 0.3s ease;
}
.ah-gallery-main {
  position: relative;
  width: var(--gallery-width);
  max-width: 100%;
  margin: 0 auto;
  aspect-ratio: 4/3;
  background: #eaeaea;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.ah-gallery-main img {
  width: 100%;
  width: 100%;
  height: 100%;
  max-height: 500px;

  object-fit: cover;

}
.ah-thumb {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border 0.2s;
}
/* .ah-thumb:not(:last-child) {
  margin-right: var(--thumb-gap);
} */
.ah-thumb.active,
.ah-thumb:hover {
  border: 2px solid var(--ah-primary);
}

.ah-main-right {
  flex: 1;
  padding: 36px 36px 24px 36px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border-top-right-radius: 18px;
  border-bottom-right-radius: 18px;
  font-size: 1rem;
  max-width: 100%;
  overflow-x: auto;
  box-sizing: border-box;
}
.ah-address-row {
  font-family: 'Amiri', serif;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #222;
  padding: 2rem;
  text-align: center;
}

.ah-info-icons-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-flow: row wrap;
  padding: 1.5rem 0;
  border-top: 1px solid hsl(0deg 0% 42% / 20%);
  border-bottom: 1px solid hsl(0deg 0% 42% / 20%);
  font-weight: 600;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: space-around;
  overflow-x: auto;
}

.ah-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 110px;
    flex: 1 1 120px;
    box-sizing: border-box;
}

.ah-info-icon {
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50px;
    align-items: center;
    justify-content: center;
    display: flex;
}

.ah-info-icon svg {
    fill: var(--ah-primary);
}

.ah-info-label {
    font-size: 0.85rem;
}

.ah-details {
  border-bottom: 1px solid hsl(0deg 0% 42% / 20%);
  margin-bottom: 2rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  font-weight: 600;
}

.ah-detail-row {
    display: flex;
    flex-direction: column;
}

.ah-detail {
    margin-bottom: 1em;
}
.ah-details-label {
  font-weight: 600;
}
.ah-details-value {
  color: #222;
  font-weight: 500;
}
.ah-contact-row {
  margin: 18px 0 10px 0;
  font-size: 1.25rem;
  color: #222;
  font-weight: 500;
  text-align: center;
}
.ah-contact-label {
  margin-right: 6px;
}
.ah-request-btn-row {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}
.ah-request-btn {
  background: var(--ah-primary);
  color: #fff;
  border: none;
  border-radius: 22px;
  padding: 12px 32px;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.ah-request-btn:hover {
  background: var(--ah-secondary);
  color: #fff !important;
}
a.ah-request-btn {
  color: #fff !important;
}
.ah-secondary-card {
  max-width: 1200px;
  margin: 40px auto;
  background: var(--ah-bg-color);
  border-radius: 18px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.08);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.ah-about-section {
  padding: 38px 48px 32px 48px;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
  margin-top: 0;
}
.ah-about-title {
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  color: #222;
  text-align: center;
  font-family: 'Amiri', serif;
}
.ah-about-desc {
  font-size: 1.13rem;
  color: #444;
  text-align: center;
  line-height: 1.7;
}

/* Responsive Design */
@media (max-width: 900px) {
  .ah-main-card {
    flex-direction: column;
  }
  .ah-main-card-inner {
    flex-direction: column;
  }
  .ah-main-left, .ah-main-right {
    border-radius: 0;
    flex: none; 
    width: 100%;
  }
  .ah-main-left {
    padding: 20px !important;
    box-sizing: border-box !important;
    background: transparent !important;
  }
  .ah-main-right {
    padding: 24px 18px 18px 18px;
  }
  .ah-about-section {
    padding: 28px 12px 22px 12px;
  }
  .ah-info-icons-row {
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: space-around;
  }
  .ah-details {
    flex-direction: column;
    gap: 1rem;
  }
  .ah-form-wrapper {
    width: 90%;
  }
  .ah-gallery {
    width: 100% !important;
    max-width: 100% !important;
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .ah-gallery-main {
    width: 100% !important;
    max-width: 100% !important;
    background: transparent !important;
    aspect-ratio: unset !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
  }
  #ah-main-image {
    height: 220px !important;
    object-fit: cover !important;
  }
  .ah-gallery-thumbs-viewport,
  .ah-gallery-thumbs {
    width: 100% !important;
    max-width: 100% !important;
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}
@media (max-width: 600px) {
  .ah-main-card {
    border-radius: 0;
    box-shadow: none;
    margin: 0;
  }
 
  .ah-main-left {
    padding: 15px !important;
  }
  .ah-main-right {
    padding: 12px 2.5rem 12px 2.5rem;
  }
  .ah-about-section {
    padding: 18px 4px 12px 4px;
  }
  .ah-info-icons-row {
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: space-around;
  }
  .ah-address-row {
    font-size: 2rem;
    padding: 1rem;
  }
  .ah-address-number, .ah-address-street {
    font-size: 1.2rem;
  }
  .ah-gallery-main,
  .ah-gallery-thumbs-viewport,
  .ah-gallery-thumbs {
    width: 100% !important;
    background: transparent !important;
    max-width: 100% !important;
  }
  #ah-main-image {
    height: 180px !important;
    object-fit: cover !important;
  }
}

/* Home List Button */
.ah-home-list-button-container {
    margin-top: 15px;
    margin-bottom: 30px; /* Add margin below the button */
    text-align: center;
}

.ah-home-list-button {
    display: inline-block;
    background: var(--ah-primary);
    color: white;
    padding: 12px 32px;
    text-decoration: none;
    border-radius: 22px;
    font-weight: 500;
    font-size: 1.1rem;
    text-align: center;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

a.ah-home-list-button {
    color: #fff !important;
}

.ah-home-list-button:hover {
    background: var(--ah-secondary);
    color: #fff !important;
}

.ah-main-card-inner,
.ah-main-left,
.ah-gallery-main {
  height: 100%;
}
.ah-gallery-main img#ah-main-image {
  height: 100%;
  width: 100%;
  object-fit: cover;
  display: block;
}