/* === HASICI THEME CUSTOM BLOCKS STYLE === */

/* --- 5. HERO --- */
.hero {
    padding: 5rem 0 3.5rem 0;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3.5rem;
    align-items: center;
}

.hero h1 {
    font-size: clamp(1.95rem, 4.2vw, 3.8rem);
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
    margin-bottom: 0.95rem;
    letter-spacing: -0.02em;
}

.hero h1 .red-text {
    background: linear-gradient(135deg, #ff3333 0%, #c61a1a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero p {
    font-size: clamp(1rem, 1.12vw, 1.1rem);
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 1.85rem;
    font-weight: 500;
}

@media (min-width: 992px) {
    .hero p {
        white-space: nowrap;
    }
}

.hero-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 0;
}

.hero-actions .btn {
    min-width: 140px;
    padding: 12px 28px;
    font-size: 0.95rem;
}

.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-image::before {
    content: '';
    position: absolute;
    width: 85%;
    height: 85%;
    background: radial-gradient(circle, rgba(230, 34, 34, 0.18) 0%, rgba(245, 124, 0, 0.06) 45%, transparent 70%);
    filter: blur(40px);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), filter 0.4s ease;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.15));
}

html[data-theme="dark"] .hero-image img {
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6));
}

.hero-image img:hover {
    transform: translateY(-4px) scale(1.02);
}

.home .page-title {
    display: none !important;
}

/* --- 8. INFO CARDS --- */
.info-cards-section {
    content-visibility: auto;
    contain-intrinsic-size: 1px 350px;
}

.info-cards-grid {
    display: grid;
    gap: 30px;
}

.info-cards-grid.cards-1 {
    grid-template-columns: 1fr;
}

.info-cards-grid.cards-2 {
    grid-template-columns: repeat(2, 1fr);
}

.info-cards-grid.cards-3 {
    grid-template-columns: repeat(3, 1fr);
}

.info-cards-grid.cards-4 {
    grid-template-columns: repeat(4, 1fr);
}

.info-cards-grid.cards-5 {
    grid-template-columns: repeat(5, 1fr);
}

.info-cards-grid.cards-6 {
    grid-template-columns: repeat(3, 1fr);
}

.info-card {
    padding: 28px 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.info-card:hover {
    transform: translateY(-10px);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
}

.info-card:hover .card-icon {
    background: var(--primary);
    color: white;
    transform: rotateY(180deg);
}

.card-icon .material-symbols-rounded {
    font-size: 2.22rem;
}

.info-card-title-wrapper {
    width: 100%;
    margin: 20px 0 10px 0;
}

.info-card-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0;
    text-transform: uppercase;
    line-height: 1.2;
}

.info-card-text-wrapper {
    width: 100%;
    margin-bottom: 25px;
}

.info-card-text {
    color: var(--text-dim);
    margin: 0;
    line-height: 1.6;
    font-size: 0.95rem;
}

.info-card .btn {
    margin-top: auto;
    width: 100%;
}

/* --- 9. QUICK LINKS --- */
.quick-links-section {
    padding: 10px 0 15px 0;
    content-visibility: auto;
    contain-intrinsic-size: 1px 180px;
}

.quick-links-grid {
    display: grid;
    gap: 1.25rem;
}

.quick-links-grid.links-1 {
    grid-template-columns: minmax(0, 1fr);
}

.quick-links-grid.links-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quick-links-grid.links-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quick-link-item {
    padding: 1.25rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none !important;
    min-height: 5.5rem;
}

.quick-link-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

html[data-theme="light"] .quick-link-item:hover {
    background: rgba(0, 0, 0, 0.02);
}

.quick-link-icon {
    width: 3.375rem;
    height: 3.375rem;
    border-radius: 0.875rem;
    flex-shrink: 0;
}

.quick-link-item:hover .quick-link-icon {
    background: var(--primary);
    color: white;
}

.quick-link-icon .material-symbols-rounded {
    font-size: 2rem;
}

.quick-link-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.quick-link-item .quick-link-title {
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text);
    margin: 0 0 2px 0;
    line-height: 1.1;
    overflow-wrap: break-word;
}

