/* Status explanation tiles (Silver / Gold) */

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.status-box {
    background: #eef2ff;
    border-radius: 0.75rem;
    padding: 0.65rem 0.8rem;
    font-size: 0.9rem;
}

.status-box strong {
    font-size: 1rem;
}

.status-box span {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.8rem;
    color: #4b5563;
}

.status-box.status-silver {
    background: #7A7C7C;
    color: white !important;
}

.status-box.status-gold {
    background: #AE8625;
    color: white !important;
}

.status-box.status-silver span,
.status-box.status-gold span {
    color: white !important;
}

/* Base layout for the planner form */

#planner-form {
    margin-top: 0.75rem;
    margin-bottom: 1rem;
}

.planner-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.planner-grid .form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem 1.25rem;
    align-items: flex-end;
}

.planner-grid .price-row {
    background: #f9fafb;
    border-radius: 0.75rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid #e5e7eb;
}

.planner-grid .button-col {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
}

/* Small explanatory text under inputs in the planner */

.input-tip {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: #6b7280;
}

.input-tip a {
    color: #1d4ed8;
    text-decoration: underline;
}


/* Example Table styling */

.tp-table-wrapper {
    overflow-x: auto;
    margin: 0.5rem 0 1rem;
}

.tp-example-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

/* Full-width thicker divider before each new destination */
.tp-example-table tbody tr.new-destination-row td {
    border-top: 2px solid #9ca3af !important;
}


.tp-example-table th,
.tp-example-table td {
    padding: 0.4rem 0.5rem;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    white-space: nowrap;
}

.tp-example-table thead th {
    background: #f2f4f8;
    font-weight: 600;
}

.tp-example-table tbody tr:nth-child(even) {
    background: #fafbff;
}





/* "Best value" summary (Option D) */

.value-summary-card {
    margin-top: 0.75rem;
    padding: 0.75rem 0.9rem;
    border-radius: 0.75rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    font-size: 0.9rem;
}

    .value-summary-card p {
        margin: 0 0 0.4rem;
    }

.value-summary-list {
    margin: 0 0 0.4rem;
    padding-left: 1.25rem;
}

    .value-summary-list li + li {
        margin-top: 0.15rem;
    }







/* "Best value" summary (Option D) */

.value-summary-card {
    margin-top: 0.75rem;
    padding: 0.75rem 0.9rem;
    border-radius: 0.75rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    font-size: 0.9rem;
}

.value-summary-card p {
    margin: 0 0 0.4rem;
}

.value-summary-list {
    margin: 0 0 0.4rem;
    padding-left: 1.25rem;
}

.value-summary-list li + li {
    margin-top: 0.15rem;
}

.value-summary-note {
    margin: 0;
    font-size: 0.8rem;
    color: #6b7280;
}

/* Chart container under the summary */

.value-chart-wrapper {
    margin-top: 0.75rem;
}

#value-chart {
    max-width: 100%;
    height: 260px;
}

@media (min-width: 768px) {
    #value-chart {
        height: 320px;
    }
}








/* Responsive behaviour specific to the planner layout */

@media (min-width: 640px) {
    .planner-grid .price-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .planner-grid .meta-row {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.75rem;
    }
}

@media (min-width: 1024px) {
    .planner-grid .price-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .planner-grid .meta-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
