/* =====================================================================
   Lisabona.lt — dizaino tokenai
   Portugalija.lt šeima: tamsiai mėlyna + oranžinis akcentas,
   papildyta azulejo mėlyna ir tramvajaus geltona.
   ===================================================================== */
:root {
    --navy-900: #0f2942;
    --navy-800: #14314f;
    --navy-700: #184a78;
    --azul:     #1d5fa8;
    --azul-soft:#e8f0fa;
    --orange:   #f0803c;
    --orange-dark: #d6672a;
    --yellow:   #f6c343;
    --bg:       #f5f6f8;
    --paper:    #fbf8f3;
    --card:     #ffffff;
    --ink:      #1c2733;
    --ink-soft: #52606d;
    --ink-faint:#7b8794;
    --line:     #e3e7ec;
    --line-soft:#edf0f3;
    --ok:       #1c8a53;
    --warn:     #b7791f;
    --danger:   #c23b3b;
    --radius:   12px;
    --radius-sm:8px;
    --shadow:   0 1px 3px rgba(15,41,66,.08), 0 1px 2px rgba(15,41,66,.05);
    --shadow-md:0 8px 24px rgba(15,41,66,.10);
    --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --container: 1180px;
    --bar-h: 62px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding-bottom: var(--bar-h);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-700); text-decoration: none; }
