/* WooCommerce Property Listing Styles */
:root {
    --primary: #166534;
    --primary-dark: #14532d;
    --secondary: #f0fdf4;
    --accent: #dcfce7;
    --border: #e5e7eb;
    --text: #374151;
    --text-light: #6b7280;
}

.property-detail-container {
    min-height: 1em;
    background-color: #f9fafb;
}

.property-header {
    background-color: white;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.property-header-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 12px 16px;
}

/* Consolidated Header Styles */
.property-header {
    background-color: white;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.property-header-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

.back-link {
    margin-bottom: 8px;
    display: inline-block;
}

.property-header-main {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-top: 4px;
}

.property-title-wrapper {
    flex: 1;
    min-width: 300px;
}

.property-price-wrapper {
    text-align: right;
    margin-top: 4px;
}

@media (max-width: 767px) {
    .property-header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .property-price-wrapper {
        text-align: left;
        margin-left: 0;
        width: 100%;
    }
}

.property-title-main {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #1f2937;
    line-height: 1.2;
}

@media (min-width: 640px) {
    .property-title-main {
        font-size: 28px;
    }
}

.property-price-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

@media (min-width: 768px) {
    .property-price-wrapper {
        align-items: flex-end;
    }
}

.property-price-label {
    font-size: 12px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.property-price-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
}

.property-acres {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 4px;
}

.property-acres-label {
    font-weight: 500;
    margin-right: 4px;
}

.back-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.back-link:hover {
    color: var(--primary-dark);
}

.property-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 12px;
}

@media (min-width: 480px) {
    .property-content {
        padding: 24px 16px;
    }
}

@media (min-width: 768px) {
    .property-content {
        padding: 32px 16px;
    }
}

.property-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 480px) {
    .property-grid {
        gap: 20px;
    }
}

@media (min-width: 768px) {
    .property-grid {
        gap: 24px;
    }
}

@media (min-width: 1024px) {
    .property-grid {
        grid-template-columns: 2fr 1fr;
        gap: 32px;
    }
}

.property-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 16px;
}

@media (min-width: 480px) {
    .property-card {
        margin-bottom: 20px;
    }
}

@media (min-width: 768px) {
    .property-card {
        margin-bottom: 24px;
    }
}

.property-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.property-card:last-child {
    margin-bottom: 0;
}

.property-card-header {
    padding: 16px 16px 12px;
    border-bottom: 1px solid var(--border);
}

@media (min-width: 480px) {
    .property-card-header {
        padding: 20px 20px 14px;
    }
}

@media (min-width: 768px) {
    .property-card-header {
        padding: 24px 24px 16px;
    }
}

.property-card-content {
    padding: 16px;
}

@media (min-width: 480px) {
    .property-card-content {
        padding: 20px;
    }
}

@media (min-width: 768px) {
    .property-card-content {
        padding: 24px;
    }
}

.property-card-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 16px;
    color: #1f2937;
}

/* Image Gallery */
.image-gallery {
    position: relative;
}

.main-image {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
    border-radius: 8px 8px 0 0;
}

@media (min-width: 640px) {
    .main-image {
        height: 320px;
    }
}

@media (min-width: 1024px) {
    .main-image {
        height: 384px;
    }
}

.image-overlay {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 10;
}

.image-actions {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.image-action-btn {
    padding: 8px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.image-action-btn:hover {
    background: white;
    transform: scale(1.05);
    color: var(--text);
}

.badge {
    background: var(--primary);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
}

.badge:hover {
    background: var(--primary-dark);
}

.thumbnails {
    padding: 16px;
    display: none;
}

@media (min-width: 640px) {
    .thumbnails {
        display: block;
    }
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.thumbnail-btn {
    border: 2px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s;
    background: none;
    padding: 0;
    position: relative;
}

.thumbnail-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    opacity: 1;
    transition: opacity 0.2s ease;
}

.thumbnail-btn.active {
    border-color: var(--primary);
}

.thumbnail-btn.active::after {
    opacity: 0;
}

.thumbnail-btn:hover {
    border-color: #9ca3af;
}

.thumbnail-img {
    width: 100%;
    height: 64px;
    object-fit: cover;
    display: block;
}

@media (min-width: 640px) {
    .thumbnail-img {
        height: 80px;
    }
}

/* Pricing Card */
.pricing-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
}

.property-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 4px;
    color: #1f2937;
}

