/* ==========================================================================
   Virtual Plovdiv - "Philippopolis" theme on top of Bootstrap 5
   Limestone & marble surfaces, basalt header/footer, bronze accents,
   Roman-inscription headings (Forum) and a classical text face (EB Garamond).
   Both families cover Cyrillic.
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Forum&family=EB+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

:root {
    /* palette */
    --stone-50: #f8f5ee;   /* marble */
    --stone-100: #efe9dc;  /* limestone light */
    --stone-200: #e4dbc8;  /* limestone */
    --stone-300: #cfc2a6;  /* weathered edge */
    --stone-400: #a99a7c;
    --basalt: #1d211f;
    --basalt-2: #2a2f2c;
    --basalt-rgb: 29, 33, 31;
    --bronze: #b08d57;
    --bronze-light: #d9b97a;
    --bronze-dark: #7d6238;
    --brick: #9c3f2a;      /* Roman brick / terracotta */
    --brick-dark: #78301f;
    --brick-rgb: 156, 63, 42;
    --ink: #2b2622;
    --ink-soft: #5c524a;
    --radius: 4px;
    --shadow-slab: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 14px 28px -18px rgba(60, 42, 20, .55), 0 2px 6px -2px rgba(60, 42, 20, .25);
    --shadow-slab-hover: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 22px 34px -18px rgba(60, 42, 20, .6), 0 4px 10px -4px rgba(60, 42, 20, .3);
    --font-display: 'Forum', 'Georgia', 'Times New Roman', serif;
    --font-body: 'EB Garamond', 'Georgia', 'Times New Roman', serif;

    /* procedural textures (no image downloads) */
    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .36 0 0 0 0 .3 0 0 0 0 .22 0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
    --grain-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .34 0 0 0 0 .26 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
    --grain-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .95 0 0 0 0 .85 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
    --meander: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='16' viewBox='0 0 32 16'%3E%3Cpath d='M0 15H32M28 15V1H6V9H20V5H12' fill='none' stroke='%23b08d57' stroke-width='2'/%3E%3C/svg%3E");
    --meander-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='16' viewBox='0 0 32 16'%3E%3Cpath d='M0 15H32M28 15V1H6V9H20V5H12' fill='none' stroke='%237d6238' stroke-width='2'/%3E%3C/svg%3E");

    /* bootstrap wiring */
    --bs-body-font-family: var(--font-body);
    --bs-body-font-size: 1.08rem;
    --bs-body-line-height: 1.6;
    --bs-body-bg: var(--stone-100);
    --bs-body-color: var(--ink);
    --bs-heading-color: var(--ink);
    --bs-link-color: var(--brick);
    --bs-link-hover-color: var(--brick-dark);
    --bs-link-color-rgb: var(--brick-rgb);
    --bs-link-hover-color-rgb: 120, 48, 31;
    --bs-primary: var(--brick);
    --bs-primary-rgb: var(--brick-rgb);
    --bs-border-color: var(--stone-300);
    --bs-border-radius: var(--radius);
    --bs-secondary-color: var(--ink-soft);
    --bs-focus-ring-color: rgba(176, 141, 87, .35);
}

