/* Single Home Listing Styles */
/* Single home listing template includes grid styles so root variables are reused */

/* Custom gallery styles */
.umh-main-slider {
    height: 100%;
    position: relative;
    overflow: hidden;
}

.umh-main-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
}

.umh-main-slide:first-child {
    display: block;
}

.umh-main-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Custom arrow styles */
.umh-gallery-prev,
.umh-gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--umh-secondary);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    z-index: 9999;
    transition: background 0.3s ease;
}

.umh-gallery-prev:hover,
.umh-gallery-next:hover {
    background: var(--umh-secondary-hover);
}

.umh-gallery-prev {
    left: 15px;
}

.umh-gallery-next {
    right: 15px;
}

/* Thumbnail styles */
.umh-thumbnail-slider {
    height: 100%;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    background: transparent;
}

.umh-thumbnail-slide {
    flex: 0 0 calc(50% - 2.5px);
    height: calc(50% - 2.5px);
    padding: 0;
    box-sizing: border-box;
    position: relative;
    cursor: pointer;
    transition: opacity 0.3s ease;
    overflow: hidden;
}

.umh-thumbnail-slide:hover {
    opacity: 0.8;
}

.umh-thumbnail-slide.umh-current {
    opacity: 1;
}

.umh-thumbnail-slide:not(.umh-current) {
    opacity: 0.7;
}

.umh-thumbnail-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    box-shadow: 0 4px 16px var(--umh-box-shadow);
    display: block;
    background: transparent;
}

.umh-single-home {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-sizing: border-box;
}

/* Consistent spacing variables */
:root {
    --umh-page-padding: 20px;
    --umh-section-spacing: 30px;
    --umh-element-spacing: 15px;
}

/* Promotional Banner */
.umh-promo-banner {
    background: var(--umh-primary);
    color: white;
    text-align: center;
    padding: 15px;
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 20px;
}

/* Contact Buttons */
.umh-contact-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    justify-content: flex-start;
}

.umh-contact-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--umh-secondary);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    transition: background 0.3s ease;
    min-height: 44px;
    box-sizing: border-box;
}

.umh-contact-btn:hover {
    background: var(--umh-secondary-hover);
}

/* Home Statistics */
.umh-home-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
    justify-content: flex-start;
}

.umh-stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--umh-primary);
    font-weight: 500;
    font-size: 20px;
}

.umh-stat-item svg {
    color: white;
    background: var(--umh-secondary);
    border-radius: 50%;
    padding: 6px;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* Pricing Information */
.umh-pricing-info {
    display: flex;
    gap: 40px;
    margin-bottom: 25px;
    justify-content: flex-start;
}

.umh-price-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.umh-price-label {
    font-size: 16px;
    color: var(--umh-primary);
    margin-bottom: 5px;
    text-decoration: underline;
    font-weight: 500;
}

.umh-price-value {
    font-size: 24px;
    font-weight: bold;
    color: var(--umh-primary);
}

/* Property Information Section */
.umh-property-info-section {
    margin-bottom: 30px;
}

/* Location Details */
.umh-location-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 0;
    align-items: flex-start;
}

.umh-location-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--umh-primary);
}

/* Two Column Layout */
.umh-two-column-layout {
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 0px;
}

.umh-main-column {
    display: flex;
    flex-direction: column;
    padding: 15px;
}

.umh-contact-container {
    margin-top: auto;
}

/* Image Gallery */
.umh-image-gallery {
    margin-bottom: 30px;
    padding: 15px;
}

@media (max-width: 768px) {
    .umh-image-gallery {
        margin-bottom: 40px;
    }
}

.umh-gallery-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 15px;
    height: 400px;
}

.umh-featured-carousel {
    position: relative;
    height: 100%;
    overflow: hidden;
    box-shadow: 0 8px 24px var(--umh-box-shadow);
}

.umh-main-slider {
    height: 100%;
}

.umh-main-slide {
    position: relative;
    height: 100%;
}

.umh-main-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.umh-promo-overlay {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: var(--umh-primary);
    color: white;
    padding: 8px 16px;
    font-weight: bold;
    font-size: 14px;
    z-index: 2;
    border-radius: 4px;
}