@media (min-width: 640px) {
    .property-title {
        font-size: 24px;
    }
}

.property-location {
    display: flex;
    align-items: center;
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 8px;
}

.location-icon {
    width: 16px;
    height: 16px;
    margin-right: 4px;
    flex-shrink: 0;
}

.property-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

@media (min-width: 640px) {
    .stat-label {
        font-size: 14px;
    }
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
}

@media (min-width: 640px) {
    .stat-value {
        font-size: 20px;
    }
}

.financing-highlight {
    background: linear-gradient(to right, var(--secondary), var(--accent));
    border: 1px solid #bbf7d0;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 16px;
    transition: transform 0.3s ease;
}

.financing-highlight:hover {
    transform: translateY(-2px);
}

.financing-label {
    font-size: 12px;
    color: #15803d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

@media (min-width: 640px) {
    .financing-label {
        font-size: 14px;
    }
}

.financing-amount {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

@media (min-width: 640px) {
    .financing-amount {
        font-size: 24px;
    }
}

.financing-terms {
    font-size: 12px;
    color: #16a34a;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.action-buttons-row {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.btn-sm {
    padding: 8px 12px;
    font-size: 14px;
}

/* Share dropdown */
.share-dropdown {
    position: relative;
    display: inline-block;
}

.share-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: white;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1;
    border-radius: 6px;
    overflow: hidden;
}

.share-dropdown-content a,
.share-dropdown-content button {
    color: var(--text);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    border: none;
    background: none;
    width: 100%;
    cursor: pointer;
    font-size: 14px;
}

.share-dropdown-content a:hover,
.share-dropdown-content button:hover {
    background-color: #f9fafb;
    color: var(--primary);
}

.share-dropdown.active .share-dropdown-content {
    display: block;
    animation: fadeIn 0.2s ease;
}

/* Favorite button active state */
.btn-favorite.active {
    background-color: #fee2e2;
    color: #ef4444;
    border-color: #fecaca;
}

.btn-favorite.active svg {
    fill: #ef4444;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-size: 16px;
    width: 100%;
}

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

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

.btn-outline {
    background: white;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    background: #f9fafb;
    color: var(--text);
    border-color: #9ca3af;
}

.btn-icon {
    width: 16px;
    height: 16px;
}

/* WooCommerce Overrides */
.woocommerce div.product form.cart {
    margin-bottom: 0;
}

.woocommerce div.product form.cart .variations {
    margin-bottom: 1em;
    border: none;
}

.woocommerce div.product form.cart .button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-size: 16px;
    width: 100%;
    background: var(--primary);
    color: white;
    line-height: normal;
}

.woocommerce div.product form.cart .button:hover {
    background: var(--primary-dark);
    color: white;
}

/* Tabs */
.tabs {
    width: 100%;
}

.tab-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    height: auto;
    background: #f3f4f6;
    border-radius: 6px;
    padding: 4px;
    margin-bottom: 24px;
}

@media (min-width: 640px) {
    .tab-list {
        grid-template-columns: repeat(5, 1fr);
    }
}

.tab-trigger {
    padding: 8px 8px;
    font-size: 12px;
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    color: var(--text);
}

.tab-trigger:hover {
    background: #e5e7eb;
}

@media (min-width: 640px) {
    .tab-trigger {
        font-size: 14px;
    }
}

.tab-trigger.active {
    background: white;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    color: var(--primary);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
    line-height: 1.6;
    color: var(--text);
}

.tab-content.active {
    display: block;
}

.tab-description {
    margin-bottom: 24px;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 640px) {
    .feature-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
}

@media (min-width: 640px) {
    .feature-item {
        font-size: 16px;
    }
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-icon {
    width: 16px;
    height: 16px;
    color: #16a34a;
    flex-shrink: 0;
}

.utility-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
}

.utility-item:last-child {
    border-bottom: none;
}

.utility-icon {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
    color: var(--primary);
}

.utility-content {
    min-width: 0;
    flex: 1;
}

.utility-title {
    font-weight: 600;
    color: #111827;
    font-size: 14px;
    margin-bottom: 2px;
}