/* ---------- base ---------- */
html { scroll-behavior: smooth; }
body { position: relative; background-image: var(--grain); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, .display-font { font-family: var(--font-display); font-weight: 400; letter-spacing: .01em; }
h1, h2 { text-transform: uppercase; letter-spacing: .05em; }
.lead { font-size: 1.25rem; font-weight: 400; }
img { max-width: 100%; }
a { text-decoration: none; }
a:hover { text-decoration: underline; }
.btn, .nav-link, .card a, .badge, .page-link { text-decoration: none !important; }
small, .small { font-size: .88em; }

/* faded ruins behind the top of every page (photo from the original site, toned sepia) */
.site-backdrop { position: absolute; inset: 0 0 auto 0; height: min(78vw, 820px); z-index: 0; pointer-events: none; background: url("../images/ruins-FVswQWA.webp") top center / 100% auto no-repeat; mix-blend-mode: multiply; opacity: .32; -webkit-mask-image: linear-gradient(#000 15%, transparent 95%); mask-image: linear-gradient(#000 15%, transparent 95%); }
.site-header, main, .site-footer { position: relative; z-index: 1; }

/* ---------- bootstrap components ---------- */
.btn { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em; border-radius: var(--radius); padding: .55rem 1.1rem; }
.btn-lg { padding: .8rem 1.5rem; font-size: 1.05rem; }
.btn-sm { padding: .3rem .75rem; font-size: .8rem; letter-spacing: .06em; }
.btn-primary {
    --bs-btn-bg: var(--brick); --bs-btn-border-color: var(--brick-dark);
    --bs-btn-hover-bg: var(--brick-dark); --bs-btn-hover-border-color: #5e2518;
    --bs-btn-active-bg: var(--brick-dark); --bs-btn-active-border-color: #5e2518;
    --bs-btn-focus-shadow-rgb: var(--brick-rgb);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 2px 0 rgba(0, 0, 0, .12);
}
.btn-outline-primary {
    --bs-btn-color: var(--brick-dark); --bs-btn-border-color: var(--bronze);
    --bs-btn-hover-bg: var(--brick); --bs-btn-hover-border-color: var(--brick-dark); --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: var(--brick); --bs-btn-active-border-color: var(--brick-dark);
    --bs-btn-focus-shadow-rgb: var(--brick-rgb);
}
.btn-outline-secondary { --bs-btn-color: var(--ink-soft); --bs-btn-border-color: var(--stone-300); --bs-btn-hover-bg: var(--stone-200); --bs-btn-hover-border-color: var(--stone-400); --bs-btn-hover-color: var(--ink); }
.btn-light { --bs-btn-bg: var(--stone-50); --bs-btn-border-color: var(--stone-300); --bs-btn-color: var(--basalt); --bs-btn-hover-bg: #fff; --bs-btn-hover-border-color: var(--bronze); --bs-btn-hover-color: var(--brick-dark); box-shadow: inset 0 1px 0 #fff; }
.btn-dark { --bs-btn-bg: var(--basalt); --bs-btn-border-color: #000; --bs-btn-hover-bg: #000; }
.rounded-pill { border-radius: var(--radius) !important; }
.text-primary { color: var(--brick) !important; }
.bg-primary { background-color: var(--brick) !important; }
.bg-slate { background-color: var(--basalt) !important; color: #fff; }
.bg-stone { background: var(--stone-200) var(--grain-light); border-top: 1px solid var(--stone-300); border-bottom: 1px solid var(--stone-300); }
.text-ochre { color: var(--bronze-light) !important; }
.form-control, .form-select { background-color: var(--stone-50); border-color: var(--stone-300); border-radius: var(--radius); font-family: var(--font-body); }
.form-control:focus, .form-select:focus { border-color: var(--bronze); box-shadow: 0 0 0 .25rem rgba(176, 141, 87, .25); background-color: #fff; }
.form-check-input:checked { background-color: var(--brick); border-color: var(--brick-dark); }
.input-group-text { background: var(--stone-50); border-color: var(--stone-300); }
.breadcrumb { --bs-breadcrumb-divider: '›'; --bs-breadcrumb-divider-color: var(--bronze); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb .active { color: var(--brick-dark); }
.alert { border-radius: var(--radius); }
.rounded-vp { border-radius: var(--radius); }
.shadow-vp { box-shadow: var(--shadow-slab); }
.object-cover { object-fit: cover; }
.ratio-4x3-mobile { --bs-aspect-ratio: 75%; }
@media (min-width: 768px) { .ratio-4x3-mobile { --bs-aspect-ratio: 56.25%; } }

/* inscription-style section titles with a meander ornament */
.eyebrow { display: block; font-family: var(--font-body); font-style: italic; font-size: 1.05rem; letter-spacing: .04em; color: var(--bronze-dark); text-transform: none; margin-bottom: .1rem; }
.section-title { position: relative; display: inline-block; margin-bottom: 1.25rem; padding-bottom: .9rem; font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.section-title::after { content: ''; position: absolute; left: 0; bottom: 0; width: 128px; height: 16px; background: var(--meander) repeat-x left bottom; }
.ornament { display: flex; align-items: center; gap: 1rem; color: var(--bronze); }
.ornament::before, .ornament::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--bronze)); }
.ornament::after { background: linear-gradient(90deg, var(--bronze), transparent); }

/* ---------- Header (basalt band, like the original site) ---------- */
.site-header { position: sticky; top: 0; z-index: 1030; background: var(--basalt) var(--grain-dark); color: var(--stone-100); border-bottom: 1px solid rgba(176, 141, 87, .35); box-shadow: 0 2px 0 rgba(0, 0, 0, .35); }
.site-header::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: linear-gradient(90deg, transparent, var(--bronze) 20%, var(--bronze-light) 50%, var(--bronze) 80%, transparent); opacity: .9; }
.site-header .navbar { padding-top: .7rem; padding-bottom: .7rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; color: var(--stone-50); }
.brand:hover { text-decoration: none; color: #fff; }
.brand__logo { width: 44px; height: 44px; flex: 0 0 auto; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .4)); }
.brand__name { font-family: var(--font-display); font-size: 1.45rem; line-height: 1; letter-spacing: .06em; text-transform: uppercase; }
.brand__tag { display: block; font-family: var(--font-body); font-style: italic; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--bronze-light); margin-top: .3rem; }
/* ionic columns flanking the brand on wider screens, a nod to the old logo */
.brand--columns .brand__name { position: relative; padding: 0 1.4rem; }
.brand--columns .brand__name::before, .brand--columns .brand__name::after { content: ''; position: absolute; top: -.35rem; width: 15px; height: 2.6rem; background: var(--bronze-light); -webkit-mask: url("../images/column-FLqO6vU.svg") center / contain no-repeat; mask: url("../images/column-FLqO6vU.svg") center / contain no-repeat; opacity: .9; }
.brand--columns .brand__name::before { left: 0; }
.brand--columns .brand__name::after { right: 0; }
.navbar-nav .nav-link { color: var(--stone-200); font-family: var(--font-display); font-size: 1.02rem; text-transform: uppercase; letter-spacing: .08em; padding: .6rem .95rem; position: relative; }
.navbar-nav .nav-link::after { content: none; }
.navbar-nav .nav-link:hover, .navbar-nav .nav-link:focus { color: #fff; }
.navbar-nav .nav-link.active { color: var(--bronze-light); }
.navbar-nav .nav-link.active::before { content: ''; position: absolute; left: .95rem; right: .95rem; bottom: .3rem; height: 1px; background: var(--bronze-light); }
.navbar-nav .dropdown-toggle::after { display: inline-block; content: ''; border: 0; width: .5em; height: .5em; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg) translateY(-.2em); margin-left: .45em; vertical-align: middle; }
.dropdown-menu { background: var(--basalt-2) var(--grain-dark); border: 1px solid rgba(176, 141, 87, .4); border-radius: var(--radius); box-shadow: 0 18px 36px -14px rgba(0, 0, 0, .6); padding: .4rem; }
.dropdown-item { color: var(--stone-100); border-radius: 2px; padding: .5rem .8rem; display: flex; align-items: center; gap: .6rem; font-size: 1rem; }
.dropdown-item:hover, .dropdown-item:focus { background: rgba(176, 141, 87, .18); color: #fff; }
.dropdown-item:active, .dropdown-item.active { background: var(--brick); color: #fff; }
.dropdown-divider { border-color: rgba(176, 141, 87, .3); }
.cat-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); }
.lang-switch { display: inline-flex; border: 1px solid rgba(176, 141, 87, .55); border-radius: var(--radius); overflow: hidden; }
.lang-switch a { padding: .3rem .7rem; font-family: var(--font-display); font-size: .85rem; letter-spacing: .1em; color: var(--stone-200); }
.lang-switch a + a { border-left: 1px solid rgba(176, 141, 87, .55); }
.lang-switch a.active { background: var(--bronze); color: var(--basalt); }
.lang-switch a:hover { text-decoration: none; color: #fff; }
.lang-switch a.active:hover { color: var(--basalt); }
.navbar-toggler { border: 1px solid rgba(176, 141, 87, .55); border-radius: var(--radius); padding: .25rem .5rem; color: var(--stone-100); }
.navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgba(176, 141, 87, .35); }
@media (max-width: 575.98px) {
    .brand__name { font-size: 1.05rem; }
    .brand__tag { font-size: .66rem; margin-top: .2rem; }
    .brand__logo { width: 36px; height: 36px; }
    .lang-switch a { padding: .22rem .45rem; font-size: .78rem; }
    .navbar-toggler { padding: .15rem .4rem; }
}
@media (max-width: 991.98px) {
    .navbar-collapse { padding: .75rem 0 .5rem; border-top: 1px solid rgba(176, 141, 87, .3); margin-top: .6rem; }
    .navbar-nav .nav-link { padding: .75rem .5rem; }
    .navbar-nav .nav-link.active::before { left: .5rem; right: auto; width: 2rem; }
    .dropdown-menu { box-shadow: none; margin: .25rem 0 .5rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--basalt); }
.hero__media { position: absolute; inset: 0; z-index: 0; isolation: isolate; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); filter: saturate(.9) sepia(.12); }
.hero__media::after { content: ''; position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, rgba(20, 22, 20, .3) 0%, rgba(20, 22, 20, .45) 50%, rgba(20, 22, 20, .92) 100%); }
.hero__content { position: relative; z-index: 2; padding: 5rem 0 4rem; }
@media (min-width: 992px) { .hero__content { padding: 7.5rem 0 5.5rem; min-height: 72vh; display: flex; align-items: flex-end; } }
.hero h1 { font-size: clamp(2.1rem, 5.2vw, 4.2rem); color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, .5); line-height: 1.08; }
.hero .eyebrow { color: var(--bronze-light); font-size: 1.1rem; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.hero .lead { max-width: 44rem; color: rgba(255, 255, 255, .9); font-size: clamp(1.1rem, 1.6vw, 1.35rem); }
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 16px; background: var(--meander) repeat-x center bottom; opacity: .9; z-index: 3; }
.hero__place { display: inline-flex; align-items: center; gap: .5rem; background: rgba(29, 33, 31, .55); border: 1px solid rgba(217, 185, 122, .45); color: var(--stone-50); padding: .3rem .8rem .3rem .35rem; border-radius: var(--radius); backdrop-filter: blur(4px); font-size: .95rem; }
.hero__place:hover { background: rgba(176, 141, 87, .35); color: #fff; text-decoration: none; }
.hero__place img { width: 28px; height: 28px; border-radius: 2px; object-fit: cover; border: 1px solid rgba(255, 255, 255, .4); }
.hero-stats { display: flex; gap: 2rem; flex-wrap: wrap; margin-top: 1.75rem; }
.hero-stats strong { display: block; font-family: var(--font-display); font-size: 2rem; line-height: 1; color: var(--bronze-light); }
.hero-stats span { font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; opacity: .85; }

/* ---------- Cards: marble slabs with framed photos ---------- */
.place-card { position: relative; background: var(--stone-50) var(--grain-light); border: 1px solid var(--stone-300); border-radius: var(--radius); box-shadow: var(--shadow-slab); transition: transform .25s ease, box-shadow .25s ease; height: 100%; padding: .55rem .55rem 0; }
.place-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-slab-hover); }
.place-card__media { position: relative; aspect-ratio: 4 / 3; background: var(--stone-200); overflow: hidden; border: 1px solid var(--stone-300); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); }
.place-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.place-card:hover .place-card__media img { transform: scale(1.05); }
.place-card__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .5) 100%); }
.place-card__badges { position: absolute; top: .6rem; left: .6rem; z-index: 2; display: flex; gap: .4rem; flex-wrap: wrap; }
.place-card__cats { position: absolute; left: .7rem; right: .7rem; bottom: .6rem; z-index: 2; display: flex; gap: .35rem; flex-wrap: wrap; }
.place-card__body { padding: .9rem .6rem 1.1rem; }
.place-card__title { font-size: 1.3rem; margin: 0 0 .3rem; line-height: 1.25; text-transform: none; letter-spacing: .01em; }
.place-card__title a { color: var(--ink); }
.place-card__title a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.place-card__title a:hover { color: var(--brick); text-decoration: none; }
.place-card p { color: var(--ink-soft); font-size: 1rem; line-height: 1.5; margin: 0; }
.place-card .place-card__cats a, .place-card .place-card__cats span { position: relative; z-index: 2; }
.badge-360 { display: inline-flex; align-items: center; gap: .3rem; background: linear-gradient(180deg, var(--bronze-light), var(--bronze)); color: var(--basalt); font-family: var(--font-display); font-size: .78rem; letter-spacing: .08em; padding: .3rem .6rem; border-radius: var(--radius); border: 1px solid var(--bronze-dark); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5); }
.chip { display: inline-flex; align-items: center; gap: .35rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; padding: .28rem .6rem; border-radius: 2px; background: rgba(248, 245, 238, .94); color: var(--ink); border: 1px solid var(--stone-300); }
.chip:hover { background: #fff; color: var(--brick); text-decoration: none; }

.category-tile { display: flex; align-items: center; gap: .9rem; padding: .9rem 1rem; background: var(--stone-50) var(--grain-light); border: 1px solid var(--stone-300); border-left: 5px solid var(--cat-color, var(--bronze)); border-radius: var(--radius); box-shadow: var(--shadow-slab); color: var(--ink); height: 100%; transition: transform .2s ease, box-shadow .2s ease; }
.category-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-slab-hover); color: var(--ink); text-decoration: none; }
.category-tile__icon { width: 46px; height: 46px; flex: 0 0 auto; border-radius: 2px; display: grid; place-items: center; font-size: 1.35rem; color: #fff; background: var(--cat-color, var(--bronze)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); }
.category-tile strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; line-height: 1.15; }
.category-tile small { color: var(--ink-soft); }