.umh-main-slide .umh-sale-pending-ribbon {
    position: absolute;
    top: 40px;
    right: -40px;
    background: #e34a4a;
    color: white;
    padding: 6px 50px;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    transform: rotate(38deg);
    z-index: 3;
    letter-spacing: 1.5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.umh-thumbnail-carousel {
    height: 100%;
    overflow: hidden;
    position: relative;
    background: transparent;
    z-index: 1;
}

.umh-thumbnail-slider {
    height: 100%;
    position: relative;
}

.umh-thumbnail-slide {
    height: 50%;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.umh-thumbnail-slide:hover {
    opacity: 0.8;
}

.umh-thumbnail-slide.umh-current {
    opacity: 1;
}

.umh-thumbnail-slide:not(.umh-current) {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.umh-thumbnail-slide:hover {
    opacity: 1;
}

.umh-view-more-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    background: rgba(248, 156, 94, 0.8);
    color: white;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
}

.umh-no-images {
    background: var(--umh-bg-muted);
    border: 2px dashed var(--umh-border-color);
    padding: 40px;
    text-align: center;
    margin-bottom: 30px;
}

.umh-no-images p {
    color: var(--umh-text-medium);
    margin: 0 0 10px 0;
}

.umh-no-images small {
    color: var(--umh-text-medium);
}

/* Content Sections Container */
.umh-content-sections {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 400px;
}

/* About Section */
.umh-about-section {
    margin-bottom: 30px;
}

.umh-home-description {
    line-height: 1.6;
    color: var(--umh-text-medium);
    font-size: 16px;
}

/* Features Section */
.umh-features-section {
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .umh-features-section {
        margin-bottom: 80px;
    }
}

.umh-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
    min-height: 150px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.umh-features-grid.expanded {
    max-height: none;
}

.umh-features-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px 24px;
    list-style: disc inside;
    padding: 0;
    margin: 0;
    max-width: 100%;
}

.umh-features-list li {
    margin: 0;
}

.umh-features-list li:nth-child(odd) {
    grid-column: 1;
    grid-row: auto;
}

.umh-features-list li:nth-child(even) {
    grid-column: 2;
    grid-row: auto;
}

.umh-feature-item {
    font-size: 18px;
}

.umh-no-features {
    color: var(--umh-text-medium);
    font-style: italic;
    text-align: center;
    padding: 20px;
    background: var(--umh-bg-muted);
    margin: 10px 0;
}

/* Contact Information Section */
.umh-contact-info-section {
    margin: 40px auto;
    overflow: hidden;
}

.umh-contact-header {
    display: flex;
    align-items: center;
    padding-bottom: 20px;
}

.umh-slogan-banner {
    background: var(--umh-secondary);
    padding: 15px 20px;
    margin-right: 30px;
}

.umh-slogan-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
}

.umh-slogan-main {
    font-weight: bold;
    font-size: 18px;
    line-height: 1.2;
}

.umh-slogan-sub {
    font-family: cursive;
    font-size: 16px;
    color: var(--umh-primary);
    margin: 2px 0;
}

.umh-referral-section {
    flex: 1;
    min-width: 200px;
    height: 70px;
}

.umh-referral-section h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: bold;
    color: var(--umh-primary);
}

.umh-learn-more-btn {
    background: var(--umh-primary);
    color: white;
    border: none;
    padding: 10px 20px 13px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.umh-learn-more-btn:hover {
    background: var(--umh-primary-hover);
}

.umh-contact-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.umh-contact-column h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: var(--umh-text-dark);
    font-weight: bold;
}

.umh-contact-name {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: var(--umh-text-dark);
}

.umh-contact-info {
    margin-bottom: 8px;
    font-size: 14px;
}

.umh-contact-info strong {
    color: var(--umh-text-dark);
}

.umh-contact-info a {
    color: var(--umh-secondary);
    text-decoration: underline;
}

.umh-contact-info a:hover {
    color: var(--umh-secondary-hover);
}

.umh-sales-hours {
    padding: 20px 0;
    text-align: left; /* Left align the sales hours section */
}

.umh-sales-hours h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: var(--umh-text-dark);
    font-weight: bold;
}

.umh-sales-hours p {
    margin: 5px 0;
    font-size: 14px;
    color: var(--umh-text-medium);
}

/* Sidebar */
.umh-sidebar-content {
    position: sticky;
    top: 20px;
}

/* Action Buttons */
.umh-action-buttons {
    padding: 0 var(--umh-page-padding) var(--umh-element-spacing) var(--umh-page-padding);
    display: flex;
    flex-direction: column;
    gap: var(--umh-element-spacing);
}

