/* CSS Variables for easy theming */
:root {
    --brand-primary: #1f7a3a;
    --brand-primary-dark: #145f2a;
    --brand-secondary: #111827;
    --brand-accent: #f59e0b;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --text-light: #ffffff;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-dark: #000000;
    --border-light: #e5e7eb;
    --border-dark: #374151;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --transition: all 0.2s ease;
}

/* Reset & Base Styles */
.premium-transfer-component * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.premium-transfer-component {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: var(--text-primary);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}
.geo-icon {
    color: white;
}
.geo-node {
    color: white;
}
.geo-node:hover {
    color: #00ffd5;
}
.geo-icon svg {
    width: 28px;
    height: 28px;
    display: block;
}

/* Search Header */
.search-header {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 16px;
    border-radius: var(--radius-xl);
    margin-bottom: 24px;
    border: 1px solid var(--border-dark);
    box-shadow: var(--shadow-lg);
}

.transfer-row {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.field {
    flex: 1 1 0px;
    position: relative;
    min-width: 250px;
}

.field input {
    width: 100%;
    padding: 10px 60px;
    border: 2px solid var(--text-light);
    border-radius: var(--radius-lg);
    background: var(--bg-dark);
    color: var(--text-light);
    font-size: 15px;
    font-weight: 700;
    outline: none;
    transition: var(--transition);
    font-family: monospace;
}

.field input:focus {
    border-color: var(--brand-accent);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.field input::placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

.icon-left,
.icon-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    color: var(--text-light);
}

.icon-left {
    left: 16px;
}

.icon-right {
    right: 16px;
}
#search-btn {
    background: black;
    color: white;
    padding: 7px 7px;
    border-radius: var(--radius-lg);
    font-weight: 900;
    margin-left:12rem;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}

#search-btn:hover {
    background: var(--brand-primary);
    color: var(--text-light);
    border-color: var(--brand-primary);
}

/* Autocomplete Dropdown */
.autocomplete-dropdown {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    background: var(--bg-dark);
    border: 2px solid var(--border-dark);
    border-radius: var(--radius-md);
    max-height: 280px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: var(--shadow-xl);
}

.autocomplete-item {
    padding: 12px 16px;
    color: white;
    cursor: pointer;
    border-bottom: 1px solid #4CAF50;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: center;
    background: black;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover,
.autocomplete-item.active {
    background: white;
    color:black;
}

.autocomplete-item .icon {
    width: 20px;
    height: 20px;
    opacity: 0.7;
}

/* Route Info */
.route-info {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: -4rem;
    padding: 9px 12px;
    background: black;
    border-radius: var(--radius-md);
    flex-wrap: wrap;
}

.route-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
}

.route-info-item svg {
    width: 18px;
    height: 18px;
    color: var(--brand-accent);
}

/* Main Content */
.ptf-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 32px;
    margin-bottom: 48px;
}

@media (max-width: 1024px) {
    .ptf-grid {
        grid-template-columns: 1fr;
    }
}

/* Sidebar */
.ptf-side {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 24px;
    border-radius: var(--radius-xl);
    height: fit-content;
    position: sticky;
    top: 24px;
}

.ptf-header h1 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-light);
}

.ptf-features {
    list-style: none;
    margin-bottom: 24px;
}

.ptf-features li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-dark);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
}

.ptf-features li:before {
    content: "✓";
    color: var(--brand-primary);
    font-weight: bold;
}

.ptf-quick {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ptf-quick .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
}

.ptf-quick .btn:first-child {
    background: var(--brand-primary);
    color: var(--text-light);
}

.ptf-quick .btn:first-child:hover {
    background: var(--brand-primary-dark);
}

.ptf-quick .btn:last-child {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--border-dark);
}

.ptf-quick .btn:last-child:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Booking Form */
.ptf-form {
    background: black;
    padding: 28px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 2px solid darkgreen;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-field {
    position: relative;
}

.form-field input,
.form-field select {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 16px;
    transition: var(--transition);
    appearance: none;
}

.form-field input:focus,
.form-field select:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(31, 122, 58, 0.1);
}
 .form-field label {
    position: absolute;
    left: 150px;
    top: -3px;
    background: black;
    padding: 0 8px;
    font-size: 13px;
    color: white;
    font-weight: 900;
    pointer-events: none;
    border-radius: 5px;
}

.datetime-field {
    grid-column: span 2;
}

@media (max-width: 768px) {
    .datetime-field {
        grid-column: span 1;
    }
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--brand-primary);
    color: var(--text-light);
    border: none;
    padding: 18px 36px;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-primary:hover {
    background: var(--brand-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.form-note {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
}

/* Fleet Section */
.fleet-section {
    margin-top: 48px;
}

.section-title {
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 32px;
    color: white;
    text-align: center;
}

.fleet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

@media (max-width: 768px) {
    .fleet-grid {
        grid-template-columns: 1fr;
    }
}

.vehicle-card {
    background: black;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 2px solid green;
}

.vehicle-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.vehicle-slider {
    position: relative;
    height: 350px;
    overflow: hidden;
    background: var(--bg-secondary);
}

.vehicle-slide {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    transition: opacity 0.3s ease;
}

.vehicle-slide.active {
    display: block;
}

.slider-nav {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: var(--text-light);
    transform: scale(1.2);
}

.vehicle-body {
    padding: 10px;
}

.vehicle-title {
    font-size: 20px;
    font-weight: 900;
    margin-bottom: 12px;
    color: black;
    background:white;
    border-radius:4px;
    display: flex;
    align-items: center;
    text-align:center;
    margin-left:5px;
}
.vehicle-badge {
    background: var(--brand-primary);
    color: var(--text-light);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
}

.vehicle-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
    color: white;
    font-size: 14px;
}

.vehicle-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.vehicle-desc {
    color: white;
    line-height: 1.6;
    margin-bottom: 24px;
    font-size: 15px;
}

.vehicle-actions {
    display: flex;
    gap: 12px;
}

.btn-secondary {
    flex: 1;
    background: white;
    color: darkgreen;
    border: none;
    padding: 10px;
    border-radius: var(--radius-md);
    font-weight: 900;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size:23px;
    text-decoration: none;
}

.btn-secondary:hover {
    background: var(--brand-secondary);
}

.btn-outline {
    flex: 1;
    background: transparent;
    color: var(--bg-dark);
    border: 2px solid var(--border-dark);
    padding: 14px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-outline:hover {
    background: var(--bg-dark);
    color: var(--text-light);
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 24px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--border-light);
}

.empty-state h3 {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

/* Accessibility */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .transfer-row {
        flex-direction: column;
    }
    
    .field {
        min-width: 100%;
    }
    
    .route-info {
        align-items: flex-start;
        gap: 13px;
    }
    
    .ptf-form {
        padding: 24px 16px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-primary {
        width: 100%;
        justify-content: center;
    }
}