/* ---------- Filter bar ---------- */
.filter-bar { background: var(--stone-50) var(--grain-light); border: 1px solid var(--stone-300); border-radius: var(--radius); box-shadow: var(--shadow-slab); padding: .75rem; }
.filter-chips { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.filter-chips::-webkit-scrollbar { display: none; }
.filter-chips a { white-space: nowrap; border: 1px solid var(--stone-300); color: var(--ink); padding: .4rem .85rem; border-radius: 2px; font-size: .9rem; background: #fff; }
.filter-chips a:hover { background: var(--stone-100); text-decoration: none; border-color: var(--bronze); }
.filter-chips a.active { background: var(--basalt); border-color: var(--basalt); color: var(--stone-50); }

/* ---------- Place page ---------- */
.page-header { padding: 2.5rem 0 1.5rem; }
.page-header h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
.place-hero { position: relative; border-radius: var(--radius); overflow: hidden; background: #000; border: 1px solid var(--stone-300); padding: .5rem; box-shadow: var(--shadow-slab); }
.place-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.prose { font-size: 1.18rem; line-height: 1.7; color: #3a332c; }
.prose p { margin-bottom: 1.1rem; }
.prose p:first-of-type::first-letter { font-family: var(--font-display); font-size: 3.4em; float: left; line-height: .82; padding: .08em .12em 0 0; color: var(--brick); }
.prose h2, .prose h3 { margin-top: 1.8rem; }
.prose img { border-radius: var(--radius); }
.info-card { position: relative; background: var(--stone-50) var(--grain-light); border: 1px solid var(--stone-300); border-radius: var(--radius); box-shadow: var(--shadow-slab); padding: 1.25rem; }
.info-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--bronze-dark), var(--bronze-light), var(--bronze-dark)); }
.info-card h3 { font-size: 1.2rem; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: .06em; }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: .8rem; padding: .6rem 0; border-top: 1px solid var(--stone-200); font-size: 1rem; }
.info-list li:first-child { border-top: 0; padding-top: 0; }
.info-list i { color: var(--bronze-dark); font-size: 1.1rem; flex: 0 0 auto; margin-top: .15rem; }
.info-list small { display: block; color: var(--ink-soft); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
@media (min-width: 576px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: .75rem; } }
@media (min-width: 992px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
.gallery-grid a { display: block; aspect-ratio: 4 / 3; border-radius: 2px; overflow: hidden; background: var(--stone-50); position: relative; padding: .3rem; border: 1px solid var(--stone-300); box-shadow: 0 6px 14px -10px rgba(60, 42, 20, .6); }
.gallery-grid a:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; display: block; }
.gallery-grid a:hover img { transform: scale(1.04); }
.gallery-grid .more { position: absolute; inset: .3rem; display: grid; place-items: center; background: rgba(29, 33, 31, .55); color: #fff; font-family: var(--font-display); font-size: 1.6rem; }
.mini-map { height: 260px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--stone-300); box-shadow: var(--shadow-slab); }
.lightbox .modal-content { background: rgba(10, 10, 10, .97); }
.lightbox__img { max-height: 100vh; max-width: 100%; width: auto; height: auto; margin: auto; display: block; object-fit: contain; }
.lightbox .carousel-item { align-items: center; justify-content: center; height: 100vh; }
.lightbox .carousel-item.active, .lightbox .carousel-item-next, .lightbox .carousel-item-prev { display: flex; }
.lightbox__close { position: absolute; top: 1rem; right: 1rem; z-index: 10; padding: .8rem; }
.lightbox__caption { position: absolute; left: 0; right: 0; bottom: 0; padding: .8rem 1rem; text-align: center; font-size: 1rem; font-style: italic; background: linear-gradient(0deg, rgba(0, 0, 0, .75), transparent); pointer-events: none; }
.lightbox__caption:empty { display: none; }

