/* ===========================================
   Touchscreen kiosk CSS - Občina Loška dolina
   Optimizirano za pokončni zaslon 1080 x 1920
   =========================================== */

* { -webkit-box-sizing: border-box; box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 26px;
    line-height: 1.35;
    color: #1a1a1a;
    background: #f2f2f2;
    -webkit-user-select: none;
    -moz-user-select: none;
     -ms-user-select: none;
         user-select: none;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ----- Ozadje ----- */
.touch-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.touch-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.20);
}

/* ----- Stran ----- */
.touch-page {
    position: relative;
    min-height: 100vh;
    padding-top: 110px;
    padding-bottom: 130px;
}
.touch-page.no-header { padding-top: 0; }
.touch-page.no-footer { padding-bottom: 0; }

/* ----- Header ----- */
.touch-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 90px;
    background: rgba(245,245,245,0.95);
    border-bottom: 2px solid #ddd;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    padding: 0 24px;
    z-index: 100;
    -webkit-box-shadow: 0 2px 6px rgba(0,0,0,0.08);
            box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.touch-header .logo {
    height: 70px;
    margin-right: 18px;
}
.touch-header .title {
    font-size: 38px;
    font-weight: 700;
    color: #1a1a1a;
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
    text-align: center;
    margin-right: 90px; /* balance with logo */
}