.quick-link-subtitle {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin: 0;
    line-height: 1.3;
}

.quick-link-item .arrow {
    color: var(--glass-border);
    transition: 0.3s ease;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.quick-link-item:hover .arrow {
    color: var(--primary);
    transform: translateX(5px);
}

/* --- 13. SPECIAL LISTS & COMPONENTS --- */
.calling-section {
    padding: 0;
    margin: 40px 0;
}

/* --- 7. SVOLÁVÁNÍ JEDNOTKY / POPLACH --- */
.calling-section {
    padding: 0;
    margin: 25px 0 45px 0;
    content-visibility: auto;
    contain-intrinsic-size: 1px 250px;
    width: 100%;
}

.calling-section .container,
.members-section .container {
    padding-left: 0;
    padding-right: 0;
    width: 100%;
    max-width: 100%;
}

.calling-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: 1fr;
    gap: 14px 18px;
    width: 100%;
}

@media (min-width: 768px) {
    .calling-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 1fr;
    }
}

.calling-card {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-left: 4px solid var(--primary);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: var(--transition);
    transform: translateZ(0);
    height: 100%;
    box-sizing: border-box;
}

.calling-icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    background: rgba(230, 34, 34, 0.12);
    border: 1px solid rgba(230, 34, 34, 0.25);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.calling-icon .material-symbols-rounded {
    font-size: 1.45rem;
    line-height: 1;
    display: block;
}

.calling-card:hover {
    transform: translateY(-3px);
    border-color: rgba(230, 34, 34, 0.5);
    background: rgba(255, 255, 255, 0.07);
}

.calling-card:hover .calling-icon {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(230, 34, 34, 0.45);
}

html[data-theme="light"] .calling-card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-left: 4px solid var(--primary);
}

html[data-theme="light"] .calling-card:hover {
    background: #ffffff;
    border-color: var(--primary);
}

.calling-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
}

.calling-card .calling-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.86rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary);
    margin: 0;
    padding: 0;
    line-height: 1.2;
}

.calling-card .calling-desc {
    font-size: 0.88rem;
    line-height: 1.35;
    color: var(--text-dim);
    margin: 0;
    padding: 0;
}

/* Fallback for classic info-list */
.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
}
@media (min-width: 768px) {
    .info-list { grid-template-columns: 1fr 1fr; }
}
.info-list li {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-left: 4px solid var(--primary);
    padding: 14px 18px;
    border-radius: 12px;
    box-shadow: none;
    transition: var(--transition);
}
.info-list li strong {
    display: block;
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* --- SEZNAM ČLENŮ --- */
.members-section {
    padding: 0 0 10px 0;
    content-visibility: auto;
    contain-intrinsic-size: 1px 500px;
}

.members-legend-wrap {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.legend-label {
    display: inline-block;
    font-size: 0.88rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--primary);
    letter-spacing: 0.14em;
    margin-bottom: 14px;
}

.members-legend {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background: var(--card-bg);
    padding: 18px 36px;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: none;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.legend-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 14px 32px;
    width: 100%;
}

.legend-row.specs-row {
    padding-top: 12px;
    border-top: 1px solid var(--glass-border);
    gap: 10px 28px;
    width: 100%;
}

@media (max-width: 768px) {
    .members-legend {
        border-radius: 20px;
        padding: 16px 18px;
        gap: 12px;
        width: 100%;
    }
    .legend-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px 14px;
        width: 100%;
    }
}

html[data-theme="light"] .members-legend {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: none;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 0.8rem;
    color: var(--text);
}

.legend-box,
.member-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    flex-shrink: 0;
    transition: var(--transition);
    box-shadow: none;
}

.legend-box {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    font-size: 0.82rem;
    color: #fff;
}

