@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #F0F3F8;
  color: #1a1a2e;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  width: 100%;
}
a { text-decoration: none; color: inherit; }

/* ══ HEADER ══════════════════════════════════ */
.site-header { background: #1B3A6B; }

.header-top {
  padding: 10px 28px;
  background: #2A4F8F;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.logo {
  display: flex; align-items: center; gap: 12px; text-decoration: none;
}
.logo img { height: 38px; width: auto; }
.logo-name { font-size: 14px; font-weight: 700; color: #fff; }
.logo-sub  { font-size: 10px; color: rgba(255,255,255,.5); }

.header-right { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.header-contact { font-size: 12px; color: rgba(255,255,255,.7); display: flex; align-items: center; gap: 5px; }
.header-contact strong { color: #fff; }

.lang-toggle { display: flex; gap: 2px; }
.lang-btn {
  font-size: 11px; font-weight: 600; padding: 4px 10px;
  border-radius: 3px; border: 1px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.6); background: transparent;
  cursor: pointer; font-family: inherit;
}
.lang-btn.is-active { background: rgba(255,255,255,.2); color: #fff; border-color: rgba(255,255,255,.4); }

/* main-nav removed — navigation is sidebar only */

/* ══ HERO ════════════════════════════════════ */
.hero {
  background: linear-gradient(180deg, #1B3A6B 0%, #2952A3 60%, #3366CC 100%);
  padding: 36px 28px 52px;
}
.breadcrumb { font-size: 11px; color: rgba(255,255,255,.5); margin-bottom: 12px; }
.breadcrumb a { color: rgba(255,255,255,.7); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { margin: 0 5px; }
.hero-h1   { font-size: 28px; font-weight: 700; color: #fff; line-height: 1.2; margin-bottom: 8px; }
.hero-lead { font-size: 13px; color: rgba(255,255,255,.7); max-width: 520px; line-height: 1.6; }
.hero-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }

.btn { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; padding: 9px 20px; border-radius: 4px; font-family: inherit; cursor: pointer; border: none; transition: all .15s; text-decoration: none; }
.btn-white   { background: #fff; color: #1B3A6B; }
.btn-white:hover { background: #EBF0F8; }
.btn-outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); }
.btn-outline:hover { background: rgba(255,255,255,.1); }
.btn-primary { background: #1B3A6B; color: #fff; font-size: 13px; padding: 11px 20px; border-radius: 6px; }
.btn-primary:hover { background: #2952A3; }
.btn-secondary { background: #fff; color: #1B3A6B; font-size: 13px; padding: 11px 20px; border-radius: 6px; border: 2px solid #1B3A6B; }
.btn-secondary:hover { background: #EBF0F8; }

/* ══ LAYOUT ══════════════════════════════════ */
.page-body { display: flex; flex: 1; background: #F0F3F8; }

/* Sidebar */
.sidebar {
  width: 224px; flex-shrink: 0;
  background: #fff; border-right: 1px solid #dde2ec;
  padding: 20px 0; align-self: flex-start;
  position: sticky; top: 0; max-height: 100vh; overflow-y: auto;
}
.sidebar-heading {
  font-size: 10px; font-weight: 700; color: #1B3A6B;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 8px 16px; margin-bottom: 4px;
}
.sidebar-link {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 16px; font-size: 13px; color: #444;
  font-weight: 500; transition: all .12s;
}
.sidebar-link:hover { background: #F0F3F8; color: #1B3A6B; }
.sidebar-link.is-active {
  background: #EBF0F8; color: #1B3A6B;
  font-weight: 600; border-left: 3px solid #1B3A6B; padding-left: 13px;
}
.sidebar-sep { border: none; border-top: 1px solid #eee; margin: 10px 16px; }
.sidebar-box { margin: 12px; background: #EBF0F8; border-radius: 6px; padding: 14px; }
.sidebar-box-title { font-size: 10px; font-weight: 700; color: #1B3A6B; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.sidebar-box-row { font-size: 11px; color: #444; margin-bottom: 4px; line-height: 1.5; }
.sidebar-box-row strong { color: #1B3A6B; }

/* Main */
.page-main { flex: 1; min-width: 0; }
.main-inner { padding: 24px 28px; }

/* ══ COMPONENTS ══════════════════════════════ */

/* Notice */
.notice {
  background: #EBF0F8; border-left: 3px solid #1B3A6B;
  padding: 12px 16px; border-radius: 0 6px 6px 0;
  font-size: 12px; color: #1B3A6B; line-height: 1.6; margin-bottom: 18px;
}

/* Section title */
.section-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.section-title { font-size: 14px; font-weight: 700; color: #1B3A6B; padding-left: 10px; border-left: 3px solid #1B3A6B; }
.section-more  { font-size: 12px; color: #1B3A6B; text-decoration: underline; }

/* Cards (home) */
.cards-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 20px; }
.card {
  background: #fff; border: 1px solid #dde2ec; border-radius: 6px;
  padding: 16px; border-top: 3px solid #1B3A6B; transition: box-shadow .15s;
}
.card:hover { box-shadow: 0 4px 14px rgba(27,58,107,.1); }
.card-icon  { font-size: 22px; margin-bottom: 8px; }
.card-title { font-size: 13px; font-weight: 700; color: #1B3A6B; margin-bottom: 4px; }
.card-desc  { font-size: 11px; color: #666; line-height: 1.6; }
.card-cta   { font-size: 11px; color: #1B3A6B; font-weight: 700; text-decoration: underline; display: inline-block; margin-top: 8px; }

/* Parks grid */
.parks-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.park-row {
  display: flex; justify-content: space-between; align-items: center;
  background: #fff; border: 1px solid #dde2ec; border-radius: 4px;
  padding: 11px 14px; transition: all .12s;
}
.park-row:hover { background: #EBF0F8; border-color: #1B3A6B; }
.park-name { font-size: 13px; font-weight: 600; color: #1B3A6B; }
.park-arr  { color: #1B3A6B; font-size: 13px; }

/* Park search */
.park-search-wrap { margin-bottom: 16px; }
.park-search {
  width: 100%; max-width: 360px; padding: 9px 14px;
  border: 1px solid #dde2ec; border-radius: 6px;
  font-size: 13px; font-family: inherit; outline: none;
  transition: border-color .15s;
}
.park-search:focus { border-color: #1B3A6B; }

/* News */
.news-list { display: flex; flex-direction: column; gap: 10px; }
.news-card {
  display: grid; grid-template-columns: 70px 1fr;
  gap: 14px; background: #fff; border: 1px solid #dde2ec;
  border-left: 3px solid #1B3A6B; border-radius: 6px; padding: 14px;
}
.news-date-num { font-size: 22px; font-weight: 700; color: #1B3A6B; line-height: 1; text-align: center; }
.news-date-str { font-size: 9px; color: #888; text-transform: uppercase; letter-spacing: .06em; margin-top: 3px; text-align: center; }
.news-title { font-size: 14px; font-weight: 700; color: #1B3A6B; margin-bottom: 4px; }
.news-body  { font-size: 12px; color: #666; line-height: 1.6; }

/* Table */
.data-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #dde2ec; border-radius: 6px; overflow: hidden; margin-bottom: 16px; }
.data-table th { background: #EBF0F8; padding: 10px 14px; text-align: left; font-size: 11px; font-weight: 700; color: #1B3A6B; text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid #dde2ec; }
.data-table td { padding: 11px 14px; border-bottom: 1px solid #eee; font-size: 13px; color: #333; }
.data-table tr:last-child td { border: none; }
.data-table tr:hover td { background: #F8F9FC; }
.data-table .sub-hdr td { background: #F8F9FC; font-weight: 700; font-size: 11px; color: #1B3A6B; border-top: 1px solid #dde2ec; }

/* Documents */
.doc-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.doc-row {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid #dde2ec; border-radius: 6px;
  padding: 13px 16px; transition: all .12s;
}
.doc-row:hover { border-color: #1B3A6B; background: #F8F9FC; }
.doc-icon { width: 36px; height: 36px; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.doc-info { flex: 1; }
.doc-name { font-size: 13px; font-weight: 600; color: #1B3A6B; }
.doc-meta { font-size: 11px; color: #888; margin-top: 1px; }
.doc-dl {
  margin-left: auto; background: #1B3A6B; color: #fff;
  font-size: 11px; font-weight: 700; padding: 5px 14px;
  border-radius: 4px; white-space: nowrap; flex-shrink: 0;
}
.doc-dl:hover { background: #2952A3; }
.list-title { font-size: 13px; font-weight: 700; color: #1B3A6B; padding-left: 10px; border-left: 3px solid #1B3A6B; margin: 16px 0 10px; }

/* Contacts */
.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.contact-box { background: #fff; border: 1px solid #dde2ec; border-radius: 6px; padding: 18px; }
.contact-icon  { font-size: 26px; margin-bottom: 8px; }
.contact-label { font-size: 10px; font-weight: 700; color: #1B3A6B; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 5px; }
.contact-val   { font-size: 15px; font-weight: 700; color: #1B3A6B; }
.contact-sub   { font-size: 12px; color: #666; margin-top: 2px; }
.map-placeholder-box {
  width: 100%;
  background: linear-gradient(135deg,#EBF0F8,#D5E3F5);
  border: 1px solid #dde2ec; border-radius: 6px;
  height: 200px; display: flex; align-items: center;
  justify-content: center; color: #4A7AB8; font-size: 13px; gap: 8px;
  flex-direction: column;
}

/* Park detail */
.park-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.info-card { background: #fff; border: 1px solid #dde2ec; border-radius: 8px; overflow: hidden; }
.info-card-header { background: #EBF0F8; padding: 12px 18px; border-bottom: 1px solid #dde2ec; font-size: 11px; font-weight: 700; color: #1B3A6B; text-transform: uppercase; letter-spacing: .07em; }
.info-row { display: flex; gap: 12px; align-items: flex-start; padding: 13px 18px; border-bottom: 1px solid #f0f0f0; }
.info-row:last-child { border-bottom: none; }
.info-ico   { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.info-label { font-size: 10px; font-weight: 700; color: #999; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }
.info-value { font-size: 13px; color: #1a1a2e; font-weight: 500; line-height: 1.5; }
.info-value a { color: #1B3A6B; text-decoration: underline; }

.action-row { display: flex; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }

.map-card { background: #fff; border: 1px solid #dde2ec; border-radius: 8px; overflow: hidden; margin-bottom: 20px; }
.map-card-header { background: #EBF0F8; padding: 12px 18px; border-bottom: 1px solid #dde2ec; font-size: 11px; font-weight: 700; color: #1B3A6B; text-transform: uppercase; letter-spacing: .07em; }
.map-card-body { padding: 16px; }
.map-embed { width: 100%; height: 380px; border: 0; border-radius: 6px; display: block; }
.map-placeholder {
  width: 100%; height: 380px; border-radius: 6px;
  background: linear-gradient(135deg,#EBF0F8,#D5E3F5);
  border: 1px solid #dde2ec;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #4A7AB8; gap: 10px;
}
.map-placeholder-icon { font-size: 40px; }
.map-placeholder-title { font-size: 14px; font-weight: 600; }
.map-placeholder-hint  { font-size: 11px; color: #888; }

.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #1B3A6B; font-weight: 600; }
.back-link:hover { text-decoration: underline; }

/* Loading / error states */
.state-loading, .state-error, .state-empty {
  padding: 48px 0; text-align: center; color: #888; font-size: 14px;
}
.state-error { color: #c0392b; }

/* ══ FOOTER ══════════════════════════════════ */
.site-footer { background: #1B3A6B; margin-top: auto; }
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 32px; padding: 32px 28px 24px;
}
.footer-brand-name { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.footer-brand-desc { font-size: 12px; color: rgba(255,255,255,.5); line-height: 1.6; }
.footer-col-title  { font-size: 10px; font-weight: 700; color: rgba(255,255,255,.4); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.footer-link { font-size: 12px; color: rgba(255,255,255,.6); display: block; margin-bottom: 6px; }
.footer-link:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 14px 28px; font-size: 11px; color: rgba(255,255,255,.35); }

/* ══ RESPONSIVE ══════════════════════════════ */
@media (max-width: 960px) {
  .page-body { flex-direction: column; }
  .sidebar { width: 100%; position: static; max-height: none; border-right: none; border-bottom: 1px solid #dde2ec; display: flex; flex-wrap: wrap; padding: 8px 12px; gap: 4px; }
  .sidebar-heading, .sidebar-sep, .sidebar-box { display: none; }
  .sidebar-link { padding: 6px 10px; border-radius: 4px; font-size: 12px; }
  .sidebar-link.is-active { border-left: none; padding-left: 10px; border-radius: 4px; }
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .parks-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
  .contacts-grid { grid-template-columns: 1fr; }
  .park-detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .header-top { padding: 8px 14px; flex-wrap: wrap; }
  .header-right .header-contact:not(:first-child) { display: none; }

  .hero { padding: 24px 14px 36px; }
  .hero-h1 { font-size: 22px; }
  .main-inner { padding: 16px 14px; }
  .cards-grid { grid-template-columns: 1fr; }
  .parks-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Calendar page ────────────────────────── */
.cal-month-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.cal-month-title {
  font-size: 18px; font-weight: 700; color: #1B3A6B;
}
.cal-nav-btn {
  background: #fff; border: 1px solid #dde2ec; color: #1B3A6B;
  font-size: 12px; font-weight: 600; padding: 7px 14px;
  border-radius: 6px; cursor: pointer; transition: all .12s;
  font-family: inherit;
}
.cal-nav-btn:hover { background: #EBF0F8; border-color: #1B3A6B; }

.cal-grid-header {
  display: grid; grid-template-columns: repeat(7,minmax(0,1fr));
  gap: 6px; margin-bottom: 6px; min-width: 0;
}
.cal-weekday {
  text-align: center; font-size: 11px; font-weight: 700;
  color: #888; text-transform: uppercase; letter-spacing: .04em;
  padding: 4px 0; overflow: hidden; text-overflow: ellipsis;
}

.cal-grid {
  display: grid; grid-template-columns: repeat(7,minmax(0,1fr));
  gap: 6px; min-width: 0;
}
.cal-cell {
  background: #fff; border: 1px solid #dde2ec; border-radius: 6px;
  padding: 8px; min-height: 90px; min-width: 0; display: flex; flex-direction: column;
  gap: 4px; transition: box-shadow .12s; overflow: hidden;
}
.cal-cell:hover { box-shadow: 0 2px 8px rgba(27,58,107,.08); }
.cal-cell-empty { background: transparent; border: none; }
.cal-cell-day {
  font-size: 13px; font-weight: 700; color: #1B3A6B;
}
.cal-cell-title {
  font-size: 10px; color: #555; line-height: 1.4;
  overflow: hidden; display: -webkit-box; min-width: 0;
  -webkit-line-clamp: 4; -webkit-box-orient: vertical;
  word-break: break-word;
}
.cal-cell-empty-title { color: #bbb; font-style: italic; }
.cal-cell-big {
  background: #FEF3E2; border-color: #F0C97A;
}
.cal-cell-big .cal-cell-day { color: #B8650A; }
.cal-cell-today {
  border: 2px solid #1B3A6B; background: #EBF0F8;
}

@media (max-width: 700px) {
  .cal-month-header { gap: 6px; }
  .cal-nav-btn { font-size: 11px; padding: 6px 10px; }
  .cal-grid, .cal-grid-header { grid-template-columns: repeat(7,1fr); gap: 3px; }
  .cal-cell { min-height: 56px; padding: 4px; gap: 1px; border-radius: 4px; }
  .cal-cell-day { font-size: 11px; }
  .cal-cell-title { font-size: 8px; line-height: 1.2; -webkit-line-clamp: 2; }
  .cal-weekday { font-size: 8px; padding: 3px 0; letter-spacing: 0; }
  .cal-month-title { font-size: 14px; }
  .cal-cell-today { border-width: 1.5px; }
}
@media (max-width: 420px) {
  .cal-month-header { flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 12px; }
  .cal-month-title { order: -1; width: 100%; text-align: center; font-size: 15px; }
  .cal-nav-btn { font-size: 10px; padding: 6px 8px; flex: 1; max-width: 140px; }
  .cal-grid, .cal-grid-header { gap: 2px; }
  .cal-cell { min-height: 46px; padding: 3px 2px; border-radius: 3px; }
  .cal-cell-day { font-size: 10px; }
  .cal-cell-title { font-size: 7px; -webkit-line-clamp: 2; }
  .cal-weekday { font-size: 7px; padding: 2px 0; }
}

/* ── About teaser (home page) ────────────────────────── */
.about-teaser {
  display: flex; align-items: flex-start; gap: 20px;
  background: linear-gradient(135deg, #EBF0F8, #D5E3F5);
  border: 1px solid #C5D5EC; border-radius: 8px;
  padding: 20px 24px; margin-bottom: 20px;
  text-decoration: none; color: inherit;
  transition: box-shadow .15s, border-color .15s;
}
.about-teaser:hover { box-shadow: 0 4px 16px rgba(27,58,107,.1); border-color: #1B3A6B; }
.about-teaser-icon { font-size: 36px; flex-shrink: 0; padding-top: 2px; }
.about-teaser-text { flex: 1; min-width: 0; }
.about-teaser-title { font-size: 13px; font-weight: 700; color: #1B3A6B; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.about-teaser-body { font-size: 13px; color: #444; line-height: 1.6; margin-bottom: 10px; }
.about-teaser-cta { font-size: 13px; font-weight: 600; color: #1B3A6B; display: block; text-align: right; margin-top: 8px; }

@media (max-width: 560px) {
  .about-teaser { gap: 12px; padding: 16px; }
}

/* ── About page ───────────────────────────────────────── */
.about-section { margin-bottom: 32px; }
.about-section-title {
  font-size: 17px; font-weight: 700; color: #1B3A6B;
  margin-bottom: 12px; padding-bottom: 8px;
  border-bottom: 2px solid #EBF0F8;
}
.about-section-body { font-size: 14px; color: #333; line-height: 1.75; margin-bottom: 10px; }
.about-list { margin: 8px 0 0 20px; padding: 0; }
.about-list li { font-size: 14px; color: #333; line-height: 1.7; margin-bottom: 6px; }

/* ══════════════════════════════════════════════════
   ГАЛЕРИЯ И LIGHTBOX ЗА НОВИНИ — добавка към styles.css
   ══════════════════════════════════════════════════ */

.news-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px;
  margin-top: 14px;
}
.news-gallery-item {
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid #dde2ec;
  transition: transform .12s, box-shadow .12s;
}
.news-gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(27,58,107,.15);
}
.news-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 560px) {
  .news-gallery {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 6px;
  }
}

/* ── Lightbox overlay ── */
.lightbox-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10, 20, 35, .92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: lightboxFadeIn .15s ease-out;
}
@keyframes lightboxFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0,0,0,.5);
}
.lightbox-close {
  position: absolute;
  top: 20px; right: 28px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  width: 44px; height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.lightbox-close:hover { background: rgba(255,255,255,.2); }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  font-size: 32px;
  line-height: 1;
  width: 48px; height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.lightbox-nav:hover { background: rgba(255,255,255,.2); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,.5);
  color: #fff;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 20px;
}

@media (max-width: 560px) {
  .lightbox-nav { width: 40px; height: 40px; font-size: 26px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close { top: 12px; right: 12px; width: 38px; height: 38px; font-size: 22px; }
}
