/* BulgariaRest — the "Квартири" signboard.
   Loaded after app.css: it re-skins tokens and components, layout stays app.css's.
   World: Black Sea enamel boards, chalk lettering, a lime-washed wall. */

:root {
  --enamel: #1B4B66;
  --enamel-deep: #12384F;
  --chalk: #F4F1E6;
  --marigold: #F3B61F;
  --wall: #F2F3F0;
  --ink: #10293A;
  --ink-soft: #4B6272;
  --vermilion: #C93B27;

  --accent: var(--vermilion);
  --accent-2: #A92E1D;
  --bg: var(--wall);
  --bg-soft: #E7EAE6;
  --bg-warm: var(--wall);
  --text: var(--ink);
  --text-soft: var(--ink-soft);
  --divider: #CBD3D0;
  --shadow-card: 0 2px 3px rgba(16,41,58,.12), 0 10px 22px -8px rgba(16,41,58,.28);
  --shadow-card-hover: 0 3px 4px rgba(16,41,58,.14), 0 18px 30px -10px rgba(16,41,58,.38);
  --shadow-search: 0 2px 3px rgba(16,41,58,.14), 0 14px 26px -10px rgba(16,41,58,.4);
  --radius-card: 4px;
  --radius-input: 3px;
  --radius-pill: 3px;

  --f-sign: 'Yanone Kaffeesatz', 'Arial Narrow', sans-serif;
  --f-body: 'Golos Text', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-hand: 'Marck Script', cursive;
}

body { font-family: var(--f-body); background: var(--wall); color: var(--ink); }
::selection { background: var(--marigold); color: var(--enamel-deep); }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 2px; }
a:hover { color: var(--vermilion); }
html { scrollbar-color: var(--enamel) var(--bg-soft); }

h1, h2, h3, h4 { font-family: var(--f-sign); font-weight: 700; letter-spacing: .01em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(34px, 6vw, 60px); line-height: 1.02; }
h2 { font-size: clamp(28px, 4.4vw, 40px); text-transform: uppercase; letter-spacing: .03em; }
h3 { font-size: 24px; }

