/* Chalet Klara – javni del. Barve in vzdušje po stari strani: temno rjava glava, les, krem okvirji. */
:root {
  --brown: #3f352d;
  --brown-2: #574638;
  --wood: #8a6646;
  --cream: #f7efe1;
  --cream-2: #fffaf2;
  --accent: #b5452b;
  --text: #3f352d;
  --muted: #7d6c5c;
  --radius: 6px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 16px/1.6 Signika, "Lucida Sans Unicode", "Lucida Grande", sans-serif;
  color: var(--text);
  background-color: var(--wood);
  background-image:
    repeating-linear-gradient(90deg, rgba(0,0,0,.05) 0 2px, transparent 2px 140px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 1px, transparent 1px 7px),
    linear-gradient(180deg, #9a7452, #7b5a3d);
}
a { color: var(--accent); }
img { max-width: 100%; display: block; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.center { text-align: center; }
.note { color: var(--muted); font-style: italic; }
h1, h2, h3 { font-family: "Lucida Sans Unicode", "Lucida Grande", Signika, sans-serif; font-weight: 400; line-height: 1.25; color: var(--brown); }
h1 { font-size: 1.9rem; margin: 0 0 .6em; }
h2 { font-size: 1.35rem; margin: 1.2em 0 .5em; }

/* Glava */
.site-header {
  background: linear-gradient(180deg, #3a2f27, #2c231d);
  color: #fff;
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 10px rgba(0,0,0,.35);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 92px; gap: 16px; }
.logo img { height: 63px; width: auto; }
.logo-text { font-family: "Great Vibes", cursive; font-size: 2.8rem; color: #fff; line-height: 1; }
.logo { text-decoration: none; }
.header-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.header-top { display: flex; gap: 16px; align-items: center; }
.langs a { color: #d9cbb8; text-decoration: none; font-size: .8rem; margin-left: 8px; }
.langs a.on, .langs a:hover { color: #fff; }
.social a { color: #d9cbb8; margin-left: 10px; display: inline-block; vertical-align: middle; }
.social a:hover { color: #fff; }
.main-nav a {
  color: #fff; text-decoration: none; text-transform: uppercase; letter-spacing: .08em;
  font-size: .82rem; padding: 6px 0 4px; margin-left: 26px; border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a.on { border-bottom-color: #d9b98c; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: #fff; margin: 6px 0; }

/* Drsnik */
.hero { position: relative; height: min(62vh, 600px); min-height: 300px; overflow: hidden; background: #2c231d; }
.slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.2s ease; }
.slide.on { opacity: 1; }
.slide.placeholder { background: linear-gradient(160deg, #cfe3f3, #f4f7fa 60%, #dfe7ee); }
.slide-prev, .slide-next {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  background: rgba(0,0,0,.25); color: #fff; border: 0; font-size: 2.4rem; width: 48px; height: 64px; cursor: pointer;
}
.slide-prev { left: 0; } .slide-next { right: 0; }
.band { background: rgba(247,239,225,.93); text-align: center; padding: 18px 0 12px; border-bottom: 1px solid rgba(0,0,0,.1); }
.band h1 { font-size: 1.7rem; margin: 0 0 4px; }
.band p { margin: 0; color: var(--brown-2); }

/* Vsebina */
.section { padding: 28px 16px 40px; }
.panel {
  background: rgba(255,250,242,.95); border-radius: var(--radius); padding: 26px 30px;
  margin-bottom: 22px; box-shadow: 0 2px 12px rgba(0,0,0,.18);
}
.panel > h1:first-child, .panel > h2:first-child { margin-top: 0; }
.box-title {
  background: rgba(255,250,242,.95); border-radius: var(--radius); text-align: center; padding: 10px;
  font-size: 1.15rem; margin-bottom: 18px; box-shadow: 0 2px 12px rgba(0,0,0,.18);
}
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--brown); color: #fff; text-decoration: none; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.25); transition: transform .2s;
  text-align: center; padding-bottom: 14px; border: 6px solid var(--brown);
}
.card:hover { transform: translateY(-3px); }
.card-img { aspect-ratio: 4/3; background: #6b5848 center/cover; }
.card h3 { color: #fff; font-size: 1.05rem; margin: 12px 8px 4px; }
.card p { margin: 0 10px; font-size: .88rem; color: #e8dccb; }
.btn {
  display: inline-block; background: var(--brown); color: #fff; text-decoration: none; border: 0; cursor: pointer;
  padding: 12px 24px; border-radius: 4px; font: inherit; letter-spacing: .03em; margin-top: 14px;
}
.btn:hover { background: #2c231d; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.two-col > .panel { margin-bottom: 22px; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-bottom: 22px; }
.gallery a { position: relative; display: block; border-radius: 4px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.25); background: #6b5848; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.04); }
.gallery span { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(44,35,29,.75); color: #fff; padding: 6px 10px; font-size: .88rem; }

.rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.room { background: var(--cream); padding: 14px 16px; border-radius: 4px; border-left: 4px solid var(--wood); }
.room h3 { margin: 0; font-size: 1.05rem; }
.room .floor { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.room p { margin: 6px 0 0; font-size: .93rem; }

table.dist, table.prices { width: 100%; border-collapse: collapse; }
table.dist td, table.prices td, table.prices th { padding: 6px 4px; border-bottom: 1px solid #e6dccb; text-align: left; }
table.dist td:last-child, .r { text-align: right; white-space: nowrap; }
table.prices th { font-weight: 600; font-size: .9rem; color: var(--muted); }
.map iframe { width: 100%; height: 380px; border: 0; border-radius: 4px; }
ul.busy { columns: 2; padding-left: 18px; }

/* Obrazec */
form.inquiry fieldset { border: 1px solid #e0d4c1; border-radius: 4px; padding: 12px 16px 6px; margin: 0 0 16px; }
form.inquiry legend { padding: 0 6px; color: var(--muted); font-size: .9rem; text-transform: uppercase; letter-spacing: .05em; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
form.inquiry label { display: block; font-size: .92rem; margin-bottom: 12px; }
form.inquiry input:not([type=checkbox]), form.inquiry textarea {
  display: block; width: 100%; margin-top: 4px; padding: 9px 10px; border: 1px solid #cdbfa9; border-radius: 4px;
  font: inherit; background: #fff; color: var(--text);
}
form.inquiry input:focus, form.inquiry textarea:focus { outline: 2px solid #d9b98c; border-color: var(--wood); }
label.check { display: flex !important; gap: 8px; align-items: flex-start; }
label.check input { margin-top: 5px; }
.nights-info { align-self: center; color: var(--muted); }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.flash { padding: 10px 14px; border-radius: 4px; margin: 10px 0; }
.flash-ok { background: #e3f1dc; color: #2f5a1e; }
.flash-err { background: #f8e0d9; color: #8a2c17; }

/* Noga */
.site-footer { background: #2c231d; color: #d9cbb8; padding: 26px 0 14px; margin-top: 10px; font-size: .9rem; }
.site-footer a { color: #f0e3d0; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-nav a { display: inline-block; margin: 0 10px 6px 0; text-decoration: none; }
.copy { margin-top: 14px; font-size: .8rem; color: #9c8b78; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(15,11,8,.92); display: none; align-items: center; justify-content: center; z-index: 100; }
.lightbox.on { display: flex; }
.lightbox figure { margin: 0; max-width: 92vw; max-height: 90vh; text-align: center; }
.lightbox img { max-width: 92vw; max-height: 82vh; margin: 0 auto; }
.lightbox figcaption { color: #eee; margin-top: 8px; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 2.6rem; cursor: pointer; padding: 10px 18px; }
.lb-close { top: 6px; right: 6px; } .lb-prev { left: 6px; } .lb-next { right: 6px; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .header-inner { flex-wrap: wrap; min-height: 72px; }
  .logo img { height: 48px; }
  .logo-text { font-size: 2.2rem; }
  .header-right { display: none; width: 100%; align-items: stretch; padding-bottom: 12px; }
  .nav-open .header-right { display: flex; }
  .main-nav { display: flex; flex-direction: column; }
  .main-nav a { margin: 0; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .header-top { justify-content: space-between; order: 2; }
  .cards, .two-col, .grid3 { grid-template-columns: 1fr; }
  .panel { padding: 20px 18px; }
  .hero { height: 46vh; }
  .band h1 { font-size: 1.35rem; }
  ul.busy { columns: 1; }
}

/* Ostali gostje v obrazcu */
form.inquiry .hint { font-size: .88rem; color: var(--muted); margin: 0 0 10px; }
.guest-row { position: relative; grid-template-columns: 2fr 1fr auto; align-items: end; }
.guest-row label { margin-bottom: 10px; }
.guest-del { border: 1px solid #e0d4c1; background: #fff; border-radius: 4px; width: 38px; height: 38px; margin-bottom: 10px; cursor: pointer; font-size: 1.2rem; color: var(--muted); }
.guest-del:hover { color: #b5452b; border-color: #b5452b; }
.btn-ghost { background: none; border: 1px dashed var(--wood); color: var(--wood); padding: 8px 14px; border-radius: 4px; cursor: pointer; margin: 0 0 12px; font: inherit; }
.btn-ghost:hover { background: #f7efe1; }

/* Novice */
.news-list { display: grid; gap: 22px; max-width: 900px; margin: 0 auto; }
.news-list.short { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); max-width: none; }
.news-item { background: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.08); display: flex; flex-direction: column; }
.news-list:not(.short) .news-item.has-img { flex-direction: row; }
.news-img { background: #e8e1d6 center/cover no-repeat; min-height: 170px; }
.news-list:not(.short) .news-img { flex: 0 0 38%; min-height: 220px; }
.news-txt { padding: 16px 20px; }
.news-txt time { font-size: .85rem; color: #8a7b6b; }
.news-txt h3 { margin: 4px 0 8px; }
.news-txt h3 a { color: inherit; text-decoration: none; }
.news-txt p { margin: 0 0 10px; }
@media (max-width: 700px) { .news-list:not(.short) .news-item.has-img { flex-direction: column; } }

/* Glavna slika: počasno premikanje in povečava (Ken Burns) */
.slide:not(.placeholder) { will-change: transform; animation: kb1 22s ease-in-out infinite alternate; }
.slide:nth-child(3n+2):not(.placeholder) { animation-name: kb2; animation-duration: 26s; }
.slide:nth-child(3n+3):not(.placeholder) { animation-name: kb3; animation-duration: 24s; }
@keyframes kb1 { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.16) translate(-2.5%, -1.5%); } }
@keyframes kb2 { from { transform: scale(1.15) translate(2%, -1%); } to { transform: scale(1.03) translate(-1%, 1%); } }
@keyframes kb3 { from { transform: scale(1.04) translate(-2%, 1.5%); } to { transform: scale(1.17) translate(1.5%, -1%); } }
@media (prefers-reduced-motion: reduce) { .slide { animation: none !important; } }