a:hover { color: var(--orange-dark); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; color: var(--navy-900); line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
[hidden] { display: none !important; }
.ico { flex: none; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--navy-900); color: #fff; padding: 10px 16px; z-index: 999; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; color: #fff; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.center { text-align: center; margin-top: 28px; }
.empty { color: var(--ink-soft); padding: 24px 0; }

/* ---------------------------------------------------------------------
   Mygtukai
   --------------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border: 0; border-radius: 999px; padding: 10px 20px; font-weight: 600; font-size: 15px;
    line-height: 1.2; text-align: center; transition: background .15s, color .15s, transform .15s;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--orange); color: #fff; }
.btn-accent:hover { background: var(--orange-dark); color: #fff; }
.btn-navy { background: var(--navy-800); color: #fff; }
.btn-navy:hover { background: var(--navy-700); color: #fff; }
.btn-ghost { background: var(--line-soft); color: var(--navy-800); }
.btn-ghost:hover { background: var(--line); color: var(--navy-900); }
.btn-danger { background: #fbeaea; color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-lg { padding: 13px 26px; font-size: 16px; }
.btn-sm { padding: 7px 14px; font-size: 14px; }
.btn-xs { padding: 4px 10px; font-size: 12.5px; }
.btn-block { display: flex; width: 100%; }

/* ---------------------------------------------------------------------
   Header
   --------------------------------------------------------------------- */
.site-header { position: relative; z-index: 50; background: var(--navy-800); }
.topbar { background: var(--navy-900); }
.topbar-inner { display: flex; align-items: center; height: 64px; gap: 12px; }
.logo-h1 { margin: 0; font-size: inherit; line-height: 1; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; }
.logo:hover { color: #fff; }
.logo-text { font-family: var(--font-display); font-weight: 700; font-size: 23px; letter-spacing: .6px; color: #fff; white-space: nowrap; }
.logo-text span { color: var(--orange); letter-spacing: 0; }
.topbar-right { display: flex; align-items: center; gap: 6px; margin-left: auto; }

.icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 999px; border: 0;
    background: transparent; color: #fff; transition: background .15s;
}
.icon-btn:hover { background: rgba(255,255,255,.1); color: #fff; }

.burger { display: none; flex-direction: column; gap: 5px; }
.burger span { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.avatar {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 50%; background: var(--orange); color: #fff;
    font-weight: 700; font-size: 15px;
}
.user-menu { position: relative; }
.user-menu summary { list-style: none; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu ul {
    position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; z-index: 60;
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 8px;
}
.user-menu li a { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 6px; color: var(--ink); font-size: 14.5px; }
.user-menu li a:hover { background: var(--line-soft); color: var(--navy-900); }
.menu-user { padding: 8px 12px 10px; font-weight: 700; color: var(--navy-900); border-bottom: 1px solid var(--line-soft); margin-bottom: 4px; }
.menu-label { padding: 8px 12px 2px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
.menu-sep { height: 1px; background: var(--line-soft); margin: 6px 0; }
.badge-admin { background: var(--azul-soft); color: var(--azul); font-size: 11px; padding: 2px 7px; border-radius: 999px; margin-left: 4px; vertical-align: middle; }

.mainnav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.mainnav ul { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.mainnav ul::-webkit-scrollbar { display: none; }
.mainnav a {
    display: block; padding: 13px 14px; color: rgba(255,255,255,.88);
    font-weight: 600; font-size: 15px; white-space: nowrap; border-bottom: 3px solid transparent;
}
.mainnav a:hover { color: #fff; border-bottom-color: rgba(240,128,60,.6); }
.mainnav a.active { color: #fff; border-bottom-color: var(--orange); }
.mainnav .sister { font-size: 13.5px; color: var(--yellow); padding: 13px 0; border: 0; }
.mainnav .sister:hover { color: #fff; }

.searchbar { background: var(--navy-700); padding: 14px 0; }
.searchbar form { display: flex; gap: 8px; max-width: 640px; }
.searchbar input { flex: 1; border: 0; border-radius: 999px; padding: 11px 18px; font-size: 15.5px; min-width: 0; }

/* Azulejo juostelė */
.tiles {
    height: 10px;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='10' viewBox='0 0 20 10'%3E%3Cpath d='M0 5h20' stroke='%231d5fa8' stroke-width='1'/%3E%3Cpath d='M10 0l5 5-5 5-5-5z' fill='%231d5fa8'/%3E%3Ccircle cx='10' cy='5' r='1.4' fill='%23fff'/%3E%3Ccircle cx='0' cy='5' r='2' fill='%23f0803c'/%3E%3Ccircle cx='20' cy='5' r='2' fill='%23f0803c'/%3E%3C/svg%3E");
    background-size: 20px 10px;
    opacity: .95;
}

/* ---------------------------------------------------------------------
   Off-canvas drawer (mobile)
   --------------------------------------------------------------------- */
.drawer-overlay { position: fixed; inset: 0; background: rgba(8,22,36,.55); z-index: 90; opacity: 0; transition: opacity .25s; }
.drawer-overlay.is-open { opacity: 1; }
.drawer {
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 100;
    width: 70%; max-width: 320px; background: #fff; overflow-y: auto;
    transform: translateX(-102%); transition: transform .28s ease; visibility: hidden;
    display: flex; flex-direction: column; box-shadow: 4px 0 24px rgba(0,0,0,.18);
}
.drawer.is-open { transform: none; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; background: var(--navy-900); padding: 14px 12px 14px 18px; }
.drawer-head .logo-text { font-size: 20px; }
.drawer-close { width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 26px; line-height: 1; }
.drawer-menu { padding: 10px 8px; }
.drawer-menu a { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 8px; color: var(--ink); font-weight: 600; }
.drawer-menu a:hover { background: var(--line-soft); }
.drawer-menu .ico { color: var(--azul); }
.drawer-menu.small a { padding: 8px 12px; font-weight: 500; font-size: 14.5px; }
.drawer-section { border-top: 1px solid var(--line-soft); padding: 16px; }
.drawer-label { font-size: 14px; color: var(--ink-soft); margin-bottom: 8px; }
.drawer-note { font-size: 13px; color: var(--ink-faint); text-align: center; margin: 8px 0 0; }
.drawer-sister { margin-top: auto; padding: 16px 20px; background: var(--paper); font-size: 14px; font-weight: 600; }
body.drawer-lock { overflow: hidden; }

/* ---------------------------------------------------------------------
   Slaideris
   --------------------------------------------------------------------- */
.hero { position: relative; background: var(--navy-900); color: #fff; overflow: hidden; }
.hero-track { position: relative; height: clamp(440px, 64vh, 640px); }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility .9s; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 7s ease-out; }
.slide.is-active .slide-img { transform: scale(1); }
.slide-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,28,46,.82) 0%, rgba(10,28,46,.5) 45%, rgba(10,28,46,.05) 80%), linear-gradient(0deg, rgba(10,28,46,.55) 0%, rgba(10,28,46,0) 40%); }
.slide-caption { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-bottom: 60px; }
.slide-caption > * { max-width: 600px; }
.kicker { display: inline-block; background: var(--yellow); color: var(--navy-900); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; border-radius: 4px; margin-bottom: 16px; }
.slide-title { color: #fff; font-size: clamp(32px, 5.2vw, 58px); line-height: 1.05; margin-bottom: 14px; text-shadow: 0 2px 20px rgba(0,0,0,.25); }
.slide-text { font-size: clamp(16px, 1.6vw, 19px); color: rgba(255,255,255,.92); margin-bottom: 24px; max-width: 520px; }
.slide .btn { transform: translateY(10px); opacity: 0; transition: transform .6s .35s, opacity .6s .35s; }
.slide.is-active .btn { transform: none; opacity: 1; }
.slide .slide-title, .slide .slide-text, .slide .kicker { transform: translateY(14px); opacity: 0; transition: transform .7s .15s, opacity .7s .15s; }
.slide.is-active .slide-title, .slide.is-active .slide-text, .slide.is-active .kicker { transform: none; opacity: 1; }

.hero-controls { position: absolute; left: 0; right: 0; bottom: 26px; display: flex; align-items: center; justify-content: space-between; z-index: 5; }
.hero-dots { display: flex; gap: 8px; }
.dot { width: 44px; height: 24px; padding: 0; border: 0; background: transparent; display: flex; align-items: center; }
.dot span { display: block; width: 100%; height: 4px; border-radius: 4px; background: rgba(255,255,255,.35); overflow: hidden; position: relative; }
.dot span::after { content: ""; position: absolute; inset: 0; background: var(--orange); transform: scaleX(0); transform-origin: left; }
.dot.is-active span::after { transform: scaleX(1); }
.hero.is-playing .dot.is-active span::after { transform: scaleX(0); animation: dotfill var(--slide-ms, 6500ms) linear forwards; }
@keyframes dotfill { to { transform: scaleX(1); } }
.hero-arrows { display: flex; gap: 10px; }
.hero-arrow { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: rgba(10,28,46,.35); color: #fff; display: inline-flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); transition: background .15s; }
.hero-arrow:hover { background: var(--orange); border-color: var(--orange); }
.hero-empty { background: linear-gradient(120deg, var(--navy-900), var(--azul)); }
.hero-empty .slide-caption { min-height: 380px; }
@media (prefers-reduced-motion: reduce) {
    .slide, .slide-img, .slide .btn, .slide .slide-title, .slide .slide-text, .slide .kicker { transition: none; }
}

/* ---------------------------------------------------------------------
   Sekcijos
   --------------------------------------------------------------------- */
.section { padding: 72px 0; }
.section-head { margin-bottom: 32px; max-width: 720px; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; max-width: none; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-dark); margin-bottom: 10px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.section-title { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 12px; }
.section-lead { font-size: 17.5px; color: var(--ink-soft); margin: 0; }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; white-space: nowrap; }

/* Apie */
.intro { background: var(--card); }
.intro-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.intro-text p { font-size: 17.5px; line-height: 1.75; color: #2b3845; }
.intro-text p:first-of-type::first-letter { float: left; font-family: var(--font-display); font-size: 64px; line-height: .9; padding: 6px 10px 0 0; color: var(--azul); font-weight: 700; }
.facts { background: var(--navy-900); color: #fff; border-radius: 18px; padding: 30px 28px; position: relative; overflow: hidden; }
.facts::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; border: 28px solid rgba(29,95,168,.35); }
.facts-title { color: var(--yellow); font-size: 15px; font-family: var(--font-body); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px; position: relative; z-index: 1; }
.facts dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 18px; position: relative; z-index: 1; }
.fact dt { font-family: var(--font-display); font-size: 30px; font-weight: 700; line-height: 1.05; color: #fff; }
.fact dd { margin: 4px 0 0; font-size: 13.5px; color: rgba(255,255,255,.72); line-height: 1.4; }

/* Rajonai */
.districts { background: var(--paper); }
.district-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.district { background: var(--card); border-radius: var(--radius); padding: 26px 24px 22px; box-shadow: var(--shadow); border-top: 4px solid var(--azul); transition: transform .2s, box-shadow .2s; }
.district:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.district:nth-child(3n+2) { border-top-color: var(--orange); }
.district:nth-child(3n+3) { border-top-color: var(--yellow); }
.district-icon { width: 50px; height: 50px; border-radius: 12px; background: var(--azul-soft); color: var(--azul); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.district h3 { font-size: 22px; margin-bottom: 8px; }
.district p { color: var(--ink-soft); font-size: 15.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--line-soft); color: var(--navy-700); }

/* Lankytinos vietos */
.sights { background: var(--card); }
.sight-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; counter-reset: s; }
.sight { display: flex; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line-soft); }
.sight-num { font-family: var(--font-display); font-size: 36px; font-weight: 700; color: var(--orange); line-height: 1; min-width: 50px; }
.sight h3 { font-size: 20px; margin-bottom: 6px; }
.sight h3 small { display: block; font-family: var(--font-body); font-size: 13px; font-weight: 500; font-style: italic; color: var(--ink-faint); margin-top: 3px; }
.sight p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }

/* Patarimai */
.tips { background: linear-gradient(180deg, var(--azul-soft), var(--bg)); }
.tip-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.tip { background: var(--card); border-radius: var(--radius); padding: 24px 22px; box-shadow: var(--shadow); }
.tip-icon { width: 46px; height: 46px; border-radius: 50%; background: var(--orange); color: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.tip h3 { font-size: 19px; }
.tip p { font-size: 15px; color: var(--ink-soft); margin: 0; }
.promo { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 32px; padding: 22px 28px; border-radius: var(--radius); background: var(--navy-800); color: rgba(255,255,255,.85); }
.promo:hover { color: #fff; background: var(--navy-700); }
.promo strong { color: #fff; display: block; font-size: 18px; margin-bottom: 2px; }
.promo-btn { display: inline-flex; align-items: center; gap: 8px; flex: none; background: var(--orange); color: #fff; padding: 10px 20px; border-radius: 999px; font-weight: 700; }

/* Naujienos */
.news { background: var(--bg); }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card-img { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--line-soft); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-img img { transform: scale(1.04); }
.badge { position: absolute; left: 12px; top: 12px; background: var(--orange); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .04em; padding: 4px 10px; border-radius: 4px; }
.badge-inline { position: static; display: inline-block; }
.badge-inline:hover { color: #fff; background: var(--orange-dark); }
.badge-soft { position: static; display: inline-block; background: var(--azul-soft); color: var(--azul); }
.card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.card-date { font-size: 13px; color: var(--ink-faint); margin-bottom: 6px; }
.card-title { font-size: 19.5px; line-height: 1.3; margin: 0 0 8px; }
.card-title a { color: var(--navy-900); }
.card-title a:hover { color: var(--orange-dark); }
.card-text { font-size: 14.5px; color: var(--ink-soft); margin: 0; }

/* ---------------------------------------------------------------------
   Vidiniai puslapiai
   --------------------------------------------------------------------- */
.page { padding-top: 24px; padding-bottom: 64px; }
.page-narrow { max-width: 860px; }
.page-head { margin: 8px 0 28px; }
.page-title { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 6px; }
.page-title small { font-size: 60%; color: var(--ink-faint); font-weight: 500; }
.page-lead { color: var(--ink-soft); font-size: 17px; margin: 0; }

.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px; font-size: 13.5px; color: var(--ink-faint); margin-bottom: 18px; }
.crumbs li:not(:last-child)::after { content: "›"; margin-left: 6px; color: var(--line); }
.crumbs li[aria-current] span { color: var(--ink-soft); display: inline-block; max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }

.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 36px; }
.pagination a, .pagination span { min-width: 42px; height: 42px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); font-weight: 600; }
.pagination .current { background: var(--navy-800); color: #fff; }
.pagination .dots { background: transparent; box-shadow: none; }

/* Straipsnis */
.article { background: var(--card); border-radius: 16px; box-shadow: var(--shadow); padding: 36px 44px 32px; }
.article-title { font-size: clamp(28px, 3.8vw, 42px); line-height: 1.15; margin-bottom: 10px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; font-size: 14px; color: var(--ink-faint); margin-bottom: 24px; }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-body::after { content: ""; display: table; clear: both; }
.article-figure { float: left; width: 50%; margin: 6px 32px 18px 0; }
.article-figure img { border-radius: var(--radius-sm); width: 100%; }
.figure-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; padding-top: 8px; font-size: 13px; color: var(--ink-faint); }
.figure-right { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; margin-left: auto; }
.prose { font-size: 18px; line-height: 1.8; color: #26323e; }
.prose h2 { font-size: 26px; margin: 1.4em 0 .5em; clear: none; }
.prose h3 { font-size: 21px; margin: 1.2em 0 .4em; }
/* Sąrašai, citatos ir lentelės šalia plaukiojančios nuotraukos – atskiras BFC, kad nelįstų po ja */
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.4em; overflow: hidden; }
.prose blockquote, .prose table, .prose .embed { overflow: hidden; }
.prose ul li { list-style: disc; margin-bottom: .35em; }
.prose ol li { list-style: decimal; margin-bottom: .35em; }
.prose a { text-decoration: underline; text-decoration-color: rgba(24,74,120,.35); text-underline-offset: 3px; }
.prose blockquote { margin: 1.4em 0; padding: 14px 22px; overflow: hidden; border-left: 4px solid var(--orange); background: var(--paper); border-radius: 0 8px 8px 0; font-style: italic; }
.prose img { border-radius: var(--radius-sm); margin: 1em 0; }
.prose strong { color: var(--navy-900); }
.embed { position: relative; aspect-ratio: 16 / 9; margin: 1.2em 0; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: var(--radius-sm); }
.article-foot { clear: both; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line-soft); }
.article-source { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; }
.article-source p { margin: 0; font-size: 15px; color: var(--ink-soft); }
.related { margin-top: 56px; }

/* Paieška */
.search-form { display: flex; gap: 10px; max-width: 620px; margin-bottom: 24px; }
.search-form input { flex: 1; min-width: 0; }
.search-count { color: var(--ink-soft); margin-bottom: 20px; }

/* 404 */
.nf { background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 48px 24px 36px; text-align: center; max-width: 820px; margin: 10px auto 0; }
.nf-code { font-family: var(--font-display); font-weight: 800; line-height: 1; font-size: clamp(84px, 18vw, 150px); color: var(--navy-800); letter-spacing: -2px; }
.nf-code span { color: var(--orange); }
.nf-title { font-size: clamp(22px, 3.4vw, 30px); margin: 14px 0 10px; }
.nf-text { color: var(--ink-soft); font-size: 16px; max-width: 520px; margin: 0 auto 24px; }
.nf-search { display: flex; gap: 8px; max-width: 460px; margin: 0 auto 16px; }
.nf-search input { flex: 1; min-width: 0; }
.nf-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 26px; }
.nf-cats { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid var(--line-soft); }
.nf-cats a { background: var(--line-soft); color: var(--ink); padding: 7px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; }
.nf-cats a:hover { background: var(--navy-800); color: #fff; }

/* ---------------------------------------------------------------------
   Formos
   --------------------------------------------------------------------- */
input[type=text], input[type=search], input[type=email], input[type=password], input[type=number],
input[type=datetime-local], select, textarea {
    width: 100%; border: 1px solid var(--line); background: #fff; border-radius: var(--radius-sm);
    padding: 10px 14px; font-size: 15.5px; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 3px rgba(29,95,168,.15); }
.search-form input, .nf-search input, .admin-search input { border-radius: 999px; padding: 11px 18px; }
label.check { display: flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; }
label.check input { width: 18px; height: 18px; accent-color: var(--orange); }
.form-error { color: var(--danger); font-size: 14px; min-height: 1.2em; margin: 4px 0 10px; }
.form-hint { font-size: 13.5px; color: var(--ink-faint); margin: 6px 0 0; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.flash { padding: 12px 18px; border-radius: var(--radius-sm); margin-bottom: 18px; font-weight: 500; }
.flash-ok { background: #e7f6ee; color: var(--ok); }
.flash-err { background: #fbeaea; color: var(--danger); }
.flash-warn { background: #fdf3e1; color: var(--warn); }

/* Login modalas */
.modal { border: 0; border-radius: 16px; padding: 30px 28px 24px; width: min(420px, calc(100vw - 32px)); box-shadow: 0 30px 80px rgba(8,22,36,.35); }
.modal::backdrop { background: rgba(8,22,36,.6); }
.modal h2 { font-size: 26px; margin-bottom: 4px; }
.modal-sub { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 18px; }
.modal label:not(.check) { display: block; font-size: 14px; font-weight: 600; color: var(--ink-soft); margin-bottom: 12px; }
.modal label:not(.check) input { margin-top: 5px; }
.modal-close-form { position: absolute; right: 12px; top: 12px; margin: 0; }
.modal-close { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--line-soft); font-size: 22px; line-height: 1; color: var(--ink-soft); }
.modal-links { text-align: center; font-size: 14px; margin: 16px 0 0; color: var(--ink-faint); }

/* ---------------------------------------------------------------------
   Footer + sticky bottom bar
   --------------------------------------------------------------------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.72); font-size: 14.5px; }
.tiles-footer { opacity: .9; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr 1.6fr; gap: 32px; padding-top: 52px; padding-bottom: 40px; }
.footer-title { color: #fff; font-family: var(--font-body); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a { color: rgba(255,255,255,.78); }
.site-footer a:hover { color: var(--orange); }
.site-footer li { margin-bottom: 8px; }
.footer-sister a { color: var(--yellow); font-weight: 700; }
.subscribe { display: flex; flex-direction: column; gap: 8px; position: relative; }
.subscribe input[type=email] { border: 0; border-radius: 999px; padding: 11px 18px; }
.subscribe-msg { font-size: 13.5px; margin: 8px 0 0; min-height: 1em; color: var(--yellow); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; font-size: 13.5px; }

.bottom-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; height: var(--bar-h);
    display: grid; grid-template-columns: repeat(3, 1fr);
    background: rgba(255,255,255,.97); backdrop-filter: blur(8px);
    border-top: 1px solid var(--line); box-shadow: 0 -4px 18px rgba(15,41,66,.08);
    padding-bottom: env(safe-area-inset-bottom);
}
.bottom-bar a, .bottom-bar button {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    border: 0; background: transparent; color: var(--navy-800); font-weight: 700; font-size: 14.5px;
}
.bottom-bar a + a, .bottom-bar a + button { border-left: 1px solid var(--line-soft); }
.bottom-bar .ico { color: var(--orange); }
.lbl-short { display: none; }
.bottom-bar a:hover, .bottom-bar button:hover { background: var(--line-soft); color: var(--navy-900); }

/* ---------------------------------------------------------------------
   Admin
   --------------------------------------------------------------------- */
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.admin-head .page-title { margin: 0; }
.admin-head-actions { display: flex; gap: 8px; }
.admin-search { display: flex; gap: 8px; max-width: 640px; margin-bottom: 18px; }
.admin-search input { flex: 1; min-width: 0; }
.table-wrap { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.admin-table th { text-align: left; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); padding: 12px 14px; border-bottom: 1px solid var(--line); background: #fafbfc; }
.admin-table th a { color: var(--navy-700); }
.admin-table td { padding: 10px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.admin-table tr:hover td { background: #fafcff; }
.admin-table .num { text-align: right; }
.admin-table .nowrap { white-space: nowrap; }
.row-title { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 600; }
.row-title img { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; flex: none; }
.star { color: var(--orange); }
.actions a { margin-right: 12px; font-weight: 600; }
.status { font-size: 12.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.status-live { background: #e7f6ee; color: var(--ok); }
.status-draft { background: var(--line-soft); color: var(--ink-soft); }
.status-sched { background: #fdf3e1; color: var(--warn); }

.admin-form, .admin-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; }
.admin-card { margin-bottom: 20px; }
.admin-card-title { font-size: 19px; }
.form-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 28px; margin-bottom: 20px; }
.form-col > * + * { margin-top: 14px; }
.field { display: block; }
.field-label { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink-soft); margin-bottom: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check-field { align-self: end; padding-bottom: 12px; }
.form-actions { display: flex; gap: 10px; margin-top: 22px; }
.delete-form { margin-top: 18px; text-align: right; }
.image-preview { aspect-ratio: 4 / 3; border-radius: var(--radius-sm); background: var(--line-soft) repeating-linear-gradient(45deg, transparent 0 10px, rgba(255,255,255,.5) 10px 20px); display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--ink-faint); font-size: 14px; }
.image-preview-wide { aspect-ratio: 16 / 9; }
.image-preview img { width: 100%; height: 100%; object-fit: cover; }
.image-meta { font-size: 13px; color: var(--ink-faint); margin: 8px 0; min-height: 1em; }
.picker-row { display: flex; align-items: flex-end; gap: 10px; }
label.inline { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--ink-soft); }
label.inline input { width: 110px; }
.upload-box { margin-top: 12px; border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: 10px 14px; }
.upload-box summary { cursor: pointer; font-weight: 600; color: var(--navy-700); font-size: 14.5px; }
.upload-box[open] > * + * { margin-top: 8px; }
.upload-box input[type=file] { font-size: 14px; width: 100%; }
.upload-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr auto; gap: 10px; align-items: center; }
.image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.image-item { margin: 0; background: var(--card); border-radius: var(--radius-sm); box-shadow: var(--shadow); overflow: hidden; }
.image-item img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.image-item figcaption { padding: 10px 12px 12px; font-size: 13.5px; }
.image-id-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.image-dims { color: var(--ink-faint); font-size: 12px; }
.image-item details summary { cursor: pointer; color: var(--ink-soft); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meta-form { display: grid; gap: 6px; margin-top: 8px; }
.meta-form input { padding: 6px 10px; font-size: 13.5px; }
code { background: var(--line-soft); padding: 2px 6px; border-radius: 4px; font-size: 13px; }

/* ---------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------- */
@media (max-width: 1100px) {
    .footer-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-about { grid-column: 1 / -1; }
    .tip-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
    .burger { display: inline-flex; }
    .mainnav { display: none; }
    .intro-grid { grid-template-columns: 1fr; gap: 32px; }
    .district-grid, .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sight-list { grid-template-columns: 1fr; }
    .form-cols { grid-template-columns: 1fr; }
    .upload-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
    .article { padding: 22px 18px; border-radius: 12px; }
    .article-figure { float: none; width: auto; margin: 0 0 18px; }
    .prose { font-size: 18px; line-height: 1.85; }
}
@media (max-width: 640px) {
    .container { padding: 0 16px; }
    .section { padding: 52px 0; }
    .logo-text { font-size: 20px; }
    .logo-mark { width: 26px; height: 26px; }
    .district-grid, .card-grid, .tip-grid { grid-template-columns: 1fr; }
    .facts dl { grid-template-columns: 1fr 1fr; }
    .hero-track { height: 520px; }
    .slide-shade { background: linear-gradient(0deg, rgba(10,28,46,.9) 0%, rgba(10,28,46,.55) 55%, rgba(10,28,46,.15) 100%); }
    .slide-caption { justify-content: flex-end; padding-bottom: 92px; }
    .hero-arrows { display: none; }
    .hero-dots { margin: 0 auto; }
    .dot { width: 32px; }
    .promo { flex-direction: column; align-items: flex-start; }
    .section-head-row { flex-direction: column; align-items: flex-start; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px 20px; }
    .footer-grid > div:last-child { grid-column: 1 / -1; }
    .bottom-bar a, .bottom-bar button { gap: 6px; font-size: 13.5px; }
    .lbl-long { display: none; }
    .lbl-short { display: inline; }
    .search-form, .nf-search, .admin-search { flex-direction: column; }
    .field-row { grid-template-columns: 1fr; }
    .crumbs li[aria-current] span { max-width: 22ch; }
}
