/* ===== CSS Variables ===== */
:root {
    --cardinal: #8C1515;
    --cardinal-dark: #6b0f0f;
    --cardinal-light: #a01e1e;
    --cool-gray: #4D4F53;
    --light-gray: #F4F4F4;
    --white: #ffffff;
    --black: #2E2D29;
    --border-gray: #d1d1d1;
    --success: #2E7D32;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-strong: rgba(0, 0, 0, 0.2);
    --parallax-y: 0px;
}

/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: 
        radial-gradient(circle at 20% 20%, rgba(140, 21, 21, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(140, 21, 21, 0.06) 0%, transparent 50%),
        linear-gradient(135deg, #fafafa 0%, #ececec 50%, #e0e0e0 100%);
    background-attachment: fixed;
    color: var(--black);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Subtle geometric pattern overlay with parallax */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(90deg, rgba(140, 21, 21, 0.06) 1px, transparent 1px),
        linear-gradient(rgba(140, 21, 21, 0.06) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: 0 var(--parallax-y);
    pointer-events: none;
    z-index: 0;
}

/* ===== Main Container ===== */
.main-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ===== Footer ===== */
.site-footer {
    margin-top: 60px;
    padding: 30px 0;
    border-top: 2px solid var(--border-gray);
    text-align: center;
}

.footer-tagline {
    font-size: 16px;
    color: var(--cool-gray);
    margin-bottom: 12px;
}

.footer-contact {
    display: inline-block;
    color: var(--cardinal);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 16px;
    border: 2px solid var(--cardinal);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.footer-contact:hover {
    background: var(--cardinal);
    color: white;
}

/* ===== Header ===== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--cardinal);
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    font-size: 48px;
    line-height: 1;
}

h1 {
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 40px;
    font-weight: 600;
    letter-spacing: -1px;
    color: var(--cardinal);
}

.add-ride-btn {
    background: var(--cardinal);
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'DM Sans', sans-serif;
}

.add-ride-btn:hover {
    background: var(--cardinal-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-strong);
}

/* ===== Rides Container ===== */
.rides-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px var(--shadow);
}

.rides-container h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--cool-gray);
}

/* ===== Tabs ===== */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-gray);
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    color: var(--cool-gray);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    font-family: 'DM Sans', sans-serif;
    position: relative;
    bottom: -2px;
}

.tab-btn:hover {
    color: var(--cardinal);
}

.tab-btn.active {
    color: var(--cardinal);
    border-bottom-color: var(--cardinal);
}

/* ===== Filters ===== */
.filters-container {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    align-items: center;
}

.clear-all-filters-btn {
    background: transparent;
    border: 2px solid var(--cardinal);
    color: var(--cardinal);
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'DM Sans', sans-serif;
    white-space: nowrap;
}

.clear-all-filters-btn:hover {
    background: var(--cardinal);
    color: white;
}

.filter-select {
    padding: 10px 16px;
    border: 2px solid var(--border-gray);
    border-radius: 8px;
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 140px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%234D4F53' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.filter-select:hover {
    border-color: var(--cardinal);
}

.filter-select:focus {
    outline: none;
    border-color: var(--cardinal);
    box-shadow: 0 0 0 3px rgba(140, 21, 21, 0.1);
}

/* Checkbox dropdown filters */
.filter-dropdown {
    position: relative;
    min-width: 140px;
}

.filter-dropdown-btn {
    width: 100%;
    padding: 10px 16px;
    border: 2px solid var(--border-gray);
    border-radius: 8px;
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
}

.filter-dropdown-btn:hover {
    border-color: var(--cardinal);
}

.filter-dropdown-btn.active {
    border-color: var(--cardinal);
    box-shadow: 0 0 0 3px rgba(140, 21, 21, 0.1);
}

.dropdown-arrow {
    font-size: 10px;
    color: var(--cool-gray);
    transition: transform 0.2s ease;
}

.filter-dropdown-btn.active .dropdown-arrow {
    transform: rotate(180deg);
}

.filter-dropdown-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: white;
    border: 2px solid var(--cardinal);
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--shadow);
    z-index: 100;
    display: none; /* Hidden by default */
    max-height: 400px;
    flex-direction: column; /* Use flex layout when visible */
}

.filter-dropdown-panel.active {
    display: flex; /* Show and use flex layout when active */
}

.filter-options {
    padding: 8px;
    max-height: 300px; /* Increased scrollable area */
    overflow-y: auto;
    flex: 1; /* Allow to grow but respect max-height */
}

.filter-panel-footer {
    padding: 8px 12px;
    border-top: 1px solid var(--border-gray);
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: var(--light-gray);
    flex-shrink: 0; /* Prevent footer from shrinking */
}