/* Badge role colors with modern soft gradients & glows */
.legend-box.vj,
.member-card.vj .member-badge {
    background: linear-gradient(135deg, #ff3333 0%, #b31212 100%);
    box-shadow: 0 4px 14px rgba(230, 34, 34, 0.45);
    color: #ffffff;
}

.legend-box.vd,
.member-card.vd .member-badge {
    background: linear-gradient(135deg, #ff8c00 0%, #cc5500 100%);
    box-shadow: 0 4px 14px rgba(245, 124, 0, 0.4);
    color: #ffffff;
}

.legend-box.s,
.member-card.s .member-badge {
    background: linear-gradient(135deg, #ffc107 0%, #e69500 100%);
    color: #111111;
    box-shadow: 0 4px 14px rgba(255, 193, 7, 0.35);
}

.legend-box.h,
.member-card.h .member-badge {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    box-shadow: none;
}

html[data-theme="light"] .legend-box.h,
html[data-theme="light"] .member-card.h .member-badge {
    background: #e6ebf5;
    border: 1px solid rgba(15, 23, 42, 0.12);
    color: #1e293b;
    box-shadow: none;
}

/* Grid of members */
.members-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    align-items: stretch;
    gap: 10px;
    width: 100%;
}

@media (min-width: 768px) {
    .members-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 1fr;
        gap: 14px 16px;
    }
}

@media (min-width: 1024px) {
    .members-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-auto-rows: 1fr;
        gap: 16px 18px;
    }
}

/* Modern Member Card */
.member-card {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    box-shadow: none;
    height: 100%;
    box-sizing: border-box;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s ease, background 0.25s ease;
}

/* Subtle rank accent stripe on left of the card */
.member-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: transparent;
    transition: var(--transition);
}

.member-card.vj::before { background: #e62222; }
.member-card.vd::before { background: #f57c00; }
.member-card.s::before  { background: #ffc107; }
.member-card.h::before  { background: rgba(255, 255, 255, 0.15); }
html[data-theme="light"] .member-card.h::before { background: rgba(15, 23, 42, 0.15); }

.member-badge {
    width: 44px;
    height: 44px;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
    border-radius: 12px;
}

.member-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.07);
}

.member-card.vj:hover {
    border-color: rgba(230, 34, 34, 0.6);
}

.member-card.vd:hover {
    border-color: rgba(245, 124, 0, 0.6);
}

.member-card.s:hover {
    border-color: rgba(255, 193, 7, 0.6);
}

.member-card.h:hover {
    border-color: rgba(230, 34, 34, 0.4);
}

html[data-theme="light"] .member-card {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: none;
}

html[data-theme="light"] .member-card:hover {
    background: #ffffff;
    border-color: var(--primary);
}

.member-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.member-card .member-name {
    font-size: 1.05rem;
    line-height: 1.2;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    letter-spacing: -0.01em;
}

.member-role {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-dim);
    letter-spacing: 0.02em;
    line-height: 1.2;
    margin: 0;
}

/* --- MEMBER SPECIALIZATIONS (TAGS) --- */
.member-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

.spec-tag {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-dim);
    text-transform: uppercase;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    line-height: 1.2;
}

.spec-tag.ndt {
    background: rgba(56, 189, 248, 0.14);
    border-color: rgba(56, 189, 248, 0.35);
    color: #38bdf8;
}

.spec-tag.pilar {
    background: rgba(74, 222, 128, 0.14);
    border-color: rgba(74, 222, 128, 0.35);
    color: #4ade80;
}

.spec-tag.zdravotnik {
    background: rgba(244, 63, 94, 0.14);
    border-color: rgba(244, 63, 94, 0.35);
    color: #f43f5e;
}

.spec-tag.strojnik {
    background: rgba(251, 191, 36, 0.14);
    border-color: rgba(251, 191, 36, 0.35);
    color: #fbbf24;
}

.spec-tag.velitel {
    background: rgba(251, 146, 60, 0.14);
    border-color: rgba(251, 146, 60, 0.35);
    color: #fb923c;
}

.spec-tag.vyprostovani {
    background: rgba(168, 85, 247, 0.14);
    border-color: rgba(168, 85, 247, 0.35);
    color: #c084fc;
}

.spec-tag.vysky {
    background: rgba(139, 92, 246, 0.14);
    border-color: rgba(139, 92, 246, 0.35);
    color: #a78bfa;
}

