:root {
    --nestora-primary: #173C32;
    --nestora-cream: #F6F2EA;
    --nestora-gold: #C7A66A;
    --nestora-sage: #E5ECE6;
    --nestora-text: #52645D;
}

.nestora-compare {
    font-family: 'Inter', sans-serif;
    color: var(--nestora-text);
    padding: 60px 20px;
    background-color: #ffffff;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header Styling */
.nestora-compare-header {
    text-align: center;
    margin-bottom: 60px;
}

.nestora-compare-eyebrow {
    font-size: 13px;
    letter-spacing: 2px;
    font-weight: 600;
    color: var(--nestora-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.nestora-compare-eyebrow .decor-line {
    display: inline-block;
    width: 40px;
    height: 1px;
    background-color: var(--nestora-gold);
}

.nestora-compare-title {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    color: var(--nestora-primary);
    margin: 0 0 16px 0;
    font-weight: 700;
}

.nestora-compare-desc {
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Grid Comparison Table */
.nestora-compare-viewport-wrapper {
    overflow-x: auto;
    margin-bottom: 60px;
    -webkit-overflow-scrolling: touch;
}

.nestora-compare-table-wrapper {
    min-width: 800px;
}

.nestora-compare-grid {
    display: grid;
    grid-template-columns: 200px repeat(calc(var(--num-cols) - 1), 1fr);
    border-radius: 12px;
    overflow: hidden;
}

/* Cell Base Styles */
.nestora-compare-cell {
    background-color: #ffffff;
    padding: 24px;
    border-bottom: 1px solid #E8E3D9;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    font-size: 14px;
    line-height: 1.5;
    transition: background-color 0.3s ease;
}

.nestora-compare-cell.cell-empty {
    border-bottom: none;
}

/* Header Column Styling */
.nestora-compare-cell.cell-property-header {
    border-bottom: 1px solid #E8E3D9;
    padding-bottom: 30px;
    background-color: #ffffff;
}

.nestora-compare-img-wrapper {
    width: 100%;
    position: relative;
    margin-bottom: 20px;
}

.nestora-compare-img-wrapper img {
    width: 100%;
    object-fit: cover;
    display: block;
}

.nestora-compare-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: var(--nestora-primary);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 50px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nestora-compare-prop-name {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: var(--nestora-primary);
    margin: 0 0 6px 0;
    font-weight: 700;
}

.nestora-compare-prop-loc {
    font-size: 13px;
    color: var(--nestora-text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nestora-compare-prop-loc span {
    color: var(--nestora-gold);
}

/* Row specific customization */
.nestora-compare-cell.label-cell {
    background-color: var(--nestora-sage);
    color: var(--nestora-primary);
    font-weight: 700;
    letter-spacing: 0.5px;
    font-size: 13px;
    text-transform: uppercase;
}

.nestora-compare-cell.premium-row {
    background-color: var(--nestora-cream);
}

.price-val {
    font-size: 18px;
    font-weight: 700;
    color: var(--nestora-primary);
}

.icon-value {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.cell-icon {
    color: var(--nestora-gold);
    font-size: 16px;
}

.amenities-cell {
    color: var(--nestora-text);
    font-size: 13px;
    line-height: 1.6;
}

.cta-cell {
    padding: 30px 24px;
    border-bottom: none;
}

/* Premium Buttons */
.nestora-compare-btn {
    display: inline-block;
    text-align: center;
    background-color: var(--nestora-primary);
    color: #ffffff !important;
    padding: 14px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 13px;
    width: 100%;
    border: 1px solid var(--nestora-primary);
}

.nestora-compare-btn:hover {
    background-color: transparent;
    color: var(--nestora-primary) !important;
}

/* Insights Section */
.nestora-compare-insights {
    margin-top: 60px;
    border-top: 1px solid #E8E3D9;
    padding-top: 50px;
}

.nestora-insights-title {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: var(--nestora-primary);
    text-align: center;
    margin: 0 0 30px 0;
}

.nestora-insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.nestora-insight-card {
    padding: 30px 24px;
    border-radius: 12px;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nestora-insight-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--nestora-text);
}

.nestora-insight-badge {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--nestora-primary);
}

/* Card Colors */
.card-gold {
    background-color: #ffffff;
    border: 1px solid var(--nestora-gold);
}
.card-gold .nestora-insight-badge {
    color: var(--nestora-gold);
}

.card-sage {
    background-color: var(--nestora-sage);
}

.card-cream {
    background-color: var(--nestora-cream);
}

/* Responsive Layouts */
@media (max-width: 991px) {
    .nestora-compare-table-wrapper {
        min-width: 750px;
    }
    .nestora-compare-title {
        font-size: 34px;
    }
    .nestora-insights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .nestora-compare {
        padding: 40px 15px;
    }
    .nestora-compare-title {
        font-size: 28px;
    }
    .nestora-insights-grid {
        grid-template-columns: 1fr;
    }
    /* Enable horizontal scrolling on mobile and lock labels */
    .nestora-compare-viewport-wrapper {
        overflow-x: auto;
    }
    .nestora-compare-grid {
        min-width: 850px; /* Keep reasonable column sizes */
    }
}
