/* ==========================================================================
   VISITOR WAYFINDING KIOSK DASHBOARD (LIGHT INTEGRATION)
   ========================================================================== */

:root {
    --bg-color: #f1f5f9;       /* Light cool slate background */
    --panel-bg: #ffffff;       /* Pure white panels */
    --primary-blue: #2563eb;   /* Primary accent blue */
    --primary-green: #10b981;  /* Safe navigation green */
    --text-main: #0f172a;      /* High contrast dark text */
    --text-muted: #64748b;     /* Readable gray helper text */
    --border-color: #e2e8f0;   /* Light card divider line */
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Rajdhani', sans-serif;
    min-height: 100vh;
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Base Full Screen Container Frame */
.kiosk-container {
    width: 100%;
    max-width: 1366px; /* Widescreen kiosk standard baseline */
    height: 92vh;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* KIOSK HEADER CONTROL */
.kiosk-header {
    background-color: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand svg {
    color: var(--primary-blue);
    width: 28px;
    height: 28px;
}

.system-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 2px;
    background: linear-gradient(to right, var(--text-main), var(--primary-blue));
    /* Standard property */
    background-clip: text;
    /* WebKit fallback */
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.system-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 1.5px;
    border-left: 2px solid var(--border-color);
    padding-left: 12px;
    margin-left: 4px;
}

.kiosk-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-weight: 700;
}

#nav-time {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
}

.badge {
    background-color: #f0fdf4;
    color: var(--primary-green);
    border: 1px solid #bbf7d0;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

/* MAIN WORKSPACE TWO-COLUMN SPLIT */
.kiosk-main {
    flex: 1;
    display: flex;
    gap: 15px;
    height: calc(100% - 80px);
}

/* LEFT SIDE: MAP & SEARCH PANELS */
.map-section {
    flex: 1.4; /* Takes up more visual real estate */
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Large Target Search Bar Input */
.search-box {
    background-color: var(--panel-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 5px 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    transition: border-color 0.2s;
}

.search-box:focus-within {
    border-color: var(--primary-blue);
}

.search-icon {
    color: var(--text-muted);
    width: 24px;
    height: 24px;
}

#destination-search {
    width: 100%;
    border: none;
    outline: none;
    padding: 15px 0;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-main);
}

.clear-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 5px;
}

/* Map Display Architecture Card */
.map-display-card {
    background-color: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.map-header {
    background-color: #f8fafc;
    border-bottom: 1px solid var(--border-color);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
}

.map-title {
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.map-status {
    color: var(--primary-blue);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.map-image-container {
    flex: 1;
    position: relative;
    background-color: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#main-map-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Keeps map rendering proportions sharp */
    transition: opacity 0.3s ease;
}

/* RIGHT SIDE: DIRECTIONS & PREVIEW IMAGES PANEL */
.details-section {
    flex: 1;
    background-color: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

/* Layout Default Empty State placeholder UI */
.empty-state {
    margin: auto;
    text-align: center;
    max-width: 320px;
}

.empty-icon {
    width: 64px;
    height: 64px;
    color: var(--text-muted);
    opacity: 0.5;
    margin-bottom: 15px;
}

.empty-state h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
}

/* Nav Content Container Dynamic Styling */
.nav-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

.destination-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
}

.building-badge {
    display: inline-block;
    background-color: #eff6ff;
    color: var(--primary-blue);
    border: 1px solid #bfdbfe;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-top: 5px;
}

/* Directions Text List Styling */
.directions-card {
    background: linear-gradient(to bottom right, #f8fafc, #f1f5f9);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 15px 20px;
}

.directions-card h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-main);
    font-size: 1rem;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 6px;
}

.steps-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.steps-list li {
    position: relative;
    padding-left: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    color: #334155;
}

/* Beautiful ordered step counter dots using CSS pseudo-elements */
.steps-list li::before {
    counter-increment: step-counter;
    content: "•";
    color: var(--primary-blue);
    font-size: 1.5rem;
    position: absolute;
    left: 5px;
    top: -3px;
}

/* Dual Column Photo Gallery Preview Structure */
.photo-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: auto; /* Pushes the pictures cleanly to the bottom workspace */
}

.photo-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.photo-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.photo-frame {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    height: 150px;
    overflow: hidden;
    background-color: #f8fafc;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures real reference photos scale nicely */
}

/* Helper Utilities */
.hidden { display: none !important; }

.map-overlay-loader {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}
.map-overlay-loader.active { opacity: 1; pointer-events: auto; }
.spinner {
    width: 40px; height: 40px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.ret-dashboard{cursor: pointer;}