/* ============================================================
   NYC Luxury Car Booking — Frontend Styles
   Design: Dark luxury, #050505 bg, #C5A059 gold accent
   ============================================================ */

/* ── CSS Variables ──────────────────────────────────────── */
:root {
    --nlc-primary: #050505;
    --nlc-accent: #C5A059;
    --nlc-accent-light: rgba(197, 160, 89, 0.15);
    --nlc-border: rgba(255,255,255,0.10);
    --nlc-border-active: rgba(255,255,255,0.60);
    --nlc-text: #ffffff;
    --nlc-text-muted: rgba(255,255,255,0.40);
    --nlc-text-dim: rgba(255,255,255,0.20);
    --nlc-radius: 0px;
    --nlc-font: ui-sans-serif, system-ui, sans-serif;
    --nlc-transition: 0.18s ease;
    --nlc-z: 999999;
}

/* ── Trigger Button ─────────────────────────────────────── */
.nlc-open-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--nlc-accent);
    color: #000;
    font-family: var(--nlc-font);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    padding: 16px 32px;
    border: none;
    cursor: pointer;
    transition: background var(--nlc-transition), color var(--nlc-transition);
    min-height: 52px;
}
.nlc-open-btn:hover,
.nlc-open-btn:focus {
    background: #fff;
    color: #000;
    outline: none;
}

/* ── Floating Trigger Button ────────────────────────────── */
.nlc-float-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: calc(var(--nlc-z) - 1);
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--nlc-accent);
    color: #000;
    font-family: var(--nlc-font);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    padding: 14px 22px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 24px rgba(197,160,89,0.35);
    transition: background var(--nlc-transition);
}
.nlc-float-btn:hover { background: #fff; }

/* ── Overlay ────────────────────────────────────────────── */
.nlc-overlay {
    position: fixed;
    inset: 0;
    z-index: var(--nlc-z);
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    animation: nlcFadeIn 0.22s ease;
}
@media (min-width: 768px) {
    .nlc-overlay {
        align-items: center;
        padding: 20px;
    }
}
@keyframes nlcFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ── Modal ──────────────────────────────────────────────── */
.nlc-modal {
    position: relative;
    width: 100%;
    background: var(--nlc-primary);
    border-top: 2px solid var(--nlc-accent);
    border-left: 1px solid var(--nlc-border);
    border-right: 1px solid var(--nlc-border);
    border-bottom: 1px solid var(--nlc-border);
    display: flex;
    flex-direction: column;
    height: 100dvh;
    animation: nlcSlideUp 0.28s cubic-bezier(0.22,1,0.36,1);
}
@media (min-width: 768px) {
    .nlc-modal {
        max-width: 640px;
        height: auto;
        max-height: 92vh;
        animation: nlcScaleIn 0.25s cubic-bezier(0.22,1,0.36,1);
    }
}
@keyframes nlcSlideUp {
    from { transform: translateY(40px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}
@keyframes nlcScaleIn {
    from { transform: scale(0.97); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

/* ── Modal Header ───────────────────────────────────────── */
.nlc-modal__header {
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--nlc-border);
}
@media (min-width: 768px) {
    .nlc-modal__header { padding: 20px 32px 16px; }
}

/* ── Brand ──────────────────────────────────────────────── */
.nlc-brand {
    display: flex;
    flex-direction: column;
    gap: 3px;
    user-select: none;
}
.nlc-brand__logo {
    height: 36px;
    width: auto;
    object-fit: contain;
}
.nlc-brand__wordmark {
    font-family: var(--nlc-font);
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -0.5px;
    line-height: 1;
    color: var(--nlc-text);
}
.nlc-brand__wordmark em {
    color: var(--nlc-accent);
    font-style: normal;
}
.nlc-brand__area {
    font-family: var(--nlc-font);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--nlc-accent);
    line-height: 1;
}

/* ── Close Button ───────────────────────────────────────── */
.nlc-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: -8px -8px 0 0;
    background: transparent;
    border: none;
    color: var(--nlc-text-muted);
    cursor: pointer;
    transition: color var(--nlc-transition);
    flex-shrink: 0;
}
.nlc-close:hover { color: var(--nlc-text); }

/* ── Step Indicator ─────────────────────────────────────── */
.nlc-steps {
    flex-shrink: 0;
    padding: 12px 20px;
    border-bottom: 1px solid var(--nlc-border);
}
@media (min-width: 768px) { .nlc-steps { padding: 12px 32px; } }
.nlc-steps__bar {
    height: 2px;
    background: var(--nlc-border);
    position: relative;
    margin-bottom: 8px;
}
.nlc-steps__fill {
    height: 100%;
    background: var(--nlc-accent);
    transition: width 0.4s ease;
}
.nlc-steps__labels {
    display: flex;
    justify-content: space-between;
}
.nlc-step-lbl {
    font-family: var(--nlc-font);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--nlc-text-dim);
    transition: color var(--nlc-transition);
}
.nlc-step-lbl.active { color: var(--nlc-text); }

/* ── Scrollable Body ────────────────────────────────────── */
.nlc-modal__body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}
@media (min-width: 768px) { .nlc-modal__body { padding: 24px 32px; } }
.nlc-modal__body::-webkit-scrollbar { width: 4px; }
.nlc-modal__body::-webkit-scrollbar-track { background: transparent; }
.nlc-modal__body::-webkit-scrollbar-thumb { background: var(--nlc-border); }

