/* Kosovo Guide — components: cards, tiles, gallery, weather, reviews, map, panels. */

/* Hero (Home) */
.hero { background: radial-gradient(1200px 500px at 80% -10%, rgba(232,167,53,.16), transparent 60%),
  linear-gradient(180deg, var(--navy-950), var(--navy-900)); border-bottom: 1px solid var(--border); }
.hero-inner { padding-top: 22px; padding-bottom: 30px; }
.hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; min-height: 40px; }
.hero-top .weather-slot { min-width: 0; }
/* Advertise button (top right of Home, like the app) */
.advertise-btn { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; height: 42px; padding: 0 16px; border-radius: var(--pill);
  border: 1px solid rgba(232,167,53,.35); background: var(--surface); color: var(--accent); font-weight: 700; font-size: .92rem; text-decoration: none; white-space: nowrap; }
.advertise-btn:hover { background: var(--gold-soft); border-color: var(--accent); color: var(--gold-300); }
@media (max-width: 360px) { .advertise-btn span { display: none; } .advertise-btn { width: 42px; padding: 0; justify-content: center; } }
.hero-kicker { color: var(--accent); margin: 26px 0 0; font-weight: 600; }
.hero { position: relative; overflow: hidden; }
.hero-title-row { display: flex; align-items: center; gap: clamp(14px, 3vw, 24px); }
.hero-title { font-size: clamp(3rem, 11vw, 5.4rem); margin: 0; line-height: 1; letter-spacing: .02em; }

/* Kosovo flag next to the title: tap it → it rises to the top of the hero and the history opens below */
.flag-slot { width: clamp(64px, 12vw, 96px); aspect-ratio: 1.4; flex-shrink: 0; }
.flag-btn { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 6px;
  box-shadow: 0 8px 22px rgba(0,0,0,.45); transition: transform .2s ease; }
.flag-btn:hover { transform: translateY(-3px) rotate(-2deg); }
.kosovo-flag { display: block; width: 100%; height: 100%; border-radius: 6px; }
.flag-btn .kosovo-flag { animation: flag-wave 3.2s ease-in-out infinite; transform-origin: left center; }
@keyframes flag-wave { 0%, 100% { transform: skewY(0) scaleX(1); } 25% { transform: skewY(-2deg) scaleX(.98); } 75% { transform: skewY(2deg) scaleX(1.01); } }
.flag-btn .flag-shine { animation: flag-shine 3.2s ease-in-out infinite; }
@keyframes flag-shine { 0%, 100% { opacity: 0; transform: translateX(-60%); } 50% { opacity: 1; transform: translateX(60%); } }
.flag-hint { color: var(--text-muted); font-size: .85rem; margin: -8px 0 18px; }
@media (prefers-reduced-motion: reduce) { .kosovo-flag, .flag-shine { animation: none !important; } }

/* About Kosovo content (inside the popup) */
.about-intro { color: var(--text-2); font-size: 1.05rem; margin: 14px 0 26px; }
.about-dialog-body h3 { color: var(--accent); text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin: 26px 0 12px; }
.facts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 0; }
.facts-grid div { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; }
.facts-grid dt { color: var(--text-muted); font-size: .78rem; }
.facts-grid dd { margin: 2px 0 0; font-weight: 700; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid rgba(232,167,53,.35); display: grid; gap: 18px; }
.timeline li { position: relative; display: grid; gap: 4px; }
.timeline li::before { content: ""; position: absolute; left: -25px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--navy-900); }
.tl-period { color: var(--accent); font-weight: 800; font-size: .82rem; letter-spacing: .04em; }
.timeline p { margin: 4px 0 0; color: var(--text-2); }
.flag-note { display: flex; gap: 16px; align-items: center; margin-top: 28px; padding: 16px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.flag-note .kosovo-flag.small { width: 84px; height: 60px; flex-shrink: 0; }
.flag-note p { margin: 0; color: var(--text-2); }
.hero-tagline { color: var(--text-2); margin: 8px 0 22px; font-size: 1.05rem; }
.quick-actions { display: flex; gap: 8px; overflow-x: auto; padding: 16px 0 4px; scrollbar-width: none; }
.quick-actions a { display: inline-flex; gap: 8px; align-items: center; padding: 9px 14px; border-radius: var(--pill); background: var(--surface);
  border: 1px solid var(--border); color: var(--text); text-decoration: none; white-space: nowrap; font-weight: 600; font-size: .88rem; }
.quick-actions a .ion { color: var(--accent); }
@media (min-width: 600px) { .quick-actions { flex-wrap: wrap; overflow: visible; } }
.quick-actions a:hover { border-color: rgba(232,167,53,.45); }

/* Search box with live results */
.search-box { position: relative; display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--pill); padding: 6px 6px 6px 18px; max-width: 640px; }
.search-box:focus-within { border-color: rgba(232,167,53,.6); box-shadow: var(--focus); }
.search-box > .ion { color: var(--text-muted); }
.search-box input[type="search"] { flex: 1; min-width: 0; min-height: 0; background: none; border: 0; border-radius: 0; color: var(--text); font: inherit; padding: 8px 0; outline: none; box-shadow: none; }
.search-box input::-webkit-search-cancel-button { filter: invert(1); }
.search-results { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 90; background: var(--navy-750); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px; max-height: 420px; overflow-y: auto; }
.search-results a { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: var(--radius-sm); color: var(--text); text-decoration: none; }
.search-results a:hover, .search-results a[aria-selected="true"] { background: var(--gold-soft); }
.search-results img, .search-results .sr-icon { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex-shrink: 0; background: var(--surface);
  display: inline-flex; align-items: center; justify-content: center; color: var(--accent); }