.umh-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 20px;
    background: white;
    color: var(--umh-primary);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid var(--umh-primary);
    cursor: pointer;
    font-size: 18px; /* Increased from 14px */
    min-height: 48px;
    box-sizing: border-box;
}

.umh-action-btn:hover {
    background: var(--umh-primary);
    color: white;
}

.umh-apply-btn {
    background: var(--umh-primary);
    color: white;
}

.umh-apply-btn:hover {
    background: var(--umh-primary-hover);
    color: white;
}

/* Contact Form Section */
.umh-contact-form-section {
    background: var(--umh-bg-card);
    padding: var(--umh-element-spacing);
    margin: 0 var(--umh-page-padding) var(--umh-element-spacing) var(--umh-page-padding);
}

@media (max-width: 768px) {
    .umh-contact-form-section {
        margin-bottom: 80px !important;
    }
}

.umh-form-title {
    color: var(--umh-primary);
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.umh-form-subtitle {
    color: var(--umh-text-medium);
    margin-bottom: 20px;
    font-size: 14px;
}

.umh-inquiry-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.umh-form-label {
    display: block;
    color: var(--umh-primary);
    font-weight: 500;
    margin-bottom: 5px;
    font-size: 14px;
}

.umh-form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--umh-primary);
    font-size: 14px;
    box-sizing: border-box;
    background: white;
    min-height: 44px;
    border-radius: 4px;
}

.umh-form-group input:focus {
    outline: none;
    border-color: var(--umh-primary-hover);
}

.umh-sms-consent {
    margin-top: 10px;
}

.umh-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--umh-primary);
    cursor: pointer;
}

.umh-checkbox {
    width: 18px;
    height: 18px;
}

.umh-sms-disclaimer {
    font-size: 12px;
    color: var(--umh-text-medium);
    margin-top: 8px;
    line-height: 1.4;
}

.umh-submit-btn {
    background: var(--umh-primary);
    color: white;
    padding: 15px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
    min-height: 48px;
    box-sizing: border-box;
}

.umh-submit-btn:hover {
    background: var(--umh-primary-hover);
}

/* Payment Calculator */
.umh-payment-calculator {
    border-top: 1px solid var(--umh-border-color);
    background: var(--umh-bg-card);
    padding: var(--umh-element-spacing);
    margin: 0 var(--umh-page-padding) var(--umh-element-spacing) var(--umh-page-padding);
}

.umh-calculator-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--umh-primary);
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
}

.umh-calculator-subtitle {
    color: var(--umh-text-medium);
    font-size: 14px;
    margin-bottom: 20px;
}

.umh-calculator-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.umh-calc-input-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.umh-calc-input-group label {
    font-size: 12px;
    color: var(--umh-primary);
    font-weight: 500;
}

.umh-calc-input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--umh-border-color);
    font-size: 14px;
    background: white;
    color: #323232 !important;
    min-height: 44px;
    border-radius: 4px;
    box-sizing: border-box;
}

.umh-calc-input:disabled {
    background: #f5f5f5;
    color: #676767;
    cursor: not-allowed;
}

.umh-calc-input:focus {
    outline: none;
    border-color: var(--umh-primary);
}

.umh-down-payment-group {
    grid-column: 1 / -1; /* Span across both columns */
}

.umh-down-payment-with-button {
    display: flex;
    gap: 16px;
    align-items: flex-end;
}

.umh-down-payment-with-button input {
    flex: 1;
}

.umh-calculate-btn {
    background: var(--umh-secondary);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    min-height: 44px;
    width: 188px;
    box-sizing: border-box;
    white-space: nowrap;
}

/* When button is in the down payment group */
.umh-down-payment-with-button .umh-calculate-btn {
    margin: 0;
    flex-shrink: 0;
}

/* When button is standalone (for responsive) */
.umh-calculator-inputs + .umh-calculate-btn {
    width: auto;
    margin: 20px auto 20px auto;
    display: block;
}

.umh-calculate-btn:hover {
    background: var(--umh-secondary-hover);
}

.umh-payment-result {
    text-align: center;
    padding: 20px;
    background: var(--umh-primary);
    margin: 0; /* Remove the negative margins */
    border-radius: 0 0 6px 6px;
}

.umh-result-label {
    display: block;
    color: white;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 8px;
}

