/**
 * Ship or Drive - Snowbirdship Marketing Calculator Styles
 */

/* Variables matching Snowbirdship theme */
:root {
    --fly-drive-primary: #336dff;
    --fly-drive-secondary: #242635;
    --fly-drive-success: #28a745;
    --fly-drive-warning: #ffc107;
    --fly-drive-danger: #dc3545;
    --fly-drive-light: #f5f7fa;
    --fly-drive-border: #dee2e6;
    --fly-drive-text: #242635;
    --fly-drive-text-muted: #93949b;
    --fly-drive-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --fly-drive-radius: 12px;
}

/* Hero Section */
.fly-drive-hero {
    padding: 60px 0 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    text-align: center;
}

.fly-drive-hero .title {
    font-size: 2.5rem;
    color: var(--fly-drive-secondary);
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--fly-drive-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Calculator Section */
.fly-drive-calculator {
    padding: 40px 24px 80px;
    max-width: 1400px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Override Bootstrap container to use full width inside calculator */
/* Using !important because Bootstrap loads AFTER this file */
.fly-drive-calculator .container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
}

.fly-drive-form {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    background: #fff;
    border-radius: var(--fly-drive-radius);
    box-shadow: var(--fly-drive-shadow);
    padding: 40px;
    box-sizing: border-box;
}

/* Progress Steps */
.progress-steps {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 40px;
    position: relative;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: var(--fly-drive-border);
    z-index: 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
    max-width: 120px;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--fly-drive-border);
    color: var(--fly-drive-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.step-label {
    margin-top: 8px;
    font-size: 0.875rem;
    color: var(--fly-drive-text-muted);
    transition: color 0.3s ease;
}

.progress-step.active .step-number,
.progress-step.completed .step-number {
    background: var(--fly-drive-primary);
    color: #fff;
}

.progress-step.active .step-label,
.progress-step.completed .step-label {
    color: var(--fly-drive-primary);
    font-weight: 500;
}

.progress-step.completed .step-number::after {
    content: '✓';
}

/* Form Steps */
.form-step {
    display: none;
}

.form-step.active {
    display: block; /* v5.18.8 - use direct margins instead of flexbox gap */
    animation: fadeIn 0.3s ease;
}

/* Form step children spacing */
.form-step.active > .row {
    margin-bottom: 20px;
}

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

.step-title,
.form-step.active > .step-title {
    font-size: 1.5rem;
    color: var(--fly-drive-secondary);
    margin-bottom: 32px !important; /* v5.18.11 - higher specificity to override */
    text-align: center;
}

/* Form Groups - v5.18.6 - no bottom margin, flexbox gap provides spacing */
.form-group {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: var(--fly-drive-text);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    border: 1px solid var(--fly-drive-border);
    border-radius: 5px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.form-control:focus {
    outline: none;
    border-color: var(--fly-drive-primary);
    box-shadow: 0 0 0 3px rgba(51, 109, 255, 0.15), 0 2px 6px rgba(51, 109, 255, 0.1);
}

/* Native Date Input - v5.16.3 */
/* Simple styling - let JavaScript handle the click-anywhere behavior */
#travelDate,
#returnDate,
input[type="date"].native-date-input {
    cursor: pointer !important;
    background-color: #fff;
}

/* Row containing form inputs - v5.18.12 - force override Bootstrap */
.fly-drive-form .row {
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    padding: 0 !important;
}

/* Hide empty waypoints container */
#waypointsContainer:empty {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
}

/* Route Controls Row - Add Waypoint + Update Route side by side - v5.18.18 */
.route-controls-row {
    display: flex;
    gap: 30px;             /* Match Bootstrap gutter (15px + 15px) */
    margin-top: 24px;      /* Space after inputs */
    margin-bottom: 24px;   /* Space before map */
    margin-left: 0;
    margin-right: 0;
}

/* Make buttons exactly 50% width each to match col-md-6 above */
.route-controls-row .btn-add-waypoint,
.route-controls-row .btn-update-route {
    flex: 1 1 calc(50% - 15px);  /* 50% minus half the gap */
    max-width: calc(50% - 15px);
}

.route-controls-row .btn-update-route {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #fff;
    background: var(--fly-drive-primary);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.route-controls-row .btn-update-route:hover {
    background: #2855cc;
}

.route-controls-row .btn-update-route svg {
    stroke: currentColor;
}

#waypointsContainer {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.waypoint-entry {
    display: flex;
    align-items: center;
    gap: 12px;
    animation: fadeIn 0.3s ease;
    cursor: grab;
    transition: all 0.2s ease;
}

.waypoint-entry.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.waypoint-entry.drag-over {
    border-top: 3px solid var(--fly-drive-primary);
    padding-top: 10px;
}

/* Drag Handle */
.waypoint-drag-handle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 36px;
    color: #999;
    cursor: grab;
    flex-shrink: 0;
    margin-top: 24px;
    transition: color 0.2s ease;
}

.waypoint-drag-handle:hover {
    color: var(--fly-drive-primary);
}

.waypoint-entry.dragging .waypoint-drag-handle {
    cursor: grabbing;
}

.waypoint-entry .form-group {
    flex: 1;
    margin-bottom: 0;
}

.waypoint-entry .form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--fly-drive-text-muted);
}