.search-results small { display: block; color: var(--text-muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-results .sr-text { min-width: 0; }
.search-results .sr-all { justify-content: center; font-weight: 700; color: var(--accent); }
.search-results .sr-empty { padding: 12px; color: var(--text-muted); margin: 0; }
.page-search .search-box { margin-bottom: 24px; }

/* Weather */
.weather-slot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.weather-slot:empty { display: none; }
.weather-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--pill); background: var(--surface);
  border: 1px solid var(--border); font-size: .88rem; }
.weather-chip .ion { color: var(--accent); }
.weather-chip span { color: var(--text-2); }
.weather-chip.is-loading { color: var(--text-muted); }
.weather-card { width: 100%; background: linear-gradient(135deg, var(--navy-750), var(--navy-800)); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 18px; margin: 18px 0; }
.weather-title { font-size: .95rem; color: var(--text-2); margin-bottom: 8px; }
.weather-now { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.weather-icon { font-size: 2.1rem; color: var(--accent); }
.weather-temp { font-size: 2.2rem; font-weight: 800; }
.weather-cond { font-weight: 700; }
.weather-today { margin-left: auto; display: flex; flex-direction: column; text-align: right; font-weight: 700; }
.weather-today small { color: var(--text-muted); font-weight: 500; }
.weather-meta { color: var(--text-2); font-size: .88rem; margin: 10px 0; }
.forecast { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 8px; padding: 0; list-style: none; }
.forecast li { display: flex; flex-direction: column; align-items: center; gap: 4px; background: rgba(255,255,255,.03); border-radius: var(--radius-sm); padding: 8px 4px; font-size: .85rem; }
.forecast .ion { color: var(--accent); font-size: 1.3rem; }
.weather-card .source { font-size: .75rem; color: var(--text-muted); margin: 0; }

/* Cards */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: transform .18s ease, border-color .18s ease; }
.card:hover { transform: translateY(-2px); border-color: rgba(232,167,53,.35); }
.card-link { display: block; color: inherit; text-decoration: none; height: 100%; }
.card-link:hover { color: inherit; }
.card-link.row { display: flex; gap: 14px; align-items: stretch; }
.card-media { position: relative; aspect-ratio: 4 / 3; background: var(--surface); overflow: hidden; }
.card-media.tall { aspect-ratio: 4 / 4.6; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.media-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 2.4rem;
  color: var(--c, var(--accent)); background: linear-gradient(135deg, var(--navy-700), var(--navy-800)); }
