/* STYLY SEKCE */
.content-section {
    margin-top: 40px;
}
.content-section:first-of-type {
    margin-top: 0;
}

.section-title { 
    font-family: 'Oswald', sans-serif; 
    font-size: 1.5rem; 
    color: #D42E25; 
    text-transform: uppercase; 
    font-weight: normal; 
    margin-top: 0;
    margin-bottom: 24px; 
}
.card-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 24px; 
}

/* BASICBOX */
.card { 
    background-color: white; 
    border-radius: 12px; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); 
    overflow: hidden; 
    display: flex; 
    flex-direction: column; 
    transition: box-shadow 0.3s ease-in-out; 
    height: 100%; 
    min-height: 450px; 
    position: relative;
}

.card-link-wrapper {
    text-decoration: none;
    color: inherit;
    display: block;
}


.card-link-wrapper:hover .card { 
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2); 
}

/* MODIFIKÁTOR PRO AUTO VÝŠKU */
.card--auto-height {
    height: auto;
}
.card--auto-height .card-content {
    flex-grow: 1; 
}

.card-image-container { 
    position: relative; 
}
.card-tag { 
    position: absolute; 
    top: 12px; right: 12px; 
    background-color: #D42E25; 
    color: white; 
    padding: 4px 10px; 
    border-radius: 4px; 
    font-size: 0.75rem; 
    font-weight: 700; 
    text-transform: uppercase; 
    z-index: 10; 
}
.card-image { 
    width: 100%; 
    aspect-ratio: 16 / 9; 
    object-fit: cover; 
    transition: transform 0.3s ease-in-out; 
}
.card-link-wrapper:hover .card-image { 
    transform: scale(1.05); 
}
.card-content { 
    padding: 20px; 
    flex-grow: 1; 
    display: flex; 
    flex-direction: column; 
    overflow: hidden; 
}
.card-content h3 { 
    margin-top: 0; 
    margin-bottom: 15px; 
    font-family: 'Oswald', sans-serif; 
    font-weight: normal; 
    font-size: 1.3rem; 
    color: #D42E25; 
}
.card-date { 
    display: block; 
    font-size: 0.875rem; 
    color: #606770; 
    margin-top: -5px; 
    margin-bottom: 24px; 
}
.card-perex { 
    margin: 15px 0 0 0; 
    color: #606770; 
    font-size: 0.95rem; 
    line-height: 1.5; 
    overflow: hidden; 
    text-overflow: ellipsis; 
    display: -webkit-box; 
    -webkit-line-clamp: 4; 
    -webkit-box-orient: vertical; 
}

/* DOUBLEBOX & OVERLAYBOX */
.card--double { 
    grid-column: span 2; 
}

.card--overlay .card-image,
.card--double .card-image { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    z-index: 0; 
    object-fit: cover; 
}
.card-link-wrapper:hover .card--overlay .card-image,
.card-link-wrapper:hover .card--double .card-image { 
    transform: scale(1.05); 
}
.card--overlay .card-content-overlay,
.card--double .card-content-overlay {
    position: relative; 
    z-index: 1; 
    height: 100%; 
    color: white;
    background: linear-gradient(transparent 20%, rgba(0,0,0,0.6) 60%, rgba(0,0,0,0.9) 100%);
    display: flex; 
    flex-direction: column; 
    justify-content: flex-end; 
    padding: 20px;
    box-sizing: border-box;
}
.card--overlay h3, .card--overlay .card-date, .card--overlay .card-perex,
.card--double h3, .card--double .card-date, .card--double .card-perex { 
    color: white; 
}
.card--overlay h3,
.card--double h3 { 
    font-family: 'Oswald', sans-serif; 
    font-weight: normal; 
    font-size: 1.8rem; 
}
.card--overlay .card-date,
.card--double .card-date { 
    margin-top: -15px; 
}

/* ============================================== */
/* ===      STYLY PRO KALENDÁŘ AKCÍ         === */
/* ============================================== */
.day-selector {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #fff;
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.day-selector-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.day-title {
    margin: 0 0 10px 0;
}
.day-selector-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}
.day-button {
    text-decoration: none;
    color: #606770;
    background-color: #f0f2f5;
    padding: 6px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 700;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}
