/* ============================================
   PAVILJON — STYLES
   ============================================ */

.paviljon-hero { /* pozicioniranje urejeno z .hero-with-tabs */ }

/* Tab label — desktop/mobile varianti */
.tab-label-mobile { display: none; }
@media (max-width: 600px) {
  .tab-label-desktop { display: none; }
  .tab-label-mobile { display: inline; }
}

/* ---- INTRO (znotraj levega stolpca) ---- */
.paviljon-intro-title {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 16px;
  line-height: 1.15;
}
.paviljon-opis-text .paviljon-intro-text {
  font-size: 18px;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 0;
}

/* ---- DVOKOLONSKI DEL ---- */
.paviljon-opis-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.paviljon-opis-text h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 44px 0 12px;
}
.paviljon-opis-text h3:first-child { margin-top: 0; }
.paviljon-opis-text p {
  font-size: 15px;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 10px;
}
.paviljon-opis-text ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 10px;
}
.paviljon-opis-text li {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  padding-left: 18px;
  position: relative;
  margin-bottom: 5px;
}
.paviljon-opis-text li::before {
  content: '•';
  color: var(--secondary);
  font-weight: 700;
  position: absolute;
  left: 0;
}

/* ---- GALERIJA ---- */
.paviljon-opis-gallery {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.paviljon-gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.paviljon-gallery-grid a {
  display: block;
  overflow: hidden;
  border-radius: 6px;
  background: var(--bg-hero);
  aspect-ratio: 4 / 3;
}
.paviljon-gallery-grid a:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
}
.paviljon-gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.paviljon-gallery-grid a:hover img { transform: scale(1.04); }
.paviljon-gallery-empty {
  grid-column: 1 / -1;
  padding: 48px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  background: var(--bg-hero);
  border-radius: 8px;
}

/* NAJEM */
.najem-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 56px;
  align-items: start;
}
.najem-info .najem-intro-text {
  font-size: 18px;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 0;
}
.najem-info h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 44px 0 12px;
}
.najem-info p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 10px;
}
.najem-pravila-btn {
  margin-top: 16px;
  display: inline-flex;
}

/* Kontakt blok */
.najem-kontakt-blok {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 2px solid var(--blue-light);
}
.najem-kontakt-uvod {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 24px !important;
}
.kontakt-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.kontakt-list li {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
}
.link-blue { color: var(--secondary); }
.link-blue:hover { text-decoration: underline; }

/* FORM BOX */
.najem-form-box {
  background: var(--bg-hero);
  border-radius: var(--radius);
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.najem-form-inner {
  position: relative;
  overflow: hidden;
  padding: 32px;
  border-radius: var(--radius);
}
.najem-form-disabled .najem-form {
  opacity: 0.35;
  pointer-events: none;
  user-select: none;
}
.najem-cs-overlay {
  position: absolute;
  top: 0;
  right: 0;
  pointer-events: none;
}
.najem-cs-overlay .tezave-cs-badge {
  position: absolute;
  top: 30px;
  right: -48px;
  width: 190px;
  background: var(--blue);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  padding: 10px 0;
  transform: rotate(45deg);
  transform-origin: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.najem-form-box h3 {
  font-size: 17px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 24px;
}
.najem-form { display: flex; flex-direction: column; gap: 0; }

.form-section { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.form-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}
.form-section-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
  margin-top: -4px;
}
.najem-form-check { margin-top: 12px; }
.najem-submit-btn { width: 100%; margin-top: 28px; }
.najem-submit-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-group { position: relative; }
.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
}
.form-group input::placeholder { color: #9CA3AF; }
.form-group input:focus,
.form-group select:focus { border-color: var(--blue); }

/* Flatpickr */
.flatpickr-input { cursor: pointer; }
.flatpickr-calendar { font-family: var(--font); border-radius: 10px; box-shadow: 0 8px 32px rgba(0,0,0,0.12); border: 1px solid var(--border); }
.flatpickr-day.selected, .flatpickr-day.selected:hover { background: var(--blue); border-color: var(--blue); }
.flatpickr-day:hover { background: var(--blue-light); }
.flatpickr-months .flatpickr-month { color: var(--text); }
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year { font-family: var(--font); font-weight: 700; }


/* Select arrow */
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
}
.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
}

.btn-reset {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 400;
  color: var(--secondary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.btn-reset:hover { text-decoration: underline; }

.form-success {
  background: #D1FAE5;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  color: #065F46;
  font-size: 15px;
  font-weight: 600;
}

/* Koledar tab */
.koledar-intro {
  display: flex;
  align-items: flex-end;
  gap: 48px;
  margin-bottom: 48px;
}
.koledar-intro-text { flex: 1; }
.koledar-intro-cta { flex-shrink: 0; padding-bottom: 2px; }

@media (max-width: 768px) {
  .koledar-intro { flex-direction: column; align-items: flex-start; gap: 24px; }
}

/* ---- CTA GUMB ---- */
.paviljon-cta {
  margin-top: 48px;
  display: inline-block;
}

/* ---- LIGHTBOX ---- */
.pav-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.93);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}
.pav-lightbox.open { display: flex; }

.pav-lb-img-wrap {
  max-width: min(90vw, 1200px);
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pav-lb-img-wrap img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  display: block;
  user-select: none;
}

.pav-lb-close,
.pav-lb-prev,
.pav-lb-next {
  position: fixed;
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  font-family: var(--font);
  line-height: 1;
}
.pav-lb-close:hover,
.pav-lb-prev:hover,
.pav-lb-next:hover { background: rgba(255,255,255,0.22); }

.pav-lb-close {
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  font-size: 26px;
}
.pav-lb-prev,
.pav-lb-next {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  font-size: 36px;
}
.pav-lb-prev { left: 20px; }
.pav-lb-next { right: 20px; }

.pav-lb-counter {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.45);
  font-size: 13px;
  font-family: var(--font);
  pointer-events: none;
}

/* Responsive */
@media (max-width: 900px) {
  .paviljon-opis-layout,
  .najem-layout {
    grid-template-columns: 1fr;
  }
  .paviljon-opis-gallery { position: static; }
  .paviljon-gallery-grid a:first-child { aspect-ratio: 4 / 3; }
  .najem-form-box { position: static; }
}
@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
  .gallery-thumbs { grid-template-columns: repeat(2, 1fr); }
}