html[data-theme="light"] .spec-tag {
    background: rgba(15, 23, 42, 0.06);
    border-color: rgba(15, 23, 42, 0.12);
    color: #475569;
}
html[data-theme="light"] .spec-tag.ndt {
    background: rgba(2, 132, 199, 0.1);
    border-color: rgba(2, 132, 199, 0.25);
    color: #0284c7;
}
html[data-theme="light"] .spec-tag.pilar {
    background: rgba(22, 163, 74, 0.1);
    border-color: rgba(22, 163, 74, 0.25);
    color: #16a34a;
}
html[data-theme="light"] .spec-tag.zdravotnik {
    background: rgba(225, 29, 72, 0.1);
    border-color: rgba(225, 29, 72, 0.25);
    color: #e11d48;
}
html[data-theme="light"] .spec-tag.strojnik {
    background: rgba(217, 119, 6, 0.1);
    border-color: rgba(217, 119, 6, 0.25);
    color: #d97706;
}
html[data-theme="light"] .spec-tag.velitel {
    background: rgba(234, 88, 12, 0.1);
    border-color: rgba(234, 88, 12, 0.25);
    color: #ea580c;
}
html[data-theme="light"] .spec-tag.vyprostovani {
    background: rgba(147, 51, 234, 0.1);
    border-color: rgba(147, 51, 234, 0.25);
    color: #9333ea;
}
html[data-theme="light"] .spec-tag.vysky {
    background: rgba(124, 58, 237, 0.1);
    border-color: rgba(124, 58, 237, 0.25);
    color: #7c3aed;
}

/* --- 15. INFOBAR --- */
.infobar {
    margin: 15px 0 35px 0;
    padding: 0;
    width: 100%;
    border: none;
    background: transparent;
}

.infobar-grid {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 24px 35px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    width: 100%;
}

html[data-theme="light"] .infobar-grid {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}

.infobar-item {
    display: flex;
    align-items: center;
    gap: 15px;
    border: none;
    background: transparent;
}

.infobar-item .material-symbols-rounded {
    font-size: 2.5rem;
    color: var(--primary);
}

.infobar-text {
    display: flex;
    flex-direction: column;
}

.infobar .infobar-text strong {
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.1;
    color: var(--text);
}

.infobar-text span {
    font-size: 0.85rem;
    color: var(--text-dim);
}

/* --- 16. KONTAKTY --- */
#kontakt,
#kontakt-sekce {
    scroll-margin-top: 85px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
    overflow: hidden;
    margin: 0;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

html[data-theme="light"] .contact-grid {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

.contact-info {
    padding: 2.2rem;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    justify-content: flex-start;
    border-right: 1px solid var(--glass-border);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.contact-item .material-symbols-rounded {
    font-size: 1.8rem;
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
}

.contact-item div {
    flex: 1;
    min-width: 0;
}

.contact-info .contact-item h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: var(--text);
    line-height: 1.2;
}

.contact-item p {
    color: var(--text-dim);
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.contact-item p a {
    color: var(--text-dim);
    text-decoration: none;
    transition: 0.2s ease;
}

.contact-item p a:hover {
    opacity: 0.8;
    text-decoration: underline;
    color: var(--primary);
}

.contact-inline {
    margin: 0;
    color: var(--text-dim);
    font-size: 0.9rem;
    display: inline-block;
    position: relative;
    overflow-wrap: anywhere;
}

.copy-link {
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-weight: 400;
    padding: 0;
    cursor: pointer;
    transition: 0.2s ease;
    font-size: 0.9rem;
    font-family: inherit;
    text-align: left;
    display: inline;
}

.copy-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.copy-link.copied {
    background: transparent;
    color: var(--primary);
}

.contact-inline .copy-feedback {
    display: inline-block;
    position: absolute;
    left: 100%;
    top: 0;
    margin-left: 10px;
    font-size: 0.8rem;
    color: var(--primary);
    opacity: 0;
    white-space: nowrap;
    pointer-events: none;
    transition: all 0.2s ease;
    transform: translateX(-5px);
}

.contact-inline.show-feedback .copy-feedback {
    opacity: 1;
    transform: translateX(0);
}

.contact-socials {
    display: flex;
    gap: 12px;
    padding-top: 24px;
    border-top: 1px solid var(--glass-border);
    margin-top: 10px;
    list-style: none;
}

.contact-socials a {
    width: 42px;
    height: 42px;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: 0.3s;
}

.contact-socials a:hover {
    background: var(--primary);
    color: white;
}

.contact-map {
    display: flex;
    align-items: stretch;
    overflow: hidden;
    width: 100%;
}

#contact-map {
    width: 100%;
    height: 100%;
    min-height: 350px;
    border: none;
    overflow: hidden;
    z-index: 10;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    min-height: 320px;
    border: none !important;
    border-radius: 0;
}

/* --- LEAFLET HIGH-CONTRAST DARK MODE FILTER --- */
html[data-theme="dark"] #contact-map .leaflet-tile {
    filter: invert(90%) hue-rotate(180deg) brightness(95%) contrast(100%) saturate(80%);
}

