/**
 * Bellevent Smart Rental Planner - Frontend Styles
 * Matches Bellevent design specifications with pixel-accurate table styling.
 */

:root {
    --bv-header-bg: #f8f4e9;
    --bv-header-text: #1b2330;
    --bv-body-text: #334155;
    --bv-primary-col: #1b2330;
    --bv-row-alt: #f6f7f9;
    --bv-row-hover: #eff3f8;
    --bv-border: #e2e4e8;
    --bv-border-radius: 0px;
    --bv-accent: #2563eb;
    --bv-accent-hover: #1d4ed8;
    --bv-accent-light: #eff6ff;
    --bv-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.bellevent-container {
    font-family: var(--bv-font);
    color: var(--bv-body-text);
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.bellevent-container * {
    box-sizing: border-box;
}

/* Tabs Navigation */
.bellevent-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 12px;
}

.bellevent-tab-btn {
    appearance: none;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 9px 18px;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bellevent-tab-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
}

.bellevent-tab-btn.active {
    background: #1b2330;
    color: #ffffff;
    border-color: #1b2330;
}

.bellevent-tab-content {
    display: none;
    animation: bvFadeIn 0.25s ease;
}

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

@keyframes bvFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Table Wrapper & Responsive Scroll */
.bellevent-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--bv-border);
    border-radius: var(--bv-border-radius);
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    margin-bottom: 28px;
    scrollbar-color: #8b8b8b #fcfcfc;
    scrollbar-width: thin;
}

.bellevent-table-wrapper::-webkit-scrollbar {
    height: 9px;
}

.bellevent-table-wrapper::-webkit-scrollbar-track {
    background: #fcfcfc;
    border-top: 1px solid var(--bv-border);
}

.bellevent-table-wrapper::-webkit-scrollbar-thumb {
    background: #8b8b8b;
    border-radius: 5px;
    border: 2px solid #fcfcfc;
}

.bellevent-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

/* Table Structure - Square corners with comfortable minimum width */
.bellevent-table {
    width: 100%;
    min-width: 520px;
    border-collapse: separate;
    border-spacing: 0;
    text-align: left;
    font-size: 14px;
    line-height: 1.5;
    white-space: normal;
}

/* Table Header - Exact Color: #f8f4e9, Square corners */
.bellevent-table thead tr th {
    background-color: var(--bv-header-bg);
    color: var(--bv-header-text);
    font-weight: 700;
    font-size: 15px;
    padding: 15px 22px;
    border-bottom: 1px solid var(--bv-border);
    white-space: nowrap;
    vertical-align: middle;
}

.bellevent-table thead tr th:first-child {
    border-top-left-radius: 0;
}

.bellevent-table thead tr th:last-child {
    border-top-right-radius: 0;
}

/* Table Body */
.bellevent-table tbody tr {
    transition: background-color 0.15s ease;
}

.bellevent-table tbody tr.row-standard {
    background-color: #ffffff;
}

.bellevent-table tbody tr.row-alt {
    background-color: var(--bv-row-alt);
}

.bellevent-table tbody tr:hover {
    background-color: var(--bv-row-hover);
}

.bellevent-table tbody td {
    padding: 15px 22px;
    border-bottom: 1px solid var(--bv-border);
    color: #1b2330;
    font-weight: 400;
    font-size: 14.5px;
    line-height: 1.5;
    vertical-align: middle;
    min-width: 85px;
}

.bellevent-table tbody tr:last-child td {
    border-bottom: none;
}

/* Primary Column (Table / Tent Name) - Exact 700 bold matching Image 2 */
.bellevent-table td.col-primary {
    font-weight: 700;
    color: #1b2330;
}

/* Stacked Layout Mode */
.bellevent-stacked-view .bellevent-section {
    margin-bottom: 30px;
}

/* ==========================================================================
   Format 2: Specification Card / Details Table Styles
   ========================================================================== */
.bellevent-spec-container {
    max-width: 600px;
    margin: 10px 0 25px 0;
    box-sizing: border-box;
}

.bellevent-spec-heading {
    margin: 0 0 10px 0;
    font-size: 15px;
    font-weight: 700;
    color: #334155;
    letter-spacing: -0.01em;
}

.bellevent-spec-card {
    border: 1px solid var(--bv-border);
    border-radius: 0;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.bellevent-spec-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    text-align: left;
    font-size: 13.5px;
    line-height: 1.45;
}

.bellevent-spec-table tr {
    border-bottom: 1px solid var(--bv-border);
}

.bellevent-spec-table tr:last-child {
    border-bottom: none;
}

.bellevent-spec-label {
    width: 28%;
    min-width: 110px;
    background-color: #eef1f5;
    color: #1b2330;
    font-weight: 700;
    padding: 13px 18px;
    vertical-align: middle;
    text-align: left;
    border-right: 1px solid var(--bv-border);
}

.bellevent-spec-value {
    background-color: #ffffff;
    color: #1b2330;
    padding: 13px 18px;
    vertical-align: middle;
    text-align: left;
}

.bellevent-spec-footer {
    margin-top: 14px;
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}

.bv-phone-highlight {
    color: #876d3b;
    font-weight: 700;
}

a.bv-phone-link {
    color: #876d3b;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    transition: color 0.15s ease, opacity 0.15s ease;
}

a.bv-phone-link:hover {
    color: #5c4a28;
    text-decoration: underline;
}

/* ==========================================================================
   Mobile Responsive Enhancements
   Prevents column squishing & single-word line breaks in descriptive columns
   ========================================================================== */
@media (max-width: 768px) {
    .bellevent-table {
        min-width: 540px;
    }

    .bellevent-table thead tr th {
        padding: 12px 14px;
        font-size: 13.5px;
    }

    .bellevent-table tbody td {
        padding: 12px 14px;
        font-size: 13.5px;
        min-width: 95px;
    }

    /* Provide ample space for descriptive sentence columns (e.g., Look, Description) */
    .bellevent-table tbody td:nth-child(n+3) {
        min-width: 140px;
    }
}

