/* ═══════════════════════════════════════════════════════════════
   Platinum Travels Booking v5
   – Syne font for all headings/titles
   – #02514b brand color throughout (no gold/yellow)
   – Static SVG India map replaced with modern illustrated map
   – Input text always #02514b
   ALL rules scoped under .ptb-app
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700&family=Syne:wght@400;500;600;700;800&display=swap');

/* ── CSS custom props (scoped) ──────────────────────────────── */
.ptb-app {
    --ptb-green:   #02514b;
    --ptb-green2:  #037a71;
    --ptb-light:   #e8f5f4;
    --ptb-border:  #d0e8e6;
    --ptb-text:    #111111;
    --ptb-muted:   #666666;
    --ptb-white:   #ffffff;
    --ptb-radius:  12px;
    --ptb-shadow:  0 4px 28px rgba(2,81,75,.11);
    --ptb-fam:     'DM Sans', sans-serif;
    --ptb-fam-h:   'Syne', sans-serif;

    all: initial;
    display: block;
    font-family: var(--ptb-fam);
    font-size:   16px;
    color:       var(--ptb-text);
    max-width:   1100px;
    margin:      40px auto;
    box-sizing:  border-box;
}
.ptb-app *, .ptb-app *::before, .ptb-app *::after {
    box-sizing: border-box;
    margin:     0;
    padding:    0;
}

/* ── Progress ────────────────────────────────────────────────── */
.ptb-app .ptb-progress {
    display:         flex;
    align-items:     center;
    justify-content: center;
    gap:             0;
    margin-bottom:   32px;
    flex-wrap:       wrap;
    row-gap:         10px;
}
.ptb-app .ptb-progress__step {
    display:        flex;
    flex-direction: column;
    align-items:    center;
    gap:            6px;
    opacity:        .38;
    transition:     opacity .3s;
    cursor:         default;
}
.ptb-app .ptb-progress__step.is-active  { opacity: 1; }
.ptb-app .ptb-progress__step.is-done    { opacity: .75; }
.ptb-app .ptb-progress__bubble {
    width:           38px;
    height:          38px;
    border-radius:   50%;
    border:          2px solid var(--ptb-green);
    display:         flex;
    align-items:     center;
    justify-content: center;
    background:      var(--ptb-white);
    font-size:       14px;
    font-weight:     700;
    color:           var(--ptb-green);
    transition:      background .3s, color .3s;
}
.ptb-app .ptb-progress__step.is-active .ptb-progress__bubble,
.ptb-app .ptb-progress__step.is-done   .ptb-progress__bubble {
    background: var(--ptb-green);
    color:      var(--ptb-white);
}
.ptb-app .ptb-progress__num   { display: block; }
.ptb-app .ptb-progress__check { display: none; }
.ptb-app .ptb-progress__step.is-done .ptb-progress__num  { display: none; }
.ptb-app .ptb-progress__step.is-done .ptb-progress__check{ display: block; }
.ptb-app .ptb-progress__label {
    font-size:   12px;
    font-weight: 600;
    font-family: var(--ptb-fam-h);
    color:       var(--ptb-muted);
    white-space: nowrap;
}
.ptb-app .ptb-progress__step.is-active .ptb-progress__label {
    color: var(--ptb-green);
}
.ptb-app .ptb-progress__line {
    flex:       1;
    height:     2px;
    background: var(--ptb-border);
    min-width:  40px;
    max-width:  140px;
    margin:     0 4px;
    position:   relative;
    top:        -11px;
}

/* ── Panel visibility ────────────────────────────────────────── */
.ptb-app .ptb-panel           { display: none; }
.ptb-app .ptb-panel.is-active { display: block; animation: ptbIn .35s ease; }
@keyframes ptbIn { from { opacity:0; transform:translateY(14px); } to { opacity:1; transform:none; } }