.waypoint-entry .form-group label svg {
    stroke: var(--fly-drive-primary);
}

.waypoint-entry .form-control {
    padding-right: 40px;
}

.btn-remove-waypoint {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--fly-drive-border);
    border-radius: 50%;
    color: var(--fly-drive-text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-top: 24px; /* Align with input field */
}

.btn-remove-waypoint:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #dc2626;
}

.btn-remove-waypoint:active {
    transform: scale(0.95);
}

.btn-add-waypoint {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 0.9rem;
    color: var(--fly-drive-primary);
    background: transparent;
    border: 1px dashed var(--fly-drive-primary);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-add-waypoint:hover {
    background: rgba(51, 109, 255, 0.08);
    border-style: solid;
}

.btn-add-waypoint:active {
    transform: translateY(1px);
}

.btn-add-waypoint svg {
    stroke: currentColor;
}

/* Mobile responsive for waypoints */
@media (max-width: 768px) {
    .waypoint-entry {
        flex-wrap: wrap;
    }

    .waypoint-entry .form-group {
        flex: 1 1 calc(100% - 48px);
    }

    .btn-remove-waypoint {
        margin-top: 0;
    }
}

/* Style the form-group container as clickable */
#travelDate,
#returnDate {
    /* Ensure the input is clickable */
    pointer-events: auto;
}

/* Map Container - v5.17.9 - only bottom margin to avoid doubling */
.map-container {
    margin: 0 0 32px 0;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid var(--fly-drive-border);
    transition: all 0.4s ease;
    width: 100%; /* Full width by default */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* When route is active, create side-by-side layout - v5.18.12 */
.map-directions-wrapper {
    display: flex;
    gap: 16px;
    margin: 0 !important;
    padding: 0 !important;
}

.map-directions-wrapper .map-container {
    margin: 0;
    flex: 1; /* Take full width by default in flex container */
}

/* Only shrink map when route-active AND not coast-to-coast */
.map-container.route-active {
    flex: 0 0 60%;
    width: 60%;
}

/* Directions Panel */
.directions-panel {
    display: none;
    flex: 1;
    background: #fff;
    border: 1px solid var(--fly-drive-border);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.directions-panel.active {
    display: flex;
    flex-direction: column;
}

.directions-header {
    padding: 16px;
    background: var(--fly-drive-light);
    border-bottom: 1px solid var(--fly-drive-border);
}

.directions-header h4 {
    margin: 0 0 4px 0;
    font-size: 1rem;
    color: var(--fly-drive-text);
}

.directions-header .route-summary {
    font-size: 0.875rem;
    color: var(--fly-drive-text-muted);
}

.directions-list {
    flex: 1;
    overflow-y: auto;
    max-height: 340px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.direction-step {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--fly-drive-border);
    font-size: 0.875rem;
    align-items: flex-start;
}

.direction-step:last-child {
    border-bottom: none;
}

.step-number {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: var(--fly-drive-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.step-content {
    flex: 1;
}

.step-instruction {
    color: var(--fly-drive-text);
    line-height: 1.4;
}

.step-distance {
    font-size: 0.75rem;
    color: var(--fly-drive-text-muted);
    margin-top: 4px;
}

.overnight-stop-marker {
    background: var(--fly-drive-success) !important;
}

.direction-step.overnight-stop {
    background: rgba(40, 167, 69, 0.08);
}

.direction-step.overnight-stop .step-number {
    background: var(--fly-drive-success);
}

.route-map {
    width: 100%;
    height: 500px;
    background: var(--fly-drive-light);
}

/* Larger map on bigger screens */
@media (min-width: 1200px) {
    .route-map {
        height: 550px;
    }
}

/* Fuel stop markers on route */
.fuel-stop-marker {
    background: #fff;
    border: 2px solid var(--fly-drive-primary);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--fly-drive-primary);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.map-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #fff;
    border-top: 1px solid var(--fly-drive-border);
}

.route-info {
    font-size: 0.875rem;
    color: var(--fly-drive-text-muted);
}

.route-info span {
    font-weight: 600;
    color: var(--fly-drive-text);
}

/* Route Summary */
.route-summary {
    background: var(--fly-drive-light);
    border-radius: 5px;
    padding: 20px;
    margin-top: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.route-summary h4 {
    font-size: 1rem;
    color: var(--fly-drive-text);
    margin-bottom: 16px;
}

.route-details {
    display: flex;
    justify-content: space-around;
    align-items: center; /* Vertically align all items */
    text-align: center;
}

.route-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    min-height: 70px; /* Uniform height for all stats */
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--fly-drive-primary);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--fly-drive-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* Fuel cost stat - highlight as key cost */
.fuel-stat .stat-value {
    color: var(--fly-drive-danger);
    font-size: 1.75rem;
}

.fuel-stat {
    background: rgba(220, 53, 69, 0.08);
    border-radius: 5px;
}

/* Step Actions */
.step-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--fly-drive-border);
}

/* Buttons - v5.16.4 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    min-height: 48px;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: 5px !important; /* 5px corners */
    cursor: pointer;
    transition: all 0.15s ease, transform 0.1s ease;
    text-decoration: none;
    box-sizing: border-box;
    position: relative;
}