/* ----- Footer navigacija ----- */
.touch-footer {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 110px;
    background: rgba(230,230,230,0.96);
    border-top: 2px solid #c4c4c4;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    z-index: 100;
}
.touch-footer .nav-btn {
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    font-size: 22px;
    font-weight: 700;
    color: #222;
    border-right: 1px solid #c4c4c4;
    cursor: pointer;
    -webkit-transition: background 0.15s;
    transition: background 0.15s;
}
.touch-footer .nav-btn:last-child { border-right: none; }
.touch-footer .nav-btn:active { background: rgba(0,0,0,0.08); }
.touch-footer .nav-btn .icon {
    font-size: 42px;
    line-height: 1;
    margin-bottom: 4px;
}
.touch-footer .nav-btn.maps .icon { color: #2e7d32; }
.touch-footer .nav-btn.info .icon { color: #1565c0; }
.touch-footer .nav-btn.back .icon,
.touch-footer .nav-btn.home .icon { color: #111; }

/* ----- Naslov v okvirju ----- */
.touch-section-title {
    display: inline-block;
    background: #fff;
    border: 3px solid #333;
    border-radius: 8px;
    padding: 18px 40px;
    font-size: 54px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 28px auto 24px;
}
.touch-section-title-wrap { text-align: center; }

/* ----- Mreže ----- */
.touch-grid-2,
.touch-grid-3 {
    display: grid;
    gap: 28px;
    padding: 12px 36px 36px;
}
.touch-grid-2 { grid-template-columns: repeat(2, 1fr); }
.touch-grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ----- Kartica ----- */
.touch-card {
    background: rgba(255,255,255,0.85);
    border: 5px solid #82c341;
    border-radius: 14px;
    overflow: hidden;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    cursor: pointer;
    -webkit-transition: -webkit-transform 0.1s ease, -webkit-box-shadow 0.15s;
    transition: -webkit-transform 0.1s ease, -webkit-box-shadow 0.15s;
    transition: transform 0.1s ease, box-shadow 0.15s;
    transition: transform 0.1s ease, box-shadow 0.15s, -webkit-transform 0.1s ease, -webkit-box-shadow 0.15s;
    -webkit-box-shadow: 0 6px 16px rgba(0,0,0,0.18);
            box-shadow: 0 6px 16px rgba(0,0,0,0.18);
    min-height: 320px;
}
.touch-card:active { -webkit-transform: scale(0.98); transform: scale(0.98); }
.touch-card-image {
    width: 100%;
    height: 360px;
    -o-object-fit: cover;
       object-fit: cover;
    background: #d8d8d8;
}
.touch-card-body {
    padding: 18px 22px 22px;
    position: relative;
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
}
.touch-card-title {
    font-size: 34px;
    font-weight: 800;
    margin: 0 0 8px;
    color: #1a1a1a;
}
.touch-card-description {
    font-size: 24px;
    color: #333;
    margin: 0;
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
}
.touch-card-touchicon {
    position: absolute;
    right: 16px;
    bottom: 12px;
    font-size: 38px;
    color: #82c341;
}

/* Manjše kartice za nastanitve (3 stolpci) */
.touch-grid-3 .touch-card { min-height: 280px; }
.touch-grid-3 .touch-card-image { height: 180px; }
.touch-grid-3 .touch-card-title { font-size: 26px; }
.touch-grid-3 .touch-card-description { font-size: 20px; }

/* ----- Index (jeziki) ----- */
.touch-welcome {
    text-align: center;
    padding: 240px 40px 60px;
    color: #1a1a1a;
}
.touch-welcome .municipality {
    font-size: 56px;
    font-weight: 800;
    margin: 0 0 30px;
    text-shadow: 0 2px 12px rgba(255,255,255,0.7);
}
.touch-welcome .hello-main {
    font-size: 84px;
    font-weight: 900;
    margin: 0 0 18px;
    color: #2e6f2e;
    text-shadow: 0 2px 12px rgba(255,255,255,0.7);
}
.touch-welcome .hello-others {
    font-size: 30px;
    color: #222;
    margin: 0 0 40px;
    text-shadow: 0 1px 6px rgba(255,255,255,0.7);
}
.touch-index-logo {
    position: absolute;
    top: 32px; left: 32px;
    height: 110px;
}

.touch-languages {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    gap: 36px;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    padding: 60px 40px 80px;
    max-width: 820px;
    margin: 0 auto;
}
.touch-language-button {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: #fff;
    border: 6px solid #82c341;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    overflow: hidden;
    cursor: pointer;
    -webkit-box-shadow: 0 8px 20px rgba(0,0,0,0.25);
            box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    -webkit-transition: -webkit-transform 0.1s;
    transition: -webkit-transform 0.1s;
    transition: transform 0.1s;
    transition: transform 0.1s, -webkit-transform 0.1s;
    text-align: center;
    font-size: 38px;
    font-weight: 800;
    color: #2e6f2e;
}
.touch-language-button:active { -webkit-transform: scale(0.95); transform: scale(0.95); }
.touch-language-button img {
    width: 100%; height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
}

.touch-events-card {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 360px;
    background: rgba(255,255,255,0.92);
    border: 5px solid #82c341;
    border-radius: 14px;
    padding: 18px 22px;
    cursor: pointer;
    -webkit-box-shadow: 0 8px 18px rgba(0,0,0,0.25);
            box-shadow: 0 8px 18px rgba(0,0,0,0.25);
}
.touch-events-card:active { -webkit-transform: scale(0.98); transform: scale(0.98); }
.touch-events-card h3 { margin: 0 0 6px; font-size: 28px; color: #2e6f2e; }
.touch-events-card p { margin: 0; font-size: 20px; color: #333; }

/* ----- Detail ----- */
.touch-detail {
    padding: 16px 36px 24px;
}
.touch-detail h1 {
    font-size: 60px;
    font-weight: 900;
    margin: 0 0 18px;
    color: #1a1a1a;
}
.touch-detail-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-bottom: 28px;
}
.touch-detail-image {
    width: 100%;
    border-radius: 12px;
    border: 5px solid #82c341;
    overflow: hidden;
    background: #d8d8d8;
}
.touch-detail-image img {
    width: 100%; height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
    min-height: 420px;
}
.touch-contact-box {
    background: rgba(255,255,255,0.9);
    border: 5px solid #82c341;
    border-radius: 12px;
    padding: 22px 24px;
    font-size: 26px;
    line-height: 1.5;
}
.touch-contact-box h3 { margin: 0 0 12px; font-size: 32px; color: #1a1a1a; }
.touch-contact-box .qr {
    margin-top: 14px;
    width: 160px; height: 160px;
    background: #fff;
    border: 2px solid #ccc;
    padding: 6px;
}
.touch-description {
    background: rgba(255,255,255,0.92);
    border-radius: 12px;
    padding: 24px 28px;
    font-size: 28px;
    line-height: 1.55;
    color: #1a1a1a;
}
.touch-gallery {
    margin-top: 28px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.touch-gallery img {
    width: 100%;
    height: 360px;
    -o-object-fit: cover;
       object-fit: cover;
    border-radius: 12px;
    border: 4px solid #82c341;
}

/* ----- Info kartice ----- */
.touch-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    padding: 12px 36px 28px;
}
.touch-info-grid > .full { grid-column: 1 / -1; }

/* Placeholder */
.touch-placeholder {
    width: 100%; height: 100%;
    min-height: 200px;
    background: #d6d6d6;
    color: #666;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center;
    font-size: 22px;
    font-style: italic;
}

/* Zemljevid */
.touch-map-wrap {
    padding: 12px 30px 24px;
    text-align: center;
}
.touch-map-wrap img {
    width: 100%;
    border-radius: 12px;
    border: 5px solid #82c341;
    background: #fff;
}

/* Dogodki */
.touch-event {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 28px;
    background: rgba(255,255,255,0.9);
    border: 5px solid #82c341;
    border-radius: 14px;
    padding: 18px;
    margin: 0 36px 24px;
}
.touch-event img {
    width: 100%; height: 240px;
    -o-object-fit: cover;
       object-fit: cover;
    border-radius: 10px;
}
.touch-event h3 { margin: 0 0 8px; font-size: 36px; }
.touch-event .meta { color: #2e6f2e; font-weight: 700; margin-bottom: 8px; }

/* Splošno */
.touch-btn {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    min-height: 90px;
    padding: 0 32px;
    font-size: 28px;
    font-weight: 800;
    background: #82c341;
    color: #fff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
}
.touch-btn:active { -webkit-transform: scale(0.97); transform: scale(0.97); }

/* Responsive fallback */
@media (max-width: 900px) {
    .touch-grid-2, .touch-grid-3, .touch-info-grid, .touch-detail-top, .touch-gallery {
        grid-template-columns: 1fr;
    }
    .touch-event { grid-template-columns: 1fr; }
    .touch-header .title { font-size: 24px; }
}