.clear-filter-btn {
    background: white;
    border: 2px solid var(--cardinal);
    color: var(--cardinal);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    width: 100%;
}

.clear-filter-btn:hover {
    background: var(--cardinal);
    color: white;
}

.done-filter-btn {
    background: var(--cardinal);
    border: 2px solid var(--cardinal);
    color: white;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    width: 100%;
}

.done-filter-btn:hover {
    background: var(--cardinal-dark);
    border-color: var(--cardinal-dark);
}

.filter-option {
    display: flex;
    align-items: center;
    padding: 8px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.filter-option:hover {
    background: var(--light-gray);
}

.filter-option input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
    width: 16px;
    height: 16px;
    accent-color: var(--cardinal);
}

.filter-option input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.4;
}

.filter-option label {
    cursor: pointer;
    font-size: 14px;
    margin: 0;
    flex: 1;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 18px;
}

.loading-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 18px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.error-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--cardinal);
    font-size: 18px;
}

#ridesTable {
    /* Styles for table will be added later */
}

/* ===== Modal Styles ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

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

/* ===== Sticky Header ===== */
.modal-header-sticky {
    position: sticky;
    top: 0;
    background: white;
    padding: 40px 40px 20px 40px;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-radius: 16px 16px 0 0;
}

/* Gradient fade at bottom of sticky header */
.modal-header-sticky::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(255, 255, 255, 0.8) 50%, 
        rgba(255, 255, 255, 0) 100%
    );
    pointer-events: none;
}

/* ===== Scrollable Body ===== */
.modal-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden; /* Prevent horizontal scroll */
    padding: 20px 40px 40px 40px;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

/* ===== Form Info Notice ===== */
.form-info-notice {
    background: #e8f4fd;
    border-left: 4px solid #2196F3;
    padding: 12px 16px;
    margin-bottom: 24px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
    color: #1976D2;
}

.form-info-notice strong {
    font-weight: 700;
}

/* ===== Close Button ===== */
.close-btn {
    position: relative;
    top: 0;
    right: 0;
    background: transparent;
    border: none;
    font-size: 32px;
    font-weight: 300;
    color: var(--cool-gray);
    cursor: pointer;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: var(--light-gray);
    color: var(--cardinal);
    transform: rotate(90deg);
}

/* ===== Form Header ===== */
.form-header {
    margin-bottom: 0;
    flex: 1;
}

.form-header h2 {
    font-family: 'Space Mono', monospace;
    font-size: 28px;
    color: var(--cardinal);
    margin-bottom: 8px;
}

.form-header p {
    color: var(--cool-gray);
    font-size: 16px;
}

/* ===== Form Sections ===== */
.form-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
}

.form-section:last-of-type {
    padding-bottom: 200px; /* Extra space so dropdown doesn't overlap submit buttons */
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.form-section h3 {
    font-size: 18px;
    color: var(--cool-gray);
    margin-bottom: 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
}

.skip-section-btn {
    background: transparent;
    color: var(--cool-gray);
    border: 2px solid var(--border-gray);
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'DM Sans', sans-serif;
}

.skip-section-btn:hover {
    background: var(--light-gray);
    border-color: var(--cool-gray);
}

.skip-section-btn.active {
    background: var(--cardinal);
    color: white;
    border-color: var(--cardinal);
}

.skip-section-btn.active:hover {
    background: var(--cardinal-dark);
    border-color: var(--cardinal-dark);
}

.collapsible-section {
    max-height: 1000px;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
    opacity: 1;
}

.collapsible-section.collapsed {
    max-height: 0;
    opacity: 0;
    margin-bottom: 0;
}

.skipped-notice {
    padding: 12px 16px;
    background: var(--light-gray);
    border-radius: 8px;
    color: var(--cool-gray);
    font-size: 14px;
    font-style: italic;
    margin-top: 10px;
    display: none;
}

.skipped-notice.show {
    display: block;
}

/* ===== Form Rows & Groups ===== */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row:last-child {
    margin-bottom: 0;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

label {
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--black);
    font-size: 14px;
}

.required {
    color: var(--cardinal);
    font-weight: 700;
}

/* ===== Form Inputs ===== */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="time"],
select {
    padding: 12px 16px;
    border: 2px solid var(--border-gray);
    border-radius: 8px;
    font-size: 15px;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.2s ease;
    background: white;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
select:focus {
    outline: none;
    border-color: var(--cardinal);
    box-shadow: 0 0 0 3px rgba(140, 21, 21, 0.1);
}

input::placeholder {
    color: #999;
}

/* Email Input with @stanford.edu suffix */
.email-input-wrapper {
    display: flex;
    align-items: center;
    border: 2px solid var(--border-gray);
    border-radius: 8px;
    background: white;
    transition: all 0.2s ease;
    overflow: hidden;
}

.email-input-wrapper:focus-within {
    border-color: var(--cardinal);
    box-shadow: 0 0 0 3px rgba(140, 21, 21, 0.1);
}

.email-input-wrapper input {
    flex: 1;
    border: none;
    padding: 12px 16px;
    font-size: 15px;
    font-family: 'DM Sans', sans-serif;
}

.email-input-wrapper input:focus {
    outline: none;
    border: none;
    box-shadow: none;
}

.email-domain {
    padding-right: 16px;
    color: var(--cool-gray);
    font-size: 15px;
    font-weight: 500;
    user-select: none;
    white-space: nowrap;
}

/* Custom Select Arrow */
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%234D4F53' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); /* Subtle shadow for distinction */
}