@media (min-width: 640px) {
    .utility-title {
        font-size: 16px;
    }
}

.utility-description {
    color: var(--text-light);
    font-size: 14px;
}

@media (min-width: 640px) {
    .utility-description {
        font-size: 16px;
    }
}

.info-title {
    font-weight: 600;
    color: #111827;
    font-size: 14px;
    margin-bottom: 2px;
}

@media (min-width: 640px) {
    .info-title {
        font-size: 16px;
    }
}

.info-description {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 8px;
}

@media (min-width: 640px) {
    .info-description {
        font-size: 16px;
    }
}

/* Location Map */
.map-container {
    height: 192px;
    border-radius: 8px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Responsive Utilities */
.hidden-mobile {
    display: none;
}

@media (min-width: 640px) {
    .hidden-mobile {
        display: inline;
    }
}

.show-mobile {
    display: inline;
}

@media (min-width: 640px) {
    .show-mobile {
        display: none;
    }
}


/* Similar Properties Section */
.similar-properties {
    background-color: #f9fafb;
    padding: 40px 0;
    margin-top: 40px;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #1f2937;
    text-align: center;
}

.property-grid-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 640px) {
    .property-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .property-grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

.property-grid-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 0;
}

.property-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.property-grid-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.property-grid-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.property-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-grid-price {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: var(--primary);
    color: white;
    padding: 6px 12px;
    font-weight: 600;
    border-radius: 8px 0 0 0;
}

.property-grid-content {
    padding: 16px;
}

.property-grid-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1f2937;
}

.property-grid-location {
    display: flex;
    align-items: center;
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 8px;
}

.location-icon-sm {
    width: 14px;
    height: 14px;
    margin-right: 4px;
    flex-shrink: 0;
}

.property-grid-acres {
    font-size: 14px;
    color: var(--text-light);
}

.no-similar-properties {
    text-align: center;
    grid-column: 1 / -1;
    padding: 24px;
    color: var(--text-light);
}

/* Property Rating Styles */
.property-rating-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.rating-stars {
    display: flex;
    align-items: center;
    gap: 2px;
}

.star {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.star.full {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23f59e0b' width='24' height='24'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E");
}

.star.half {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23f59e0b' width='24' height='24'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z' fill-opacity='0.5'/%3E%3Cpath d='M12 2v15.77l6.18 3.25-1.18-6.88 5-4.87-6.91-1.01L12 2z'/%3E%3C/svg%3E");
}

.star.empty {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23e5e7eb' width='24' height='24'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E");
}

.rating-value {
    font-weight: 700;
    font-size: 18px;
    margin-left: 8px;
    color: #1f2937;
}

.rating-count {
    font-size: 14px;
    color: var(--text-light);
    margin-left: 4px;
}

.rating-categories {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rating-category {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rating-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.rating-icon {
    width: 20px;
    height: 20px;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.rating-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 2px;
    color: #1f2937;
}

.rating-description {
    font-size: 12px;
    color: var(--text-light);
    margin: 0;
}

.rating-bar-container {
    width: 80px;
    height: 8px;
    background-color: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.rating-bar {
    height: 100%;
    background-color: var(--primary);
    border-radius: 4px;
}

.rating-number {
    font-weight: 600;
    font-size: 14px;
    color: #1f2937;
    width: 24px;
    text-align: right;
    flex-shrink: 0;
}

.rating-footer {
    font-size: 12px;
    color: var(--text-light);
    text-align: right;
    margin-top: 16px;
    margin-bottom: 0;
}

/* Calculate Payments Button */
.calculate-payments-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    background-color: white;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 16px;
}

.calculate-payments-btn:hover {
    background-color: #f9fafb;
    border-color: #9ca3af;
}

.calculate-payments-btn svg {
    width: 16px;
    height: 16px;
}

/* Payment Calculator Modal */
.payment-calculator-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.payment-calculator-content {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 24px;
}

.payment-calculator-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.payment-calculator-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: #1f2937;
}

.payment-calculator-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    padding: 4px;
}

.payment-calculator-close:hover {
    color: var(--text);
}

.payment-calculator-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.payment-calculator-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--text);
}

.payment-calculator-form input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
}

.payment-calculator-form input:focus {
    border-color: var(--primary);
    outline: none;
}