html[data-theme="dark"] #contact-map.leaflet-container {
    background: #111112;
}

/* --- LEAFLET CUSTOM STYLING (ZOOM, MARKER, POPUP) --- */

/* 1. Custom Marker Pin with Pulse */
.hasici-custom-map-icon {
    background: transparent !important;
    border: none !important;
}

.hasici-map-pin-wrap {
    position: relative;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hasici-pin-pulse {
    position: absolute;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(230, 34, 34, 0.45);
    animation: hasiciPinPulse 2.2s cubic-bezier(0.25, 1, 0.5, 1) infinite;
    pointer-events: none;
}

@keyframes hasiciPinPulse {
    0% {
        transform: scale(0.6);
        opacity: 0.9;
    }
    70% {
        transform: scale(1.6);
        opacity: 0;
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

.hasici-pin-marker {
    position: relative;
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, #ff3b30 0%, #b71c1c 100%);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(230, 34, 34, 0.5), 0 2px 6px rgba(0,0,0,0.3);
    border: 2px solid #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.hasici-pin-marker:hover {
    transform: rotate(-45deg) scale(1.1);
    box-shadow: 0 6px 20px rgba(230, 34, 34, 0.7);
}

.hasici-pin-marker .material-symbols-rounded {
    transform: rotate(45deg);
    color: #ffffff;
    font-size: 19px;
    user-select: none;
}

/* 2. Custom Glassmorphic Zoom Controls */
#contact-map.contact-map-container .leaflet-control-zoom,
#contact-map .leaflet-control-zoom {
    border: none;
    box-shadow: none;
    margin: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#contact-map .leaflet-bar a,
#contact-map .leaflet-control-zoom-in,
#contact-map .leaflet-control-zoom-out {
    background: var(--glass);
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    color: var(--text);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    width: 36px;
    height: 36px;
    line-height: 34px;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

#contact-map .leaflet-bar a:hover,
#contact-map .leaflet-control-zoom-in:hover,
#contact-map .leaflet-control-zoom-out:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 34, 34, 0.4);
}

#contact-map .leaflet-control-attribution {
    background: rgba(0, 0, 0, 0.35);
    color: #888;
    backdrop-filter: blur(8px);
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 6px 0 0 0;
}

#contact-map .leaflet-control-attribution a {
    color: #aaa;
}

html[data-theme="light"] #contact-map .leaflet-control-attribution {
    background: rgba(255, 255, 255, 0.55);
    color: #666;
}

html[data-theme="light"] #contact-map .leaflet-control-attribution a {
    color: #333;
}

/* --- 14. VOZIDLO / TECHNIKA --- */
.vehicle-block {
    margin-bottom: 35px;
    content-visibility: auto;
    contain-intrinsic-size: 1px 340px;
}

.vehicle-container {
    display: grid;
    grid-template-columns: 1fr;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 22px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease;
}

.vehicle-container:hover {
    transform: translateY(-4px);
    border-color: rgba(230, 34, 34, 0.35);
    box-shadow: none;
}

