/* =============================================
 * LKM Hrady — single template styles
 * Brand color: terakota #B85C38, sand #F5EBE0, ink #2F1B14
 * ============================================= */

.lkm-hrad {
    --c-primary: #B85C38;
    --c-primary-dark: #8A4527;
    --c-ink: #2F1B14;
    --c-sand: #F5EBE0;
    --c-sand-light: #FAF5EE;
    --c-muted: #6F5A4C;
    --c-line: #E4D6C5;
    --r-md: 12px;
    --r-lg: 18px;
    --shadow-sm: 0 1px 3px rgba(47, 27, 20, 0.08);
    --shadow-md: 0 6px 24px rgba(47, 27, 20, 0.12);
    color: var(--c-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px 64px;
}

/* Breadcrumb */
.lkm-hrad__breadcrumb {
    font-size: 14px;
    color: var(--c-muted);
    padding: 16px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.lkm-hrad__breadcrumb a {
    color: var(--c-muted);
    text-decoration: none;
    transition: color 0.15s;
}
.lkm-hrad__breadcrumb a:hover { color: var(--c-primary); }
.lkm-hrad__breadcrumb span { color: var(--c-line); }
.lkm-hrad__breadcrumb [aria-current] { color: var(--c-ink); font-weight: 500; }

/* Hero */
.lkm-hrad__hero {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    margin-bottom: 32px;
    background: var(--c-sand);
    aspect-ratio: 16 / 7;
    max-height: 540px;
}
.lkm-hrad__hero-img,
.lkm-hrad__hero-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.lkm-hrad__hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(47, 27, 20, 0.85) 0%, rgba(47, 27, 20, 0.35) 50%, transparent 100%);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px 40px;
}
.lkm-hrad__title {
    font-size: clamp(28px, 5vw, 56px);
    line-height: 1.1;
    margin: 8px 0 6px;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}
.lkm-hrad__location {
    color: rgba(255, 255, 255, 0.92);
    font-size: 17px;
    margin: 0;
}

/* Meta tags v hero */
.lkm-hrad__meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.lkm-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.95);
    color: var(--c-ink);
    backdrop-filter: blur(8px);
}
.lkm-tag--typ { background: var(--c-primary); color: white; }
.lkm-tag--sloh { background: rgba(255, 255, 255, 0.95); }
.lkm-tag--rok { background: rgba(255, 255, 255, 0.85); }

/* Container: 2-column layout */
.lkm-hrad__container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 40px;
}
@media (max-width: 1024px) {
    .lkm-hrad__container { grid-template-columns: 1fr; }
}

/* Quick info card */
.lkm-hrad__quick-info {
    background: var(--c-sand-light);
    border: 1px solid var(--c-line);
    border-radius: var(--r-md);
    padding: 28px;
    margin-bottom: 40px;
}
.lkm-hrad__quick-info h2 {
    margin-top: 0;
    font-size: 22px;
    color: var(--c-primary-dark);
}
.lkm-info-grid {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 16px 24px;
    margin: 0;
}
@media (max-width: 600px) {
    .lkm-info-grid { grid-template-columns: 1fr; gap: 4px; }
    .lkm-info-grid dt { margin-top: 12px; }
}
.lkm-info-grid dt {
    font-weight: 600;
    color: var(--c-muted);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.lkm-info-grid dd {
    margin: 0;
}
.lkm-info-grid a {
    color: var(--c-primary-dark);
    text-decoration: none;
    border-bottom: 1px solid currentColor;
}
.lkm-info-grid a:hover { color: var(--c-primary); }
.lkm-sezona {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--c-line);
}
.lkm-sezona:last-child { border-bottom: none; padding-bottom: 0; }
.lkm-sezona strong { display: block; margin-bottom: 4px; color: var(--c-primary-dark); }
.lkm-dny {
    list-style: none;
    padding: 0;
    margin: 4px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 4px 12px;
}
.lkm-dny li {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding: 2px 0;
}
.lkm-dny span {
    font-weight: 600;
    color: var(--c-muted);
    min-width: 30px;
}
.lkm-vstupne {
    list-style: none;
    padding: 0;
    margin: 0;
}
.lkm-vstupne li {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px dashed var(--c-line);
}
.lkm-vstupne li:last-child { border-bottom: none; }