.umh-result-value {
    display: block;
    color: white;
    font-size: 24px;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --umh-page-padding: 15px;
        --umh-section-spacing: 20px;
        --umh-element-spacing: 12px;
    }

    .umh-single-home {
        padding: var(--umh-page-padding);
        max-width: 100%;
    }

    .umh-two-column-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .umh-contact-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: flex-start;
    }

    .umh-contact-btn {
        justify-content: center;
        padding: 12px 16px;
        font-size: 16px;
        flex: 0 0 auto;
    }

    .umh-home-stats {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px;
        align-items: center;
        justify-content: flex-start;
    }

    .umh-stat-item {
        font-size: 16px;
        flex: 0 0 auto;
    }

    .umh-stat-item svg {
        width: 28px;
        height: 28px;
        padding: 8px;
    }

    .umh-pricing-info {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .umh-price-value {
        font-size: 28px;
    }

    .umh-gallery-layout {
        grid-template-columns: 1fr;
        height: auto;
        gap: 10px;
    }

    .umh-featured-carousel {
        height: 250px;
    }

    .umh-thumbnail-carousel {
        height: 200px;
    }

    .umh-thumbnail-slide {
        height: 50%;
    }

    .umh-features-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
        max-height: 140px;
    }

    .umh-feature-item {
        padding: 15px;
        font-size: 16px;
    }

    .umh-sidebar-content {
        position: static;
    }

    .umh-action-buttons {
        padding: 0 var(--umh-page-padding) var(--umh-element-spacing) var(--umh-page-padding);
        gap: var(--umh-element-spacing);
    }

    .umh-action-btn {
        padding: 16px 20px;
        font-size: 16px;
    }

    .umh-contact-form-section {
        margin: 0 var(--umh-page-padding) var(--umh-element-spacing) var(--umh-page-padding);
        padding: var(--umh-element-spacing);
    }

    .umh-form-group input {
        padding: 14px;
        font-size: 16px;
    }

    .umh-submit-btn {
        padding: 16px;
        font-size: 18px;
    }

    .umh-payment-calculator {
        margin: 0 var(--umh-page-padding) var(--umh-element-spacing) var(--umh-page-padding);
        padding: var(--umh-element-spacing);
        border-radius: 6px;
        overflow: hidden;
    }

    .umh-payment-result {
        margin: 0 calc(-1 * var(--umh-element-spacing)) calc(-1 * var(--umh-element-spacing)) calc(-1 * var(--umh-element-spacing));
        border-radius: 0 0 6px 6px;
    }

    .umh-calculator-inputs {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .umh-down-payment-group {
        grid-column: 1; /* Reset to single column */
    }

    .umh-down-payment-with-button {
        flex-direction: column;
        gap: 12px;
    }

    .umh-calc-input {
        padding: 12px;
        font-size: 16px;
    }

    .umh-calculate-btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 16px;
        margin: 0;
    }

    .umh-contact-header {
        flex-direction: row;
        gap: 20px;
        align-items: center;
        flex-wrap: wrap;
    }

    .umh-slogan-banner {
        margin-right: 0;
        margin-bottom: 0;
        padding: 12px 16px;
        flex: 0 0 auto;
    }

    .umh-slogan-main {
        font-size: 16px;
    }

    .umh-slogan-sub {
        font-size: 14px;
    }

    .umh-referral-section h3 {
        font-size: 20px;
    }

    .umh-learn-more-btn {
        padding: 12px 18px;
        font-size: 14px;
    }

    .umh-contact-details {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .umh-contact-column h3 {
        font-size: 16px;
    }

    .umh-contact-name {
        font-size: 18px;
    }

    .umh-contact-info {
        font-size: 16px;
    }

    .umh-sales-hours h3 {
        font-size: 16px;
    }

    .umh-sales-hours p {
        font-size: 16px;
    }

    .umh-section-title {
        font-size: 20px;
    }

    .umh-home-description {
        font-size: 16px;
        line-height: 1.7;
    }

    .umh-form-title {
        font-size: 18px;
    }

    .umh-form-subtitle {
        font-size: 16px;
    }

    .umh-calculator-title {
        font-size: 16px;
    }

    .umh-calculator-subtitle {
        font-size: 16px;
    }

    .umh-result-value {
        font-size: 20px;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    :root {
        --umh-page-padding: 10px;
        --umh-section-spacing: 15px;
        --umh-element-spacing: 10px;
    }

    .umh-single-home {
        padding: var(--umh-page-padding);
    }

    .umh-contact-buttons {
        gap: 8px;
        flex-wrap: wrap;
    }

    .umh-contact-btn {
        padding: 14px 16px;
        font-size: 18px;
        flex: 0 0 auto;
    }

    .umh-home-stats {
        gap: 12px;
        flex-wrap: wrap;
    }

    .umh-stat-item {
        font-size: 18px;
        flex: 0 0 auto;
    }

    .umh-stat-item svg {
        width: 32px;
        height: 32px;
        padding: 10px;
    }

    .umh-price-value {
        font-size: 32px;
    }

    .umh-featured-carousel {
        height: 200px;
    }

    .umh-thumbnail-carousel {
        height: 160px;
    }

    .umh-thumbnail-slide {
        height: 50%;
    }

    .umh-action-buttons {
        padding: 0 var(--umh-page-padding) var(--umh-element-spacing) var(--umh-page-padding);
        gap: var(--umh-element-spacing);
    }

    .umh-action-btn {
        padding: 18px 20px;
        font-size: 18px;
    }

    .umh-contact-form-section {
        margin: 0 var(--umh-page-padding) var(--umh-element-spacing) var(--umh-page-padding);
        padding: var(--umh-element-spacing);
    }

    .umh-form-group input {
        padding: 16px;
        font-size: 18px;
    }

    .umh-submit-btn {
        padding: 18px;
        font-size: 20px;
    }

    .umh-payment-calculator {
        margin: 0 var(--umh-page-padding) var(--umh-element-spacing) var(--umh-page-padding);
        padding: var(--umh-element-spacing);
        border-radius: 6px;
        overflow: hidden;
    }

    .umh-payment-result {
        margin: 0 calc(-1 * var(--umh-element-spacing)) calc(-1 * var(--umh-element-spacing)) calc(-1 * var(--umh-element-spacing));
        border-radius: 0 0 6px 6px;
    }

    .umh-calc-input {
        padding: 14px;
        font-size: 18px;
    }

    .umh-calculate-btn {
        width: auto;
        padding: 16px 24px;
        font-size: 18px;
        margin: 0 auto 20px auto;
        display: block;
    }

    .umh-slogan-banner {
        padding: 10px 12px;
    }

    .umh-slogan-main {
        font-size: 14px;
    }

    .umh-slogan-sub {
        font-size: 12px;
    }

    .umh-referral-section h3 {
        font-size: 18px;
    }

    .umh-learn-more-btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .umh-section-title {
        font-size: 18px;
    }

    .umh-home-description {
        font-size: 18px;
    }

    .umh-form-title {
        font-size: 16px;
    }

    .umh-form-subtitle {
        font-size: 18px;
    }

    .umh-calculator-title {
        font-size: 14px;
    }

    .umh-calculator-subtitle {
        font-size: 18px;
    }

    .umh-result-value {
        font-size: 18px;
    }

    .umh-features-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 8px;
        max-height: 130px;
    }

    .umh-feature-item {
        padding: 18px;
        font-size: 16px;
    }
}