html[data-theme="light"] .vehicle-container:hover {
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.08);
}

@media (min-width: 850px) {
    .vehicle-container {
        grid-template-columns: 44% 56%;
        align-items: stretch;
    }
}

@media (min-width: 1200px) {
    .vehicle-container {
        grid-template-columns: 43% 57%;
    }
}

.vehicle-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    min-height: 100%;
    overflow: hidden;
    background: #0d0e14;
}

.vehicle-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.vehicle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.6s cubic-bezier(0.2, 0, 0.2, 1);
}

.vehicle-container:hover .vehicle-image img {
    transform: scale(1.05);
}

/* Modern floating badge on photo */
.vehicle-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(230, 34, 34, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    padding: 5px 14px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    z-index: 2;
    pointer-events: none;
}

.vehicle-info {
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.vehicle-header {
    width: 100%;
}

.vehicle-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 6px;
    width: 100%;
}

.vehicle-header h3 {
    font-size: 1.65rem;
    margin-bottom: 0;
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.vehicle-title-link {
    color: var(--text);
    text-decoration: none;
    transition: color 0.25s ease;
}

.vehicle-title-link:hover {
    color: var(--primary);
}

.vehicle-call-sign {
    font-size: 0.72rem;
    color: var(--text-dim);
    font-weight: 800;
    letter-spacing: 0.06em;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

html[data-theme="light"] .vehicle-call-sign {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
    color: #444;
}

.vehicle-call-sign::before {
    content: "Volací znak: ";
    font-size: 0.64rem;
    opacity: 0.75;
    margin-right: 4px;
    font-weight: 700;
}

.vehicle-header p {
    color: var(--text-dim);
    margin: 0 0 16px 0;
    line-height: 1.5;
    font-size: 0.92rem;
    max-width: 100%;
}

/* Sleek Capsule Specs */
.vehicle-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(105px, 1fr));
    gap: 10px 12px;
    margin: 4px 0 18px 0;
    padding: 0;
    border: none;
}

.spec-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

html[data-theme="light"] .spec-item {
    background: rgba(0, 0, 0, 0.025);
    border-color: rgba(15, 23, 42, 0.07);
}

.vehicle-container:hover .spec-item {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.045);
}

html[data-theme="light"] .vehicle-container:hover .spec-item {
    border-color: rgba(15, 23, 42, 0.12);
    background: rgba(0, 0, 0, 0.04);
}

.spec-label {
    font-size: 0.66rem;
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.2;
}

.spec-value {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
    font-family: 'Montserrat', sans-serif;
}

.vehicle-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 0;
}

.vehicle-footer .btn {
    min-width: 170px;
    padding: 10px 24px;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    border-radius: 50px;
    text-align: center;
}

.is-single-vehicle .vehicle-specs {
    margin-bottom: 0;
}

.is-single-vehicle .vehicle-info {
    padding-bottom: 28px;
}

.is-single-vehicle .vehicle-footer {
    display: none;
}