.btn-primary {
    background: var(--fly-drive-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(51, 109, 255, 0.35), 0 2px 4px rgba(51, 109, 255, 0.2);
}

.btn-primary:hover {
    background: #2859d9;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(51, 109, 255, 0.4), 0 4px 8px rgba(51, 109, 255, 0.25);
}

.btn-primary:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 1px 4px rgba(51, 109, 255, 0.3), inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background: var(--fly-drive-secondary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(36, 38, 53, 0.3), 0 2px 4px rgba(36, 38, 53, 0.15);
}

.btn-secondary:hover {
    background: #1a1b26;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(36, 38, 53, 0.4), 0 4px 8px rgba(36, 38, 53, 0.2);
}

.btn-secondary:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 1px 4px rgba(36, 38, 53, 0.25), inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background: transparent;
    color: var(--fly-drive-text);
    border: 1px solid var(--fly-drive-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn-outline:hover {
    background: var(--fly-drive-light);
    border-color: var(--fly-drive-text-muted);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.btn-outline:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Hotel Options */
.preference-section {
    margin-bottom: 32px;
}

.preference-section h4 {
    font-size: 1.125rem;
    color: var(--fly-drive-text);
    margin-bottom: 8px;
}

.preference-desc {
    font-size: 0.875rem;
    color: var(--fly-drive-text-muted);
    margin-bottom: 16px;
}

.hotel-options {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hotel-option {
    flex: 1;
    min-width: 150px;
    cursor: pointer;
}

.hotel-option input {
    display: none;
}

.hotel-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: var(--fly-drive-light);
    border: 2px solid transparent;
    border-radius: 5px;
    transition: all 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.hotel-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.hotel-option input:checked + .hotel-card {
    border-color: var(--fly-drive-primary);
    background: rgba(51, 109, 255, 0.08);
    box-shadow: 0 4px 16px rgba(51, 109, 255, 0.2);
}

.hotel-stars {
    font-size: 1.25rem;
    color: #ffc107;
    margin-bottom: 8px;
}

.hotel-label {
    font-weight: 500;
    color: var(--fly-drive-text);
    margin-bottom: 4px;
    text-align: center;
}

.hotel-price {
    font-size: 0.875rem;
    color: var(--fly-drive-text-muted);
}

/* Checkbox Options */
.checkbox-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.checkbox-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
}

.checkbox-label {
    font-size: 0.9375rem;
    color: var(--fly-drive-text);
    line-height: 1.5;
}

/* Stops Preview */
.stops-preview {
    background: var(--fly-drive-light);
    border-radius: 5px;
    padding: 20px;
    margin-top: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.stops-preview h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.stops-desc {
    font-size: 0.875rem;
    color: var(--fly-drive-text-muted);
    margin-bottom: 16px;
}

.stops-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.stop-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 10px 14px;
    background: #fff;
    border-radius: 5px;
    font-size: 0.875rem;
    border: 1px solid var(--fly-drive-border);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.stop-badge-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.stop-badge-header svg {
    color: var(--fly-drive-primary);
    flex-shrink: 0;
}

.stop-badge-price {
    font-size: 0.75rem;
    color: var(--fly-drive-text-muted);
    padding-left: 20px; /* Align with text after icon */
}

.stop-badge svg {
    color: var(--fly-drive-primary);
}

/* Currency Toggle */
.currency-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
    padding: 12px;
    background: var(--fly-drive-light);
    border-radius: 8px;
}

.currency-label {
    font-size: 0.9rem;
    color: var(--fly-drive-text-muted);
}

.currency-buttons {
    display: flex;
    gap: 4px;
    background: #fff;
    padding: 4px;
    border-radius: 5px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.currency-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--fly-drive-text-muted);
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.2s ease;
}

.currency-btn:hover {
    color: var(--fly-drive-primary);
    background: rgba(51, 109, 255, 0.05);
}

.currency-btn.active {
    background: var(--fly-drive-primary);
    color: #fff;
    box-shadow: 0 2px 6px rgba(51, 109, 255, 0.3);
}

.currency-indicator-small {
    font-size: 0.7rem;
    color: var(--fly-drive-text-muted);
    font-weight: 400;
}

/* Results Container */
.results-container {
    display: flex;
    gap: 24px;
    align-items: stretch;
    margin-bottom: 32px;
}

.result-card {
    flex: 1;
    background: #fff;
    border: 2px solid var(--fly-drive-border);
    border-radius: 5px; /* 5px corners for consistency */
    padding: 24px;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.result-card:hover {
    border-color: var(--fly-drive-primary);
    box-shadow: 0 8px 24px rgba(51, 109, 255, 0.15);
}

.result-card.winner {
    border-color: var(--fly-drive-success);
    position: relative;
}

.result-card.winner::before {
    content: 'Best Value';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--fly-drive-success);
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

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

.result-icon {
    margin-bottom: 12px;
}

.result-icon svg {
    stroke: var(--fly-drive-primary);
}

.result-header h3 {
    font-size: 1.25rem;
    color: var(--fly-drive-text);
    margin-bottom: 16px;
}

.result-total {
    display: flex;
    flex-direction: column;
}

.total-label {
    font-size: 0.86rem;
    color: var(--fly-drive-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.total-label .currency-indicator {
    font-size: 0.7rem;
    background: var(--fly-drive-light);
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 4px;
    font-weight: 600;
    color: var(--fly-drive-primary);
}

.total-amount {
    font-size: 2.3rem;
    font-weight: 700;
    color: var(--fly-drive-primary);
}

/* Result Breakdown */
.result-breakdown {
    border-top: 1px solid var(--fly-drive-border);
    padding-top: 16px;
    margin-bottom: 16px;
    flex: 1; /* Take available space to push button down */
    min-height: 100px; /* Minimum height for consistency */
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 8px 0;
    font-size: 1.08rem;
    min-height: 44px;
}

.item-label {
    color: var(--fly-drive-text-muted);
}

.item-label.has-sublabel {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.item-sublabel {
    font-size: 0.7rem;
    color: #adb5bd;
    font-weight: 400;
    font-style: italic;
}

.item-label .estimated-label,
.item-label .optional-label {
    font-size: 0.75rem;
    color: #adb5bd;
    font-weight: 400;
    font-style: italic;
}

/* Optional cost item styling */
.breakdown-item.optional-cost {
    border-top: 1px dashed var(--fly-drive-border);
    margin-top: 8px;
    padding-top: 12px;
    opacity: 0.8;
}

.breakdown-item.optional-cost .item-label {
    font-size: 0.95rem;
}

.item-value {
    font-weight: 500;
    color: var(--fly-drive-text);
}

/* Result Details */
.result-details {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding: 12px 0;
    border-top: 1px solid var(--fly-drive-border);
    margin-bottom: 16px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    color: var(--fly-drive-text-muted);
}

.detail-item svg {
    stroke: var(--fly-drive-text-muted);
}

.result-action {
    text-align: center;
    margin-top: auto; /* Push to bottom of flex container */
}

.result-action .btn {
    width: 100%;
    justify-content: center;
}

/* VS Divider */
.vs-divider {
    display: flex;
    align-items: center;
    justify-content: center;
}

.vs-divider span {
    width: 48px;
    height: 48px;
    background: var(--fly-drive-secondary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

/* Real Talk Banner (formerly Savings Banner) */
.savings-banner {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    border-radius: 5px;
    margin-bottom: 32px;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.2);
    border-left: 4px solid #ff9800;
}

.savings-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(255, 152, 0, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.savings-icon svg {
    stroke: #ff9800;
    width: 28px;
    height: 28px;
}

.savings-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.savings-title {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ff9800;
}

.savings-headline {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    line-height: 1.3;
}

.savings-subtext {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

.savings-subtext strong {
    color: #d84315;
    font-weight: 700;
}

.savings-subtext em {
    display: block;
    margin-top: 8px;
    color: #666;
    font-style: italic;
}

.savings-subtext .back-reference {
    display: block;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed rgba(0, 0, 0, 0.15);
    font-size: 0.95rem;
    color: #5d4037;
    font-weight: 500;
    line-height: 1.5;
}

/* Trip Details Accordion */
.trip-details-accordion {
    margin-top: 32px;
}

.trip-detail {
    border: 1px solid var(--fly-drive-border);
    border-radius: 5px;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.trip-detail summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--fly-drive-light);
    cursor: pointer;
    font-weight: 500;
    color: var(--fly-drive-text);
    list-style: none;
}

.trip-detail summary::-webkit-details-marker {
    display: none;
}

.trip-detail summary::after {
    content: '+';
    margin-left: auto;
    font-size: 1.25rem;
    font-weight: 300;
}

.trip-detail[open] summary::after {
    content: '−';
}

.detail-content {
    padding: 16px;
}

/* Cost Breakdown Columns */
.breakdown-columns {
    display: flex;
    gap: 32px;
}

.breakdown-column {
    flex: 1;
    min-width: 0;
}

.breakdown-column h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--fly-drive-text);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--fly-drive-primary);
}

.breakdown-column table {
    width: 100%;
    border-collapse: collapse;
}

.breakdown-column table tr td {
    padding: 10px 8px;
    border-bottom: 1px solid var(--fly-drive-border);
    font-size: 0.95rem;
}

.breakdown-column table tr td:last-child {
    text-align: right;
    font-weight: 500;
}

.breakdown-column table tr.total td {
    border-top: 2px solid var(--fly-drive-text);
    border-bottom: none;
    font-weight: 600;
}

.breakdown-column table tr.optional-row td {
    color: var(--fly-drive-text-muted);
    font-style: italic;
}

.breakdown-column table tr.optional-row em {
    font-size: 0.8rem;
}

.breakdown-column table tr.dignity-row td {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    color: #5d4037;
    font-style: italic;
    border-bottom: none;
    padding-top: 12px;
    padding-bottom: 12px;
}

.breakdown-column table tr.dignity-row td:last-child {
    color: #d84315;
}

@media (max-width: 768px) {
    .breakdown-columns {
        flex-direction: column;
        gap: 24px;
    }
}

/* Loading Overlay */
.calculator-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loader-content {
    text-align: center;
}

.loader-content.bird-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Wrapper for spinner + bird */
.bird-spinner-wrapper {
    position: relative;
    width: 220px;
    height: 220px;
    margin-bottom: 24px;
}

/* Circular spinner SVG */
.circular-spinner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.spinner-track {
    opacity: 0.3;
}

.spinner-progress {
    stroke-dasharray: 283;
    stroke-dashoffset: 75;
    transform-origin: center;
    animation: spinnerRotate 1.5s linear infinite;
}

@keyframes spinnerRotate {
    0% {
        transform: rotate(0deg);
        stroke-dashoffset: 75;
    }
    50% {
        stroke-dashoffset: 200;
    }
    100% {
        transform: rotate(360deg);
        stroke-dashoffset: 75;
    }
}

.bird-video-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 160px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.bird-video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Bird loader - Mobile-first: GIF by default, video on desktop - v5.18.22 */
/* Must override global style.css which hides .bird-video on mobile */
#birdLoaderGif {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 120px;
    height: 120px;
}

#birdLoaderVideo {
    display: none !important;
    visibility: hidden !important;
}

/* Desktop only: hide GIF, show video */
@media (min-width: 769px) {
    #birdLoaderGif {
        display: none !important;
    }
    #birdLoaderVideo {
        display: block !important;
        width: 160px;
        height: 160px;
    }
}

.loader-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--fly-drive-border);
    border-top-color: var(--fly-drive-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.bird-loader .loader-text {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 500;
    color: #3B82F6;
    letter-spacing: 1px;
    margin-bottom: 0;
}

.loader-text {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--fly-drive-text);
    margin-bottom: 8px;
}

