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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #1a1a2e;
    color: #ffffff;
    min-height: 100vh;
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    overflow-x: hidden;
}

/* ===== Map Section ===== */
.map-section {
    position: relative;
    width: 100%;
    height: 60vh;
    background-color: #1a1a2e;
    overflow: hidden;
}

.map-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.map-overlay-top {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 10;
}

.btn-back {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background-color: rgba(30, 30, 30, 0.8) !important;
    color: #ffffff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-back:hover {
    background-color: rgba(50, 50, 50, 0.9) !important;
}

.drop-off-badge {
    position: absolute;
    transform: translateX(-50%);
    background: #ABABAB63;
    backdrop-filter: blur(7.8px);
    -webkit-backdrop-filter: blur(7.8px);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    white-space: nowrap;
    z-index: 10;
    pointer-events: none;
}

/* ===== Bottom Sheet ===== */
.bottom-sheet {
    position: relative;
    background-color: #1a1a1a;
    border-radius: 20px 20px 0 0;
    padding: 12px 24px 32px;
    margin-top: -30px;
    z-index: 20;
    min-height: 40vh;
}

.sheet-handle-wrapper {
    display: flex;
    justify-content: center;
    padding-bottom: 16px;
}

.sheet-handle {
    width: 40px;
    height: 4px;
    background-color: #555;
    border-radius: 2px;
}

.btn-close-sheet {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background-color: #333;
    color: #ffffff;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-close-sheet:hover {
    background-color: #444;
}

/* ===== Title & Status ===== */
.sheet-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}

.trip-status {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #1EE206;
    display: inline-block;
}

.status-text {
    font-size: 14px;
    color: #1EE206;
    font-style: italic;
}

/* ===== Divider ===== */
.divider {
    border: none;
    border-top: 1px solid #2a2a2a;
    margin: 16px 0;
}

/* ===== Driver Info ===== */
.driver-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.driver-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
}

.driver-details {
    display: flex;
    flex-direction: column;
}

.driver-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.driver-name {
    font-size: 16px;
    color: #ffffff;
}

.driver-separator {
    color: #666;
    font-size: 14px;
}

.driver-rating {
    font-size: 14px;
    color: #ffffff;
}

.driver-rating .bi-star-fill {
    color: #ffc107;
    font-size: 12px;
}

.driver-vehicle {
    font-size: 13px;
    color: #999;
    margin-top: 2px;
}

.btn-call {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background-color: #0D94C4;
    color: #ffffff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-call:hover {
    background-color: #00b348;
}

/* ===== Location Section ===== */
.location-section {
    padding-left: 2px;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 6px;
    /*margin-bottom: 6px;*/
}

.section-label-text {
    font-size: 14px;
    color: #999;
}

.location-icon {
    color: #0D94C4;
    font-size: 16px;
}

.location-address {
    color: #ffffff;
    line-height: 1.5;
    margin-bottom: 8px;
    padding-left: 22px;
}

.location-update-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 22px;
}

.last-updated {
    font-size: 12px;
    color: #666;
}

.btn-refresh {
    font-size: 12px;
    color: #0D94C4;
    background: none;
    border: 1px solid #0D94C4;
    border-radius: 12px;
    padding: 2px 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-refresh:hover {
    background-color: #0D94C4;
    color: #ffffff;
}

/* ===== Payment Section ===== */
.payment-section {
    padding-left: 2px;
}

.payment-icon {
    color: #0D94C4;
    font-size: 16px;
}

.payment-value {
    font-size: 15px;
    color: #ffffff;
    font-weight: 500;
    padding-left: 22px;
    /*margin-top: 4px;*/
    margin-bottom: 0;
}

/* ===== Responsive ===== */
@media (max-width: 576px) {
    body {
        max-width: 100%;
    }

    .map-section {
        height: 55vh;
    }

    .bottom-sheet {
        padding: 12px 20px 28px;
    }

    .sheet-title {
        font-size: 22px;
    }

    .location-address {
        font-size: 13px;
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    .map-section {
        height: 58vh;
    }
}

@media (min-width: 769px) {
    body {
        max-width: 480px;
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    }
}