/* === MOBILE RESPONSIVE BLOCKS (768px) === */
@media (max-width: 768px) {
    /* Hero Section */
    .hero {
        padding: 35px 0 25px;
        min-height: auto;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        text-align: center;
    }

    .hero-image {
        order: -1;
        display: flex;
        justify-content: center;
        position: relative;
        margin-bottom: 12px;
    }

    .hero-image img {
        max-width: clamp(230px, 68vw, 300px);
        filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
    }

    html[data-theme="dark"] .hero-image img {
        filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.6));
    }

    .hero h1 {
        font-size: clamp(1.2rem, 5.3vw, 1.85rem);
        line-height: 1.15;
        margin-bottom: 8px;
        letter-spacing: -0.02em;
        white-space: nowrap;
    }

    .hero p {
        font-size: clamp(0.74rem, 2.65vw, 0.92rem);
        font-weight: 600;
        letter-spacing: 0.01em;
        line-height: 1.35;
        color: var(--text-dim);
        margin-bottom: 20px;
        max-width: 100%;
        text-align: center;
    }

    .hero-actions {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 10px;
        width: 100%;
        max-width: 360px;
        margin: 0 auto;
    }

    .hero-actions .btn {
        flex: 1 1 0;
        min-width: 0;
        width: auto;
        padding: 12px 14px;
        font-size: 0.85rem;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-align: center;
        white-space: nowrap;
        border-radius: 50px;
        box-sizing: border-box;
    }

    .infobar {
        margin: 10px 0 24px;
        padding: 0;
        background: transparent;
        border: none;
    }

    .infobar-grid,
    html[data-theme="light"] .infobar-grid {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 0;
        background: transparent;
        border: none;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .infobar-item {
        display: flex;
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 16px;
        background: var(--card-bg);
        border: 1px solid var(--glass-border);
        border-radius: 16px;
        padding: 14px 18px;
        width: 100%;
        box-sizing: border-box;
        box-shadow: var(--shadow);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }

    html[data-theme="light"] .infobar-item {
        background: #ffffff;
        border: 1px solid rgba(15, 23, 42, 0.08);
        box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
    }

    .infobar-item .material-symbols-rounded {
        font-size: 1.65rem;
        width: 44px;
        height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        background: rgba(230, 34, 34, 0.1);
        color: var(--primary);
        margin-bottom: 0;
    }

    .infobar .infobar-text strong {
        font-size: 1.05rem;
        font-weight: 800;
        line-height: 1.2;
    }

    .infobar-text span {
        font-size: 0.84rem;
        color: var(--text-dim);
        line-height: 1.3;
    }

    .header-center h2 {
        font-size: 1.6rem;
    }

    .info-cards-grid,
    .info-cards-grid.cards-1,
    .info-cards-grid.cards-2,
    .info-cards-grid.cards-3,
    .info-cards-grid.cards-4,
    .info-cards-grid.cards-5,
    .info-cards-grid.cards-6 {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Contact Section Mobile */
    #kontakt,
    #kontakt-sekce {
        scroll-margin-top: 70px;
    }

    .contact-grid {
        display: flex;
        flex-direction: column;
        border-radius: 20px;
        overflow: hidden;
    }

    .contact-info {
        padding: 20px 18px;
        gap: 1.25rem;
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
    }

    .contact-item {
        display: flex;
        align-items: center;
        gap: 14px;
    }

    .contact-item .material-symbols-rounded {
        font-size: 1.5rem;
        width: 2.75rem;
        height: 2.75rem;
        border-radius: 12px;
        background: rgba(230, 34, 34, 0.1);
        color: var(--primary);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .contact-info .contact-item h4 {
        font-size: 0.95rem;
        font-weight: 700;
        margin-bottom: 2px;
    }

    .contact-item p,
    .contact-inline,
    .copy-link {
        font-size: 0.86rem;
        line-height: 1.45;
    }

    .contact-socials {
        padding-top: 16px;
        margin-top: 6px;
        justify-content: center;
        gap: 14px;
    }

    .contact-socials a {
        width: 44px;
        height: 44px;
    }

    #contact-map {
        height: 260px;
        min-height: 260px;
    }

    .vehicle-container {
        grid-template-columns: 1fr;
        min-height: auto;
        border-radius: 20px;
    }

    .vehicle-image {
        aspect-ratio: 16 / 10;
        width: 100%;
    }

    .vehicle-info {
        padding: 22px 20px;
        text-align: left;
    }

    .vehicle-header-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        margin-bottom: 8px;
    }

    .vehicle-header h3 {
        font-size: 1.35rem;
        line-height: 1.2;
    }

    .vehicle-call-sign {
        font-size: 0.68rem;
        padding: 4px 10px;
    }

    .vehicle-header p {
        font-size: 0.88rem;
        margin-bottom: 14px;
        max-width: 100%;
    }

    .vehicle-specs {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px 10px;
        padding: 0;
        margin-bottom: 16px;
    }

    .vehicle-specs .spec-item:nth-child(3):last-child {
        grid-column: span 2;
    }

    .spec-item {
        padding: 8px 12px;
        border-radius: 10px;
    }

    .spec-label {
        font-size: 0.62rem;
    }

    .spec-value {
        font-size: 0.95rem;
    }

    .vehicle-footer {
        flex-direction: row;
        width: 100%;
        margin-top: 5px;
    }

    .vehicle-footer .btn {
        width: 100%;
        min-width: 0;
        padding: 12px;
    }

    .vehicle-detail-card-wrap {
        margin-bottom: 30px;
    }

    .quick-links-grid,
    .quick-links-grid.links-1,
    .quick-links-grid.links-2,
    .quick-links-grid.links-3 {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .quick-link-item {
        padding: 14px 18px;
        gap: 14px;
        min-height: 4.5rem;
    }

    .quick-link-icon {
        width: 3rem;
        height: 3rem;
    }

    .quick-link-icon .material-symbols-rounded {
        font-size: 1.6rem;
    }

    .quick-link-item .quick-link-title {
        font-size: 1.05rem;
    }

    .quick-link-subtitle {
        font-size: 0.8rem;
    }

}

