:root {
    --primary-color: #4a90e2;
    --secondary-color: #f5a623;
    --text-color: #333;
    --light-text-color: #777;
    --bg-color: #f8f9fa;
    --white: #fff;
    --border-color: #e9ecef;
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
    --font-family: 'Roboto', sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.leaflet-page-view .container {
    max-width: 1400px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__logo img {
    height: auto;
    max-height: 45px;
    width: auto;
}

.header__nav {
    display: none;
    gap: 1.5rem;
}

.header__nav-link {
    font-weight: 500;
    font-size: 1rem;
}

.header__special-link {
    font-size: 0.9rem;
    color: var(--light-text-color);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.header__special-link a {
    font-weight: bold;
    color: #e62020; /* Biedronka Red */
    text-decoration: underline;
}

.header__special-link a:hover {
    color: #c41818;
    text-decoration: none;
}

@media (max-width: 991px) {
    .header__special-link {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid var(--border-color);
        justify-content: center;
    }
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header__search-btn, .header__menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.header__menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.header__menu-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background-color: var(--text-color);
    transition: transform 0.3s;
}

.main-content {
    padding: 2rem 0;
}

.footer {
    background-color: #343a40;
    color: var(--white);
    padding: 1.5rem 0;
    margin-top: 2rem;
}

.footer__top {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 1.5rem;
}

.footer__column--about {
    display: none;
}

.footer__heading {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.footer__list {
    list-style: none;
}

.footer__link {
    color: var(--white);
}

.footer__bottom {
    text-align: center;
    border-top: 1px solid var(--light-text-color);
    padding-top: 1.5rem;
    font-size: 0.9rem;
}

@media (min-width: 768px) {
    .header__nav {
        display: flex;
    }

    .header__menu-toggle {
        display: none;
    }

    .footer {
        padding: 3rem 0;
        margin-top: 3rem;
    }

    .footer__top {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .footer__column--about {
        display: block;
    }
}

.ad-placeholder {
    min-height: 250px;
    background: #e9ecef;
    margin: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    border-radius: 8px;
}

.ad-label {
    color: #999;
    font-size: 12px;
    margin-bottom: 10px;
}

/* Section */
.section {
    margin-bottom: 3rem;
}

.section__title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.section__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Grids */
.grid {
    display: grid;
    gap: 1.5rem;
}

.container,
.leaflet-page-layout__main,
.main-layout__content,
.sidebar {
    container-type: inline-size;
}

.grid--leaflets,
.grid--articles {
    grid-template-columns: 1fr;
    position: relative; /* Ensure absolute positioning context for articles */
}

@container (min-width: 320px) {
    .grid--leaflets,
    .grid--articles {
        grid-template-columns: repeat(2, 1fr);
    }
}

@container (min-width: 565px) {
    .grid--leaflets,
    .grid--articles {
        grid-template-columns: repeat(3, 1fr);
    }
}

@container (min-width: 992px) {
    .grid--leaflets,
    .grid--articles {
        grid-template-columns: repeat(4, 1fr);
    }
}

.grid--networks {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}

.grid--categories {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
}

.leaflet-card {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    max-width: 265px;
    container-type: inline-size;
    container-name: leaflet-card;
}

.leaflet-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.leaflet-card__image-wrapper {
    overflow: hidden;
    display: block;
}

.leaflet-card__image {
    width: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s;
}

.leaflet-card:hover .leaflet-card__image {
    transform: scale(1.05);
}

.leaflet-card__content {
    padding: 1rem;
    display: flex;
    align-items: last baseline;
    gap: 1rem;
    flex-grow: 1;
}

.leaflet-card__network-logo {
    display: block;
    flex-shrink: 0;
}

.leaflet-card__network-logo img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: block;
}

.leaflet-card__info {
    text-decoration: none;
    color: inherit;
    display: block;
    flex-grow: 1;
    min-width: 0;
    overflow-wrap: break-word;
    container-type: inline-size;
    container-name: leaflet-card-info;
}

.leaflet-card__title {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: var(--text-color);
}

.leaflet-card__dates {
    font-size: 0.9rem;
    color: var(--light-text-color);
}

@container leaflet-card (width > 260px) {
    .leaflet-card__content {
        padding: 0.9rem;
        gap: 1.5rem;
    }
}

@container leaflet-card (width < 185px) {
    .leaflet-card__content {
        padding: 0.2rem;
        gap: 0.8rem;
    }
}

@container leaflet-card-info (width < 90px) {
    .leaflet-card__title {
        font-size: 0.7rem;
    }
    .leaflet-card__dates {
        font-size: 0.6rem;
    }
}

@container leaflet-card-info (width >= 90px) and (width < 110px) {
    .leaflet-card__title {
        font-size: 0.9rem;
    }
    .leaflet-card__dates {
        font-size: 0.8rem;
    }
}

.network-logo {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s;
}

.network-logo:hover {
    transform: scale(1.05);
}

.network-logo__image {
    max-height: 60px;
    object-fit: contain;
}

/* Category Card */
.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--white);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    color: var(--primary-color);
}

.category-card__icon {
    width: 40px;
    height: 40px;
    max-width: 40px;
    max-height: 40px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.category-card__name {
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.2;
}


.network-header {
    background: var(--white);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

.network-header__logo {
    max-width: 120px;
}

.network-header__info h1 {
    font-size: 1.3rem;
    margin-bottom: 0;
    line-height: 1.2;
}

.network-details {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
    text-align: center;
}

.network-details p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}



.rating-section {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--light-text-color);
}

#rating-stars {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.main-layout {
    display: grid;
    gap: 2rem;
}

.sidebar {
    position: sticky;
    top: 120px;
}

.sidebar__widget {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

/* Force 1 column for leaflets grid in sidebar */
.sidebar__widget .grid--leaflets {
    grid-template-columns: 1fr !important;
}

.sidebar__widget-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.sidebar__list {
    list-style: none;
}

.sidebar__list li {
    margin-bottom: 0.5rem;
    text-align: center;
}

.sidebar__list a {
    font-size: 0.9rem;
}

.sidebar__widget-more {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 500;
}

.sidebar__tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.sidebar__tag {
    background-color: var(--bg-color);
    padding: 0.3rem 0.7rem;
    border-radius: 15px;
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.sidebar__tag:hover {
    transform: scale(1.05);
}

.article-card {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 1.5rem;
    height: 400px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s;
}

.article-card:not(.expanded):hover {
    transform: scale(1.05);
}

.article-card h3 {
    margin-bottom: 1rem;
}

.article-card__image {
    margin-bottom: 1rem;
    border-radius: 4px;
    overflow: hidden;
    width: 100%;
    height: auto;
    display: block;
    flex-shrink: 0;
}

.article-card__header {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-card__content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-shrink: 0;
}

.article-card__icon {
    transition: transform 0.3s;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.article-card.expanded .article-card__icon {
    transform: rotate(180deg);
}

.article-card__body.hidden {
    display: none;
}

.article-card__body {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    animation: fadeIn 0.5s;
}

.article-card.expanded {
    position: absolute;
    z-index: 100;
    height: auto;
    box-shadow: 0 15px 30px rgba(0,0,0,0.25);
    border: 1px solid var(--primary-color);
    overflow-y: auto; /* Ensure scrollbar appears if max-height is reached */
}

.article-card.expanded .article-card__header {
    height: auto;
}

.article-card.expanded .article-card__image {
    flex-grow: 0;
    height: auto;
    width: auto;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.article-card__preview {
    font-size: 0.9rem;
    color: var(--light-text-color);
    margin-top: 0;
    overflow: hidden;
}

.article-card.expanded .article-card__preview {
    display: none;
}

.article-placeholder {
    visibility: hidden;
    /* Height will be set by JS */
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.article-rating {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.article-rating__label {
    font-weight: 500;
}

.rating-stars {
    display: flex;
    gap: 0.25rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #ddd;
}

.star {
    transition: color 0.2s;
}

.star.active,
.star.selected {
    color: var(--secondary-color);
}

.rating-feedback {
    color: var(--primary-color);
    font-weight: 500;
}

.rating-feedback.error {
    color: #dc3545;
}

.footer-html-content {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

@media (min-width: 992px) {
    .network-header {
        flex-direction: row;
        text-align: left;
    }

    .main-layout {
        grid-template-columns: 1fr 320px;
    }
}

@media (min-width: 1120px) {
    .network-header__info h1 {
        font-size: 2rem;
    }
}

.empty-state {
    text-align: center;
    padding: 3rem;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.breadcrumb {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--light-text-color);
}

.breadcrumb__link {
    color: var(--primary-color);
}

.breadcrumb__separator {
    margin: 0 0.5rem;
}

.leaflet-page-layout {
    display: grid;
    gap: 2rem;
}

.leaflet-page-layout__main {
    order: -1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ad-placeholder--mobile-bottom {
    display: block;
    margin-top: 2rem;
}

@media (min-width: 800px) {
    .leaflet-page-layout {
        grid-template-columns: 300px 1fr;
    }

    .leaflet-page-layout__main {
        padding-right: 1rem;
    }

    .leaflet-page-layout__sidebar--left {
        order: -1;
    }

    .leaflet-page-layout__sidebar--right {
        grid-column: 1 / -1;
    }
}

@media (min-width: 1260px) {
    .leaflet-page-layout {
        grid-template-columns: 300px 1fr 300px;
    }

    .leaflet-page-layout__main {
        padding-right: 0;
    }

    .leaflet-page-layout__sidebar--right {
        grid-column: auto;
    }

    .ad-placeholder--mobile-bottom {
        display: none;
    }

}

.hero-section {
    padding: 3rem 1rem;
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    border-radius: 8px;
    margin-bottom: 3rem;
}

.hero-section__title {
    font-size: 1.5rem;
    font-weight: 700;
}

@media (min-width: 768px) {
    .hero-section__title {
        font-size: 2.2rem;
    }
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination__link {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    background-color: var(--white);
    box-shadow: var(--shadow);
    transition: background-color 0.3s;
}

.pagination__link:hover {
    background-color: var(--bg-color);
}

.pagination__link--current {
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 500;
}

.pagination__link--arrow {
    font-weight: 700;
}

.network-card {
    text-align: center;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.network-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.network-card__image {
    max-width: 120px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.network-card__name {
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
}

.shops-list {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.shop-card {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.shop-card:last-child {
    border-bottom: none;
}

.shop-card strong {
    font-size: 1.1rem;
}

.shop-card span {
    color: var(--light-text-color);
    font-size: 0.9rem;
}

.leaflet-page-preview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.leaflet-page-preview-card {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    position: relative;
    background: var(--white);
    max-width: 240px;
    margin-left: auto;
    margin-right: auto;
}

.leaflet-page-preview-card:hover {
    transform: translateY(-5px);
}

.leaflet-page-preview-card img {
    width: 100%;
    height: auto;
    display: block;
}

.leaflet-page-preview-card .zoom-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.leaflet-page-preview-card:hover .zoom-hover {
    opacity: 1;
}

.leaflet-page-preview-card .zoom-hover i {
    color: white;
    font-size: 2rem;
}

@media (max-width: 768px) {
    .leaflet-page-preview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 580px) and (max-width: 768px) {
    .leaflet-page-preview-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .leaflet-page-preview-card:nth-child(4) {
        display: none;
    }
}

@media (max-width: 579px) {
    .leaflet-page-preview-card:nth-child(n+3) {
        display: none;
    }
}

.header__search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.header__search-input {
    width: 0;
    padding: 0;
    border: none;
    border-bottom: 1px solid var(--border-color);
    outline: none;
    opacity: 0;
    transition: width 0.3s, opacity 0.3s, padding 0.3s;
    background: transparent;
    font-size: 1rem;
    color: var(--text-color);
}

.header__search-wrapper.active .header__search-input {
    width: 200px;
    padding: 0.5rem;
    opacity: 1;
    border-bottom-color: var(--primary-color);
}

.header__search-results {
    position: absolute;
    top: 100%;
    right: 0;
    width: 300px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-shadow: var(--shadow);
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 1001;
}

.header__search-results.active {
    display: block;
}

.search-result-group {
    padding: 0.5rem 0;
}

.search-result-header {
    padding: 0.5rem 1rem;
    font-weight: bold;
    color: var(--light-text-color);
    font-size: 0.8rem;
    text-transform: uppercase;
    background: var(--bg-color);
}

.search-result-item {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    transition: background 0.2s;
}

.search-result-item:hover {
    background: var(--bg-color);
    color: var(--primary-color);
}

.search-result-logo {
    height: 20px;
    width: auto;
    vertical-align: middle;
    margin-right: 8px;
    display: inline-block;
}

@media (max-width: 768px) {
    .header__search-input {
        width: 150px;
    }

    .header__search-results {
        width: 250px;
    }
}

.top2-sidebar {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 140px;
    z-index: 900;
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    max-height: calc(100vh - 160px);
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.top2-sidebar::-webkit-scrollbar {
    display: none;
}

.top2-sidebar--left {
    left: 10px;
}

.top2-sidebar--right {
    right: 10px;
}

.top2-sidebar .top2-leaflet-container {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.top2-sidebar .leaflet-page-preview-card {
    height: auto;
    max-height: 25vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    box-shadow: var(--shadow);
    width: 100%;
}

.top2-sidebar .leaflet-page-preview-card img {
    max-height: 25vh;
    width: auto;
    object-fit: contain;
    max-width: 100%;
}

.top2-network-name {
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    margin-top: 0.25rem;
    line-height: 1.2;
    color: var(--text-color);
    text-decoration: none;
}

.top2-network-name:hover {
    color: var(--primary-color);
}

.top2-mobile-section {
    display: block;
    margin-bottom: 2rem;
}

.top2-mobile-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.top2-mobile-grid .top2-leaflet-container .leaflet-page-preview-card img {
    height: auto;
    width: 100%;
}

@media (min-width: 1560px) {
    .top2-sidebar {
        display: flex;
    }

    .top2-mobile-section {
        display: none;
    }
}

.top2-leaflet-browser-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, 1fr);
}

.top2-leaflet-browser-grid .top2-leaflet-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.top2-leaflet-browser-grid .leaflet-page-preview-card {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    box-shadow: var(--shadow);
}

.top2-leaflet-browser-grid .leaflet-page-preview-card img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Mobile/Narrow view for Leaflet Browser Top2 (<992px) */
@media (max-width: 991px) {
    .top2-leaflet-browser-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    /* Hide items after the 5th one */
    .top2-leaflet-browser-grid .top2-leaflet-container:nth-child(n+6) {
        display: none;
    }
}

/* 800-991px: Show only 3 items */
@media (min-width: 800px) and (max-width: 991px) {
    .top2-leaflet-browser-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .top2-leaflet-browser-grid .top2-leaflet-container:nth-child(n+4) {
        display: none;
    }
}

@media (max-width: 791px) {
    .top2-mobile-grid,
    .top2-leaflet-browser-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .top2-mobile-grid .top2-leaflet-container:nth-child(n+5),
    .top2-leaflet-browser-grid .top2-leaflet-container:nth-child(n+5) {
        display: none;
    }
}

@media (max-width: 591px) {
    .top2-mobile-grid,
    .top2-leaflet-browser-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .top2-mobile-grid .top2-leaflet-container:nth-child(n+4),
    .top2-leaflet-browser-grid .top2-leaflet-container:nth-child(n+4) {
        display: none;
    }
}

.cities-slider-wrapper {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.cities-nav-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 10px;
    color: #ccc;
    display: none; /* Controlled by JS */
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, color 0.2s;
    border-radius: 4px;
    flex-shrink: 0;
}

.cities-nav-btn:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
}

.cities-nav-btn.disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
    color: #ccc;
}

.cities-nav-btn.disabled:hover {
    background-color: transparent;
    color: #ccc;
}

.cities-nav-btn svg {
    width: 48px;
    height: 48px;
}

.cities-container {
    flex-grow: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-start;
    align-content: center;
}

.tag {
    text-decoration: none;
}

@media (max-width: 537px) {
    .section__title {
        font-size: 1.4rem;
    }
}

@media (max-width: 584px) {
    .cities-slider-wrapper {
        display: block;
        position: relative;
        padding-bottom: 4rem;
    }

    .cities-container {
        width: 100%;
        justify-content: center;
    }

    .cities-nav-btn {
        position: absolute;
        bottom: 0.5rem;
        width: 40px;
        height: 40px;
        border: 1px solid var(--border-color);
        border-radius: 50%;
        background: var(--white);
        padding: 0;
        z-index: 10;
    }

    .cities-prev {
        left: calc(50% - 50px);
    }

    .cities-next {
        right: calc(50% - 50px);
    }
}

@media (min-width: 751px) and (max-width: 1259px) {
    .leaflet-page-layout__sidebar--right .sidebar__list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 2rem;
        row-gap: 0.5rem;
    }

    .leaflet-page-layout__sidebar--right .sidebar__list li {
        margin-bottom: 0;
    }
}

@media (min-width: 751px) and (max-width: 991px) {
    .main-layout__sidebar .sidebar__list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 2rem;
        row-gap: 0.5rem;
    }

    .main-layout__sidebar .sidebar__list li {
        margin-bottom: 0;
    }
}

@media (max-width: 991px) {
    .main-layout .sidebar__widget--polecane-gazetki {
        display: none;
    }
}

@media (max-width: 799px) {
    .leaflet-page-layout .sidebar__widget--polecane-gazetki {
        display: none;
    }
}

/* App Store Links in Header */
.app-store-links {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.app-store-link img {
    height: 36px; /* Slightly larger for better visibility */
    width: auto;
}

.header__nav-apps {
    margin-top: 1rem;
    justify-content: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.header__actions-apps {
    margin-right: 0.5rem;
}

/* Responsive Visibility */
.mobile-only {
    display: none !important;
}

.desktop-only {
    display: flex !important;
}

@media (max-width: 767px) {
    .mobile-only {
        display: flex !important;
    }
    .desktop-only {
        display: none !important;
    }
}

/* Leaflet Browser Navigation */
.nav-arrow {
    font-size: 2rem;
    color: var(--secondary-color);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 10px;
}

@media (max-width: 768px) {
    .nav-arrow {
        font-size: 3rem; /* Larger on mobile */
        padding: 0 15px;
    }
}

/* Force Mobile Layout Overrides for Mobile Devices in Landscape */
body.force-mobile .mobile-only {
    display: flex !important;
}

body.force-mobile .desktop-only {
    display: none !important;
}

/* Header */
body.force-mobile .header__nav {
    display: none !important;
}

body.force-mobile .header__nav.header__nav--active {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    padding: 1rem;
    box-shadow: var(--shadow);
    z-index: 1002;
}

body.force-mobile .header__menu-toggle {
    display: flex !important;
}

body.force-mobile .header {
    padding: 0.2rem 0 !important;
}

body.force-mobile .header__actions {
    gap: 0 !important;
}

/* Footer */
body.force-mobile .footer__top {
    grid-template-columns: repeat(2, 1fr) !important;
}

body.force-mobile .footer__column--about {
    display: none !important;
}

/* Layouts */
body.force-mobile .leaflet-page-layout,
body.force-mobile .main-layout {
    grid-template-columns: 1fr !important;
}

body.force-mobile .leaflet-page-layout__main {
    padding-right: 0 !important;
}

/* Ad Placeholders */
body.force-mobile .ad-placeholder--mobile-bottom {
    display: block !important;
}

/* Sidebar Widgets */
body.force-mobile .sidebar__widget--polecane-gazetki {
    display: block !important;
}

/* Fixed Sidebars */
body.force-mobile .top2-sidebar {
    display: none !important;
}

body.force-mobile .top2-mobile-section {
    display: block !important;
}

/* Sidebar Order Override for Landscape Mobile */
body.force-mobile .leaflet-page-layout__sidebar--left {
    order: 0 !important;
}

/* Banner styles for leaflets */
.leaflet-card--banner {
    border: 2px solid var(--secondary-color);
    position: relative;
    /* Animation pulse */
    animation: pulse-banner 2s infinite;
}

.leaflet-card--banner::before {
    content: "Polecane";
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 10;
}

.leaflet-card--banner:hover {
    animation: none;
    transform: scale(1.02);
}

@keyframes pulse-banner {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 166, 35, 0.7);
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(245, 166, 35, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(245, 166, 35, 0);
        transform: scale(1);
    }
}

/* Adult Content Blocking */
.adult-blocked {
    position: relative;
    cursor: default;
}

.adult-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    color: #fff;
    padding: 1rem;
    text-align: center;
}

.adult-overlay p {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.unblock-adult-btn {
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.unblock-adult-btn:hover {
    background-color: #e09612;
}

/* Article View */
.article-view {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 2rem;
    margin-bottom: 3rem;
}

.article-view__content {
    max-width: 800px;
    margin: 0 auto;
}

.article-view__image-wrapper {
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
}

.article-view__image {
    max-width: 100%;
    width: auto;
    height: auto;
    display: block;
}

.article-view__text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.article-view__text p {
    margin-bottom: 1.5rem;
}

.article-view__text h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.article-view__text h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

@media (max-width: 768px) {
    .article-view {
        padding: 1.5rem;
    }
}