select:focus {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Stronger shadow when open */
}

/* Limit dropdown height on mobile */
@media (max-height: 700px) {
    select {
        /* Browser will handle scrolling within dropdown automatically */
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* ===== Form Actions ===== */
.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border-gray);
}

.btn-primary,
.btn-secondary {
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'DM Sans', sans-serif;
    border: none;
}

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

.btn-primary:hover {
    background: var(--cardinal-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-strong);
}

.btn-secondary {
    background: transparent;
    color: var(--cool-gray);
    border: 2px solid var(--border-gray);
    flex: 1.2;
}

.btn-secondary:hover {
    background: var(--light-gray);
    border-color: var(--cool-gray);
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .modal-header-sticky {
        padding: 30px 20px 15px 20px;
    }

    .modal-body {
        padding: 15px 20px 30px 20px;
    }

    .modal-content {
        width: 95%;
        max-height: 85vh;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

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

    header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .add-ride-btn {
        width: 100%;
    }

    h1 {
        font-size: 28px;
    }

    .form-header h2 {
        font-size: 24px;
    }
}

/* ===== Scrollbar Styling ===== */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--cardinal);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--cardinal-dark);
}

/* ===== Unknown/TBD Styling ===== */
.unknown {
    color: #999;
    font-style: italic;
}

/* ===== Ride Cards Display ===== */
.rides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.ride-card {
    background: white;
    border: 2px solid var(--border-gray);
    border-radius: 10px;
    padding: 16px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 220px; /* Ensure consistent minimum height */
}

.ride-card:hover {
    border-color: var(--cardinal);
    box-shadow: 0 4px 12px var(--shadow);
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--light-gray);
}

.date-time {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.date-large {
    font-size: 16px;
    font-weight: 700;
    color: var(--cardinal);
    line-height: 1.2;
}

.time-large {
    font-size: 22px;
    font-weight: 700;
    color: var(--cardinal);
    line-height: 1.2;
}

.rider-name-small {
    font-size: 13px;
    font-weight: 600;
    color: var(--cool-gray);
    text-align: right;
    line-height: 1.3;
}

/* Old styles - kept for backwards compatibility but not used */
.rider-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--cardinal);
    margin: 0;
    flex: 1;
}

.date {
    font-size: 14px;
    font-weight: 600;
    color: var(--cool-gray);
}

.time {
    font-size: 16px;
    font-weight: 700;
    color: var(--black);
}

.card-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 0;
    border-top: 1px solid var(--light-gray);
    border-bottom: 1px solid var(--light-gray);
    flex-grow: 1; /* This makes the info section grow to push buttons down */
}

.card-airport-airline {
    font-size: 14px;
    font-weight: 600;
    color: var(--black);
}

.card-location {
    font-size: 13px;
    color: var(--cool-gray);
}

.card-actions {
    display: flex;
    gap: 8px;
    margin-top: auto; /* This ensures buttons stay at bottom */
}

.contact-btn {
    flex: 1;
    padding: 10px 12px;
    background: var(--cardinal);
    color: white;
    text-decoration: none;
    text-align: center;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-block;
}

.contact-btn-full {
    flex: auto;
    width: 100%;
}

.contact-btn:hover {
    background: var(--cardinal-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow);
}

.contact-btn.phone-btn {
    border: none;
    cursor: pointer;
    background: var(--cardinal-light);
}

.contact-btn.phone-btn:hover {
    background: var(--cardinal);
}

.contact-btn.phone-btn-revealed {
    background: #e8c8c8;
    color: #333;
    font-weight: 400;
    font-family: inherit;
}

.contact-btn.phone-btn-revealed:hover {
    background: #dbb8b8;
}