.loader-subtext {
    font-size: 0.875rem;
    color: var(--fly-drive-text-muted);
}

/* Food Budget Input */
.food-budget-input {
    margin: 12px 0 16px 28px;
    padding: 12px 16px;
    background: var(--fly-drive-light);
    border-radius: 5px;
}

.food-budget-input label {
    font-size: 0.875rem;
    color: var(--fly-drive-text-muted);
    margin-bottom: 8px;
    display: block;
}

.input-with-prefix {
    display: flex;
    align-items: center;
    gap: 0;
}

.input-with-prefix .form-control {
    width: 80px;
    text-align: center;
    border-radius: 0;
    border-left: none;
    border-right: none;
}

.input-prefix,
.input-suffix {
    padding: 10px 12px;
    background: #fff;
    border: 1px solid var(--fly-drive-border);
    font-size: 0.9375rem;
    color: var(--fly-drive-text-muted);
}

.input-prefix {
    border-radius: 5px 0 0 5px;
    border-right: none;
}

.input-suffix {
    border-radius: 0 5px 5px 0;
    border-left: none;
}

/* Time Comparison Section */
.time-comparison-section {
    background: var(--fly-drive-light);
    border-radius: 5px;
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.time-comparison-section h4 {
    font-size: 1.125rem;
    color: var(--fly-drive-text);
    margin-bottom: 4px;
    text-align: center;
}

.comparison-subtitle {
    font-size: 0.875rem;
    color: var(--fly-drive-text-muted);
    text-align: center;
    margin-bottom: 24px;
}

.time-chart {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.time-bar-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.time-bar-label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 140px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--fly-drive-text);
}

