:root {
    --primary: #25b3eb;
    --primary-light: #e3f5fd;
    --primary-dark: #1a8fbc;
    --text-main: #2d3436;
    --text-muted: #636e72;
    --bg-color: #f8fafc;
    --error: #ff4d4d;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; background-color: var(--bg-color); color: var(--text-main); }

.page-container { max-width: 1300px; margin: 40px auto; padding: 0 20px; }

.card { background: white; padding: 40px; border-radius: 24px; box-shadow: 0 10px 40px rgba(0,0,0,0.05); }

/* Centriran Header */
.main-header { text-align: center; margin-bottom: 40px; width: 100%; }
.icon-circle {
    font-size: 2rem; background: var(--primary-light);
    width: 60px; height: 60px; line-height: 60px;
    border-radius: 50%; margin: 0 auto 15px;
}

/* Layout Grid */
.booking-layout { 
    display: flex; 
    justify-content: center; 
    gap: 40px; 
    transition: all 0.4s ease;
    width: 100%;
}

/* Namizni Layout ko je obrazec AKTIVEN */
@media (min-width: 1050px) {
    .booking-layout.form-active { 
        display: grid;
        grid-template-columns: 2fr 1fr; 
        justify-content: start;
    }
}

/* Mobilni Layout (Pod 1050px) */
@media (max-width: 1049px) {
    .booking-layout.form-active {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .form-wrapper {
        width: 100% !important; /* Polna širina na telefonu */
        max-width: none !important;
    }
}

.calendar-scroll-container { 
    display: flex;
    justify-content: center;
    width: 100%; 
    overflow-x: auto; 
    padding-bottom: 10px; 
}

/* Koledar širina */
@media (min-width: 768px) {
    .flatpickr-calendar { width: 650px !important; max-width: 650px !important; border: none !important; box-shadow: none !important; }
}

@media (max-width: 767px) {
    .flatpickr-calendar { width: 100% !important; max-width: 315px !important; margin: 0 auto; }
}

.calendar-section .legend { display: flex; gap: 20px; margin-top: 20px; font-size: 0.85rem; justify-content: center; }

/* Obrazec */
.form-wrapper { 
    display: none; 
    flex-direction: column; 
    gap: 20px; 
    padding: 30px; 
    background: #fafafa; 
    border-radius: 16px; 
    border: 1px solid #eee;
    animation: slideUp 0.5s ease forwards;
    width: 100%;
}

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

.input-field { position: relative; border-bottom: 2px solid #ddd; margin-bottom: 15px; }
.input-field input { width: 100%; padding: 10px 0; border: none; outline: none; background: transparent; font-size: 1rem; }
.input-field label { position: absolute; top: 10px; left: 0; color: var(--text-muted); transition: 0.3s; pointer-events: none; }
.input-field input:focus ~ label, .input-field input:not(:placeholder-shown) ~ label { top: -12px; font-size: 0.75rem; color: var(--primary); font-weight: 600; }

.main-button { background: var(--primary); color: white; border: none; padding: 18px; border-radius: 12px; cursor: pointer; font-weight: 700; transition: 0.3s; width: 100%; }
.main-button:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* Galerija */
.gallery-section { padding: 40px 0; }
.section-header { text-align: center; margin-bottom: 30px; }
.divider { width: 60px; height: 4px; background: var(--primary); margin: 10px auto; border-radius: 2px; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.img-container { height: 250px; border-radius: 16px; overflow: hidden; }
.img-container img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }

/* Koledar barve */
.flatpickr-day.booked-date { background: var(--error) !important; color: white !important; text-decoration: line-through; border: none !important; }
.flatpickr-day.selected { background: var(--primary) !important; border: none !important; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 5px; }
.dot.zasedeno { background: var(--error); }
.dot.izbrano { background: var(--primary); }