/* ---------- Detail & Edit View Styles ---------- */
/* Consistent styling for all detail/edit views throughout the app */

/* Detail View Container - for read-only view content */
.detail-view {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    /* padding: 1.25rem 1.5rem; */
}

/* Edit Form Container - for editable forms */
.app-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--app-bg-color);
    border-radius: 8px;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
    border: 1px solid var(--app-section-border-color);
    box-shadow: var(--app-ui-shadow-panel);
}



/* Info Section - lightweight read-only information block (no heavy boxes) */
.info-section {
    background: transparent;
    border-radius: 0;
    padding: 0;
    border: 0;
    color: var(--bs-dark);
    font-size: 0.95rem;
    line-height: 1.5;
}

.info-section p:last-child {
    margin-bottom: 0;
}

/* Detail Section Header (h6 with icon) */
.detail-view h6,
.app-form h6 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--bs-dark);
    margin-bottom: 0.5rem;
}

.detail-view h6 i,
.app-form h6 i {
    font-size: 1.2rem;
    color: var(--bs-primary);
}

/* Detail Section Title (h4 for main name/title) */
.detail-view h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bs-dark);
    margin-bottom: 1rem;
}

.detail-view h4 i {
    font-size: 1.6rem;
    color: var(--bs-primary);
}

/* Grouped surface for related info (use sparingly for subtle separation) */
.detail-group {
    border-radius: 8px;
    padding: 1rem 1.25rem;
    transition: all 0.2s ease;
    border: 1px solid var(--app-section-border-color);
    box-shadow: var(--app-ui-shadow-panel);
    background-color: var(--app-bg-color);
}

.detail-group--flush {
    background: transparent;
    border: 0;
    padding: 0;
    margin-bottom: 1rem;
}

/* Icon + text rows */
.detail-item {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.detail-item i {
    font-size: 1.1rem;
    color: var(--bs-primary);
    margin-top: 2px;
}

/* Form Labels with Icons (matching directions.html style) */
.app-form .form-label,
.detail-view .form-label {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--bs-dark);
}

.app-form .form-label i,
.detail-view .form-label i {
    font-size: 1.2rem;
    color: var(--bs-primary);
}

/* Form Groups */
.app-form .form-group {
    /* margin-bottom: 0.5rem; */
}

/* Action Button Container at bottom of views */
.detail-actions,
.form-actions {
    display: flex;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(22, 22, 22, 0.08);
    margin-top: auto;
}

.detail-actions .btn,
.form-actions .btn {
    flex: 1;
}

.detail-actions,
.form-actions {
    flex-direction: column;
}

.detail-actions .btn,
.form-actions .btn {
    width: 100%;
}

/* List items within detail views */
.detail-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.detail-list-item {
    background: rgba(248, 249, 250, 0.9);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(22, 22, 22, 0.05);
}

/* Badge styling for detail views */
.detail-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Category badge (for pins) */
.pin-category-badge {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

/* Loading state for detail views */
.detail-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    text-align: center;
}

.detail-loading .spinner-border {
    margin-bottom: 1rem;
}

/* Error state for detail views */
.detail-error {
    padding: 1.25rem 1.5rem;
}

/* Transit-specific styles (for station info) */
.transit-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 12px;
    min-width: 30px;
    text-align: center;
}

.transit-modes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.transit-mode-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: rgba(102, 51, 204, 0.1);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--app-transit);
}

.transit-mode-badge i {
    font-size: 1rem;
}

/* Station card for multiple stations view */
.station-card {
    background: rgba(248, 249, 250, 0.9);
    border: 1px solid rgba(22, 22, 22, 0.05);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

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

/* POI Categories display */
.poi-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.poi-category-badge {
    padding: 0.25rem 0.5rem;
    background: rgba(var(--bs-primary-rgb), 0.1);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--bs-primary);
}

/* Contact info styling */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-info a {
    color: var(--bs-primary);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Hours display */
.hours-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.hours-item .day {
    font-weight: 600;
    color: rgba(0, 0, 0, 0.7);
}

.hours-item .time {
    color: rgba(0, 0, 0, 0.6);
}