/* ── Panes ──────────────────────────────────────────────── */
.nlc-pane { display: none; animation: nlcFadeIn 0.2s ease; }
.nlc-pane.active { display: block; }

/* ── Tabs (Schedule / Book Now) ─────────────────────────── */
.nlc-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--nlc-border);
    border: 1px solid var(--nlc-border);
    margin-bottom: 20px;
}
.nlc-tab {
    padding: 14px;
    background: var(--nlc-primary);
    border: none;
    font-family: var(--nlc-font);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--nlc-text-muted);
    cursor: pointer;
    transition: background var(--nlc-transition), color var(--nlc-transition);
}
.nlc-tab:hover { color: var(--nlc-text); }
.nlc-tab.active {
    background: var(--nlc-accent);
    color: #000;
}

/* ── Label ──────────────────────────────────────────────── */
.nlc-label {
    display: block;
    font-family: var(--nlc-font);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--nlc-text-muted);
    margin-bottom: 8px;
}
.nlc-opt {
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: none;
    font-style: italic;
    color: var(--nlc-text-dim);
}

/* ── Field ──────────────────────────────────────────────── */
.nlc-field {
    margin-bottom: 18px;
}

/* ── Inputs ─────────────────────────────────────────────── */
.nlc-input {
    width: 100%;
    box-sizing: border-box;
    background: transparent;
    border: 1px solid var(--nlc-border);
    color: var(--nlc-text);
    font-family: var(--nlc-font);
    font-size: 14px;
    padding: 12px 14px;
    outline: none;
    transition: border-color var(--nlc-transition);
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0;
}
.nlc-input:focus { border-color: var(--nlc-border-active); }
.nlc-input::placeholder { color: var(--nlc-text-dim); }
.nlc-input::-webkit-calendar-picker-indicator { filter: invert(1) opacity(0.4); cursor: pointer; }

.nlc-textarea {
    resize: vertical;
    min-height: 80px;
}

/* Input with icon */
.nlc-input-wrap { position: relative; }
.nlc-input-wrap--icon .nlc-input { padding-right: 36px; }
.nlc-input-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--nlc-accent);
    opacity: 0.55;
    pointer-events: none;
}

/* ── Autocomplete Suggestions ───────────────────────────── */
.nlc-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 10;
    background: #111;
    border: 1px solid var(--nlc-border);
    border-top: none;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}
.nlc-suggestions.open { display: block; }
.nlc-suggestion-item {
    padding: 10px 14px;
    font-size: 13px;
    color: var(--nlc-text);
    cursor: pointer;
    border-bottom: 1px solid var(--nlc-border);
    transition: background var(--nlc-transition);
    font-family: var(--nlc-font);
}
.nlc-suggestion-item:last-child { border-bottom: none; }
.nlc-suggestion-item:hover,
.nlc-suggestion-item.highlighted { background: var(--nlc-accent-light); }
.nlc-suggestion-item strong { color: var(--nlc-accent); }

/* ── Segmented Control (Service Type) ───────────────────── */
.nlc-seg {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1px;
    background: var(--nlc-border);
    border: 1px solid var(--nlc-border);
}
.nlc-seg__btn {
    padding: 13px 8px;
    background: var(--nlc-primary);
    border: none;
    font-family: var(--nlc-font);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--nlc-text-muted);
    cursor: pointer;
    transition: background var(--nlc-transition), color var(--nlc-transition);
    white-space: nowrap;
}
.nlc-seg__btn:hover { color: var(--nlc-text); }
.nlc-seg__btn.active {
    background: var(--nlc-accent);
    color: #000;
}
.nlc-seg__short { display: inline; }
.nlc-seg__long  { display: none; }
@media (min-width: 400px) {
    .nlc-seg__short { display: none; }
    .nlc-seg__long  { display: inline; }
}