.payment-calculator-result {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.payment-calculator-result h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 16px;
    color: #1f2937;
}

.payment-result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.payment-result-item {
    display: flex;
    flex-direction: column;
}

.payment-result-label {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.payment-result-value {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.payment-calculator-footer {
    margin-top: 24px;
    text-align: center;
    font-size: 12px;
    color: var(--text-light);
}

/* Installment Options Integration */
.installment-options-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 16px;
}

@media (min-width: 480px) {
    .installment-options-container {
        margin-bottom: 20px;
    }
}

@media (min-width: 768px) {
    .installment-options-container {
        margin-bottom: 24px;
    }
}

.installment-options-header {
    padding: 16px 16px 12px;
    border-bottom: 1px solid var(--border);
}

@media (min-width: 480px) {
    .installment-options-header {
        padding: 20px 20px 14px;
    }
}

@media (min-width: 768px) {
    .installment-options-header {
        padding: 24px 24px 16px;
    }
}

.installment-options-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 12px;
    color: #1f2937;
}

@media (min-width: 480px) {
    .installment-options-title {
        font-size: 20px;
        margin: 0 0 16px;
    }
}

.installment-options-content {
    padding: 16px;
}

@media (min-width: 480px) {
    .installment-options-content {
        padding: 20px;
    }
}

@media (min-width: 768px) {
    .installment-options-content {
        padding: 24px;
    }
}

/* Override plugin styles for better integration */
.installment-options-container .container {
    box-shadow: none;
    border-radius: 0;
    margin-bottom: 0;
}

.installment-options-container .financing-calculator-card {
    border-radius: 6px;
    margin-bottom: 8px;
}

.installment-options-container .financing-calculator-card:last-child {
    margin-bottom: 0;
}

/* Responsive text adjustments for small screens */
@media (max-width: 320px) {
    .installment-options-title {
        font-size: 16px;
    }
    
    .installment-options-header {
        padding: 12px 12px 8px;
    }
    
    .installment-options-content {
        padding: 12px;
    }
}