/* ── Card / grid ─────────────────────────────────────────────── */
.ptb-app .ptb-panel__grid {
    display:               grid;
    grid-template-columns: 1fr 1fr;
    gap:                   0;
    background:            var(--ptb-white);
    border-radius:         var(--ptb-radius);
    box-shadow:            var(--ptb-shadow);
    overflow:              hidden;
}
.ptb-app .ptb-panel__body {
    padding: 40px 36px;
}
.ptb-app .ptb-panel__side {
    padding:      40px 36px;
    background:   #fafafa;
    border-left:  1px solid #f0f0f0;
}
.ptb-app .ptb-panel__map {
    background:  #e8f5f4;
    min-height:  360px;
    overflow:    hidden;
    position:    relative;
    display:     flex;
    align-items: center;
    justify-content: center;
}
.ptb-app .ptb-panel__map > div,
.ptb-app .ptb-panel__map > svg {
    width:  100% !important;
    height: 100% !important;
    min-height: 360px;
}

/* ── Typography – ALL titles use Syne + #02514b ──────────────── */
.ptb-app .ptb-heading {
    font-family:   var(--ptb-fam-h);
    font-size:     26px;
    font-weight:   700;
    color:         var(--ptb-green);
    margin-bottom: 4px;
    line-height:   1.2;
}
.ptb-app .ptb-subtext {
    font-size:     14px;
    color:         var(--ptb-muted);
    margin-bottom: 22px;
}
.ptb-app .ptb-side-heading {
    font-family:   var(--ptb-fam-h);
    font-size:     16px;
    font-weight:   700;
    color:         var(--ptb-green);
    margin-bottom: 14px;
}
.ptb-app h3 {
    font-family: var(--ptb-fam-h);
    font-size:   16px;
    font-weight: 700;
    color:       var(--ptb-green);
}

/* ── Labels ──────────────────────────────────────────────────── */
.ptb-app .ptb-label {
    display:       block;
    font-size:     13px;
    font-weight:   500;
    color:         #444;
    margin-bottom: 6px;
}
.ptb-app #ptb-step-3 .ptb-label {
    color:       var(--ptb-green);
    font-weight: 600;
}

/* ── Fields ──────────────────────────────────────────────────── */
.ptb-app .ptb-field     { margin-bottom: 16px; }
.ptb-app .ptb-row-2 {
    display:               grid;
    grid-template-columns: 1fr 1fr;
    gap:                   14px;
    align-items:           end;
}