.day-button--icon {
    background-color: transparent;
    padding: 6px;
    width: 33px;
    height: 33px;
    box-sizing: border-box;
    justify-content: center;
}
.day-button:hover {
    background-color: #e0e2e5;
}
.day-button.active {
    background-color: #D42E25;
    color: white;
}
.day-arrow {
    text-decoration: none;
    font-size: 2.5rem;
    color: #d0d0d0;
    font-weight: bold;
    transition: color 0.2s;
    user-select: none;
}
.day-arrow:hover {
    color: #D42E25;
}
.card-info {
    font-size: 0.9rem;
    color: #606770;
    margin: 0 0 10px 0;
    padding-left: 24px;
    position: relative;
    line-height: 1.4;
}
.card-info:last-of-type {
    margin-bottom: 0;
}
.card-info::before {
    content: '';
    position: absolute;
    left: 0;
    top: 3px;
    width: 16px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.6;
}
.card-time::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" fill="%23606770"><path d="M256 0a256 256 0 1 1 0 512A256 256 0 1 1 256 0zM232 120V256c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2V120c0-13.3-10.7-24-24-24s-24 10.7-24 24z"/></svg>');
}
.card-location::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512" fill="%23606770"><path d="M215.7 499.2C267 435 384 279.4 384 192C384 86 298 0 192 0S0 86 0 192c0 87.4 117 243 168.3 307.2c12.3 15.3 35.1 15.3 47.4 0zM192 128a64 64 0 1 1 0 128 64 64 0 1 1 0-128z"/></svg>');
}
.card-admission::before {
     background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="%23606770"><path d="M1.5 3A1.5 1.5 0 0 0 0 4.5V6a.5.5 0 0 0 .5.5 1.5 1.5 0 1 1 0 3 .5.5 0 0 0-.5.5v1.5A1.5 1.5 0 0 0 1.5 13h13a1.5 1.5 0 0 0 1.5-1.5V10a.5.5 0 0 0-.5-.5 1.5 1.5 0 1 1 0-3 .5.5 0 0 0 .5-.5V4.5A1.5 1.5 0 0 0 14.5 3h-13ZM1 4.5a.5.5 0 0 1 .5-.5h13a.5.5 0 0 1 .5.5v1.05a2.5 2.5 0 0 0 0 4.9v1.05a.5.5 0 0 1-.5.5h-13a.5.5 0 0 1-.5-.5v-1.05a2.5 2.5 0 0 0 0-4.9V4.5Z"/></svg>');
}
.card--ad {
    padding: 0;
    min-height: 0;
}
.card--ad img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.action-filter-bar {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    border-bottom: 1px solid #e0e2e5;
    padding-bottom: 20px;
    flex-wrap: wrap;
}
.action-filter-button {
    text-decoration: none;
    color: #606770;
    background-color: transparent;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 1rem;
    font-family: 'Oswald', sans-serif;
    font-weight: normal;
    transition: all 0.2s ease-in-out;
    border: 2px solid transparent;
    text-transform: uppercase;
}
.action-filter-button:hover {
    color: #D42E25;
    background-color: #f0f2f5;
}
.action-filter-button.active {
    background-color: #D42E25;
    color: white;
    border-color: #D42E25;
}

/* ============================================== */
/* ===      STYLY PRO ZÁLOŽKY A POŘADATELE      === */
/* ============================================== */
.action-panel {
    display: none;
}
.action-panel.is-visible {
    display: block;
}
.card--organizer .card-image-container {
    padding: 20px;
}
.card--organizer .card-image {
    object-fit: contain;
    aspect-ratio: 3 / 2;
}
.card--organizer .card-content {
    text-align: center;
}
.organizer-perex {
    margin: 0;
    color: #606770;
    font-size: 0.95rem;
    line-height: 1.5;
    min-height: 57px; /* 3 řádky */
}
.organizer-table-container {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}
.organizer-table {
    width: 100%;
    border-collapse: collapse;
}
.organizer-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f2f5;
    font-size: 0.95rem;
}

.organizer-table td a {
    color: #D42E25;
    text-decoration: none;
}