.card-body { padding: 12px 14px 14px; min-width: 0; }
.card-title { font-size: 1rem; font-weight: 700; margin: 0 0 4px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.card-sub { color: var(--text-muted); font-size: .85rem; margin: 0 0 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-badge { position: absolute; left: 10px; top: 10px; display: inline-flex; gap: 5px; align-items: center; padding: 4px 10px; border-radius: var(--pill);
  font-size: .72rem; font-weight: 700; color: #fff; background: color-mix(in srgb, var(--c, #E8A735) 82%, black); }
.cat-badge.gold { background: var(--accent); color: var(--navy-950); }
.cat-badge.static { position: static; text-decoration: none; margin-bottom: 10px; }
.distance-badge { position: absolute; right: 10px; bottom: 10px; padding: 3px 9px; border-radius: var(--pill); background: rgba(6,10,20,.75); font-size: .75rem; font-weight: 700; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 0; padding: 0; list-style: none; }
.tags li { background: var(--gold-soft); color: var(--accent); font-size: .72rem; padding: 3px 8px; border-radius: var(--pill); }
.price { color: var(--text-2); margin: 4px 0 0; font-size: .9rem; }
.price strong { color: var(--accent); }
.place-card.is-compact .card-media { aspect-ratio: 16 / 10; }

/* Stars */
.stars { display: inline-flex; align-items: center; gap: 1px; color: var(--accent); font-size: .85rem; }
.stars .ion { font-size: 1em; }
.stars-value { color: var(--text-2); margin-left: 6px; font-weight: 600; }

/* Events */
.event-card .card-link.row { padding: 10px; }
.event-thumb { width: 96px; min-height: 96px; border-radius: var(--radius); overflow: hidden; flex-shrink: 0; background: var(--surface);
  display: flex; align-items: center; justify-content: center; font-size: 1.8rem; color: var(--accent); }
.event-thumb img { width: 100%; height: 100%; object-fit: cover; }
.event-card .card-body { padding: 2px 4px; }
.event-date { color: var(--accent); font-size: .82rem; font-weight: 700; margin: 0 0 4px; }
.status-pill { display: inline-block; padding: 3px 10px; border-radius: var(--pill); background: var(--gold-soft); color: var(--accent); font-size: .72rem; font-weight: 800; margin-bottom: 6px; }
.status-pill.is-now { background: var(--accent); color: var(--navy-950); }

/* Category tiles */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 12px; }
.cat-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; text-decoration: none; color: var(--text-2); font-size: .82rem; font-weight: 600; }
.cat-icon { display: inline-flex; width: 60px; height: 60px; border-radius: 18px; align-items: center; justify-content: center; background: var(--surface);
  border: 1px solid var(--border); color: var(--accent); font-size: 1.55rem; flex-shrink: 0; transition: border-color .15s ease, background .15s ease; }
.cat-tile:hover .cat-icon { border-color: var(--c); background: color-mix(in srgb, var(--c) 14%, var(--surface)); }
.cat-tile:hover { color: var(--text); }
.cat-list { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.cat-row { display: flex; align-items: center; gap: 14px; padding: 12px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); text-decoration: none; }
.cat-row .cat-icon { width: 48px; height: 48px; border-radius: 14px; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); border: 0; }
.cat-row small { display: block; color: var(--text-muted); font-size: .82rem; }
.cat-row:hover { border-color: var(--c); color: var(--text); }
.chev { margin-left: auto; color: var(--text-muted); }
.tile-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 600px) { .tile-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .tile-grid { grid-template-columns: repeat(4, 1fr); } }
.count-tile { display: flex; flex-direction: column; gap: 4px; padding: 14px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); text-decoration: none; }
.count-tile .cat-icon { width: 42px; height: 42px; border-radius: 12px; font-size: 1.25rem; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); border: 0; margin-bottom: 6px; }
.count-tile small { color: var(--text-muted); }
.count-tile:hover { border-color: var(--c); color: var(--text); }

/* Pills (filters) */
.pill-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 20px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: var(--pill); border: 1px solid var(--border); background: none;
  color: var(--text-2); font: 700 .85rem/1.2 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; }
.pill:hover { color: var(--text); border-color: rgba(232,167,53,.45); }
.pill.is-active { background: var(--accent); border-color: var(--accent); color: var(--navy-950); }
.pill-cat .ion { color: var(--c); }
.pill-cat.is-active { background: var(--c); border-color: var(--c); color: #fff; }
.pill-cat.is-active .ion { color: #fff; }

/* Detail pages: gallery hero */
.detail-hero { position: relative; background: var(--navy-950); }
.gallery { position: relative; }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; height: clamp(280px, 52vh, 560px); }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide { flex: 0 0 100%; scroll-snap-align: center; border: 0; padding: 0; margin: 0; background: var(--navy-950); cursor: zoom-in; }
@media (min-width: 900px) { .gallery-slide { flex-basis: 72%; } .gallery-slide:only-child { flex-basis: 100%; } }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery-empty { height: 200px; display: flex; align-items: center; justify-content: center; font-size: 3rem; color: var(--navy-600); background: linear-gradient(135deg, var(--navy-750), var(--navy-950)); }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: rgba(6,10,20,.6); color: #fff; font-size: 1.3rem; cursor: pointer; display: none; align-items: center; justify-content: center; }
.gallery-nav.prev { left: 14px; } .gallery-nav.next { right: 14px; }
@media (hover: hover) { .gallery-nav { display: inline-flex; } }
.gallery-count { position: absolute; right: 14px; bottom: 14px; background: rgba(6,10,20,.7); padding: 4px 10px; border-radius: var(--pill); font-size: .78rem; font-weight: 700; }
.hero-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 20px 20px; background: linear-gradient(transparent, rgba(6,10,20,.9)); pointer-events: none; }
.hero-caption h1 { margin: 0; font-size: clamp(2rem, 7vw, 3.4rem); }
.hero-caption p { margin: 0; color: rgba(255,255,255,.85); }
@media (min-width: 900px) { .hero-caption { padding-left: calc((100vw - var(--narrow)) / 2 + 28px); } }
.hero-actions { position: absolute; right: 14px; top: 14px; display: flex; gap: 8px; }
.hero-actions form { margin: 0; display: flex; }
.fav-btn .fav-on { display: none; color: #ff5a6e; }
.fav-btn.is-on .fav-on { display: inline; } .fav-btn.is-on .fav-off { display: none; }

/* Full-screen photo viewer */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(3,5,10,.96); color: #fff; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(0,0,0,.8); }
.lightbox-img { max-width: 100vw; max-height: 100vh; object-fit: contain; }
.lightbox-close, .lightbox-nav { position: absolute; z-index: 2; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 1.4rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-nav.prev { left: 16px; top: 50%; } .lightbox-nav.next { right: 16px; top: 50%; }
.lightbox-count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); font-weight: 700; }