/* ── INPUT TEXT COLOR FIX – always #02514b, never yellow ──────── */
.ptb-app .ptb-input {
    width:         100%;
    padding:       11px 14px;
    border:        1.5px solid #ddd;
    border-radius: 8px;
    font-size:     14px;
    font-family:   var(--ptb-fam);
    color:         #02514b !important;
    background:    var(--ptb-white);
    outline:       none;
    transition:    border-color .2s, box-shadow .2s;
    appearance:    auto;
    -webkit-appearance: auto;
    height:        44px;
    display:       flex;
    align-items:   center;
    caret-color:   #02514b;
}
/* Force override any browser / theme yellow/orange on date inputs */
.ptb-app input[type="date"].ptb-input,
.ptb-app input[type="date"].ptb-input::-webkit-datetime-edit,
.ptb-app input[type="date"].ptb-input::-webkit-datetime-edit-fields-wrapper,
.ptb-app input[type="date"].ptb-input::-webkit-datetime-edit-text,
.ptb-app input[type="date"].ptb-input::-webkit-datetime-edit-month-field,
.ptb-app input[type="date"].ptb-input::-webkit-datetime-edit-day-field,
.ptb-app input[type="date"].ptb-input::-webkit-datetime-edit-year-field {
    color: #02514b !important;
}
.ptb-app .ptb-input:focus {
    border-color: var(--ptb-green);
    box-shadow:   0 0 0 3px rgba(2,81,75,.12);
}
.ptb-app .ptb-input::placeholder { color: #aaa; }
.ptb-app .ptb-input:not(:placeholder-shown) { color: #02514b !important; }
.ptb-app select.ptb-input         { color: #02514b !important; }
.ptb-app input[type="number"].ptb-input { color: #02514b !important; }
.ptb-app input[type="tel"].ptb-input    { color: #02514b !important; }
.ptb-app input[type="email"].ptb-input  { color: #02514b !important; }
.ptb-app .ptb-input--bare { padding: 11px 14px; }

/* Validation error state */
.ptb-app .ptb-input.ptb-field-error {
    border-color: #e53935 !important;
    box-shadow:   0 0 0 3px rgba(229,57,53,.12) !important;
}
.ptb-app .ptb-field-msg {
    font-size:  11px;
    color:      #e53935;
    margin-top: 4px;
    display:    none;
}
.ptb-app .ptb-field-msg.is-visible { display: block; }

/* ── Buttons ─────────────────────────────────────────────────── */
.ptb-app .ptb-btn {
    display:       inline-block;
    padding:       13px 24px;
    background:    var(--ptb-green);
    color:         var(--ptb-white);
    border:        none;
    border-radius: 10px;
    font-size:     15px;
    font-family:   var(--ptb-fam-h);
    font-weight:   700;
    cursor:        pointer;
    transition:    background .2s, transform .1s;
    text-align:    center;
    letter-spacing:.3px;
}
.ptb-app .ptb-btn:hover    { background: var(--ptb-green2); }
.ptb-app .ptb-btn:active   { transform: scale(.98); }
.ptb-app .ptb-btn--full    { width: 100%; margin-top: 8px; }
.ptb-app .ptb-btn--ghost {
    background:   transparent;
    border:       2px solid var(--ptb-green);
    color:        var(--ptb-green);
}
.ptb-app .ptb-btn--ghost:hover { background: var(--ptb-light); }

/* ── Alert / error ───────────────────────────────────────────── */
.ptb-app .ptb-alert {
    color:        #c0392b;
    font-size:    13px;
    min-height:   18px;
    margin-bottom:8px;
    font-weight:  500;
}

/* ── Badges ──────────────────────────────────────────────────── */
.ptb-app .ptb-badges {
    display:   flex;
    gap:       16px;
    flex-wrap: wrap;
    margin-top:14px;
}
.ptb-app .ptb-badges span {
    font-size:   12px;
    color:       var(--ptb-muted);
    display:     flex;
    align-items: center;
    gap:         4px;
}

/* ── Step 2 – Vehicle picker ─────────────────────────────────── */
.ptb-app #ptb-step-2 .ptb-panel__grid { grid-template-columns: 1fr; }
.ptb-app .ptb-step2-top {
    display:     flex;
    align-items: center;
    gap:         12px;
    flex-wrap:   wrap;
    padding:     24px 32px 14px;
    background:  var(--ptb-white);
    border-radius: var(--ptb-radius) var(--ptb-radius) 0 0;
    box-shadow:  var(--ptb-shadow);
}
.ptb-app .ptb-pill {
    background:    var(--ptb-light);
    border:        1px solid var(--ptb-border);
    border-radius: 20px;
    padding:       5px 13px;
    font-size:     13px;
    color:         var(--ptb-green);
    font-weight:   500;
}
.ptb-app .ptb-pill strong { font-weight: 700; }
.ptb-app .ptb-pill-sep    { color: var(--ptb-muted); font-size: 16px; }
.ptb-app .ptb-edit-link   { margin-left: auto; font-size: 12px; color: var(--ptb-green); cursor: pointer; text-decoration: underline; }
.ptb-app .ptb-vehicles-grid {
    display:               grid;
    grid-template-columns: repeat(4, 1fr);
    gap:                   0;
}
.ptb-app .ptb-veh-card {
    border:         1px solid var(--ptb-border);
    border-radius:  0;
    padding:        16px 12px 12px;
    cursor:         pointer;
    transition:     background .2s, border-color .2s;
    display:        flex;
    flex-direction: column;
    gap:            4px;
    position:       relative;
}
.ptb-app .ptb-veh-card:hover {
    background:   #d0ece9;
    border-color: var(--ptb-green);
    z-index:      1;
}
.ptb-app .ptb-veh-card.is-selected {
    background:  #b8e0dc;
    border-color:var(--ptb-green);
    box-shadow:  inset 0 0 0 2px var(--ptb-green);
    z-index:     2;
}
.ptb-app .ptb-veh-card__radio {
    position:    absolute;
    top:         12px;
    right:       12px;
    width:       18px;
    height:      18px;
    accent-color:var(--ptb-green);
    cursor:      pointer;
}
.ptb-app .ptb-veh-card__type {
    font-family: var(--ptb-fam-h);
    font-size:   17px;
    font-weight: 700;
    color:       var(--ptb-green);
    line-height: 1.2;
}
.ptb-app .ptb-veh-card__seats {
    font-size:   13px;
    font-weight: 600;
    color:       var(--ptb-green);
}
.ptb-app .ptb-veh-card__desc {
    font-size:   12px;
    color:       #3a6b66;
    line-height: 1.4;
    flex:        1;
}
.ptb-app .ptb-veh-card__learn { display: none !important; }
.ptb-app .ptb-veh-card__img {
    width:      100%;
    height:     110px;
    object-fit: contain;
    margin-top: 8px;
    filter:     drop-shadow(0 4px 10px rgba(0,0,0,.15));
    transition: transform .25s;
}
.ptb-app .ptb-veh-card:hover .ptb-veh-card__img,
.ptb-app .ptb-veh-card.is-selected .ptb-veh-card__img { transform: scale(1.05) translateY(-3px); }

.ptb-app .ptb-step2-footer {
    background:    var(--ptb-white);
    border-radius: 0 0 var(--ptb-radius) var(--ptb-radius);
    padding:       18px 32px;
    box-shadow:    var(--ptb-shadow);
    display:       flex;
    justify-content: flex-end;
}
.ptb-app .ptb-step2-footer .ptb-btn { width: auto; }

/* ── Step 3 – safe note ──────────────────────────────────────── */
.ptb-app .ptb-safe-note {
    background:     var(--ptb-light);
    border:         1px solid var(--ptb-border);
    border-radius:  8px;
    padding:        14px 16px;
    font-size:      13px;
    color:          var(--ptb-green);
    line-height:    1.5;
    margin-top:     16px;
    display:        flex;
    flex-direction: column;
    gap:            4px;
}
.ptb-app .ptb-safe-note strong { font-weight: 700; color: var(--ptb-green); }
.ptb-app .ptb-safe-note span   { color: #3a6b66; }

/* ── Trip summary box (Step 3 side) ──────────────────────────── */
.ptb-app .ptb-summary-box {
    background:    #fafafa;
    border:        1.5px solid var(--ptb-border);
    border-radius: 10px;
    padding:       16px;
    margin-bottom: 14px;
}
.ptb-app .ptb-summary-row {
    display:      flex;
    align-items:  flex-start;
    gap:          10px;
    margin-bottom:10px;
}
.ptb-app .ptb-summary-row small  { display:block; font-size:11px; color:#888; }
.ptb-app .ptb-summary-row strong { display:block; font-size:14px; color:var(--ptb-green); }
.ptb-app .ptb-summary-meta {
    display:              grid;
    grid-template-columns:1fr 1fr;
    gap:                  10px;
    padding-top:          10px;
    border-top:           1px solid #eee;
}
.ptb-app .ptb-summary-meta small  { display:block; font-size:11px; color:#888; }
.ptb-app .ptb-summary-meta strong { display:block; font-size:13px; color:var(--ptb-green); }

/* ── Selected vehicle card (Step 3 side) ─────────────────────── */
.ptb-app .ptb-selected-vehicle {
    background:    var(--ptb-light);
    border:        1.5px solid var(--ptb-border);
    border-radius: 10px;
    padding:       14px 16px;
}
.ptb-app .ptb-selected-vehicle small { font-size:11px; color:#888; display:block; margin-bottom:8px; }
.ptb-app .ptb-sv-row {
    display:     flex;
    align-items: center;
    gap:         12px;
}
.ptb-app .ptb-sv-img {
    width:      80px;
    height:     52px;
    object-fit: contain;
    filter:     drop-shadow(0 2px 6px rgba(0,0,0,.12));
}
.ptb-app .ptb-sv-row strong {
    font-family: var(--ptb-fam-h);
    font-size:   15px;
    font-weight: 700;
    color:       var(--ptb-green);
    display:     block;
}
.ptb-app .ptb-sv-row span { font-size:12px; color:var(--ptb-muted); }

/* ── Step 4 Confirmed ────────────────────────────────────────── */
.ptb-app .ptb-confirmed-body { text-align: center; }
.ptb-app .ptb-tick-circle {
    width:           72px;
    height:          72px;
    border-radius:   50%;
    background:      var(--ptb-light);
    border:          3px solid var(--ptb-green);
    display:         flex;
    align-items:     center;
    justify-content: center;
    font-size:       30px;
    color:           var(--ptb-green);
    margin:          0 auto 18px;
    font-weight:     700;
}
.ptb-app .ptb-info-card {
    background:    #fafafa;
    border:        1.5px solid var(--ptb-border);
    border-radius: 10px;
    overflow:      hidden;
    margin-top:    14px;
    text-align:    left;
}
.ptb-app .ptb-info-card__header {
    background:     var(--ptb-green);
    color:          #fff;
    font-family:    var(--ptb-fam-h);
    font-size:      12px;
    font-weight:    700;
    letter-spacing: .5px;
    text-transform: uppercase;
    padding:        8px 14px;
}
.ptb-app .ptb-info-row {
    display:         flex;
    justify-content: space-between;
    align-items:     center;
    padding:         9px 14px;
    border-bottom:   1px solid #f0f0f0;
    font-size:       13px;
}
.ptb-app .ptb-info-row span   { color: var(--ptb-muted); }
.ptb-app .ptb-info-row strong { color: var(--ptb-green); text-align: right; max-width: 65%; word-break: break-word; }
.ptb-app .ptb-info-row:last-child { border-bottom: none; }

/* WhatsApp contact strip */
.ptb-app .ptb-contact-strip {
    display:         flex;
    gap:             12px;
    justify-content: center;
    flex-wrap:       wrap;
    margin-top:      16px;
}
.ptb-app .ptb-contact-strip a,
.ptb-app .ptb-contact-strip span {
    background:    var(--ptb-light);
    border:        1px solid var(--ptb-border);
    border-radius: 20px;
    padding:       8px 16px;
    font-size:     13px;
    color:         var(--ptb-green);
    font-weight:   500;
    cursor:        pointer;
    text-decoration: none;
    display:       inline-flex;
    align-items:   center;
    gap:           6px;
}
.ptb-app .ptb-contact-strip a:hover,
.ptb-app .ptb-contact-strip span:hover { background: #c5e8e5; }
.ptb-app .ptb-support-note { font-size: 12px; color: var(--ptb-muted); margin-top: 12px; }

/* Download PDF button */
.ptb-app #ptb-download-pdf-btn {
    background:    var(--ptb-green);
    color:         #fff;
    border:        none;
    border-radius: 10px;
    padding:       12px 24px;
    font-size:     14px;
    font-family:   var(--ptb-fam-h);
    font-weight:   700;
    cursor:        pointer;
    width:         100%;
    margin-top:    16px;
    transition:    background .2s;
}
.ptb-app #ptb-download-pdf-btn:hover { background: var(--ptb-green2); }

/* ── Map (Step 1) – Modern illustrated style ──────────────────── */
.ptb-app .ptb-static-map {
    width:           100%;
    height:          100%;
    min-height:      360px;
    position:        relative;
    background:      linear-gradient(160deg, #e0f2f1 0%, #b2dfdb 100%);
    display:         flex;
    align-items:     center;
    justify-content: center;
    overflow:        hidden;
}
.ptb-app .ptb-map-route-line {
    stroke-dasharray:  8 4;
    animation: ptbDash 1.5s linear infinite;
}
@keyframes ptbDash { to { stroke-dashoffset: -48; } }
.ptb-app #ptb-confirm-map-wrap {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    border: 1.5px solid var(--ptb-border);
    background: linear-gradient(160deg, #e0f2f1 0%, #b2dfdb 100%);
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
    .ptb-app .ptb-vehicles-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
    .ptb-app .ptb-panel__grid  { grid-template-columns: 1fr; }
    .ptb-app .ptb-panel__map   { min-height: 260px; }
    .ptb-app .ptb-panel__side  { border-left: none; border-top: 1px solid #f0f0f0; }
    .ptb-app .ptb-step2-top    { flex-direction: column; }
    .ptb-app .ptb-step2-footer { justify-content: stretch; }
    .ptb-app .ptb-step2-footer .ptb-btn { width: 100%; }
}
@media (max-width: 560px) {
    .ptb-app .ptb-vehicles-grid { grid-template-columns: 1fr 1fr; }
    .ptb-app .ptb-row-2         { grid-template-columns: 1fr; }
    .ptb-app .ptb-panel__body,
    .ptb-app .ptb-panel__side   { padding: 24px 18px; }
    .ptb-app .ptb-step2-top     { padding: 20px 18px 12px; }
    .ptb-app .ptb-step2-footer  { padding: 14px 18px; }
    .ptb-app .ptb-progress__line{ min-width: 20px; }
}
@media (max-width: 380px) {
    .ptb-app .ptb-vehicles-grid { grid-template-columns: 1fr; }
}

/* ── Print / PDF ──────────────────────────────────────────────── */
@media print {
    .ptb-app .ptb-panel          { display: none !important; }
    .ptb-app #ptb-step-4         { display: block !important; }
    .ptb-app .ptb-progress       { display: none; }
    .ptb-app .ptb-btn            { display: none !important; }
    .ptb-app .ptb-contact-strip  { display: none !important; }
    .ptb-app .ptb-support-note   { display: none !important; }
    .ptb-app #ptb-confirm-map-wrap { display: none !important; }
}

/* ══ v6 Map Enhancements ══════════════════════════════════════ */

/* Pin pulse animation */
.ptb-app .ptb-pin-pulse {
    animation: ptbPinPulse 2s ease-out infinite;
    transform-origin: center;
}
@keyframes ptbPinPulse {
    0%   { opacity: 0.18; r: 14; }
    50%  { opacity: 0.28; r: 20; }
    100% { opacity: 0.18; r: 14; }
}

/* Route arc animation – slightly faster, more visible */
.ptb-app .ptb-map-route-line {
    stroke-dasharray:  14 7;
    animation: ptbDash 1.2s linear infinite;
}
@keyframes ptbDash { to { stroke-dashoffset: -84; } }

/* Map container – deeper teal background, slight inner shadow */
.ptb-app .ptb-panel__map {
    background:  linear-gradient(145deg, #caf0eb 0%, #8ed8d0 100%);
    min-height:  380px;
    box-shadow:  inset 0 0 30px rgba(2,81,75,.08);
    position:    relative;
}

/* Confirm map wrap – consistent rounded look */
.ptb-app #ptb-confirm-map-wrap {
    border-radius: 12px;
    overflow:      hidden;
    border:        1.5px solid var(--ptb-border);
    background:    linear-gradient(145deg, #caf0eb 0%, #8ed8d0 100%);
    box-shadow:    0 2px 12px rgba(2,81,75,.10);
    position:      relative;
}

.ptb-app #ptb-map {
    width: 100%;
    height: 100%;
    min-height: 380px;
    border-radius: 0;
}

.ptb-app #ptb-confirm-map {
    width: 100%;
    height: 240px;
    border-radius: 0;
}

.ptb-app .leaflet-container {
    background: #caf0eb;
    font-family: var(--ptb-fam);
}

