/* ============================================================
   DIRECTIONS SECTION — Custom Route via Waypoints
   Deskripsi: Section untuk memilih titik acuan (waypoint A/B),
              lalu buka Google Maps dengan rute custom via GPS user
   Dipakai di: dynamicLocation.php (khusus outlet FORKWOOD)
   Terakhir diubah: 2026-07-14 oleh Cahya
   ============================================================ */

.direction-section {
    text-align: center;
}

.direction-container {
    display: flex;
    height: 600px;
    padding: 0;
    margin: 0;
    border: 1px solid #000000;
}

.direction-info,
.direction-map {
    flex-basis: 50%;
    border: 1px solid #000000;
}

/* ---- Kolom Kiri: Info & Pilihan Titik ---- */
.direction-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 40px;
    text-align: center;
    background: #0a0a0a;
    color: #ffffff;
}

.direction-note {
    max-width: 480px;
    margin-bottom: 2.5rem;
    font-size: 1rem;
    line-height: 1.6;
    color: #cccccc;
}

.direction-choices {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 320px;
}

.btn-direction {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 1.2rem 1.5rem;
    border: 1px solid #ffffff;
    background-color: transparent;
    color: #ffffff;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.btn-direction:hover:not(:disabled) {
    background-color: #ffffff;
    color: #000000;
    transform: translateY( -2px );
}

.btn-direction:disabled {
    opacity: 0.6;
    cursor: wait;
}

.btn-direction-label {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.btn-direction-hint {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 1px;
    opacity: 0.75;
    text-transform: uppercase;
}

/* Note status GPS (muncul dinamis dari JS) */
.direction-gps-note {
    margin-top: 1.5rem;
    min-height: 1.2rem;
    font-size: 0.85rem;
    color: #b0b0b0;
}

.direction-gps-note.is-error {
    color: #ff8888;
}

/* ---- Kolom Kanan: Map Preview ---- */
.direction-map {
    padding: 0;
    margin: 0;
}

.direction-map iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale( 1 ) invert( 1 );
}

/* ---- Responsive ---- */
@media (max-width: 820px) {
    .direction-container {
        flex-direction: column;
        height: auto;
    }
    .direction-info {
        padding: 40px 20px;
    }
    .direction-map {
        min-height: 320px;
    }
}