/* Extra small mobile devices */
@media (max-width: 360px) {
    :root {
        --umh-page-padding: 8px;
        --umh-section-spacing: 12px;
        --umh-element-spacing: 8px;
    }

    .umh-single-home {
        padding: var(--umh-page-padding);
    }

    .umh-contact-btn {
        padding: 16px 12px;
        font-size: 16px;
    }

    .umh-action-btn {
        padding: 20px 16px;
        font-size: 16px;
    }

    .umh-featured-carousel {
        height: 180px;
    }

    .umh-thumbnail-carousel {
        height: 140px;
    }

    .umh-thumbnail-slide {
        height: 50%;
    }

    .umh-price-value {
        font-size: 28px;
    }

    .umh-stat-item {
        font-size: 16px;
    }

    .umh-stat-item svg {
        width: 28px;
        height: 28px;
        padding: 8px;
    }

    .umh-contact-form-section,
    .umh-payment-calculator {
        margin: 0 var(--umh-page-padding) var(--umh-element-spacing) var(--umh-page-padding);
        padding: var(--umh-element-spacing);
        border-radius: 6px;
        overflow: hidden;
    }

    .umh-payment-result {
        margin: 0 calc(-1 * var(--umh-element-spacing)) calc(-1 * var(--umh-element-spacing)) calc(-1 * var(--umh-element-spacing));
        border-radius: 0 0 6px 6px;
    }

    .umh-action-buttons {
        padding: 0 var(--umh-page-padding) var(--umh-element-spacing) var(--umh-page-padding);
    }

    .umh-form-group input,
    .umh-calc-input {
        font-size: 16px;
        padding: 16px;
    }

    .umh-submit-btn {
        font-size: 18px;
        padding: 18px;
    }

    .umh-calculate-btn {
        width: auto;
        font-size: 18px;
        padding: 18px 20px;
        margin: 0 auto 20px auto;
        display: block;
    }
}