/* === TINY MOBILE RESPONSIVE BLOCKS (768px and down) === */
@media (max-width: 768px) {
    .calling-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .calling-card {
        padding: 14px 18px;
        gap: 14px;
    }

    .calling-icon {
        width: 40px;
        height: 40px;
    }

    .calling-icon .material-symbols-rounded {
        font-size: 1.35rem;
    }

    .members-section {
        padding-top: 0;
        padding-bottom: 10px;
    }

    .members-legend-wrap {
        margin-bottom: 25px;
    }

    .members-legend {
        padding: 14px 16px;
        border-radius: 20px;
        gap: 12px;
        width: 100%;
    }

    .legend-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px 14px;
        width: 100%;
    }

    .legend-item {
        font-size: 0.72rem;
        gap: 8px;
    }

    .legend-box {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
        border-radius: 8px;
    }

    .members-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 1fr;
        align-items: stretch;
        gap: 8px 8px;
        width: 100%;
    }

    .member-card {
        padding: 8px 10px;
        gap: 8px;
        border-radius: 12px;
        height: 100%;
        box-sizing: border-box;
        box-shadow: none;
    }

    .member-info {
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-width: 0;
    }

    .member-card .member-name {
        font-size: 0.8rem;
        font-weight: 700;
        line-height: 1.15;
        overflow-wrap: break-word;
        word-break: normal;
    }

    .member-role {
        font-size: 0.66rem;
        line-height: 1.1;
    }

    .member-badge {
        width: 30px;
        height: 30px;
        min-width: 30px;
        font-size: 0.76rem;
        border-radius: 7px;
        box-shadow: none;
    }

    .member-specs {
        gap: 2px;
        margin-top: 2px;
    }

    .spec-tag {
        font-size: 0.56rem;
        padding: 1px 4px;
        border-radius: 4px;
        letter-spacing: 0.02em;
    }

    #contact-map {
        height: 250px;
        min-height: 250px;
    }

    #kontakt.section {
        padding-bottom: 0px;
    }

    .quick-links-section {
        padding-top: 15px;
        padding-bottom: 30px;
    }
}

/* --- VEHICLE DETAIL CARD WRAP --- */
.vehicle-detail-card-wrap {
    margin-bottom: 35px;
}

.single-technika .container,
.single-technika .vehicle-detail-card-wrap .container {
    max-width: var(--container-width);
}

/* --- 20. LATEST POSTS / AKTUALITY BLOCK --- */
.latest-posts-block {
    padding: 0 0 10px 0;
    content-visibility: auto;
    contain-intrinsic-size: 1px 400px;
}

.latest-posts-block .post-footer-actions {
    margin-top: 36px;
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}

@media (max-width: 768px) {
    .latest-posts-block {
        padding: 0 0 5px 0;
    }

    .latest-posts-block .post-footer-actions {
        margin-top: 22px;
        margin-bottom: 16px;
    }

    .latest-posts-block .post-footer-actions .btn {
        width: 100%;
        max-width: 300px;
        display: inline-flex;
        justify-content: center;
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}