/* Enhanced responsive styles for installment plans */
@media (max-width: 768px) {
    .installment-plan-section {
        margin: 16px 0;
        padding: 12px 0;
    }
    
    .installment-plans-container {
        margin: 16px 0;
        padding: 12px 0;
    }
    
    .installment-plans-title {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .plans-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .plan-item {
        padding: 12px;
    }
    
    .plan-item h4 {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .plan-description {
        font-size: 12px;
        margin-bottom: 8px;
    }
    
    .plan-details {
        flex-direction: column;
        gap: 4px;
    }
    
    .amount {
        font-size: 16px;
    }
    
    .period {
        font-size: 12px;
    }
    
    /* Enhanced responsive header adjustments */
    .property-header-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .property-price-wrapper {
        text-align: left;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .installment-plan-section {
        margin: 12px 0;
        padding: 8px 0;
    }
    
    .installment-plans-container {
        margin: 12px 0;
        padding: 8px 0;
    }
    
    .installment-plans-title {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .plans-list {
        gap: 8px;
    }
    
    .plan-item {
        padding: 8px;
    }
    
    .plan-item h4 {
        font-size: 13px;
        margin-bottom: 4px;
    }
    
    .plan-description {
        font-size: 11px;
        margin-bottom: 6px;
    }
    
    .amount {
        font-size: 14px;
    }
    
    .period {
        font-size: 11px;
    }
}

/* Protect main property grid layout from installment plans interference */
.property-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px;
}

@media (min-width: 480px) {
    .property-grid {
        gap: 20px;
    }
}

@media (min-width: 768px) {
    .property-grid {
        gap: 24px;
    }
}

@media (min-width: 1024px) {
    .property-grid {
        grid-template-columns: 2fr 1fr !important;
        gap: 32px;
    }
}

/* Ensure installment plans container doesn't break layout */
.installment-options-container {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 16px 0 !important;
    clear: both !important;
}

/* Ensure the add-to-cart form doesn't expand beyond its container */
.woocommerce div.product form.cart {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.property-left {
    min-width: 0 !important; /* Prevent grid items from overflowing */
}

.property-right {
    min-width: 0 !important; /* Prevent grid items from overflowing */
}
/* Terrain Analysis Widget Styles */
.terrain-analysis-tab {
    /* Container styling */
}

.terrain-map { 
    height: 400px; 
    background: #f0f0f0; 
    border: 1px solid #ddd; 
    border-radius: 8px; 
    position: relative; 
    cursor: pointer;
}

.terrain-controls { 
    margin-bottom: 16px; 
    display: flex; 
    gap: 8px; 
    align-items: center; 
}

.terrain-insights { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 16px; 
    margin-top: 16px; 
}

.insight-card { 
    padding: 16px; 
    border-radius: 8px; 
}

.insight-card.blue { 
    background: #eff6ff; 
    color: #1e40af; 
}

.insight-card.green { 
    background: #f0fdf4; 
    color: #166534; 
}

.insight-card.orange { 
    background: #fff7ed; 
    color: #9a3412; 
}

.terrain-info { 
    position: absolute; 
    top: 16px; 
    left: 16px; 
    background: rgba(255,255,255,0.9); 
    padding: 16px; 
    border-radius: 8px; 
    max-width: 250px; 
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.terrain-legend {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(255,255,255,0.9);
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Local Amenities Widget Styles */
.local-amenities-tab {
    /* Container styling */
}

/* Amenities Header */
.amenities-header {
    padding: 24px;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border-radius: 8px;
    margin-bottom: 24px;
    border: 1px solid #bbf7d0;
}

.amenities-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 16px 0;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.location-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 768px) {
    .location-details {
        grid-template-columns: 2fr 1fr;
    }
}

.location-primary h4 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #1f2937;
}

.coordinates {
    font-size: 14px;
    color: var(--text-light);
    margin: 4px 0;
    font-family: monospace;
}

.region {
    font-size: 14px;
    color: var(--text-light);
    margin: 4px 0;
}

.location-proximity {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.proximity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 6px;
    font-size: 14px;
}

.proximity-label {
    font-weight: 500;
    color: var(--text);
}

.proximity-value {
    font-weight: 600;
    color: var(--primary);
}

/* Section Titles */
.amenities-section {
    margin-bottom: 32px;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border);
}

/* Amenity Cards Grid */
.amenity-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 640px) {
    .amenity-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .amenity-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Amenity Card Base */
.amenity-card {
    background: white;
    border-radius: 8px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.3s ease;
}

.amenity-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.amenity-header {
    padding: 16px;
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.amenity-icon {
    font-size: 24px;
    min-width: 32px;
    text-align: center;
}

.amenity-header h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: #1f2937;
}

.amenity-items {
    padding: 16px;
}

/* Amenity Item Styles */
.amenity-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
    flex-wrap: wrap;
    gap: 4px;
}

.amenity-item:last-child {
    border-bottom: none;
}

.amenity-item.featured {
    background: #eff6ff;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #bfdbfe;
    margin-bottom: 12px;
}

.amenity-item.highlight {
    background: #f0fdf4;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #bbf7d0;
    margin-bottom: 12px;
}

.item-name {
    font-weight: 500;
    color: #1f2937;
    flex: 1;
    min-width: 120px;
}

.item-distance {
    font-size: 14px;
    color: var(--primary);
    font-weight: 500;
    white-space: nowrap;
}

.item-details {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
    margin-top: 6px;
}

.detail-badge, .award-badge {
    background: #e0f2fe;
    color: #0369a1;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.award-badge {
    background: #fef3c7;
    color: #92400e;
}

/* Category-Specific Styles */
.amenity-card.grocery .amenity-header {
    background: linear-gradient(135deg, #fef7ff 0%, #faf5ff 100%);
}

.amenity-card.medical .amenity-header {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.amenity-card.education .amenity-header {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
}

.amenity-card.fuel .amenity-header {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
}

.amenity-card.water-activities .amenity-header {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.amenity-card.outdoor-recreation .amenity-header {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
}

.amenity-card.dining .amenity-header {
    background: linear-gradient(135deg, #fef7ff 0%, #faf5ff 100%);
}

.amenity-card.connectivity .amenity-header {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.amenity-card.utilities .amenity-header {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
}

.amenity-card.emergency .amenity-header {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}

/* Education Stats */
.education-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
}

.stat-item, .rating-badge {
    background: #f3f4f6;
    color: var(--text);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.rating-badge {
    background: #dcfce7;
    color: var(--primary);
}

/* Fuel Services */
.fuel-services {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
}

.service-tag {
    background: #f97316;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

/* Water Activities Specific */
.fishing-info {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
}

.fishing-highlight {
    display: block;
    font-weight: 500;
    color: #0369a1;
    margin-bottom: 4px;
}

.tournament-note {
    font-size: 14px;
    color: var(--text-light);
    font-style: italic;
}

/* Golf Info */
.golf-info {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
}

.golf-highlight {
    display: block;
    font-weight: 500;
    color: #16a34a;
    margin-bottom: 4px;
}

.golf-feature {
    font-size: 14px;
    color: var(--text-light);
}

/* Dining Categories */
.dining-category {
    margin-bottom: 16px;
}

.dining-category:last-child {
    margin-bottom: 0;
}

.dining-category h5 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cuisine-tag {
    background: #e5e7eb;
    color: var(--text);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.rating-star {
    color: #f59e0b;
    font-weight: 600;
    font-size: 14px;
}

/* Connectivity Items */
.connectivity-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

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

.connection-type {
    font-weight: 600;
    color: #1f2937;
    font-size: 14px;
}

.connection-value {
    color: var(--text-light);
    font-size: 14px;
}

.network-badges {
    display: flex;
    gap: 6px;
    margin-top: 4px;
}

.network-badge {
    background: #3b82f6;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

/* Utility Items */
.utility-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f3f4f6;
}

.utility-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.utility-type {
    font-weight: 600;
    color: #1f2937;
    font-size: 14px;
}

.utility-value {
    color: var(--text-light);
    font-size: 14px;
}

.upgrade-badge {
    background: #dcfce7;
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    align-self: flex-start;
    margin-top: 4px;
}

.info-badge {
    background: #e0f2fe;
    color: #0369a1;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    align-self: flex-start;
    margin-top: 4px;
}

.compatible-badge {
    background: #dcfce7;
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    align-self: flex-start;
    margin-top: 4px;
}

/* Emergency Services */
.emergency-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f3f4f6;
}

.emergency-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.service-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 14px;
}

.service-provider {
    color: var(--text-light);
    font-size: 14px;
}

.response-time {
    background: #fee2e2;
    color: #991b1b;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    align-self: flex-start;
    margin-top: 4px;
}

/* Accessibility Section */
.accessibility-info {
    background: white;
    border-radius: 8px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.access-highlights {
    padding: 20px;
}

.access-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
}

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

.access-icon {
    font-size: 24px;
    min-width: 32px;
    text-align: center;
    margin-top: 4px;
}

.access-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 6px 0;
    color: #1f2937;
}

.access-content p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
}

.seasonal-changes {
    padding: 20px;
    background: #f8fafc;
    border-top: 1px solid var(--border);
}

.seasonal-changes h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 16px 0;
    color: #1f2937;
}

.season-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 640px) {
    .season-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.season-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-radius: 8px;
}

.season-item.summer {
    background: #fefce8;
    border: 1px solid #facc15;
}

.season-item.winter {
    background: #f0f9ff;
    border: 1px solid #7dd3fc;
}

.season-icon {
    font-size: 20px;
    min-width: 24px;
    text-align: center;
    margin-top: 2px;
}

.season-content h5 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 6px 0;
    color: #1f2937;
}

.season-content p {
    font-size: 13px;
    color: var(--text-light);
    margin: 0;
    line-height: 1.4;
}

/* Responsive Adjustments */
@media (max-width: 640px) {
    .amenities-title {
        font-size: 20px;
    }
    
    .amenities-header {
        padding: 16px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .amenity-header {
        padding: 12px;
    }
    
    .amenity-items {
        padding: 12px;
    }
    
    .location-details {
        gap: 12px;
    }
    
    .proximity-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .access-highlights {
        padding: 16px;
    }
    
    .seasonal-changes {
        padding: 16px;
    }
    
    .season-item {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .amenity-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .item-distance {
        font-size: 13px;
    }
    
    .item-details {
        margin-top: 4px;
    }
    
    .fuel-services, .network-badges {
        gap: 4px;
    }
    
    .service-tag, .network-badge {
        font-size: 11px;
        padding: 2px 6px;
    }
}