.time-bar-label span {
    white-space: nowrap;
}

.time-bar-label svg {
    stroke: var(--fly-drive-text-muted);
}

.time-bar-wrapper {
    flex: 1;
    height: 32px;
    background: #fff;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);
}

.time-bar {
    height: 100%;
    border-radius: 5px;
    transition: width 1s ease-out;
}

.time-bar.drive-bar {
    background: linear-gradient(90deg, #dc3545 0%, #ff6b6b 100%);
}

.time-bar.fly-bar {
    background: linear-gradient(90deg, var(--fly-drive-success) 0%, #5dd879 100%);
}

.time-bar-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--fly-drive-text);
    min-width: 80px;
    text-align: right;
}

.time-savings {
    text-align: center;
    padding: 12px;
    background: rgba(40, 167, 69, 0.1);
    border-radius: 5px;
    color: var(--fly-drive-success);
    font-size: 0.9375rem;
}

.time-savings strong {
    font-weight: 700;
}

/* Fuel Price Map Legend - compact box for left side, aligned with top of USA */
.fuel-legend {
    background: rgba(255, 255, 255, 0.95);
    padding: 12px 14px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    font-size: 0.825rem;
    margin: 10px;
    max-width: 160px;
}

.fuel-legend-header {
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding-bottom: 8px;
}

