/* ═══════════════════════════════════════════════════════════════
   SITEMAP (HTML карта на сайта)
   Зарежда се само на sitemap страницата чрез @section('head')
   Ползва CSS променливите от parcel.css (--gold, --navy, --serif...)
   ═══════════════════════════════════════════════════════════════ */

/* Navbar — плътен фон на sitemap страницата */
.page-sitemap .navbar-parcel:not(.is-scrolled) {
    background: rgba(26, 31, 46, 0.97);
    border-color: rgba(201, 168, 76, 0.2);
}

.sm-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 8rem 1.2rem 5rem;
}

/* Заглавие */
.sm-h1 {
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 2.9rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--text-dark);
    margin: 0 0 .6rem;
}
.sm-lead {
    font-family: var(--sans);
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-muted);
    margin: 0 0 3rem;
}

/* Секции */
.sm-sect {
    margin-bottom: 3.2rem;
    padding-bottom: 3.2rem;
    border-bottom: 1px solid var(--cream-dark);
}
.sm-sect:last-child {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}
.sm-sect__h {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 1.6rem;
    position: relative;
    padding-left: 1rem;
}
.sm-sect__h::before {
    content: '';
    position: absolute;
    left: 0; top: .25em;
    width: 3px; height: 1.1em;
    background: var(--gold);
}

/* Подсекции */
.sm-subsect {
    margin-bottom: 1.8rem;
}
.sm-subsect:last-child { margin-bottom: 0; }
.sm-subsect__h {
    font-family: var(--sans);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: .9rem;
}

/* Chips (типове / локации / страници) */
.sm-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
}
.sm-chip {
    display: inline-block;
    font-family: var(--sans);
    font-size: .85rem;
    font-weight: 400;
    color: var(--text-mid);
    text-decoration: none;
    padding: .42rem .9rem;
    background: var(--white);
    border: 1px solid var(--cream-dark);
    transition: all .16s;
    white-space: nowrap;
}
.sm-chip:hover {
    color: var(--navy);
    border-color: var(--gold);
    background: var(--gold-pale);
}

/* Breadcrumb (region view) */
.sm-crumb {
    font-family: var(--sans);
    font-size: .85rem;
    color: var(--text-muted);
    margin-bottom: 1.4rem;
}
.sm-crumb a {
    color: var(--gold-dark);
    text-decoration: none;
    transition: color .15s;
}
.sm-crumb a:hover { color: var(--gold); }

/* Grid за градове (region view) */
.sm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.6rem;
}
.sm-grid--simple {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: .8rem;
}

/* Град + квартали */
.sm-town {
    background: var(--white);
    border: 1px solid var(--cream-dark);
    padding: 1.1rem 1.2rem;
    transition: border-color .16s;
}
.sm-town:hover { border-color: var(--border-gold); }
.sm-grid--simple .sm-town {
    padding: .7rem 1rem;
}
.sm-town__name {
    font-family: var(--sans);
    font-size: .96rem;
    font-weight: 600;
    margin-bottom: .6rem;
}
.sm-grid--simple .sm-town__name {
    margin-bottom: 0;
}
.sm-town__name a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color .15s;
}
.sm-town__name a:hover { color: var(--gold-dark); }

.sm-quarters {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem .7rem;
    padding-top: .6rem;
    border-top: 1px solid var(--cream-dark);
}
.sm-quarters a {
    font-family: var(--sans);
    font-size: .8rem;
    font-weight: 300;
    color: var(--text-mid);
    text-decoration: none;
    transition: color .15s;
}
.sm-quarters a:hover { color: var(--gold-dark); }

.sm-hr {
    border: 0;
    border-top: 1px solid var(--cream-dark);
    margin: 1.8rem 0;
}

/* Mobile */
@media (max-width: 767px) {
    .sm-wrap { padding: 6.5rem 1rem 3.5rem; }
    .sm-sect { margin-bottom: 2.4rem; padding-bottom: 2.4rem; }
    .sm-sect__h { font-size: 1.3rem; }
    .sm-grid { grid-template-columns: 1fr; gap: 1rem; }
    .sm-grid--simple { grid-template-columns: 1fr 1fr; }
}