/* ---------- header: a plank with the board hung on it ---------- */
.site-header { background: var(--enamel); border-bottom: 4px solid var(--enamel-deep); backdrop-filter: none; }
.site-header .inner { height: 68px; }
.brand { font-family: var(--f-sign); font-size: 30px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--chalk); gap: 0; }
.brand:hover { color: var(--chalk); }
.brand-rest { color: var(--marigold); }
.brand-bolt { margin-right: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--marigold); box-shadow: inset -1px -1px 0 rgba(0,0,0,.25); flex: none; }
.nav-desktop a { color: var(--chalk); font-weight: 500; font-size: 15px; }
.nav-desktop a:hover { color: var(--marigold); }
.nav-desktop .nav-add { background: var(--marigold); color: var(--enamel-deep) !important; border-radius: 3px; font-family: var(--f-sign); font-size: 19px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 7px 16px; }
.nav-desktop .nav-add:hover { background: #FFD04D; color: var(--enamel-deep) !important; }
.lang-switch .lang-opt { color: #AFC4D0; }
.lang-switch .lang-opt:hover, .lang-switch .lang-opt.active { color: var(--marigold); }
.lang-switch .lang-sep { color: #5F8196; }

.bottom-nav { background: var(--enamel); border-top: 3px solid var(--enamel-deep); }
.bottom-nav a { color: #AFC4D0; font-family: var(--f-sign); font-size: 15px; letter-spacing: .05em; text-transform: uppercase; }
.bottom-nav a.active, .bottom-nav a:hover { color: var(--marigold); }

/* ---------- buttons: painted plaques ---------- */
.btn { background: var(--vermilion); color: var(--chalk); border-radius: 3px; font-family: var(--f-sign); font-size: 20px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; box-shadow: 0 2px 0 var(--accent-2), 0 8px 14px -6px rgba(16,41,58,.5); transition: transform .12s cubic-bezier(.2,.8,.2,1), box-shadow .12s, background .15s; }
.btn:hover { background: #DB4630; color: var(--chalk); }
.btn:active { transform: translateY(2px); box-shadow: 0 0 0 var(--accent-2), 0 3px 6px -4px rgba(16,41,58,.5); }
.btn.btn-ghost { background: transparent; color: var(--enamel); border: 2px solid var(--enamel); box-shadow: none; }
.btn.btn-ghost:hover { background: var(--enamel); color: var(--chalk); }

/* ---------- hero: the board ---------- */
.hero { background: none; padding: 28px 0 8px; text-align: center; }
.sign-board {
  position: relative; max-width: 980px; margin: 0 auto;
  padding: clamp(26px, 5vw, 56px) clamp(20px, 5vw, 64px) clamp(26px, 4vw, 44px);
  background: radial-gradient(120% 90% at 50% 0, #226087 0%, var(--enamel) 55%, var(--enamel-deep) 100%);
  border: 6px solid var(--chalk); outline: 3px solid var(--enamel-deep); border-radius: 4px;
  box-shadow: 0 2px 4px rgba(16,41,58,.25), 0 30px 50px -22px rgba(16,41,58,.55);
  color: var(--chalk);
}
.bolt { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0, #bfc6c4 45%, #7b8785 100%); box-shadow: 0 1px 1px rgba(0,0,0,.4); }
.bolt.tl { top: 12px; left: 12px; } .bolt.tr { top: 12px; right: 12px; }
.bolt.bl { bottom: 12px; left: 12px; } .bolt.br { bottom: 12px; right: 12px; }
.sign-word { font-family: var(--f-sign); font-weight: 700; text-transform: uppercase; font-size: clamp(32px, calc(119vw / var(--n, 7)), calc(1176px / var(--n, 7))); line-height: .86; letter-spacing: .06em; color: var(--chalk); margin: 0 0 6px; text-shadow: 0 2px 0 rgba(0,0,0,.25); }
.sign-board h1 { font-family: var(--f-body); font-weight: 500; font-size: clamp(16px, 2.4vw, 22px); letter-spacing: 0; line-height: 1.35; color: #CFE0EA; margin: 0 0 10px; text-transform: none; }
.hero .sign-board .sign-hand { font-family: var(--f-hand); font-size: clamp(24px, 4vw, 38px); line-height: 1.15; color: var(--marigold) !important; max-width: none; margin: 0; transform: rotate(-1.5deg); }
.hero .sign-board .sign-hand { text-shadow: 0 1px 0 rgba(0,0,0,.3); }
.nav-desktop a[href*="register"] { color: var(--marigold) !important; }
.hero .hero-sub { color: var(--ink-soft); max-width: 640px; margin: 26px auto 22px; font-size: 16px; }

/* search: a second, white board hung below */
.search-bar { background: var(--chalk); border: 3px solid var(--enamel); border-radius: 4px; box-shadow: var(--shadow-search); padding: 6px; }
.search-bar .field { border-radius: 3px; }
.search-bar .field:hover { background: #E6E2D2; }
.search-bar .field span, .search-bar .field label { font-family: var(--f-sign); font-size: 17px; letter-spacing: .06em; color: var(--enamel); text-transform: uppercase; }
.search-bar select, .search-bar input { color: var(--ink); font-family: var(--f-body); font-size: 15px; }
.search-bar .field + .field { border-color: #C9C4AE; }
.search-bar button { background: var(--vermilion); border-radius: 3px; font-family: var(--f-sign); font-size: 22px; letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 2px 0 var(--accent-2); }
.search-bar button:hover { background: #DB4630; }
.hero-stats { font-family: var(--f-sign); font-size: 22px; letter-spacing: .05em; text-transform: uppercase; color: var(--enamel); margin-top: 18px; }
@media (max-width: 768px) { .search-bar .field span { font-size: 16px; } }

/* category chips: small enamel plates */
.cat { background: var(--chalk); border: 2px solid var(--enamel); border-radius: 3px; color: var(--enamel); font-family: var(--f-sign); font-size: 19px; letter-spacing: .04em; text-transform: uppercase; font-weight: 500; min-height: 42px; padding: 6px 16px; }
.cat:hover { background: var(--enamel); color: var(--chalk); border-color: var(--enamel); }
.cat:hover .ico { filter: brightness(0) invert(1); }
.cat.active { background: var(--enamel); border-color: var(--enamel); color: var(--marigold); }
.cat.active:hover { background: var(--enamel-deep); border-color: var(--enamel-deep); color: var(--marigold); }
.cat.active .ico { filter: brightness(0) saturate(100%) invert(75%) sepia(60%) saturate(900%) hue-rotate(358deg); }

/* ---------- sections ---------- */
.section .head { align-items: center; border-bottom: 3px solid var(--enamel); padding-bottom: 8px; }
.section .head a { font-family: var(--f-sign); font-size: 19px; letter-spacing: .05em; text-transform: uppercase; color: var(--enamel); }
.section .head a:hover { color: var(--vermilion); }

/* ---------- listing cards: each is a small board ---------- */
.p-card { background: var(--chalk); border: 2px solid var(--enamel); box-shadow: var(--shadow-card); transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s; }
.p-card:hover { transform: translateY(-3px) rotate(-.25deg); box-shadow: var(--shadow-card-hover); color: inherit; }
.p-card .imgwrap { border-radius: 0; box-shadow: none; border-bottom: 2px solid var(--enamel); background: var(--bg-soft); }
.p-card:hover .imgwrap, .p-card.is-featured .imgwrap, .p-card.is-featured:hover .imgwrap, .p-card.is-premium .imgwrap, .p-card.is-premium:hover .imgwrap { box-shadow: none; }
.p-card.is-featured { border-color: var(--marigold); box-shadow: 0 0 0 2px var(--marigold), var(--shadow-card); }
.p-card.is-premium { border-color: var(--vermilion); }
.p-card .body { padding: 12px 14px 14px; }
.p-card .name { font-family: var(--f-sign); font-size: 24px; font-weight: 700; letter-spacing: .01em; line-height: 1.1; color: var(--ink); }
.p-card .loc { font-family: var(--f-body); font-size: 13px; color: var(--ink-soft); }
.p-card .type-pill { background: var(--enamel); color: var(--chalk); border: 0; border-radius: 2px; font-family: var(--f-sign); font-size: 14px; letter-spacing: .08em; padding: 2px 8px; }
.p-card .tier-tag { border-radius: 2px; font-family: var(--f-sign); font-size: 15px; letter-spacing: .08em; background: var(--chalk); color: var(--enamel); }
.p-card .tier-tag.featured { background: var(--marigold); color: var(--enamel-deep); }
.p-card .tier-tag.premium { background: var(--vermilion); color: var(--chalk); }
.p-card .rating { color: #9A6B00; }
.p-card .heart { border-radius: 3px; background: var(--chalk); }
.p-card .heart.on svg path { fill: var(--vermilion); }
.p-card .price-row { border-top: 2px dotted var(--divider); }
.p-card .price-row .amount { font-family: var(--f-sign); font-size: 26px; color: var(--vermilion); }
.p-card .img.placeholder { background: var(--bg-soft); }

/* ---------- regions ---------- */
.region-card { background: var(--enamel); border: 2px solid var(--enamel-deep); border-radius: 3px; color: var(--chalk); }
.region-card:hover { background: var(--enamel-deep); color: var(--chalk); border-color: var(--marigold); transform: translateY(-2px); box-shadow: var(--shadow-card); }
.region-card .nm { font-family: var(--f-sign); font-size: 26px; letter-spacing: .03em; text-transform: uppercase; }
.region-card .cnt { color: var(--marigold); font-family: var(--f-sign); font-size: 18px; letter-spacing: .04em; }
.region-card img.emo { filter: brightness(0) invert(1); opacity: .85; }

/* ---------- map ---------- */
.map-wrap { border: 4px solid var(--enamel); border-radius: 3px; box-shadow: var(--shadow-card); }
.leaflet-container { background: #DDE5E8; }
.leaflet-popup-content-wrapper { border-radius: 3px; border: 2px solid var(--enamel); }
.bg-pin { background: var(--enamel); color: var(--chalk); border-radius: 3px; font-family: var(--f-sign); letter-spacing: .04em; }

/* ---------- forms ---------- */
.form-card { background: var(--chalk); border: 3px solid var(--enamel); border-radius: 4px; box-shadow: var(--shadow-card); }
input, select, textarea { font-family: var(--f-body); }
.f input, .f select, .f textarea { border-radius: 3px; border: 2px solid #8FA6B3; background: #fff; }
.f input:focus, .f select:focus, .f textarea:focus { border-color: var(--enamel); outline: 3px solid var(--marigold); outline-offset: 0; }

/* ---------- footer: the gatepost ---------- */
.site-footer { background: var(--enamel-deep); border-top: 6px solid var(--chalk); color: #AFC4D0; font-size: 14px; }
.site-footer a { color: var(--chalk); }
.site-footer a:hover { color: var(--marigold); }

/* ---------- motion: boards sway once on load, nothing else ---------- */
@media (prefers-reduced-motion: no-preference) {
  .sign-board { animation: hang 1.1s cubic-bezier(.16,1,.3,1) both; transform-origin: 50% 0; }
  @keyframes hang { 0% { transform: rotate(-1.4deg) translateY(-10px); opacity: .0 } 40% { opacity: 1 } 100% { transform: none; } }
}
@media (prefers-reduced-motion: reduce) { .p-card, .btn { transition: none; } .p-card:hover { transform: none; } }

/* ---------- header, many languages: keep nav on one line and legible ---------- */
.nav-desktop a, .nav-desktop .nav-add { white-space: nowrap; }
.nav-desktop .nav-ev { color: var(--chalk); }
.nav-desktop .nav-ev:hover { color: var(--marigold); }
.nav-desktop .nav-ev.active { color: var(--marigold); }
.nav-ev-badge { background: var(--marigold) !important; color: var(--enamel-deep) !important; border-radius: 2px !important; font-family: var(--f-sign); letter-spacing: .06em; }
.nav-desktop { gap: 22px; }
@media (min-width: 769px) and (max-width: 1180px) { .nav-desktop { gap: 14px; } .nav-desktop a { font-size: 14px; } .header-right { gap: 12px; } }

/* logout is a <button> inside the nav: it inherited the ink colour */
.nav-desktop button { color: var(--chalk) !important; font-weight: 500; font-size: 15px; }
.nav-desktop button:hover { color: var(--marigold) !important; }

/* ---------- admin: same boards, denser ---------- */
.admin-side { background: var(--enamel); border: 3px solid var(--enamel-deep); border-radius: 4px; box-shadow: var(--shadow-card); }
.admin-side a { color: var(--chalk); border-radius: 3px; font-weight: 500; }
.admin-side a:hover, .admin-side a.active { background: var(--enamel-deep); color: var(--marigold); }
.admin-side .pill { background: var(--marigold); color: var(--enamel-deep); border-radius: 2px; font-family: var(--f-sign); font-size: 14px; letter-spacing: .04em; }
.admin-side .btn-ghost { color: var(--chalk); border-color: var(--chalk); }
.admin-side .btn-ghost:hover { background: var(--chalk); color: var(--enamel); }
.stat, .a-card, .a-panel, .table-wrap { background: var(--chalk); border: 2px solid var(--enamel); border-radius: 4px; box-shadow: var(--shadow-card); }
.a-card.accent { background: #F6E3A7; border-color: var(--marigold); }
.stat .val, .a-card .val { font-family: var(--f-sign); font-size: 38px; font-weight: 700; letter-spacing: .02em; color: var(--enamel); }
.stat .lbl, .a-card .lbl { font-family: var(--f-sign); font-size: 17px; letter-spacing: .06em; text-transform: uppercase; }
.chart .bar { background: var(--enamel); border-radius: 1px 1px 0 0; }
table.tbl thead { background: var(--enamel); color: var(--chalk); font-family: var(--f-sign); font-size: 16px; letter-spacing: .08em; }
table.tbl tr { border-top: 1px solid #D9D4C0; }
.badge { border-radius: 2px; font-family: var(--f-sign); font-size: 14px; letter-spacing: .08em; }
.badge.featured { background: var(--marigold); color: var(--enamel-deep); }
.badge.premium { background: var(--enamel); color: var(--chalk); }
.badge.free { background: #E6E2D2; color: var(--ink-soft); }
.alert { border-radius: 3px; }

/* ---------- Eurovision: the hero is a board too ---------- */
.ev-hero { padding: clamp(24px, 4vw, 44px); border-radius: 4px; box-shadow: 0 2px 4px rgba(16,41,58,.25), 0 24px 40px -20px rgba(16,41,58,.5); }
.ev-hero h1 { font-size: clamp(38px, 6vw, 68px); line-height: 1; margin: 10px 0 14px; letter-spacing: .02em; text-transform: uppercase; }
.ev-hero .kicker { font-family: var(--f-sign); font-size: 20px; letter-spacing: .1em; color: var(--marigold); opacity: 1; }
.ev-hero-dates b, .ev-hero-dates span { font-family: var(--f-sign); letter-spacing: .04em; }
.ev-strip { border-bottom: 3px solid var(--marigold); }

/* ---------- Home promo cards: photo + headline; side rails (wide) and a strip ---------- */
.promo-host { position: relative; }
.promo-card { position: relative; display: block; overflow: hidden; background: var(--enamel-deep); color: #fff; border: 3px solid var(--chalk); outline: 2px solid var(--enamel); border-radius: 4px; box-shadow: var(--shadow-card); text-decoration: none; text-align: left; transition: transform .2s cubic-bezier(.16,1,.3,1); }
.promo-card:hover { color: #fff; transform: translateY(-3px); }
.pc-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.16,1,.3,1); }
.promo-card:hover .pc-img { transform: scale(1.04); }
.pc-text { position: absolute; inset: auto 0 0 0; display: flex; flex-direction: column; gap: 4px; padding: 44px 16px 14px; background: linear-gradient(to top, rgba(10,30,44,.92) 0%, rgba(10,30,44,.7) 55%, rgba(10,30,44,0) 100%); }
.pc-kicker { font-family: var(--f-sign); font-size: 16px; letter-spacing: .1em; text-transform: uppercase; color: var(--marigold); }
.pc-title { text-wrap: balance; font-family: var(--f-sign); font-size: 30px; line-height: 1; letter-spacing: .02em; text-transform: uppercase; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.pc-sub { font-size: 14px; line-height: 1.3; color: #E3EDF3; }
.pc-cta { margin-top: 4px; font-family: var(--f-sign); font-size: 18px; letter-spacing: .06em; text-transform: uppercase; color: var(--marigold); }

.promo-rail { display: none; }
.promo-strip { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; padding: 4px 16px 10px; margin: 6px 0 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.promo-strip::-webkit-scrollbar { display: none; }
.promo-strip .promo-card { flex: 0 0 min(78%, 300px); height: 200px; scroll-snap-align: start; }

@media (min-width: 1380px) {
  .promo-strip { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 1240px; margin: 6px auto 4px; padding: 4px 20px 10px; overflow: visible; }
  .promo-strip .promo-card { height: 190px; }
  .promo-strip .promo-card:nth-child(n+5) { display: none; }
  .promo-rail { --w: clamp(160px, calc((100vw - 986px) / 2 - 36px), 230px); display: block; position: absolute; top: 28px; height: 350px; width: var(--w); z-index: 1; }
  .promo-left { left: 20px; }
  .promo-right { right: 20px; }
  .promo-rail .promo-card { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s, transform .2s cubic-bezier(.16,1,.3,1); }
  .promo-rail .promo-card.is-on { opacity: 1; visibility: visible; }
  .promo-rail .pc-title { font-size: 32px; text-wrap: balance; }
}
@media (prefers-reduced-motion: reduce) { .promo-card, .promo-rail .promo-card, .pc-img { transition: none; } }

/* Category chips: centred when they fit, still scrollable from the start when they don't. */
.cat-strip { justify-content: safe center; }

/* More languages: one control, a small list under it. */
.lang-more { position: relative; }
.lang-more summary { list-style: none; cursor: pointer; color: #AFC4D0; padding: 2px 6px; border: 1px solid #5F8196; border-radius: 3px; }
.lang-more summary::-webkit-details-marker { display: none; }
.lang-more[open] summary, .lang-more summary:hover { color: var(--marigold); border-color: var(--marigold); }
.lang-more-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; display: flex; flex-direction: column; gap: 2px; min-width: 96px; background: var(--enamel-deep); border: 2px solid var(--marigold); border-radius: 4px; padding: 6px; box-shadow: 0 8px 20px rgba(0,0,0,.35); }
.lang-more-list .lang-opt { padding: 6px 8px; }

/* ---------- Bulgarian motifs: a шевица (folk embroidery) band under the header and above the footer ---------- */
.site-header { border-bottom: 0; }
.site-header::after, .site-footer::before { content: ""; display: block; height: 10px; background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2222%22 height=%2210%22 viewBox=%220 0 22 10%22%3E%3Crect width=%2222%22 height=%2210%22 fill=%22%23F4F1E6%22/%3E%3Crect x=%2210%22 y=%220%22 width=%222%22 height=%222%22 fill=%22%23C93B27%22/%3E%3Crect x=%228%22 y=%222%22 width=%222%22 height=%222%22 fill=%22%23C93B27%22/%3E%3Crect x=%2210%22 y=%222%22 width=%222%22 height=%222%22 fill=%22%23C93B27%22/%3E%3Crect x=%2212%22 y=%222%22 width=%222%22 height=%222%22 fill=%22%23C93B27%22/%3E%3Crect x=%226%22 y=%224%22 width=%222%22 height=%222%22 fill=%22%23C93B27%22/%3E%3Crect x=%228%22 y=%224%22 width=%222%22 height=%222%22 fill=%22%23C93B27%22/%3E%3Crect x=%2210%22 y=%224%22 width=%222%22 height=%222%22 fill=%22%2310293A%22/%3E%3Crect x=%2212%22 y=%224%22 width=%222%22 height=%222%22 fill=%22%23C93B27%22/%3E%3Crect x=%2214%22 y=%224%22 width=%222%22 height=%222%22 fill=%22%23C93B27%22/%3E%3Crect x=%228%22 y=%226%22 width=%222%22 height=%222%22 fill=%22%23C93B27%22/%3E%3Crect x=%2210%22 y=%226%22 width=%222%22 height=%222%22 fill=%22%23C93B27%22/%3E%3Crect x=%2212%22 y=%226%22 width=%222%22 height=%222%22 fill=%22%23C93B27%22/%3E%3Crect x=%2210%22 y=%228%22 width=%222%22 height=%222%22 fill=%22%23C93B27%22/%3E%3Crect x=%220%22 y=%224%22 width=%222%22 height=%222%22 fill=%22%23F3B61F%22/%3E%3Crect x=%2220%22 y=%224%22 width=%222%22 height=%222%22 fill=%22%23F3B61F%22/%3E%3C/svg%3E") repeat-x left center; }
.site-header::after { border-top: 3px solid var(--enamel-deep); }
.site-footer::before { border-bottom: 3px solid var(--enamel-deep); margin-bottom: 0; }
.brand-map { width: 30px; height: auto; margin-right: 10px; flex: none; fill: var(--marigold); filter: drop-shadow(0 1px 0 rgba(0,0,0,.3)); }
@media (max-width: 480px) { .brand { font-size: 25px; } .brand-map { width: 24px; margin-right: 6px; } }
