/* ============================================
   VIM Info Scherm - Touchscreen Stylesheet
   Huisstijl: Donkerblauw (#003366) + Oranje (#F28C00)
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 18px;
    -webkit-text-size-adjust: 100%;
    touch-action: manipulation;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f2f5;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    overscroll-behavior: none;
    cursor: default;
}

/* --- Header --- */
.site-header {
    background: linear-gradient(135deg, #003366 0%, #004080 100%);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 10;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo {
    height: 80px;
    width: auto;
}

/* --- Main Content --- */
.content {
    flex: 1;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* =============================================
   FLAGS / LANGUAGE SELECTION PAGE
   ============================================= */
.flags-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding-top: 1rem;
}

.flags-title {
    font-size: 3rem;
    color: #003366;
    text-align: center;
    letter-spacing: 2px;
    font-weight: 800;
    text-transform: uppercase;
}

.flags-subtitle {
    font-size: 1.3rem;
    color: #666;
    text-align: center;
    margin-top: -1rem;
}

.flags-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
    max-width: 800px;
    padding: 1rem 0;
}

.flag-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    padding: 1.5rem 1rem;
    background: white;
    border-radius: 16px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.15s ease;
    border: 3px solid transparent;
    min-height: 140px;
    justify-content: center;
}

.flag-btn:hover,
.flag-btn:active {
    border-color: #F28C00;
    box-shadow: 0 4px 20px rgba(242, 140, 0, 0.25);
    transform: scale(1.03);
}

.flag-btn:active {
    transform: scale(0.98);
    background: #fff8ee;
}

.flag-img {
    width: 90px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.flag-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #003366;
}

/* =============================================
   WELCOME PAGE
   ============================================= */
.welcome-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.welcome-title {
    font-size: 3rem;
    color: #003366;
    text-align: center;
    letter-spacing: 2px;
    font-weight: 800;
    text-transform: uppercase;
    margin-top: 0.5rem;
}

/* --- Back Button --- */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: #003366;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    align-self: flex-start;
    transition: background 0.15s ease;
    min-height: 50px;
}

.back-btn:hover,
.back-btn:active {
    background: #004080;
}

/* --- Info Card --- */
.info-card {
    background: white;
    border-radius: 16px;
    padding: 2rem 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 900px;
    border-left: 6px solid #F28C00;
}

.info-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.opening-hours {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.4rem;
    color: #003366;
    background: #e8f0fe;
    padding: 1rem 1.5rem;
    border-radius: 10px;
}

.info-icon {
    font-size: 1.8rem;
}

.instructions-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0;
}

.instructions-list li {
    font-size: 1.2rem;
    line-height: 1.6;
    padding: 0.8rem 1.2rem;
    background: #fafafa;
    border-radius: 10px;
    border-left: 4px solid #003366;
    color: #333;
}

.instructions-list li strong {
    color: #F28C00;
}

/* --- Location Menu --- */
.location-menu {
    width: 100%;
    max-width: 900px;
}

.menu-title {
    font-size: 1.6rem;
    color: #003366;
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.location-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.location-buttons.horizontal {
    flex-direction: row;
}

.location-buttons.horizontal .location-btn {
    flex: 1;
}

.location-btn {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    background: white;
    border: 2px solid transparent;
    border-radius: 14px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.15s ease;
    min-height: 80px;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    text-align: left;
    width: 100%;
}

.location-btn:hover,
.location-btn:active {
    border-color: #F28C00;
    box-shadow: 0 4px 20px rgba(242, 140, 0, 0.2);
    transform: scale(1.01);
}

.location-btn:active {
    transform: scale(0.99);
    background: #fff8ee;
}

.location-code {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #003366;
    color: white;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    flex-shrink: 0;
}

.location-address {
    font-size: 1.3rem;
    font-weight: 600;
    color: #003366;
}

/* =============================================
   LOCATION MODAL (Popup overlay)
   ============================================= */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 2rem 2.5rem;
    max-width: 1000px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.25s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    width: 56px;
    height: 56px;
    background: #cc0000;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 2rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
    z-index: 10;
    line-height: 1;
    box-shadow: 0 2px 10px rgba(204, 0, 0, 0.3);
}

.modal-close:hover,
.modal-close:active {
    background: #990000;
}

.modal-title {
    font-size: 2rem;
    color: #003366;
    font-weight: 800;
    padding-right: 3.5rem;
}

.modal-subtitle {
    font-size: 1rem;
    color: #666;
    margin-top: 0.3rem;
    margin-bottom: 1.5rem;
}

.modal-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.modal-image-wrapper h3 {
    font-size: 1.1rem;
    color: #003366;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.modal-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

/* --- Modal Directions --- */
.modal-directions {
    margin-top: 1.5rem;
    border-top: 2px solid #f0f0f0;
    padding-top: 1.5rem;
}

.modal-directions h3 {
    font-size: 1.2rem;
    color: #003366;
    font-weight: 700;
    margin-bottom: 1rem;
}

.direction-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 0.6rem;
    border-left: 4px solid #F28C00;
}

.direction-item .direction-arrow {
    color: #F28C00;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.direction-item strong {
    color: #003366;
    font-size: 1rem;
    flex-shrink: 0;
}

.direction-item .direction-text {
    color: #555;
    font-size: 1rem;
    margin-left: auto;
    font-weight: 600;
}

/* --- Footer --- */
.site-footer {
    background: #003366;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .modal-images {
        grid-template-columns: 1fr;
    }
    .flags-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 600px) {
    .flags-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1400px) {
    html {
        font-size: 20px;
    }
}

/* --- Touchscreen optimizations --- */
a, button {
    -webkit-tap-highlight-color: rgba(242, 140, 0, 0.2);
}