/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
    :root {
        --umh-page-padding: 10px;
        --umh-section-spacing: 15px;
        --umh-element-spacing: 10px;
    }

    .umh-single-home {
        padding: var(--umh-page-padding);
    }

    .umh-featured-carousel {
        height: 200px;
    }

    .umh-thumbnail-carousel {
        height: 180px;
    }

    .umh-thumbnail-slide {
        height: 50%;
    }

    .umh-contact-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    .umh-contact-btn {
        flex: 1;
        min-width: 120px;
    }
} 

/* Mobile responsive for contact header */
@media (max-width: 768px) {
    .umh-contact-header {
        flex-direction: row;
        gap: 15px;
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .umh-slogan-banner {
        margin-right: 0;
        margin-bottom: 0;
        padding: 12px 16px;
        flex: 0 0 auto;
        min-width: 120px;
    }

    .umh-slogan-main {
        font-size: 16px;
    }

    .umh-slogan-sub {
        font-size: 14px;
    }

    .umh-referral-section {
        flex: 1;
        min-width: 0; /* Allow text to wrap */
    }

    .umh-referral-section h3 {
        font-size: 18px;
        margin: 0 0 8px 0;
        line-height: 1.2;
        word-wrap: break-word;
    }

    .umh-learn-more-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* Other Homes You Might Like Section */
.umh-other-homes-section {
    background-color: var(--umh-bg-section);
    padding: 60px 0;
    margin-top: 60px;
}

.umh-other-homes-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.umh-other-homes-title {
    font-size: 32px;
    font-weight: bold;
    color: var(--umh-text-color);
    text-align: center;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.umh-other-homes-divider {
    width: 80px;
    height: 3px;
    background-color: var(--umh-divider);
    margin: 0 auto 40px auto;
}

/* Override grid styles for the other homes section */
.umh-other-homes-section .umh-home-listings-container {
    padding: 0 !important;
    background: transparent !important;
}

.umh-other-homes-section .umh-homes-grid {
    gap: 20px !important;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
}

.umh-other-homes-section .umh-home-card {
    background: var(--umh-bg-white) !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px var(--umh-box-shadow) !important;
    border: none !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
}

.umh-other-homes-section .umh-home-image {
    height: 180px !important;
    border-radius: 8px 8px 0 0 !important;
    position: relative !important;
    overflow: hidden !important;
}

.umh-other-homes-section .umh-home-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.umh-other-homes-section .umh-home-content {
    padding: 15px !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

.umh-other-homes-section .umh-home-title {
    font-size: 16px !important;
    margin-bottom: 8px !important;
    font-weight: bold !important;
    color: var(--umh-button-dark) !important;
}

.umh-other-homes-section .umh-home-title a {
    color: var(--umh-button-dark) !important;
    text-decoration: none !important;
}

.umh-other-homes-section .umh-community-name {
    font-size: 13px !important;
    margin-bottom: 12px !important;
    color: var(--umh-text-medium) !important;
}

.umh-other-homes-section .umh-home-stats {
    gap: 20px !important;
    margin-bottom: 15px !important;
    padding-bottom: 15px !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    border-bottom: 1px solid var(--umh-bg-border) !important;
}

.umh-other-homes-section .umh-stat {
    font-size: 14px !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    color: var(--umh-text-color) !important;
    white-space: nowrap !important;
}

.umh-other-homes-section .umh-stat svg {
    color: white !important;
    flex-shrink: 0 !important;
    width: 12px !important;
    height: 12px !important;
    background: var(--umh-button-dark) !important;
    border-radius: 50% !important;
    padding: 6px !important;
    width: 24px !important;
    height: 24px !important;
}

.umh-other-homes-section .umh-price-section {
    margin-bottom: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 15px !important;
    flex-wrap: wrap !important;
}

.umh-other-homes-section .umh-price-main {
    font-size: 20px !important;
    font-weight: bold !important;
    color: var(--umh-text-color) !important;
}

.umh-other-homes-section .umh-lease-option {
    font-size: 13px !important;
    color: var(--umh-text-medium) !important;
    margin-top: 5px !important;
}

.umh-other-homes-section .umh-home-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    margin-top: auto !important;
}

.umh-other-homes-section .umh-view-details-btn {
    padding: 8px 16px !important;
    font-size: 13px !important;
    width: auto !important;
    background: var(--umh-button-dark) !important;
    color: white !important;
    text-decoration: none !important;
    text-align: center !important;
    border-radius: 6px !important;
    border: none !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease !important;
    font-weight: 500 !important;
}

.umh-other-homes-section .umh-view-details-btn:hover {
    background: var(--umh-button-dark-hover) !important;
    color: white !important;
}

.umh-other-homes-section .umh-call-btn {
    padding: 10px 16px !important;
    font-size: 14px !important;
    width: 100% !important;
    background: var(--umh-primary) !important;
    color: white !important;
    text-decoration: none !important;
    text-align: center !important;
    border-radius: 4px !important;
    border: none !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease !important;
}

.umh-other-homes-section .umh-call-btn:hover {
    background: var(--umh-primary-hover) !important;
    color: white !important;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .umh-other-homes-section {
        padding: 40px 0;
        margin-top: 40px;
    }
    
    .umh-other-homes-container {
        padding: 0 15px;
    }
    
    .umh-other-homes-title {
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    .umh-other-homes-divider {
        margin-bottom: 30px;
    }
    
    /* Stack homes vertically on mobile */
    .umh-other-homes-section .umh-homes-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    .umh-other-homes-section .umh-home-image {
        height: 160px;
    }
    
    .umh-other-homes-section .umh-home-content {
        padding: 12px;
    }
    
    .umh-other-homes-section .umh-home-title {
        font-size: 15px;
    }
    
    .umh-other-homes-section .umh-price-main {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .umh-other-homes-section {
        padding: 30px 0;
        margin-top: 30px;
    }
    
    .umh-other-homes-title {
        font-size: 22px;
    }
    
    .umh-other-homes-section .umh-home-image {
        height: 140px;
    }
    
    .umh-other-homes-section .umh-home-content {
        padding: 10px;
    }
    
    .umh-other-homes-section .umh-home-stats {
        gap: 15px;
    }
    
    .umh-other-homes-section .umh-stat {
        font-size: 13px;
    }
    
    .umh-other-homes-section .umh-stat svg {
        width: 12px;
        height: 12px;
        padding: 5px;
        width: 22px;
        height: 22px;
    }
} 

/* Gravity Forms Styling to Match UMH Contact Form */
.gform_wrapper {
    margin: 0 !important;
    padding: 0 !important;
}

.gform_wrapper .gform_title {
    color: var(--umh-primary) !important;
    font-size: 20px !important;
    font-weight: bold !important;
    margin-bottom: 10px !important;
    display: none !important; /* Hide since we have our own title */
}

.gform_wrapper .gform_description {
    color: var(--umh-text-medium) !important;
    margin-bottom: 20px !important;
    font-size: 14px !important;
    display: none !important; /* Hide since we have our own subtitle */
}

.gform_wrapper form {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
}

.gform_wrapper .gfield {
    margin: 0 !important;
    padding: 0 !important;
}

.gform_wrapper .gfield_label {
    display: block !important;
    color: var(--umh-primary) !important;
    font-weight: 500 !important;
    margin-bottom: 5px !important;
    font-size: 14px !important;
}

.gform_wrapper .gfield_label .gfield_required {
    color: var(--umh-primary) !important;
    margin-left: 5px !important;
}

.gform_wrapper .ginput_container input[type="text"],
.gform_wrapper .ginput_container input[type="email"],
.gform_wrapper .ginput_container input[type="tel"],
.gform_wrapper .ginput_container input[type="number"],
.gform_wrapper .ginput_container textarea {
    width: 100% !important;
    padding: 12px !important;
    border: 1px solid var(--umh-primary) !important;
    font-size: 14px !important;
    box-sizing: border-box !important;
    background: white !important;
    min-height: 44px !important;
    border-radius: 4px !important;
    margin: 0 !important;
}

.gform_wrapper .ginput_container input[type="text"]:focus,
.gform_wrapper .ginput_container input[type="email"]:focus,
.gform_wrapper .ginput_container input[type="tel"]:focus,
.gform_wrapper .ginput_container input[type="number"]:focus,
.gform_wrapper .ginput_container textarea:focus {
    outline: none !important;
    border-color: var(--umh-primary-hover) !important;
}

/* Checkbox styling */
.gform_wrapper .gfield_checkbox {
    margin-top: 10px !important;
}

.gform_wrapper .gfield_checkbox .gfield-choice-input {
    width: 18px !important;
    height: 18px !important;
    margin-right: 10px !important;
}

.gform_wrapper .gfield_checkbox .gfield-choice-label {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-size: 14px !important;
    color: var(--umh-primary) !important;
    cursor: pointer !important;
    margin: 0 !important;
}

/* Submit button styling */
.gform_wrapper .gform_footer {
    margin: 0 !important;
    padding: 0 !important;
}

.gform_wrapper .gform_button {
    background: var(--umh-primary) !important;
    color: white !important;
    padding: 15px !important;
    border: none !important;
    border-radius: 6px !important;
    font-weight: bold !important;
    font-size: 16px !important;
    cursor: pointer !important;
    transition: background 0.3s ease !important;
    min-height: 48px !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

.gform_wrapper .gform_button:hover {
    background: var(--umh-primary-hover) !important;
}

/* Hide Gravity Forms default styling */
.gform_wrapper .gform_validation_errors {
    display: none !important;
}

.gform_wrapper .gfield_error {
    border: none !important;
    background: none !important;
}

.gform_wrapper .gfield_error .gfield_label {
    color: var(--umh-primary) !important;
}

.gform_wrapper .gfield_error .ginput_container input,
.gform_wrapper .gfield_error .ginput_container textarea {
    border-color: var(--umh-primary) !important;
}

.gform_wrapper .validation_message {
    display: none !important; /* Hide validation messages underneath inputs */
}

/* Hide Gravity Forms default spacing and borders */
.gform_wrapper .gform_body,
.gform_wrapper .gform_fields {
    margin: 0 !important;
    padding: 0 !important;
}

.gform_wrapper .gform_fields {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
}

/* Responsive adjustments for Gravity Forms */
@media (max-width: 768px) {
    .gform_wrapper .gform_button {
        font-size: 14px !important;
        padding: 12px !important;
    }
    
    .gform_wrapper .ginput_container input[type="text"],
    .gform_wrapper .ginput_container input[type="email"],
    .gform_wrapper .ginput_container input[type="tel"],
    .gform_wrapper .ginput_container input[type="number"],
    .gform_wrapper .ginput_container textarea {
        font-size: 16px !important; /* Prevent zoom on iOS */
    }
}

@media (max-width: 480px) {
    .gform_wrapper .gform_button {
        font-size: 14px !important;
        padding: 10px !important;
    }
}

@media (max-width: 360px) {
    .gform_wrapper .gform_button {
        font-size: 12px !important;
        padding: 8px !important;
    }
}

/* Home Flyer Section */
.umh-home-flyer-section {
    margin-top: var(--umh-section-spacing);
}

.umh-home-flyer-section .umh-section-title {
    color: var(--umh-text-dark);
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}

.umh-flyer-download-container {
    display: flex;
    justify-content: flex-start;
}

.umh-flyer-download-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: var(--umh-bg-card);
    border: 1px solid var(--umh-border-color);
    border-radius: 4px;
    text-decoration: none;
    color: var(--umh-text-dark);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.umh-flyer-download-btn:hover {
    background: var(--umh-primary);
    border-color: var(--umh-primary);
    color: white;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.umh-flyer-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: var(--umh-text-medium);
}

.umh-flyer-icon svg {
    width: 24px;
    height: 24px;
}

.umh-flyer-text {
    font-weight: 500;
    color: inherit;
}

/* Responsive adjustments for Home Flyer */
@media (max-width: 768px) {
    .umh-flyer-download-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .umh-flyer-icon {
        width: 20px;
        height: 20px;
    }
    
    .umh-flyer-icon svg {
        width: 20px;
        height: 20px;
    }
} 

/* Promotion cards */
.umh-promotion-item {
    background: #f9f9f9;
    border: 1px solid #e2e2e2;
    border-radius: 6px;
    padding: 16px 20px;
    margin-bottom: 12px;
}

.umh-promotion-item:last-child {
    margin-bottom: 0;
}

.umh-promotion-name {
    margin: 4px 0 6px;
}

.umh-promotion-dates {
    margin: 0 0 4px;
    font-size: 0.9em;
    color: #555;
}

.umh-promotion-description {
    margin: 4px 0 0;
    color: #444;
}