.fuel-legend-title {
    font-weight: 700;
    color: var(--fly-drive-text);
    font-size: 0.85rem;
    line-height: 1.3;
}

.fuel-legend-date {
    font-size: 0.7rem;
    color: var(--fly-drive-text-muted);
    margin-top: 2px;
}

.fuel-legend-items {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fuel-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fuel-legend-color {
    width: 19px;
    height: 12px;
    border-radius: 2px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.fuel-legend-label {
    color: var(--fly-drive-text-muted);
    font-size: 0.75rem;
    line-height: 1.2;
}

/* Route Average Fuel Price Circle - Snowbird Blue */
.route-avg-fuel {
    background: var(--fly-drive-primary);
    color: #fff;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: none; /* Hidden until route is calculated */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 10px;
    padding: 22px;
    box-shadow: 0 4px 12px rgba(51, 109, 255, 0.4);
}

.route-avg-fuel-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
    margin-bottom: 3px;
}

.route-avg-fuel-price {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.1;
}

.route-avg-fuel-price::before {
    content: '$';
}

.route-avg-fuel-unit {
    font-size: 0.66rem;
    opacity: 0.85;
    margin-bottom: 2px;
}

.route-avg-fuel-date {
    font-size: 0.6rem;
    opacity: 0.8;
}

.route-avg-fuel-states {
    font-size: 0.56rem;
    opacity: 0.7;
    margin-top: 2px;
}

/* Fuel Price Map Tooltip */
.fuel-tooltip {
    position: absolute;
    background: rgba(36, 38, 53, 0.95);
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8125rem;
    pointer-events: none;
    z-index: 1000;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transform: translate(-50%, -100%);
    margin-top: -10px;
}

.fuel-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(36, 38, 53, 0.95);
}

.fuel-tooltip-state {
    font-weight: 600;
    margin-bottom: 2px;
}

.fuel-tooltip-price {
    color: #f1c40f;
    font-weight: 500;
}

/* Map position for legend */
.map-container {
    position: relative;
}

/* Bird Animation - Wing Flapping Effect */
@keyframes birdFlap {
    0%, 100% {
        transform: scaleY(1) rotate(0deg);
    }
    25% {
        transform: scaleY(0.92) rotate(-2deg);
    }
    50% {
        transform: scaleY(1.05) rotate(0deg);
    }
    75% {
        transform: scaleY(0.92) rotate(2deg);
    }
}