/* Place page */
.place-head { padding: 20px 0 6px; }
.place-head h1 { margin-bottom: 6px; }
.badge-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; }
.price-level { color: var(--accent); font-weight: 800; letter-spacing: .1em; }
.status-badge { padding: 4px 12px; border-radius: var(--pill); font-weight: 800; font-size: .8rem; color: #fff; }
.status-badge.is-open { background: var(--success); } .status-badge.is-closed { background: var(--danger); }
.directions { position: relative; }
.directions summary { list-style: none; }
.directions summary::-webkit-details-marker { display: none; }
.menu-pop { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; min-width: 200px; background: var(--navy-750); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 6px; box-shadow: var(--shadow); }
.menu-pop a { display: block; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--text); text-decoration: none; font-weight: 600; }
.menu-pop a:hover { background: var(--gold-soft); }
.info-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.info-pills span { display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: var(--pill); background: var(--surface); border: 1px solid var(--border); font-size: .85rem; color: var(--text-2); }
.hashtags { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 0; padding: 0; list-style: none; color: var(--text-muted); font-size: .85rem; }
.wiki .clamp { color: var(--text-2); white-space: normal; }
.wiki .clamp.is-clamped { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.wiki-links { display: flex; gap: 16px; align-items: center; }
.audio-guide { width: 100%; margin-top: 10px; }
.place-guide h2 { margin-top: 0; }
.place-guide h3 { margin-top: 22px; }
.place-guide p { color: var(--text-2); }
.why-visit { background: var(--gold-soft); border-left: 3px solid var(--accent); padding: 12px 16px; border-radius: var(--radius-sm); margin: 16px 0; }
.why-visit h3 { margin: 0 0 4px; color: var(--accent); }
.why-visit p { margin: 0; color: var(--text); }
.guide-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin: 16px 0; }
.guide-facts > div { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; }
.guide-facts .ion { grid-row: span 2; font-size: 1.4rem; }
.guide-facts small { color: var(--text-muted); }
.bullets { padding-left: 0; list-style: none; margin: 0 0 1em; }
.bullets li { position: relative; padding-left: 20px; margin-bottom: 8px; color: var(--text-2); }
.bullets li::before { content: ""; position: absolute; left: 4px; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.muted-bullets li::before { background: var(--text-muted); }
.fact-line { color: var(--text-2); }
.tip-card { display: flex; gap: 12px; background: var(--gold-soft); border: 1px solid rgba(232,167,53,.25); border-radius: var(--radius); padding: 14px 16px; margin: 20px 0; }
.tip-card p { margin: 4px 0 0; color: var(--text-2); }
.hours { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; }
.hours th, .hours td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); font-weight: 500; color: var(--text-2); }
.hours td { text-align: right; font-weight: 700; color: var(--text); }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--accent); font-weight: 800; background: var(--gold-soft); }
.contact-list { display: grid; gap: 8px; }
.contact-list a { display: flex; gap: 12px; align-items: center; padding: 12px 14px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); text-decoration: none; word-break: break-all; }
.contact-list .ion { color: var(--accent); }
.fact-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.fact { display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; background: var(--card); border: 1px solid var(--border); border-radius: var(--pill); font-size: .9rem; }
.fact .ion { color: var(--accent); }
.fact small { color: var(--text-muted); }
.info-list { display: grid; gap: 12px; margin: 16px 0; }
.info-list p { display: flex; gap: 12px; margin: 0; align-items: flex-start; }
.info-list small { display: block; color: var(--text-muted); }
.detail-list { display: grid; gap: 12px; margin: 20px 0; }
.detail-list div { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; }
.detail-list dt { color: var(--text-muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.detail-list dd { margin: 4px 0 0; }
.amenities { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; padding: 0; list-style: none; }
.amenities li { color: var(--text-2); }

/* Reviews */
.review-summary { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-size: .9rem; }
.review-form-wrap { margin-bottom: 18px; }
.review-form-wrap summary { list-style: none; }
.review-form-wrap summary::-webkit-details-marker { display: none; }
.review-form { margin-top: 14px; }
.review-form textarea { width: 100%; }
.star-input { border: 0; padding: 0; margin: 0 0 10px; display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.star-input legend { width: 100%; float: left; font-weight: 700; margin-bottom: 6px; color: var(--text-2); }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 1.9rem; color: var(--navy-600); cursor: pointer; transition: color .1s ease; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: var(--accent); }
.star-input input:focus-visible + label { box-shadow: var(--focus); border-radius: 6px; }
.review-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.review { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.review.is-mine { border-color: rgba(232,167,53,.5); }
.review.is-extra { display: none; }
.reviews.show-all .review.is-extra { display: block; }
.review-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 6px; }
.review-head time { margin-left: auto; }
.review p { margin: 0; color: var(--text-2); white-space: pre-line; }
.signin-review { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.signin-review p { margin: 0; }
.field-error { color: #ff8e92; font-size: .88rem; margin: 6px 0 0; }

/* Maps (MapLibre + OpenFreeMap) */
.map-box { position: relative; height: var(--h, 240px); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); background: var(--navy-800); }
.map { width: 100%; height: 100%; }
.map-fallback { padding: 20px; color: var(--text-muted); text-align: center; }
.map-overlay-link { position: absolute; left: 12px; bottom: 30px; display: inline-flex; gap: 6px; align-items: center; background: var(--accent); color: var(--navy-950);
  font-weight: 700; padding: 8px 14px; border-radius: var(--pill); text-decoration: none; font-size: .85rem; box-shadow: var(--shadow); }
.kg-pin { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; cursor: pointer; background: none; border: 0; padding: 0; }
.kg-pin .pin { width: 30px; height: 30px; border-radius: 50%; background: var(--c); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35);
  display: flex; align-items: center; justify-content: center; transition: transform .15s ease; color: #fff; font-family: "Ionicons"; font-size: 15px; line-height: 1; }
.kg-pin .dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.kg-pin.sel { z-index: 3; } .kg-pin.sel .pin { transform: scale(1.35); }
.kg-me { width: 16px; height: 16px; border-radius: 50%; background: #2E86FF; border: 3px solid #fff; box-shadow: 0 0 0 7px rgba(46,134,255,.22); }
.maplibregl-ctrl-attrib { font-size: 10px; }
.maplibregl-ctrl-attrib a { color: #333; }
.map-page { position: relative; height: calc(100vh - var(--header-h) - var(--tabbar-h) - 20px - env(safe-area-inset-bottom)); min-height: 420px; }
@media (min-width: 900px) { .map-page { height: calc(100vh - var(--header-h)); } }
.map-full { position: absolute; inset: 0; }
.map-filters { position: absolute; z-index: 5; left: 0; right: 0; top: 0; display: flex; gap: 8px; overflow-x: auto; padding: 12px; scrollbar-width: none;
  background: linear-gradient(rgba(10,14,26,.85), rgba(10,14,26,0)); }
.map-filters .pill { background: rgba(15,22,41,.92); }
.map-filters .pill.is-active { background: var(--accent); color: var(--navy-950); }
.map-filters .pill-cat.is-active { background: var(--c); color: #fff; }
.locate-btn { position: absolute; z-index: 5; right: 12px; bottom: 40px; background: var(--navy-800); border: 1px solid var(--border); color: var(--accent); }
.map-preview { position: absolute; z-index: 6; left: 12px; right: 70px; bottom: 28px; max-width: 460px; display: flex; gap: 12px; background: var(--navy-800);
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 10px; box-shadow: var(--shadow); }
.map-preview img { width: 96px; height: 96px; border-radius: var(--radius); object-fit: cover; flex-shrink: 0; }
.map-preview h2 { font-size: 1rem; margin: 0 0 4px; }
.map-preview p { margin: 0 0 8px; }
.preview-close { position: absolute; right: 6px; top: 6px; background: none; border: 0; color: var(--text-muted); cursor: pointer; font-size: 1.1rem; }

/* Panels, empty states, CTAs */
.panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; margin: 16px 0; }
.empty-state { text-align: center; padding: 50px 16px; max-width: 520px; margin: 0 auto; }
.empty-state h2 { font-size: 1.15rem; }
.empty-state p { color: var(--text-muted); }
.big-icon { display: inline-flex; width: 72px; height: 72px; border-radius: 50%; align-items: center; justify-content: center; background: var(--gold-soft); color: var(--accent); font-size: 2rem; margin-bottom: 14px; }
.success-panel { text-align: center; padding: 30px 20px; }
.cta-band { display: grid; gap: 16px; align-items: center; background: linear-gradient(135deg, var(--navy-700), var(--navy-800)); border: 1px solid rgba(232,167,53,.25); border-radius: var(--radius-lg); padding: 24px; }
@media (min-width: 800px) { .cta-band { grid-template-columns: 1.4fr 1fr; } .cta-band .btn-row { justify-content: flex-end; } }
.cta-band p { color: var(--text-2); margin: 0; }
.cta-panel { margin-top: 36px; border-color: rgba(232,167,53,.25); }
.cta-panel p { color: var(--text-2); }
.benefits { list-style: none; padding: 0; display: grid; gap: 14px; margin: 14px 0 20px; }
.benefits li { display: flex; gap: 12px; }
.benefits li > .ion { font-size: 1.4rem; margin-top: 2px; }
.benefits p { margin: 2px 0 0; color: var(--text-muted); font-size: .9rem; }
.fee-notice { display: flex; gap: 12px; background: rgba(91,155,217,.1); border: 1px solid rgba(91,155,217,.35); border-radius: var(--radius); padding: 14px; margin: 18px 0 10px; }
.fee-icon { color: var(--blue-400); font-size: 1.4rem; }
.fee-notice p { margin: 4px 0 0; color: var(--text-2); font-size: .92rem; }
.account-required { text-align: center; padding: 28px 18px; }
.account-required p { color: var(--text-2); max-width: 46ch; margin-left: auto; margin-right: auto; }

/* Guides */
.guide-card .card-link.row { padding: 12px; }
.guide-card.is-featured { border-color: rgba(232,167,53,.45); }
.guide-logo { width: 72px; height: 72px; border-radius: var(--radius); overflow: hidden; flex-shrink: 0; background: var(--gold-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 2rem; }
.guide-logo img { width: 100%; height: 100%; object-fit: cover; }
.guide-logo.lg { width: 96px; height: 96px; }
.guide-head { display: flex; gap: 16px; align-items: center; padding: 24px 0 10px; }
.guide-head h1 { margin: 4px 0; }

/* Stays filters */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin: 4px 0 18px; }
.filters label { display: flex; flex-direction: column; gap: 4px; font-size: .78rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }
.filters select { min-width: 140px; }

/* Shared form controls */
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="url"], input[type="number"], input[type="search"], select, textarea {
  background: var(--navy-800); border: 1px solid rgba(255,255,255,.14); color: var(--text); border-radius: var(--radius-sm); padding: 11px 14px; font: inherit; min-height: 44px; }
select { appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus); }
textarea { resize: vertical; line-height: 1.5; }
::placeholder { color: var(--text-muted); opacity: 1; }
.search-inline { display: flex; align-items: center; gap: 8px; background: var(--navy-800); border: 1px solid rgba(255,255,255,.14); border-radius: var(--pill); padding: 0 14px; }
.search-inline input { border: 0; background: none; min-height: 40px; padding: 0; flex: 1; box-shadow: none !important; }
.search-inline.wide { margin: 12px 0 16px; }

/* Emergency */
.emergency-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.emergency-card { display: flex; gap: 12px; align-items: center; padding: 14px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); text-decoration: none; }
.emergency-card small { display: block; color: var(--text-muted); }
.emergency-card:hover { border-color: rgba(229,72,77,.5); color: var(--text); }
.em-icon { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: rgba(229,72,77,.12); color: var(--danger); font-size: 1.3rem; flex-shrink: 0; }
.em-icon.gold-soft { background: var(--gold-soft); color: var(--accent); }
.em-number { margin-left: auto; font-size: 1.5rem; font-weight: 800; color: var(--danger); }
.embassy-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.embassy { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.embassy-head { display: flex; gap: 12px; align-items: center; }
.embassy-head small { display: block; }
.embassy .btn-row { margin: 8px 0 0; }
.embassy .btn-sm { word-break: break-all; }
.flag.big { font-size: 2rem; line-height: 1; }

/* Tips, contact, about */
.tip-row { display: flex; gap: 14px; padding: 16px; }
.tip-row:hover { transform: none; }
.tip-row p { margin: 0; color: var(--text-2); }
.contact-card { display: flex; gap: 14px; align-items: center; text-decoration: none; color: var(--text); }
.contact-card strong { display: block; font-size: 1.1rem; }
.about-hero { display: flex; align-items: center; gap: 16px; padding-top: 28px; }

/* Profile */
.profile-card { display: flex; gap: 16px; align-items: center; }
.profile-card h2 { margin: 0; }
.profile-card p { margin: 2px 0 0; }
.signin-prompt p { display: flex; gap: 10px; align-items: center; }
.menu-title { font-size: .75rem; letter-spacing: .12em; color: var(--text-muted); margin: 0 0 8px 4px; }
.menu { padding: 6px; }
.menu a { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: var(--radius-sm); color: var(--text); text-decoration: none; }
.menu a:hover { background: var(--surface); }
.menu a small { color: var(--text-muted); margin-left: auto; }
.menu a small + .chev { margin-left: 8px; }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 28px 0; flex-wrap: wrap; }

/* Misc */
.spin .ion { animation: spin 1.2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.auth-wrap { max-width: 460px; padding-top: 24px; }

/* Place page layout */
.place-layout { display: flex; flex-direction: column; }
.place-main, .place-side { display: contents; }
.pl-block:empty { display: none; }
.pl-block > .section { margin: 0; }
.pl-block { margin-bottom: 28px; }
.pl-block.o-1 { margin-bottom: 14px; }
.o-1 { order: 1; } .o-2 { order: 2; } .o-3 { order: 3; } .o-4 { order: 4; } .o-5 { order: 5; } .o-6 { order: 6; } .o-7 { order: 7; }
.o-8 { order: 8; } .o-9 { order: 9; } .o-10 { order: 10; } .o-11 { order: 11; } .o-12 { order: 12; } .o-13 { order: 13; }
.place-side .weather-card { margin: 0; }
@media (min-width: 1100px) {
  .place-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: start; }
  .place-main, .place-side { display: block; }
  .place-side { position: sticky; top: calc(var(--header-h) + 20px); padding-top: 24px; }
  .place-side .pl-block { margin-bottom: 22px; }
  .place-side h2 { font-size: 1.1rem; }
}
@media (max-width: 1099px) { .place-page { max-width: var(--narrow); } }

/* A little more breathing room on small phones */
@media (max-width: 420px) {
  .container { padding: 0 16px; }
  .section { margin: 30px 0; }
  .card-body { padding: 12px; }
  .panel { padding: 16px; }
  .page-header { padding-top: 22px; }
  .btn-row { gap: 8px; }
  .action-row .btn { flex: 1 1 auto; }
}

/* ── Kosovo flag on desktop: large flag at the bottom right of the hero, opens a popup ── */
.hero-inner { position: relative; }
.flag-big { display: none; }
@media (min-width: 1200px) and (hover: hover) and (pointer: fine) {
  .hero-title-row .flag-slot, .flag-hint { display: none !important; }
  .hero-inner { min-height: 440px; }
  .flag-big { display: block; position: absolute; right: 28px; bottom: 34px; width: clamp(280px, 25vw, 380px); padding: 0 0 0 14px;
    border: 0; background: none; cursor: pointer; color: var(--text-muted); text-align: left; }
  .flag-big .kosovo-flag { width: 100%; height: auto; aspect-ratio: 1.4; border-radius: 8px; box-shadow: 0 22px 50px rgba(0,0,0,.55);
    transform-origin: left center; animation: flag-wave-big 4s ease-in-out infinite; transition: transform .25s ease, box-shadow .25s ease; }
  .flag-big .flag-shine { animation: flag-shine 4s ease-in-out infinite; }
  .flag-big-pole { position: absolute; left: 0; top: -10px; bottom: -34px; width: 6px; border-radius: 3px; background: linear-gradient(90deg, #f5d87a, #b8862a); box-shadow: 0 0 0 1px rgba(0,0,0,.2); }
  .flag-big-pole::before { content: ""; position: absolute; left: -4px; top: -10px; width: 14px; height: 14px; border-radius: 50%; background: #f0c465; }
  .flag-big-hint { display: flex; gap: 6px; align-items: center; margin-top: 12px; font-size: .85rem; }
  .flag-big:hover .kosovo-flag { box-shadow: 0 26px 60px rgba(232,167,53,.25), 0 22px 50px rgba(0,0,0,.55); }
  .flag-big:hover .flag-big-hint { color: var(--accent); }
  .flag-big:focus-visible { box-shadow: none; }
  .flag-big:focus-visible .kosovo-flag { box-shadow: var(--focus), 0 22px 50px rgba(0,0,0,.55); }
  /* keep the hero text clear of the flag */
  .hero-inner > .hero-kicker, .hero-inner > .hero-title-row, .hero-inner > .hero-tagline, .hero-inner > .search-box, .hero-inner > .quick-actions { max-width: calc(100% - clamp(280px, 25vw, 380px) - 70px); }
}
@keyframes flag-wave-big { 0%, 100% { transform: perspective(600px) rotateY(0) skewY(0); } 30% { transform: perspective(600px) rotateY(-6deg) skewY(-1.5deg); } 70% { transform: perspective(600px) rotateY(4deg) skewY(1.2deg); } }
@media (prefers-reduced-motion: reduce) { .flag-big .kosovo-flag, .flag-big .flag-shine { animation: none !important; } }

/* About Kosovo popup (desktop) */
.about-dialog { width: min(880px, 92vw); max-height: 86vh; padding: 0; border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--navy-900); color: var(--text); box-shadow: 0 30px 80px rgba(0,0,0,.6); overflow: hidden; }
.about-dialog[open] { display: flex; flex-direction: column; animation: about-pop .45s cubic-bezier(.34, 1.3, .64, 1); transform-origin: 85% 90%; }
.about-dialog::backdrop { background: rgba(3,5,10,.7); backdrop-filter: blur(4px); }
@keyframes about-pop { from { opacity: 0; transform: scale(.55) translate(18%, 22%); } }
.about-dialog-head { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-bottom: 1px solid var(--border); background: var(--navy-800); position: relative; }
.about-dialog-head h2 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 1.7rem; }
.about-dialog-head .kosovo-flag.mini { width: 56px; height: 40px; flex-shrink: 0; }
.about-dialog-head .popup-x { position: static; margin-left: auto; }
.about-dialog-body { overflow-y: auto; padding: 6px 26px 26px; }
.about-dialog-body h3 { color: var(--accent); text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin: 26px 0 12px; }
/* Phones and iPads: the popup is a sheet that slides up from the bottom */
@media not all and (min-width: 1200px) and (hover: hover) and (pointer: fine) {
  .about-dialog { width: 100%; max-width: 760px; max-height: 90vh; margin: auto auto 0; border-radius: 22px 22px 0 0; border-bottom: 0;
    padding-bottom: env(safe-area-inset-bottom); }
  .about-dialog[open] { animation: sheet-up .42s cubic-bezier(.22, 1, .36, 1); }
  .about-dialog-head { padding: 22px 18px 14px; }
  .about-dialog-head::before { content: ""; position: absolute; top: 8px; left: 50%; width: 42px; height: 5px; margin-left: -21px; border-radius: 3px; background: rgba(255,255,255,.22); }
  .about-dialog-head h2 { font-size: 1.4rem; }
  .about-dialog-body { padding: 4px 18px 28px; }
}
@media (min-width: 761px) and (max-width: 1199px) { .about-dialog { border-radius: 22px 22px 0 0; } }
@keyframes sheet-up { from { transform: translateY(100%); } }
@media (prefers-reduced-motion: reduce) { .about-dialog[open] { animation: none; } }

/* Tours & guides card on Home */
.guide-tile .card-media img.is-logo { object-fit: contain; padding: 18px; background: var(--navy-800); }
.guide-tile.is-featured { border-color: rgba(232,167,53,.45); }

/* "Source: Wikipedia" link under descriptions */
.source-link { margin: -4px 0 0; }
.source-link a { text-decoration: none; display: inline-flex; gap: 5px; align-items: center; }
.source-link a:hover { color: var(--accent); }

/* Tours & guides and Places to stay: large photo cards (every listing has a photo) */
.listing-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.card-media.wide { aspect-ratio: 16 / 10; }
.listing-card .card-title { font-size: 1.1rem; }
.listing-card .card-body { padding: 14px 16px 16px; }
.listing-card.is-featured { border-color: rgba(232,167,53,.45); }
.card-desc { color: var(--text-2); font-size: .9rem; margin: 4px 0 8px; }

/* Favourite heart on place cards and Save button on place pages */
.place-card { position: relative; }
.card-fav { position: absolute; top: 8px; right: 8px; z-index: 2; margin: 0; }
.card-fav .round-btn { width: 38px; height: 38px; font-size: 1.05rem; }
.fav-form { margin: 0; display: inline-flex; }
.fav-label-btn .fav-on { display: none; color: #ff5a6e; }
.fav-label-btn.is-on { border-color: #ff5a6e; color: #ff8a98; }
.fav-label-btn.is-on .fav-on { display: inline; }
.fav-label-btn.is-on .fav-off { display: none; }
.place-card .distance-badge { right: auto; left: 10px; }

/* ── Explore (app-style rows + coloured category tiles) ───────────────── */
.explore-row { margin: 26px 0; }
.explore-row h2 { display: inline-flex; align-items: center; gap: 10px; }
.row-count { font-size: .78rem; font-weight: 700; color: var(--text-muted); background: var(--surface); border: 1px solid var(--border); border-radius: var(--pill); padding: 2px 10px; }
.cat-grid-color .cat-icon { color: var(--c); background: color-mix(in srgb, var(--c) 18%, var(--surface)); border-color: color-mix(in srgb, var(--c) 45%, transparent); }
.cat-grid-color .cat-tile:hover .cat-icon,
.cat-grid-color .cat-tile:focus-visible .cat-icon { background: var(--c); color: #fff; border-color: var(--c); }
.cat-grid-color .cat-tile { color: var(--text); }

/* ── Checkboxes outside the application forms (sign-up, reviews) ──────── */
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; color: var(--text-2); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex-shrink: 0; }
.check a { font-weight: 700; }
.check.has-error { color: var(--danger); }
.review-terms { margin: 10px 0 4px; font-size: .92rem; }
button[disabled], .btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ── Review "⋯" menu, report dialog ───────────────────────────────────── */
.review-menu { position: relative; }
.review-menu summary { list-style: none; width: 34px; height: 34px; }
.review-menu summary::-webkit-details-marker { display: none; }
.review-menu-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 220px; display: grid; padding: 6px; background: var(--navy-800);
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 14px 34px rgba(0,0,0,.45); }
.review-menu-list button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: var(--radius-sm); background: none;
  color: var(--text); font: inherit; font-size: .92rem; text-align: left; cursor: pointer; }
.review-menu-list button:hover, .review-menu-list button:focus-visible { background: var(--gold-soft); }
.review-menu-list [data-block-user] { color: var(--danger); }
.review-unblock { margin: 10px 0 0; }
.report-dialog { width: min(400px, calc(100vw - 32px)); padding: 22px 20px 14px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--navy-800); color: var(--text); }
.report-dialog::backdrop { background: rgba(3,5,10,.65); }
.report-dialog h2 { margin: 0 0 14px; font-size: 1.1rem; }
.report-reasons { display: grid; gap: 10px; margin-bottom: 8px; }
.report-reasons .btn { justify-content: flex-start; }
.resend-form { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px; margin-top: 14px; }