.organizer-table tr:last-child td {
    border-bottom: none;
}
.organizer-table tr:nth-child(even) {
    background-color: #f9f9f9;
}
.organizer-table tr:hover {
    background-color: #f0f2f5;
    cursor: pointer;
}
.organizer-table td:first-child {
    font-weight: bold;
    color: #333;
}
.organizer-table td:last-child {
    text-align: right;
    width: 60px;
}
.event-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 5px;
    background-color: #D42E25;
    color: white;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: bold;
}


/* ============================================== */
/* ===   STYLY PRO VYHLEDÁVÁNÍ V KALENDÁŘI  === */
/* ============================================== */
/* Původní styly .calendar-search-* byly odstraněny */


/* ============================================== */
/* ===     VLASTNÍ STYLY PRO FLATPICKR      === */
/* ============================================== */
.flatpickr-calendar {
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border: none;
    width: auto;
}
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: #D42E25;
    border-color: #D42E25;
    color: #fff;
}
.flatpickr-day.today {
    border-color: #D42E25;
}
.flatpickr-day.today:hover {
    background: #e9e9e9;
    border-color: #D42E25;
}
.flatpickr-day:hover {
    background: #f0f2f5;
}
.flatpickr-months .flatpickr-prev-month svg,
.flatpickr-months .flatpickr-next-month svg {
    fill: #D42E25;
    transition: fill 0.2s;
}
.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg {
    fill: #a1231d;
}
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month .numInputWrapper {
    font-family: 'Oswald', sans-serif;
    font-weight: normal;
    color: #333;
}

/* Skrytí rámečku s datem pro desktop */
#datepicker-input.flatpickr-input {
    display: none !important;
}

/* ============================================== */
/* ===      STYLY PRO DETAIL AKCE         === */
/* ============================================== */
.detail-stranka .breadcrumb {
    font-size: 0.85rem;
    color: #606770;
    margin-bottom: 24px;
}
.detail-stranka .breadcrumb a {
    color: #D42E25;
    text-decoration: none;
}
.detail-stranka .breadcrumb a:hover {
    text-decoration: underline;
}
.detail-stranka .detail-obsah {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
/* === NOVÝ GRID KONTEJNER === */
.detail-stranka .detail-obsah.detail-grid-container {
    display: grid;
    grid-template-columns: 300px 1fr; /* Pevná šířka obrázku, zbytek pro obsah */
    gap: 30px;
    align-items: start;
}
.detail-stranka .detail-top-blok {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}
.detail-stranka .detail-obrazek {
    flex-shrink: 0;
    width: 300px;
    cursor: pointer;
}
.detail-stranka .detail-obrazek img {
    width: 100%;
    height: auto; /* Zajišťuje zobrazení bez ořezu */
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.detail-stranka .detail-info {
    /* Přidán oddělovač, který byl původně na .detail-top-blok */
    border-bottom: 1px solid #f0f2f5;
    padding-bottom: 30px;
    margin-bottom: 30px;
}
.detail-stranka .detail-info h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    color: #D42E25;
    margin: 0 0 20px 0;
    line-height: 1.2;
}
.detail-stranka .detail-info-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    font-size: 1rem;
    color: #333;
}
.detail-stranka .detail-info-list a {  
    color: #D42E25;
    text-decoration: none;
}
.detail-stranka .detail-info-list a:hover {
    text-decoration: underline; 
}
.detail-stranka .detail-info-list li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 12px;
}
.detail-stranka .detail-info-list li.info-cas {
    padding-left: 30px;
}
.detail-stranka .detail-info-list li.info-cas::before {
    top: 5px;
}
.detail-stranka .detail-info-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.5;
}
.detail-stranka .info-cas .current-date {
    font-weight: bold;
    margin-bottom: 8px;
}
.detail-stranka .info-cas .future-date, .detail-stranka .info-cas .past-date {
    display: block;
    margin-bottom: 4px;
    font-size: 0.95rem;
    color: #606770;
}
.detail-stranka .info-cas details {
    margin-top: 10px;
}
.detail-stranka .info-cas summary {
    cursor: pointer;
    font-size: 0.9rem;
    color: #D42E25;
}
.detail-stranka .info-cas summary:hover {
    text-decoration: underline;
}
.detail-stranka .info-cas .past-date {
    text-decoration: line-through;
}
.detail-stranka .info-cas .hidden {
    display: none;
}