@keyframes birdBob {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

/* Apply animation to the bird marker image */
.bird-marker-animated img {
    animation: birdFlap 0.3s ease-in-out infinite, birdBob 0.6s ease-in-out infinite;
    transform-origin: center center;
}

/* Smooth transition for position changes */
.bird-marker-smooth {
    transition: none !important;
}

/* Utility Classes */
.d-none {
    display: none !important;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .fly-drive-form {
        padding: 24px 16px;
    }

    .fly-drive-hero .title {
        font-size: 1.75rem;
    }

    .progress-steps::before {
        left: 5%;
        right: 5%;
    }

    .step-label {
        font-size: 0.75rem;
    }

    .route-map {
        height: 350px;
    }

    .map-controls {
        flex-direction: column;
        gap: 12px;
    }

    .results-container {
        flex-direction: column;
    }

    .vs-divider {
        padding: 16px 0;
    }

    .hotel-options {
        flex-direction: column;
    }

    .hotel-option {
        min-width: 100%;
    }

    .route-details {
        flex-wrap: wrap;
        gap: 16px;
    }

    .route-stat {
        min-width: 80px;
    }

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

    .step-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .savings-banner {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .savings-text {
        align-items: center;
    }

    .savings-subtext {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .progress-steps {
        gap: 0;
    }

    .step-number {
        width: 32px;
        height: 32px;
        font-size: 0.875rem;
    }

    .total-amount {
        font-size: 1.5rem;
    }

    .result-details {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
}

/* Mobile Responsive - Hide elements and optimize layout */
@media (max-width: 768px) {
    /* Hide Driving Directions on mobile */
    .directions-panel {
        display: none !important;
    }

    /* Hide Fuel Legend on mobile */
    .fuel-legend {
        display: none !important;
    }

    /* Fix Overnight Stop Details */
    .trip-details-accordion {
        margin: 16px 0;
    }

    .trip-detail {
        overflow: visible;
    }

    .trip-detail summary {
        padding: 12px;
        font-size: 0.9rem;
        flex-wrap: wrap;
    }

    .trip-detail .stop-details {
        padding: 12px;
        overflow-x: auto;
    }

    /* Optimize map container for mobile */
    #mapContainer {
        height: 250px !important;
        min-height: 250px;
    }

    /* Form inputs full width */
    .fly-drive-form {
        padding: 20px 16px;
    }

    .form-row {
        flex-direction: column;
        gap: 16px;
    }

    .form-group {
        width: 100%;
    }

    /* Results cards stack properly */
    .result-card {
        padding: 20px 16px;
    }

    .breakdown-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .breakdown-item .item-value {
        align-self: flex-end;
    }

    /* Time comparison chart */
    .time-bar-label {
        min-width: 100px;
        font-size: 0.75rem;
    }

    .time-bar-label span {
        white-space: normal;
    }

    /* Savings banner */
    .savings-headline {
        font-size: 1.1rem;
    }

    .savings-title {
        font-size: 0.75rem;
    }

    /* Hero section */
    .fly-drive-hero .title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 0 16px;
    }

    /* Buttons */
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    /* Step labels hidden on very small screens */
    .step-label {
        font-size: 0.7rem;
    }
}

@media (max-width: 375px) {
    .fly-drive-hero .title {
        font-size: 1.5rem;
    }

    .progress-step {
        max-width: 70px;
    }

    .step-label {
        display: none;
    }

    .time-bar-label {
        min-width: 80px;
    }

    .result-card h3 {
        font-size: 1.1rem;
    }

    .total-amount {
        font-size: 1.25rem;
    }
}

/* ========================================
   Mobile Touch Fixes for Vehicle Dropdowns
   ======================================== */

/* Ensure all select elements are properly touchable on mobile */
@media (max-width: 768px) {
    /* Vehicle dropdown selects - ensure proper touch targets */
    .vehicle-info-section select,
    #vehicleYear,
    #vehicleMake,
    #vehicleModel,
    #vehicleType {
        min-height: 48px !important;
        font-size: 16px !important; /* Prevents iOS zoom on focus */
        pointer-events: auto !important;
        position: relative;
        z-index: 10;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 12px center;
        background-size: 12px;
        padding-right: 36px;
        cursor: pointer;
        touch-action: manipulation;
    }

    /* Ensure label doesn't block select */
    .vehicle-info-section label,
    .form-group label {
        pointer-events: none;
    }

    /* Fix for form groups containing selects */
    .vehicle-info-section .form-group,
    .vehicle-info-section .col-md-6,
    .vehicle-info-section .col-6 {
        position: relative;
        z-index: 1;
        overflow: visible;
    }

    /* Ensure no overlays blocking select interaction */
    .vehicle-info-section::before,
    .vehicle-info-section::after,
    .form-group::before,
    .form-group::after {
        pointer-events: none !important;
    }

    /* Make select dropdown options more touch-friendly */
    .vehicle-info-section select option {
        padding: 12px;
        font-size: 16px;
    }
}

/* iOS specific fixes */
@supports (-webkit-touch-callout: none) {
    #vehicleYear,
    #vehicleMake,
    #vehicleModel,
    #vehicleType {
        font-size: 16px !important; /* Prevents zoom */
        -webkit-appearance: none;
        border-radius: 8px;
    }
}

/* ========================================
   Flatpickr Custom Styling - Priceline Design
   ======================================== */

/* Calendar container */
.flatpickr-calendar {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 24px 60px 24px 60px;
    width: auto !important;
    max-width: none;
}

.flatpickr-calendar.open {
    z-index: 9999;
}

/* Multi-month calendar wrapper - Priceline style with arrows outside */
.flatpickr-calendar.multiMonth {
    display: flex;
    gap: 20px;
    position: relative;
}

/* Month containers - each month is separate */
.flatpickr-monthContainer {
    flex: 1;
}

/* Month header - center the month name at top */
.flatpickr-months {
    position: relative;
    margin-bottom: 16px;
    height: auto;
}

.flatpickr-month {
    background: transparent;
    color: var(--fly-drive-primary);
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.flatpickr-current-month {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--fly-drive-primary);
    padding: 12px 0;
    height: auto;
    line-height: 1.4;
    display: block;
    text-align: center;
    width: 100%;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--fly-drive-primary);
    appearance: none;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: center;
}