/* ---------- 360° tour viewer ---------- */
.tour { position: relative; width: 100%; aspect-ratio: 4 / 3; background: #0d1116 radial-gradient(ellipse at center, #2a3542, #0d1116); border-radius: var(--radius); overflow: hidden; outline: none; color: #fff; border: 1px solid var(--bronze-dark); box-shadow: 0 0 0 6px var(--stone-50), 0 0 0 7px var(--stone-300), 0 18px 30px -16px rgba(0, 0, 0, .6); }
@media (min-width: 768px) { .tour { aspect-ratio: 16 / 9; } }
.tour.is-fullscreen { border-radius: 0; aspect-ratio: auto; width: 100vw; height: 100vh; box-shadow: none; border: 0; }
.tour__pano { position: absolute; inset: 0; }
.tour__pano canvas { outline: none; }
.tour__title { position: absolute; top: .9rem; left: .9rem; right: 4.5rem; z-index: 5; pointer-events: none; }
.tour__title-text { display: inline-block; background: rgba(13, 17, 22, .65); border: 1px solid rgba(217, 185, 122, .4); backdrop-filter: blur(6px); padding: .35rem .9rem; border-radius: var(--radius); font-family: var(--font-display); font-size: .95rem; letter-spacing: .05em; }
.tour__controls { position: absolute; left: 50%; bottom: .9rem; transform: translateX(-50%); display: flex; gap: .3rem; background: rgba(13, 17, 22, .7); border: 1px solid rgba(217, 185, 122, .4); backdrop-filter: blur(6px); padding: .3rem; border-radius: var(--radius); z-index: 6; }
.tour__btn { width: 40px; height: 40px; border-radius: 2px; border: 0; background: transparent; color: #fff; display: grid; place-items: center; font-size: 1.1rem; transition: background .15s ease; }
.tour__btn:hover, .tour__btn:focus-visible { background: rgba(255, 255, 255, .15); outline: none; }
.tour__btn.is-active { background: var(--bronze); color: var(--basalt); }
.tour__scenes { position: absolute; left: 0; right: 0; bottom: 4.2rem; z-index: 6; padding: 0 .9rem; }
.tour__scene-list { list-style: none; margin: 0; padding: .5rem; display: flex; gap: .5rem; overflow-x: auto; background: rgba(13, 17, 22, .78); border: 1px solid rgba(217, 185, 122, .4); backdrop-filter: blur(8px); border-radius: var(--radius); scrollbar-width: thin; }
.tour__scene-btn { border: 2px solid transparent; background: transparent; color: #fff; padding: 0; border-radius: 2px; overflow: hidden; width: 120px; flex: 0 0 auto; text-align: left; }
.tour__scene-btn img { width: 120px; height: 68px; object-fit: cover; object-position: 50% 33.3%; display: block; }
.tour__scene-btn span { display: block; font-size: .78rem; padding: .3rem .4rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tour__scene-btn.is-active, .tour__scene-btn:hover { border-color: var(--bronze-light); }
.tour__hint { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 4; pointer-events: none; display: flex; align-items: center; gap: .5rem; background: rgba(13, 17, 22, .6); padding: .5rem 1rem; border-radius: var(--radius); font-size: .95rem; transition: opacity .4s ease; }
.tour__hint.is-hidden { opacity: 0; }
.tour__loader { position: absolute; inset: 0; display: grid; place-items: center; z-index: 7; }
.tour-error { position: absolute; inset: 0; display: grid; place-items: center; padding: 2rem; text-align: center; color: #fff; }
.tour-hotspot { position: relative; width: 44px; height: 44px; margin: -22px 0 0 -22px; }
.tour-hotspot__icon { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--bronze-light); background: rgba(248, 245, 238, .95); color: var(--brick); font-size: 1.4rem; display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0, 0, 0, .4); cursor: pointer; transition: transform .15s ease; padding: 0; line-height: 1; }
.tour-hotspot--link .tour-hotspot__icon { color: var(--basalt); }
.tour-hotspot__icon:hover { transform: scale(1.1) !important; }
.tour-hotspot__tooltip { position: absolute; left: 50%; top: 100%; transform: translate(-50%, 6px); white-space: nowrap; background: rgba(13, 17, 22, .88); color: #fff; font-size: .8rem; padding: .3rem .6rem; border-radius: 2px; opacity: 0; pointer-events: none; transition: opacity .15s ease; }
.tour-hotspot:hover .tour-hotspot__tooltip { opacity: 1; }
.tour-hotspot__panel { position: absolute; left: 50%; top: 100%; transform: translate(-50%, 10px); width: min(300px, 80vw); background: var(--stone-50); color: var(--ink); border-radius: var(--radius); border: 1px solid var(--bronze); box-shadow: 0 10px 30px rgba(0, 0, 0, .45); overflow: hidden; z-index: 10; }
.tour-hotspot__header { display: flex; align-items: center; justify-content: space-between; padding: .5rem .5rem .5rem .8rem; background: var(--basalt); color: var(--stone-50); font-family: var(--font-display); font-size: .9rem; letter-spacing: .05em; }
.tour-hotspot__close { background: transparent; border: 0; color: #fff; padding: .2rem .4rem; }
.tour-hotspot__body { padding: .6rem; font-size: .9rem; }
.tour-hotspot__body img { width: 100%; height: auto; border-radius: 2px; display: block; }
.tour-page { background: #0d1116; min-height: 100vh; }
.tour-page .site-backdrop { display: none; }
.tour-page .tour { border-radius: 0; height: 100dvh; aspect-ratio: auto; box-shadow: none; border: 0; }
.tour-page__back { position: absolute; top: .9rem; right: .9rem; z-index: 8; }

/* ---------- Weather: a bronze tablet ---------- */
.weather-card { position: relative; background: linear-gradient(160deg, #4a3c2b, #2a2219) ; color: var(--stone-50); border-radius: var(--radius); padding: 1.1rem 1.2rem; border: 1px solid var(--bronze-dark); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), var(--shadow-slab); }
.weather-card::before { content: ''; position: absolute; inset: 0; background: var(--grain-dark); pointer-events: none; border-radius: inherit; }
.weather-card > * { position: relative; }
/* side by side with the map teaser on the home page: fill the row height and keep the forecast at the bottom */
.weather-card--stretch { height: 100%; display: flex; flex-direction: column; }
.weather-card--stretch .weather-card__days { margin-top: auto; padding-top: 1.1rem; }
.weather-card h3 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .08em; }
.weather-card__now { display: flex; align-items: center; gap: 1rem; }
.weather-card__icon { font-size: 3rem; line-height: 1; color: var(--bronze-light); }
.weather-card__temp { font-family: var(--font-display); font-size: 2.8rem; line-height: 1; }
.weather-card__desc { font-size: 1rem; font-style: italic; opacity: .9; }
.weather-card__meta { display: flex; gap: 1rem; font-size: .85rem; opacity: .85; margin-top: .6rem; }
.weather-card__days { display: grid; grid-template-columns: repeat(5, 1fr); gap: .25rem; margin-top: 1rem; padding-top: .9rem; border-top: 1px solid rgba(217, 185, 122, .3); text-align: center; font-size: .8rem; }
.weather-card__days i { display: block; font-size: 1.3rem; margin: .2rem 0; color: var(--bronze-light); }
.weather-card__days span { display: block; opacity: .75; }
.weather-card__days strong { font-weight: 600; }
.weather-card__source { font-size: .72rem; opacity: .55; margin-top: .75rem; }
.weather-card__source a { color: inherit; }

/* ---------- Sidebar ---------- */
.sidebar-block + .sidebar-block { margin-top: 1.75rem; }
.sidebar-title { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .9rem; display: flex; align-items: center; gap: .5rem; padding-bottom: .5rem; border-bottom: 1px solid var(--stone-300); }
.sidebar-title i { color: var(--bronze-dark); }
.partner-card { display: flex; gap: .9rem; align-items: center; background: var(--stone-50) var(--grain-light); border: 1px solid var(--stone-300); border-radius: var(--radius); padding: .6rem; box-shadow: var(--shadow-slab); color: var(--ink); transition: transform .2s ease; }
.partner-card:hover { transform: translateX(3px); text-decoration: none; color: var(--brick); }
.partner-card img { width: 84px; height: 56px; object-fit: cover; border-radius: 2px; flex: 0 0 auto; background: var(--stone-200); border: 1px solid var(--stone-300); }
.partner-card__icon { width: 56px; height: 56px; border-radius: 2px; background: var(--stone-200); display: grid; place-items: center; font-size: 1.5rem; color: var(--bronze-dark); flex: 0 0 auto; }
.partner-card strong { display: block; font-size: 1rem; line-height: 1.25; font-weight: 600; }
.partner-card small { color: var(--ink-soft); }
.partner-card + .partner-card { margin-top: .6rem; }
.popular-list { list-style: none; margin: 0; padding: 0; counter-reset: pop; }
.popular-list li { display: flex; gap: .8rem; align-items: center; padding: .55rem 0; border-top: 1px dashed var(--stone-300); }
.popular-list li:first-child { border-top: 0; padding-top: 0; }
.popular-list img { width: 64px; height: 48px; border-radius: 2px; object-fit: cover; flex: 0 0 auto; border: 1px solid var(--stone-300); }
.popular-list a { color: var(--ink); font-weight: 600; font-size: 1rem; line-height: 1.3; }
.popular-list a:hover { color: var(--brick); text-decoration: none; }
.popular-list small { display: block; color: var(--ink-soft); font-weight: 400; font-size: .8rem; }

/* ---------- Map page ---------- */
.map-full { height: 60vh; min-height: 380px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--stone-300); box-shadow: var(--shadow-slab); z-index: 1; padding: 0; }
@media (min-width: 992px) { .map-full { height: calc(100vh - 160px); position: sticky; top: 96px; } }
.map-list { max-height: calc(100vh - 160px); overflow: auto; }
.map-list a { display: flex; gap: .75rem; align-items: center; padding: .55rem .6rem; border-radius: var(--radius); color: var(--ink); }
.map-list a:hover { background: var(--stone-50); text-decoration: none; color: var(--brick); }
.map-list img { width: 56px; height: 42px; border-radius: 2px; object-fit: cover; flex: 0 0 auto; border: 1px solid var(--stone-300); }
.map-pin svg { filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .35)); }
.leaflet-popup-content-wrapper { border-radius: var(--radius); padding: 0; overflow: hidden; background: var(--stone-50); color: var(--ink); border: 1px solid var(--bronze); }
.leaflet-popup-tip { background: var(--stone-50); }
.leaflet-popup-content { margin: 0; width: 240px !important; font-family: var(--font-body); }
.map-popup__img { width: 100%; height: 120px; object-fit: cover; display: block; }
.map-popup__body { padding: .7rem .8rem .8rem; }
.map-popup__title { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); display: block; margin-bottom: .3rem; }
.map-popup__cats { display: flex; gap: .3rem; flex-wrap: wrap; font-size: .7rem; }
.map-popup__tour { margin-top: .4rem; font-size: .8rem; color: var(--brick); font-weight: 600; }

/* ---------- Footer (basalt) ---------- */
.site-footer { background: var(--basalt) var(--grain-dark); color: rgba(248, 245, 238, .8); margin-top: 4rem; border-top: 1px solid rgba(176, 141, 87, .4); position: relative; }
.site-footer::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 16px; background: var(--meander-dark) repeat-x center top; opacity: .8; }
.site-footer a { color: rgba(248, 245, 238, .85); }
.site-footer a:hover { color: var(--bronze-light); }
.site-footer h5 { color: var(--bronze-light); font-size: 1.05rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
.site-footer .list-unstyled li { margin-bottom: .4rem; }
.footer-bottom { border-top: 1px solid rgba(176, 141, 87, .25); font-size: .85rem; color: rgba(248, 245, 238, .55); }
.social-links a { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 2px; border: 1px solid rgba(176, 141, 87, .45); font-size: 1.1rem; margin-right: .4rem; }
.social-links a:hover { background: var(--bronze); color: var(--basalt); text-decoration: none; }

/* ---------- Misc ---------- */
.empty-state { text-align: center; padding: 4rem 1rem; color: var(--ink-soft); }
.empty-state i { font-size: 3rem; display: block; margin-bottom: 1rem; color: var(--stone-300); }
.cta-band { position: relative; display: block; background: linear-gradient(135deg, var(--brick), #b4553a); color: #fff; border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-slab); border: 1px solid var(--brick-dark); overflow: hidden; }
.cta-band h2 { color: inherit; }
/* Home page map teaser: an antique map of Philippopolis drawn as inline SVG (see _partials/_ancient_map.svg.twig) */
.cta-band--map { color: var(--ink); background: #e8d7b1; border: 1px solid #b08d57; min-height: 22rem; padding: 0; box-shadow: var(--shadow-slab), inset 0 0 0 1px rgba(255, 248, 230, .5); text-decoration: none; transition: transform .25s ease, box-shadow .25s ease; }
.cta-band--map:hover { transform: translateY(-3px); box-shadow: var(--shadow-slab-hover), inset 0 0 0 1px rgba(255, 248, 230, .5); color: var(--ink); text-decoration: none; }
.cta-band__map { position: absolute; inset: 0; width: 100%; height: 100%; display: block; transition: transform 6s ease; }
.cta-band--map:hover .cta-band__map { transform: scale(1.03); }
.cta-band__content { position: relative; z-index: 1; max-width: 27rem; padding: 2rem 2rem 2.25rem; background: linear-gradient(90deg, rgba(232, 215, 177, .97) 0%, rgba(232, 215, 177, .9) 60%, rgba(232, 215, 177, 0) 100%); min-height: inherit; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.cta-band--map .eyebrow { color: var(--bronze-dark); }
.cta-band--map h2 { color: #3b2a16; font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.cta-band--map p { color: #4a3a28; font-size: 1.08rem; }
@media (max-width: 767.98px) {
    .cta-band--map { min-height: 30rem; }
    .cta-band__content { max-width: none; min-height: 0; padding: 1.5rem 1.25rem 1.75rem; background: linear-gradient(180deg, rgba(232, 215, 177, .97) 0%, rgba(232, 215, 177, .9) 75%, rgba(232, 215, 177, 0) 100%); }
    .cta-band__map { top: auto; bottom: 0; height: 62%; }
}
.share-links a { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 2px; background: var(--stone-50); border: 1px solid var(--stone-300); color: var(--ink); margin-right: .4rem; }
.share-links a:hover { color: var(--brick); border-color: var(--bronze); text-decoration: none; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--brick); color: #fff; padding: .5rem 1rem; z-index: 2000; }
.skip-link:focus { left: .5rem; top: .5rem; }
.scroll-x { overflow-x: auto; scrollbar-width: thin; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } html { scroll-behavior: auto; } }