/* ── Row (2-col grid) ───────────────────────────────────── */
.nlc-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* ── Counter ────────────────────────────────────────────── */
.nlc-counter {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--nlc-border);
    width: fit-content;
}
.nlc-counter__btn {
    width: 38px;
    height: 42px;
    background: transparent;
    border: none;
    color: var(--nlc-accent);
    font-size: 20px;
    font-weight: 300;
    cursor: pointer;
    transition: background var(--nlc-transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.nlc-counter__btn:hover { background: var(--nlc-accent-light); }
.nlc-counter__val {
    min-width: 40px;
    text-align: center;
    font-family: var(--nlc-font);
    font-size: 16px;
    font-weight: 700;
    color: var(--nlc-text);
    padding: 0 4px;
    border-left: 1px solid var(--nlc-border);
    border-right: 1px solid var(--nlc-border);
    height: 42px;
    line-height: 42px;
}

/* ── Route Info Bar ─────────────────────────────────────── */
.nlc-route-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--nlc-accent-light);
    border: 1px solid rgba(197,160,89,0.25);
    margin-top: 16px;
    animation: nlcFadeIn 0.2s ease;
}
.nlc-route-bar__item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--nlc-font);
    font-size: 12px;
    color: var(--nlc-text);
}
.nlc-route-bar__item svg { color: var(--nlc-accent); flex-shrink: 0; }
.nlc-route-bar__sep { width: 1px; height: 14px; background: var(--nlc-border); }
.nlc-route-bar__status { margin-left: auto; font-size: 10px; color: var(--nlc-accent); font-weight: 600; }

/* ── Error ──────────────────────────────────────────────── */
.nlc-error {
    display: block;
    font-family: var(--nlc-font);
    font-size: 11px;
    color: #ff6b6b;
    margin-top: 5px;
    min-height: 16px;
}
.nlc-input.nlc-input--error { border-color: #ff6b6b !important; }

/* ── Vehicles Loading ───────────────────────────────────── */
.nlc-vehicles-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 40px 20px;
    color: var(--nlc-text-muted);
    font-family: var(--nlc-font);
    font-size: 13px;
}
.nlc-spinner {
    width: 30px;
    height: 30px;
    border: 2px solid var(--nlc-border);
    border-top-color: var(--nlc-accent);
    border-radius: 50%;
    animation: nlcSpin 0.7s linear infinite;
}
@keyframes nlcSpin { to { transform: rotate(360deg); } }

/* ── Vehicle Cards ──────────────────────────────────────── */
.nlc-vehicles-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--nlc-border);
    border: 1px solid var(--nlc-border);
}
.nlc-vehicle-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--nlc-primary);
    cursor: pointer;
    border: 2px solid transparent;
    transition: background var(--nlc-transition), border-color var(--nlc-transition);
    position: relative;
}
.nlc-vehicle-card:hover { background: rgba(255,255,255,0.03); }
.nlc-vehicle-card.selected {
    border-color: var(--nlc-accent);
    background: var(--nlc-accent-light);
}
.nlc-vehicle-card.unavailable {
    opacity: 0.4;
    cursor: not-allowed;
}
.nlc-vehicle-card__img {
    width: 80px;
    height: 52px;
    object-fit: cover;
    flex-shrink: 0;
    filter: brightness(0.9);
}
.nlc-vehicle-card__info { flex: 1; min-width: 0; }
.nlc-vehicle-card__name {
    font-family: var(--nlc-font);
    font-size: 14px;
    font-weight: 700;
    color: var(--nlc-text);
    margin-bottom: 3px;
}
.nlc-vehicle-card__desc {
    font-family: var(--nlc-font);
    font-size: 11px;
    color: var(--nlc-text-muted);
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.nlc-vehicle-card__meta {
    display: flex;
    gap: 10px;
    margin-top: 6px;
}
.nlc-vehicle-card__meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: var(--nlc-font);
    font-size: 10px;
    color: var(--nlc-text-dim);
}
.nlc-vehicle-card__price {
    flex-shrink: 0;
    text-align: right;
}
.nlc-vehicle-card__price-val {
    font-family: var(--nlc-font);
    font-size: 18px;
    font-weight: 900;
    color: var(--nlc-accent);
    display: block;
}
.nlc-vehicle-card__price-est {
    font-family: var(--nlc-font);
    font-size: 9px;
    color: var(--nlc-text-dim);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: block;
    margin-top: 2px;
}
.nlc-vehicle-card__check {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 18px;
    height: 18px;
    background: var(--nlc-accent);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
}
.nlc-vehicle-card.selected .nlc-vehicle-card__check { display: flex; }
.nlc-vehicle-card__check svg { width: 10px; height: 10px; }