/* Main content */
.lkm-hrad__content {
    font-size: 17px;
    line-height: 1.75;
    color: var(--c-ink);
}
.lkm-hrad__content h2 {
    margin-top: 48px;
    font-size: 28px;
    color: var(--c-primary-dark);
}
.lkm-hrad__content h3 {
    margin-top: 32px;
    font-size: 22px;
}
.lkm-hrad__content a {
    color: var(--c-primary-dark);
}

/* Gallery */
.lkm-hrad__gallery {
    margin-top: 48px;
}
.lkm-hrad__gallery h2 {
    font-size: 24px;
    color: var(--c-primary-dark);
    margin-bottom: 20px;
}
.lkm-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}
.lkm-photo {
    margin: 0;
    border-radius: var(--r-md);
    overflow: hidden;
    background: var(--c-sand);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}
.lkm-photo:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.lkm-photo img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}
.lkm-photo figcaption {
    padding: 10px 12px;
    font-size: 13px;
    color: var(--c-muted);
}
.lkm-photo-credit {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    opacity: 0.8;
}
.lkm-photo-credit a { color: inherit; }

/* Stay22 + GYG */
.lkm-hrad__stay22, .lkm-hrad__gyg {
    margin-top: 48px;
}
.lkm-hrad__stay22 h2, .lkm-hrad__gyg h2 {
    font-size: 24px;
    color: var(--c-primary-dark);
}
.lkm-stay22-wrap iframe { display: block; }

/* Sidebar */
.lkm-hrad__sidebar > section {
    background: var(--c-sand-light);
    border: 1px solid var(--c-line);
    border-radius: var(--r-md);
    padding: 24px;
    margin-bottom: 24px;
}
.lkm-hrad__sidebar h3 {
    margin-top: 0;
    font-size: 18px;
    color: var(--c-primary-dark);
}
.lkm-sidebar__map { padding: 16px !important; }
.lkm-map-actions {
    text-align: center;
    margin: 12px 0 0;
    font-size: 14px;
    color: var(--c-muted);
}
.lkm-map-actions a {
    color: var(--c-primary-dark);
    text-decoration: none;
    border-bottom: 1px solid currentColor;
}
.lkm-nearby-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.lkm-nearby-list li { border-bottom: 1px solid var(--c-line); }
.lkm-nearby-list li:last-child { border-bottom: none; }
.lkm-nearby-list a {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 12px 0;
    text-decoration: none;
    color: var(--c-ink);
    transition: color 0.15s;
}
.lkm-nearby-list a:hover { color: var(--c-primary); }
.lkm-nearby-list strong { font-weight: 500; }
.lkm-nearby-list span { font-size: 13px; color: var(--c-muted); }

/* Sticky sidebar on desktop */
@media (min-width: 1025px) {
    .lkm-hrad__sidebar {
        position: sticky;
        top: 24px;
        align-self: start;
    }
}

/* =============================================
 * Leaflet markers — custom terakotové
 * ============================================= */
.lkm-pin {
    width: 36px;
    height: 44px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.lkm-pin::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    background: var(--c-primary, #B85C38);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    z-index: 0;
}
.lkm-pin span {
    position: relative;
    z-index: 1;
    transform: translateY(-2px);
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.3));
}
.lkm-pin--nearby {
    width: 28px;
    height: 36px;
}
.lkm-pin--nearby::after {
    background: #8A4527;
    opacity: 0.85;
}
.leaflet-popup-content {
    font-family: inherit;
    font-size: 14px;
}