@media (max-width: 768px) {
    .rides-grid {
        grid-template-columns: 1fr;
    }
    
    .card-header {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .rider-name-small {
        text-align: right;
    }
    
    /* Modal fixes for mobile */
    .modal {
        align-items: flex-start; /* Align to top instead of center */
        padding-top: 20px; /* Add top padding */
    }
    
    .modal-body {
        padding: 20px 20px 40px 20px; /* Reduce side padding on mobile */
    }
    
    .modal-content {
        width: 95%; /* Take up more screen width */
        max-height: 90vh; /* Slightly smaller to ensure top visibility */
        margin-top: 0; /* Remove any top margin */
    }
    
    /* Footer on mobile */
    .site-footer {
        margin-top: 40px;
        padding: 20px 0;
    }
    
    .footer-tagline {
        font-size: 14px;
    }
    
    .footer-contact {
        font-size: 13px;
        padding: 6px 12px;
    }
}

/* ===== SHUTTLE CARDS (displayed inline with ride cards) ===== */
.ride-card.shuttle-card {
    background: linear-gradient(135deg, #FFE5E5 0%, #FFD0D0 100%);
    border: 2px solid #FF8A80;
    position: relative;
}

.ride-card.shuttle-card::before {
    content: "🚌 SHUTTLE";
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--cardinal);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
}

.ride-card.shuttle-card:hover {
    border-color: var(--cardinal);
    box-shadow: 0 6px 20px rgba(140, 21, 21, 0.25);
}

/* Low tickets badge for shuttles */
.ride-card.shuttle-card.low-tickets::after {
    content: "Low Tickets!";
    position: absolute;
    top: 44px;
    right: 16px;
    background: #FF9800;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1;
}

/* Sold out styling */
.ride-card.shuttle-card.sold-out {
    background: linear-gradient(135deg, #e8e8e8 0%, #d0d0d0 100%);
    border-color: #999;
}

.ride-card.shuttle-card.sold-out::before {
    background: #666;
}

.ride-card.shuttle-card.sold-out .date-large,
.ride-card.shuttle-card.sold-out .time-large {
    color: #8C1515;
    opacity: 0.6;
}

.ride-card.shuttle-card.sold-out .card-airport-airline,
.ride-card.shuttle-card.sold-out .card-location {
    opacity: 0.6;
}

/* Shuttle buy button */
.shuttle-buy-btn {
    flex: 1;
    padding: 12px;
    background: var(--cardinal);
    color: white;
    text-decoration: none;
    text-align: center;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-block;
}

.shuttle-buy-btn:hover {
    background: var(--cardinal-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow);
}

/* Waitlist button - muted red matching the sold-out tile */
.shuttle-buy-btn.waitlist {
    background: #a85252; /* Muted cardinal red */
    opacity: 0.8;
}

.shuttle-buy-btn.waitlist:hover {
    background: #8C1515; /* Darker on hover */
    opacity: 0.9;
}
/* ===== Time Slider Styles ===== */
.time-slider-panel {
    min-width: 320px;
}

.time-slider-container {
    padding: 20px 16px 12px 16px;
}

.time-slider-header {
    text-align: center;
    margin-bottom: 20px;
}

.time-slider-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--cardinal);
}

.time-slider-wrapper {
    position: relative;
    height: 40px;
    margin-bottom: 12px;
}

.time-slider-track {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--border-gray);
    border-radius: 3px;
    transform: translateY(-50%);
    pointer-events: none;
}

.time-slider-range {
    position: absolute;
    height: 100%;
    background: var(--cardinal);
    border-radius: 3px;
    transition: all 0.1s ease;
}

.time-slider {
    position: absolute;
    width: 100%;
    height: 40px;
    top: 0;
    left: 0;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    pointer-events: none;
    margin: 0;
}

.time-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--cardinal);
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 2px 4px var(--shadow);
    transition: all 0.15s ease;
}

.time-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--cardinal);
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 2px 4px var(--shadow);
    transition: all 0.15s ease;
}

.time-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 8px var(--shadow-strong);
}

.time-slider::-moz-range-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 8px var(--shadow-strong);
}

.time-slider::-webkit-slider-thumb:active {
    transform: scale(1.05);
}

.time-slider::-moz-range-thumb:active {
    transform: scale(1.05);
}

.time-slider-max {
    z-index: 2;
}

.time-slider-min {
    z-index: 3;
}

.time-slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--cool-gray);
    padding: 0 4px;
    margin-top: 8px;
}

.time-slider-labels span {
    font-weight: 500;
}

/* ===== Section Dividers ===== */
.section-divider {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    margin: 32px 0 20px 0;
    padding: 12px 0 12px 0;
    border-bottom: 2px solid var(--border-gray);
}

.section-divider:first-child {
    margin-top: 0;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--cardinal);
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-subtitle {
    font-size: 14px;
    color: var(--cool-gray);
    margin: 0;
    font-weight: 500;
}

.time-slider-note {
    font-size: 12px;
    color: var(--cool-gray);
    margin: 4px 0 0 0;
    text-align: center;
    font-style: italic;
}