.flatpickr-current-month .numInputWrapper {
    width: auto;
    display: inline;
}

.flatpickr-current-month .numInputWrapper input {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--fly-drive-primary);
    background: transparent;
    border: none;
    text-align: center;
}

/* Navigation arrows - only show on first/last month */
.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    position: absolute !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    height: 32px;
    width: 32px;
    cursor: pointer;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

/* Left arrow on far left */
.flatpickr-months .flatpickr-prev-month {
    left: -40px;
}

/* Right arrow on far right */
.flatpickr-months .flatpickr-next-month {
    right: -40px;
}

/* Hide middle arrows in multi-month view */
.flatpickr-calendar.multiMonth .flatpickr-monthContainer:not(:first-child) .flatpickr-prev-month {
    display: none !important;
}

.flatpickr-calendar.multiMonth .flatpickr-monthContainer:not(:last-child) .flatpickr-next-month {
    display: none !important;
}

.flatpickr-months .flatpickr-prev-month svg,
.flatpickr-months .flatpickr-next-month svg {
    fill: var(--fly-drive-primary);
    width: 16px;
    height: 16px;
}

.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
    background: #f3f4f6;
    border-radius: 50%;
}

.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg {
    fill: var(--fly-drive-primary);
}

/* Weekday labels */
.flatpickr-weekdays {
    background: transparent;
    height: auto;
    margin-bottom: 8px;
}

.flatpickr-weekday {
    color: #6b7280;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
}

/* Days grid - use default Flatpickr widths for proper 7-column layout */
.flatpickr-days {
    width: 100%;
}

.dayContainer {
    min-width: 252px; /* 7 days × 36px (32px + 4px margin) */
    width: 252px;
    max-width: 252px;
}

/* Individual day cells */
.flatpickr-day {
    color: #1f2937;
    border: none;
    border-radius: 5px;
    font-size: 0.875rem;
    font-weight: 500;
    height: 32px;
    line-height: 32px;
    max-width: 32px;
    width: 32px;
    margin: 2px;
}

/* Hover state */
.flatpickr-day:hover:not(.flatpickr-disabled):not(.selected):not(.startRange):not(.endRange) {
    background: #f3f4f6;
    border-color: #f3f4f6;
}

/* Today */
.flatpickr-day.today {
    border-color: var(--fly-drive-primary);
    background: transparent;
    color: var(--fly-drive-primary);
}

.flatpickr-day.today:hover {
    background: #eff6ff;
    border-color: var(--fly-drive-primary);
}

/* Selected date */
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: var(--fly-drive-primary);
    border-color: var(--fly-drive-primary);
    color: white;
    font-weight: 600;
}

.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover {
    background: var(--fly-drive-primary);
    border-color: var(--fly-drive-primary);
}

/* In-range dates */
.flatpickr-day.inRange {
    background: #dbeafe;
    border-color: #dbeafe;
    color: var(--fly-drive-primary);
    box-shadow: -5px 0 0 #dbeafe, 5px 0 0 #dbeafe;
}

/* Disabled/past dates */
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
    color: #d1d5db;
}

.flatpickr-day.prevMonthDay:hover,
.flatpickr-day.nextMonthDay:hover {
    background: transparent;
}

/* Multi-month layout */
.flatpickr-calendar.multiMonth .flatpickr-days {
    border-right: 1px solid #e5e7eb;
    padding-right: 16px;
    margin-right: 16px;
}

.flatpickr-calendar.multiMonth .flatpickr-days:last-child {
    border-right: none;
    padding-right: 0;
    margin-right: 0;
}

/* Input field styling */
.form-control[readonly].flatpickr-input {
    background-color: #ffffff;
    cursor: pointer;
}

.form-control[readonly].flatpickr-input:focus {
    border-color: var(--fly-drive-primary);
    box-shadow: 0 0 0 3px rgba(51, 109, 255, 0.1);
}

/* Remove default arrow on mobile */
.flatpickr-calendar.inline {
    box-shadow: none;
    border: 1px solid #e5e7eb;
}

/* Make calendar visible when open */
.flatpickr-calendar.open,
.flatpickr-calendar.inline {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .flatpickr-calendar {
        padding: 16px;
    }

    .flatpickr-day {
        height: 36px;
        line-height: 36px;
        max-width: 36px;
        width: 36px;
        font-size: 0.875rem;
    }

    .flatpickr-calendar.multiMonth .flatpickr-days {
        border-right: none;
        padding-right: 0;
        margin-right: 0;
        margin-bottom: 16px;
    }
}

@media (max-width: 480px) {
    /* Show single month on very small screens */
    .flatpickr-calendar.multiMonth .flatpickr-rContainer:last-child {
        display: none;
    }
}