.detail-stranka .info-cas::before { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" fill="%23606770"><path d="M256 0a256 256 0 1 1 0 512A256 256 0 1 1 256 0zM232 120V256c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2V120c0-13.3-10.7-24-24-24s-24 10.7-24 24z"/></svg>'); }
.detail-stranka .info-misto::before { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512" fill="%23606770"><path d="M215.7 499.2C267 435 384 279.4 384 192C384 86 298 0 192 0S0 86 0 192c0 87.4 117 243 168.3 307.2c12.3 15.3 35.1 15.3 47.4 0zM192 128a64 64 0 1 1 0 128 64 64 0 1 1 0-128z"/></svg>'); }
.detail-stranka .info-vstupne::before { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="%23606770"><path d="M1.5 3A1.5 1.5 0 0 0 0 4.5V6a.5.5 0 0 0 .5.5 1.5 1.5 0 1 1 0 3 .5.5 0 0 0-.5.5v1.5A1.5 1.5 0 0 0 1.5 13h13a1.5 1.5 0 0 0 1.5-1.5V10a.5.5 0 0 0-.5-.5 1.5 1.5 0 1 1 0-3 .5.5 0 0 0 .5-.5V4.5A1.5 1.5 0 0 0 14.5 3h-13ZM1 4.5a.5.5 0 0 1 .5-.5h13a.5.5 0 0 1 .5.5v1.05a2.5 2.5 0 0 0 0 4.9v1.05a.5.5 0 0 1-.5.5h-13a.5.5 0 0 1-.5-.5v-1.05a2.5 2.5 0 0 0 0-4.9V4.5Z"/></svg>'); }
.detail-stranka .info-poradatel::before { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="%23606770" viewBox="0 0 448 512"><path d="M224 256A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512H418.3c16.4 0 29.7-13.3 29.7-29.7C448 383.8 368.2 304 269.7 304H178.3z"/></svg>'); }
.detail-stranka .info-misto a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid #ddd;
}
.detail-stranka .info-misto a:hover {
    color: #D42E25;
    border-bottom-color: #D42E25;
}
.detail-stranka .detail-cta-button {
    display: inline-block;
    background-color: #D42E25;
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    font-size: 1rem;
    transition: background-color 0.2s;
}
.detail-stranka .detail-cta-button:hover {
    background-color: #a1231d;
}
.detail-stranka .detail-social {
    margin-top: 20px;
    color: #606770;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}
.detail-stranka .detail-social a {
    display: block;
    width: 20px;
    height: 20px;
    margin-left: 15px;
}
.detail-stranka .detail-social a svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: #90949c;
    transition: fill 0.2s;
}
.detail-stranka .detail-social a:hover svg {
    fill: #333;
}
/* === NOVÉ STYLY PRO MINIATURY === */
.detail-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}
.detail-thumbnails img {
    width: 90px; /* Pevná šířka 90px + 10px mezera = 100px. 3 miniatury = 300px */
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid #f0f2f5;
    transition: border-color 0.2s;
}
.detail-thumbnails img:hover {
    border-color: #D42E25;
}

.detail-stranka .detail-popis h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    color: #D42E25;
    text-transform: uppercase;
    font-weight: normal;
    border-bottom: 1px solid #f0f2f5;
    padding-bottom: 10px;
    margin: 0 0 20px 0;
}
.detail-stranka .detail-popis p {
    line-height: 1.7;
    margin: 0 0 1em 0;
    color: #333;
}
.detail-dalsi-akce {
    margin-top: 40px;
}

/* === ÚPRAVA STYLŮ PRO LIGHTBOX (PŘIDÁNÍ ŠIPEK) === */
.image-popup {
    /* === OPRAVA: display: none; by default === */
    display: none; 
    position: fixed; 
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; 
    background-color: rgba(0,0,0,0.85);
    transition: opacity 0.3s ease;
    /* === OPRAVA: Přidáno pro centrování === */
    align-items: center;
    justify-content: center;
}

/* === OPRAVA: Pouze přímý potomek (pro fallback) === */
.image-popup > .popup-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
/* === OPRAVA: Pouze přímý potomek (pro fallback) === */
.image-popup > .popup-close-btn {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 2002;
}
.image-popup > .popup-close-btn:hover,
.image-popup > .popup-close-btn:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* === OPRAVA: NOVÉ STYLY PRO OBAL A TLAČÍTKO === */
.image-popup .popup-image-wrapper {
    position: relative; /* Obal je relativní pro křížek */
    display: inline-block; /* Obal se přizpůsobí obrázku */
    max-width: 90%;
    max-height: 90%;
}
.popup-image-wrapper .popup-content {
    position: static; 
    transform: none;
    /* === OPRAVA: Obrázek má mít max 90vw/90vh === */
    max-width: 90vw; 
    max-height: 90vh; 
    width: auto;
    height: auto;
    display: block;
    border-radius: 4px;
}
.popup-image-wrapper .popup-close-btn {
    position: absolute;
    top: -15px;
    right: -15px; 
    
    color: #333;
    background-color: #fff;
    font-size: 28px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 2002; 
    
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.popup-image-wrapper .popup-close-btn:hover {
    color: white;
    background-color: #D42E25;
}

/* STYLY PRO NAVIGAČNÍ ŠIPKY (společné pro obě verze) */
.popup-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background-color: rgba(0,0,0,0.3);
    color: white;
    font-size: 30px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s;
    user-select: none;
    z-index: 2001;
}
.popup-nav:hover {
    background-color: rgba(0,0,0,0.6);
}
.popup-nav.prev {
    left: 20px;
}
.popup-nav.next {
    right: 20px;
}
.popup-nav.hidden {
    display: none;
}

/* ============================================== */
/* ===    STYLY PRO INLINE VYHLEDÁVÁNÍ V LIŠTĚ === */
/* ============================================== */
.inline-search-form {
    display: inline-flex;
    vertical-align: middle;
    height: 33px; /* Sjednocení s .day-button--icon */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    overflow: hidden;
}
.inline-search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.inline-search-icon {
    position: absolute;
    left: 12px;
    width: 15px;
    height: 15px;
    color: #90949c;
    z-index: 2;
}
.inline-search-input {
    width: 220px;
    height: 100%;
    padding: 6px 15px 6px 35px;
    border: 1px solid #fff;
    background-color: #fff;
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    color: #333;
    border-radius: 20px 0 0 20px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.inline-search-input:focus {
    outline: none;
    border-color: #D42E25;
}
.inline-search-input::placeholder {
    color: #90949c;
}
.inline-search-button {
    flex-shrink: 0;
    padding: 0 15px;
    height: 100%;
    border: none;
    background-color: #D42E25;
    color: white;
    font-family: 'Oswald', sans-serif;
    font-size: 0.9rem;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
    border-radius: 0 20px 20px 0;
}
.inline-search-button:hover {
    background-color: #a1231d;
}

/* ============================================== */
/* ===           RESPONZIVNÍ STYLY          === */
/* ============================================== */

@media (min-width: 901px) {
    .main-header {
        position: sticky;
        top: 0;
        z-index: 1000;
    }
}

@media (max-width: 900px) {
    .main-header {
        margin-bottom: 12px;
    }
    .main-menu,
    .dropdown,
    .search-form-container,
    .search-button {
        display: none;
    }
    .header-grid-container {
        gap: 0 20px;
        grid-template-columns: auto 1fr;
        grid-template-rows: 1fr;
        padding: 0 16px;
        align-items: center;
    }
    .logo {
        grid-row: 1 / 2;
        grid-column: 1;
        align-self: center;
    }
    .logo img {
        max-height: 60px;
    }

    .info-bar-content {
        color: #606770;
        text-align: center;
        font-size: 0.8rem;
        background-color: transparent;
        border-radius: 0;
        padding: 0;
        margin-bottom: 24px;
        
        grid-row: auto;
        grid-column: auto;
        justify-self: auto;
        align-self: auto;
        padding-bottom: 0;
        opacity: 1;
    }

    .main-nav-content {
        grid-row: 1;
        grid-column: 2;
        justify-content: flex-end;
    }
    #mobile-nav-toggle {
        display: block;
        font-size: 1.8rem;
    }
    .nav-tools {
        margin-left: 0;
        gap: 15px;
    }

    /* === ZMĚNA: Pravidla pro detail akce přesunuta sem (na 900px) === */
    .detail-stranka .detail-obsah.detail-grid-container {
        grid-template-columns: 1fr; /* Vrátí na jeden sloupec */
        gap: 20px;
    }
    .detail-stranka .detail-obrazek {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    .detail-stranka .detail-info h1 {
        font-size: 2rem;
        text-align: center;
    }

    .detail-thumbnails {
        max-width: 300px; /* Srovnání s max-width hlavního obrázku */
        margin: 10px auto 0 auto; /* Centrování a mezera shora */
        flex-wrap: wrap; /* Umožní zalamování na menších obrazovkách */
        justify-content: center; /* Centruje miniatury, pokud se zalomí */
    }
    .detail-thumbnails img {
        width: 80px; /* Trochu zmenšíme, aby se 3 vešly lépe (3*80 + 2*10 = 260px) */
        height: 53px; /* Zachováme poměr stran */
    }
}

@media (max-width: 768px) {
    body {
        padding: 16px;
    }
    main {
        padding: 0;
    }
    
    .top-ad-banner {
        margin-top: 0;
    }
    .top-ad-banner img {
        width: 100%;
    }

    .top-grid-container,
    .card-grid {
        grid-template-columns: 1fr;
    }

    .card--double {
        grid-column: auto;
    }

    .card {
        height: auto;
        min-height: 0; 
    }
     .card--auto-height {
        min-height: 0;
    }
    .card--birthday {
        width: auto;
    }
    
    .carousel-slide__overlay h3 {
        font-size: 1.5rem;
    }

    .card--overlay h3,
    .card--double h3 {
        font-size: 1.5rem;
    }

    .bleskovka-item {
        display: flex;
        align-items: flex-start;
        gap: 12px;
    }
    .bleskovka-icon {
        width: 60px;
        height: 60px;
        flex-shrink: 0;
    }
    .bleskovka-content {
         margin: 0;
    }
    .bleskovka-time {
        display: inline;
        font-weight: 700;
        margin-right: 6px;
        margin-bottom: 0;
        font-size: 0.9rem;
    }
    .bleskovka-text {
        display: inline;
        font-size: 0.9rem;
    }
    .bleskovka-link-icon {
        display: none;
    }

    .carousel-thumbnails {
        overflow-x: auto;
        flex-wrap: nowrap;
    }
    .carousel-thumbnail {
        width: 40px;
        flex-shrink: 0;
    }
    
    #promo-box-oman {
        margin-top: 40px; 
    }
    
    .hide-on-mobile {
        display: none;
    }

    /* --- RESPONZIVNÍ PATIČKA --- */
    footer {
        padding: 20px;
        text-align: center;
    }
    .footer-links-row {
        flex-direction: column;
        gap: 30px;
    }
    .footer-rubriky {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    .footer-bottom-row {
        flex-direction: column-reverse;
        gap: 30px;
    }

    /* --- RESPONZIVNÍ KALENDÁŘ --- */
    .day-selector {
        padding: 15px;
        gap: 15px;
    }
    .day-selector-center {
        gap: 12px;
    }
    .day-title {
        font-size: 1.2rem;
        margin: 0;
        padding: 0 10px;
    }
    .day-selector-main {
        padding: 0 5px;
    }
    .day-arrow {
        font-size: 2.2rem;
    }
    .day-selector-actions {
        gap: 12px 8px; /* 12px vertikálně, 8px horizontálně */
        justify-content: center;
        width: 100%;
        flex-wrap: wrap;
    }
    .inline-search-form {
        width: 100%; /* Na mobilu ať je přes celou šířku */
        max-width: 350px; /* Ale ne víc než... */
        margin: 0 auto; /* Centrování */
        height: 38px; /* O něco menší */
    }
    .inline-search-input {
        font-size: 0.9rem;
    }
    .inline-search-button {
        font-size: 0.9rem;
    }
    .day-button {
        padding: 5px 12px;
        font-size: 0.8rem;
    }
    .action-filter-bar {
        padding-bottom: 15px;
        margin-bottom: 30px;
        gap: 8px;
    }
    .action-filter-button {
        font-size: 0.9rem;
        padding: 6px 15px;
    }

    #datepicker-input.flatpickr-input {
        display: none !important; 
    }
    
    /* --- RESPONZIVITA PRO DETAIL AKCE --- */
    .detail-stranka .detail-obsah {
        padding: 20px;
    }
}