/* No vehicles message */
.nlc-no-vehicles {
    padding: 32px;
    text-align: center;
    font-family: var(--nlc-font);
    font-size: 13px;
    color: var(--nlc-text-muted);
}

/* ── Booking Summary ────────────────────────────────────── */
.nlc-summary {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--nlc-border);
    padding: 16px;
    margin-top: 20px;
}
.nlc-summary__title {
    font-family: var(--nlc-font);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--nlc-text-muted);
    margin-bottom: 12px;
}
.nlc-summary__grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 16px;
    margin-bottom: 14px;
}
.nlc-summary__key {
    font-family: var(--nlc-font);
    font-size: 11px;
    color: var(--nlc-text-muted);
}
.nlc-summary__val {
    font-family: var(--nlc-font);
    font-size: 11px;
    color: var(--nlc-text);
    font-weight: 600;
}
.nlc-summary__total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--nlc-border);
    font-family: var(--nlc-font);
    font-size: 12px;
    color: var(--nlc-text-muted);
}
.nlc-summary__price {
    font-size: 22px;
    font-weight: 900;
    color: var(--nlc-accent);
}

/* ── Success Pane ───────────────────────────────────────── */
.nlc-success {
    text-align: center;
    padding: 40px 20px;
}
.nlc-success__icon {
    width: 64px;
    height: 64px;
    border: 2px solid var(--nlc-accent);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.nlc-success__icon svg {
    width: 28px;
    height: 28px;
    color: var(--nlc-accent);
}
.nlc-success__title {
    font-family: var(--nlc-font);
    font-size: 20px;
    font-weight: 900;
    color: var(--nlc-text);
    margin: 0 0 10px;
}
.nlc-success__msg {
    font-family: var(--nlc-font);
    font-size: 14px;
    color: var(--nlc-text-muted);
    margin: 0 0 20px;
}
.nlc-success__ref {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 10px 18px;
    background: var(--nlc-accent-light);
    border: 1px solid rgba(197,160,89,0.3);
    font-family: var(--nlc-font);
    font-size: 12px;
    color: var(--nlc-text-muted);
    margin-bottom: 24px;
}
.nlc-success__ref strong {
    color: var(--nlc-accent);
    font-size: 14px;
}
.nlc-success__close {
    display: inline-block;
    background: var(--nlc-accent);
    color: #000;
    font-family: var(--nlc-font);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    padding: 14px 28px;
    border: none;
    cursor: pointer;
    transition: background var(--nlc-transition);
    width: 100%;
    max-width: 260px;
}
.nlc-success__close:hover { background: #fff; }

/* ── Modal Footer ───────────────────────────────────────── */
.nlc-modal__footer {
    flex-shrink: 0;
    border-top: 1px solid var(--nlc-border);
    padding-bottom: env(safe-area-inset-bottom, 0);
}
.nlc-footer-pane { display: none; }
.nlc-footer-pane.active { display: flex; gap: 1px; background: var(--nlc-border); }

/* Primary CTA */
.nlc-btn-primary {
    flex: 1;
    background: var(--nlc-accent);
    color: #000;
    border: none;
    font-family: var(--nlc-font);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    padding: 20px 16px;
    cursor: pointer;
    transition: background var(--nlc-transition), color var(--nlc-transition);
    min-height: 62px;
}
.nlc-btn-primary:hover,
.nlc-btn-primary:focus { background: #fff; outline: none; }
.nlc-btn-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.nlc-btn-primary:disabled:hover { background: var(--nlc-accent); color: #000; }

/* Back button */
.nlc-btn-back {
    background: var(--nlc-primary);
    color: var(--nlc-text-muted);
    border: none;
    font-family: var(--nlc-font);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 20px 20px;
    cursor: pointer;
    transition: color var(--nlc-transition), background var(--nlc-transition);
    min-height: 62px;
    white-space: nowrap;
}
.nlc-btn-back:hover { color: var(--nlc-text); background: rgba(255,255,255,0.05); }

/* ── Inline Form Mode ───────────────────────────────────── */
.nlc-inline-form .nlc-modal {
    position: static;
    height: auto;
    max-height: none;
    animation: none;
    border: 1px solid var(--nlc-border);
    border-top: 2px solid var(--nlc-accent);
}
.nlc-inline-form .nlc-close { display: none; }

/* ── Body lock ──────────────────────────────────────────── */
body.nlc-locked { overflow: hidden; }
