/**
 * Swimming pools listing (shortcode [swim_home_pools])
 *
 * Attributes: title, skin (home | schedule), show_title (yes | no), aria_label (when heading hidden).
 * Schedule skin: white section (#fff), light blue cards (#BCE8FF). Use show_title="no" to hide the h2.
 */

/* ----- Legacy card layout (shortcode without .swim-home-pools--hero-match) ----- */

.swim-home-pools:not(.swim-home-pools--hero-match) {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    padding: 1rem 1.25rem 2rem;
    box-sizing: border-box;
}

.swim-home-pools:not(.swim-home-pools--hero-match) .swim-home-pools__section-title {
    max-width: 1140px;
    margin: 0 0 11px 0;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
    color: #333333;
    font-family: "Arial", sans-serif;
    font-size: 36px;
    line-height: 49px;
    letter-spacing: 2px;
    font-weight: 400;
    text-align: center;
}

.swim-home-pools:not(.swim-home-pools--hero-match) .swim-home-pools__dark-panels {
    padding: 0;
    background: transparent;
}

.swim-home-pools:not(.swim-home-pools--hero-match) .swim-home-pools__list {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.swim-home-pools:not(.swim-home-pools--hero-match) .swim-home-pools__card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem 1.35rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.swim-home-pools:not(.swim-home-pools--hero-match) .swim-home-pools__name {
    margin: 0 0 0.5rem;
    font-size: clamp(1.15rem, 3.5vw, 1.35rem);
    font-weight: 700;
    color: #00509e;
    line-height: 1.3;
}

.swim-home-pools:not(.swim-home-pools--hero-match) .swim-home-pools__address {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #444;
}

.swim-home-pools:not(.swim-home-pools--hero-match) .swim-home-pools__hours {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    line-height: 1.45;
    color: #333;
}

.swim-home-pools:not(.swim-home-pools--hero-match) .swim-home-pools__hours-row {
    margin-bottom: 0.75rem;
}

.swim-home-pools:not(.swim-home-pools--hero-match) .swim-home-pools__hours-row:last-child {
    margin-bottom: 0;
}

.swim-home-pools:not(.swim-home-pools--hero-match) .swim-home-pools__hours-days {
    display: block;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.swim-home-pools:not(.swim-home-pools--hero-match) .swim-home-pools__hours-times {
    display: block;
    font-weight: 400;
}

.swim-home-pools:not(.swim-home-pools--hero-match) .swim-home-pools__contacts-title {
    margin: 0.75rem 0 0; /* bottom 0 */
    margin-bottom: 0 !important;
    font-size: 0.95rem;
    font-weight: 700;
    color: #333;
}

.swim-home-pools:not(.swim-home-pools--hero-match) .swim-home-pools__contacts {
    margin: 0;
    padding: 0;
    list-style: none;
}

.swim-home-pools:not(.swim-home-pools--hero-match) .swim-home-pools__contact {
    margin: 0.25rem 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.swim-home-pools:not(.swim-home-pools--hero-match) .swim-home-pools__contact a {
    color: #00509e;
    text-decoration: none;
    font-weight: 600;
}

.swim-home-pools:not(.swim-home-pools--hero-match) .swim-home-pools__contact a:hover,
.swim-home-pools:not(.swim-home-pools--hero-match) .swim-home-pools__contact a:focus {
    text-decoration: underline;
}

@media (min-width: 768px) {
    .swim-home-pools:not(.swim-home-pools--hero-match) {
        padding: 1.5rem 1.5rem 2.5rem;
    }

    .swim-home-pools:not(.swim-home-pools--hero-match) .swim-home-pools__list {
        gap: 2rem;
    }

    .swim-home-pools:not(.swim-home-pools--hero-match) .swim-home-pools__card {
        padding: 1.5rem 1.75rem;
    }
}

@media (min-width: 1024px) {
    .swim-home-pools:not(.swim-home-pools--hero-match) .swim-home-pools__list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
        align-items: start;
    }
}

/* ----- Hero layout (matches swim.lt home Elementor) ----- */

.swim-home-pools--hero-match {
    box-sizing: border-box;
    margin-bottom: 0;
    padding-bottom: 2.5rem;
}

.swim-home-pools--hero-match.swim-home-pools--skin-home {
    background-color: #bce8ff;
}

.swim-home-pools--hero-match.swim-home-pools--skin-schedule {
    background-color: #ffffff;
}

.swim-home-pools--hero-match .swim-home-pools__section-title {
    max-width: 1140px;
    margin: 0 0 11px 0;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
    color: #333333;
    font-family: "Arial", sans-serif;
    font-size: 36px;
    line-height: 49px;
    letter-spacing: 2px;
    font-weight: 400;
    text-align: center;
}

/* Ensure Elementor global heading rules do not override this title (home skin, front page) */
.home .swim-home-pools--hero-match.swim-home-pools--skin-home .swim-home-pools__section-title {
    color: #333333 !important;
    font-family: "Arial", sans-serif !important;
    font-size: 36px !important;
    line-height: 49px !important;
    letter-spacing: 2px !important;
    margin: 0 auto 11px auto !important;
}

.swim-home-pools--hero-match .swim-home-pools__dark-panels {
    max-width: 1140px;
    margin: 0 auto 1.5rem;
    box-sizing: border-box;
    padding: 0rem 1.75rem 0rem;
    background: transparent;
}

.swim-home-pools--hero-match .swim-home-pools__dark-panels::before {
    content: none;
}

.swim-home-pools--hero-match .swim-home-pools__list {
    position: relative;
    z-index: 1;
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem 2.5rem;
    box-sizing: border-box;
}

.swim-home-pools--hero-match.swim-home-pools--skin-home .swim-home-pools__card {
    margin: 0;
    padding: 1.35rem 1.5rem;
    background: #00509e;
    border: none;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    color: #f5f5f5;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.swim-home-pools--hero-match.swim-home-pools--skin-home .swim-home-pools__name {
    margin: 0 0 0.65rem;
    font-size: clamp(1.25rem, 3.2vw, 1.5rem);
    font-weight: 400;
    color: #f5f5f5;
    line-height: 1.35;
}

.swim-home-pools--hero-match.swim-home-pools--skin-home .swim-home-pools__address {
    display: none;
}

.swim-home-pools--hero-match.swim-home-pools--skin-home .swim-home-pools__hours {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    line-height: 1.55;
    color: #f5f5f5;
}

.swim-home-pools--hero-match.swim-home-pools--skin-home .swim-home-pools__hours-row {
    margin-bottom: 0.65rem;
}

.swim-home-pools--hero-match.swim-home-pools--skin-home .swim-home-pools__hours-row:last-child {
    margin-bottom: 0;
}

.swim-home-pools--hero-match.swim-home-pools--skin-home .swim-home-pools__hours-days {
    display: block;
    font-weight: 600;
    margin-bottom: 0.15rem;
    color: #f5f5f5;
}

.swim-home-pools--hero-match.swim-home-pools--skin-home .swim-home-pools__hours-times {
    display: block;
    font-weight: 400;
}

.swim-home-pools--hero-match.swim-home-pools--skin-home .swim-home-pools__contacts-title {
    margin: 0.85rem 0 0; /* bottom 0 */
    margin-bottom: 0 !important;
    font-size: 0.95rem;
    font-weight: 700;
    color: #f5f5f5;
}

.swim-home-pools--hero-match.swim-home-pools--skin-home .swim-home-pools__contacts {
    margin: 0;
    padding: 0;
    list-style: none;
}

.swim-home-pools--hero-match.swim-home-pools--skin-home .swim-home-pools__contact {
    margin: 0.35rem 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: #f5f5f5;
}

.swim-home-pools--hero-match.swim-home-pools--skin-home .swim-home-pools__contact i {
    margin-right: 0.4rem;
    opacity: 0.95;
}

.swim-home-pools--hero-match.swim-home-pools--skin-home .swim-home-pools__contact a {
    color: #f5f5f5;
    text-decoration: none;
    font-weight: 400;
}

.swim-home-pools--hero-match.swim-home-pools--skin-home .swim-home-pools__contact a:hover,
.swim-home-pools--hero-match.swim-home-pools--skin-home .swim-home-pools__contact a:focus {
    text-decoration: underline;
}

/* ----- Schedule skin: same layout, alternate colors ----- */

.swim-home-pools--hero-match.swim-home-pools--skin-schedule .swim-home-pools__section-title {
    color: #333333 !important;
    font-family: "Arial", sans-serif !important;
    font-size: 36px !important;
    line-height: 49px !important;
    letter-spacing: 2px !important;
    margin: 0 auto 11px auto !important;
}

.swim-home-pools--hero-match.swim-home-pools--skin-schedule .swim-home-pools__card {
    margin: 0;
    padding: 1.35rem 1.5rem;
    background: #bce8ff;
    border: 1px solid #9fd4f5;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    color: #1a202c;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.swim-home-pools--hero-match.swim-home-pools--skin-schedule .swim-home-pools__name {
    margin: 0 0 0.65rem;
    font-size: clamp(1.25rem, 3.2vw, 1.5rem);
    font-weight: 400;
    color: #00509e;
    line-height: 1.35;
}

.swim-home-pools--hero-match.swim-home-pools--skin-schedule .swim-home-pools__address {
    display: none;
}

.swim-home-pools--hero-match.swim-home-pools--skin-schedule .swim-home-pools__hours {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    line-height: 1.55;
}

.swim-home-pools--hero-match.swim-home-pools--skin-schedule .swim-home-pools__hours-row {
    margin-bottom: 0.65rem;
}

.swim-home-pools--hero-match.swim-home-pools--skin-schedule .swim-home-pools__hours-row:last-child {
    margin-bottom: 0;
}

.swim-home-pools--hero-match.swim-home-pools--skin-schedule .swim-home-pools__hours-days {
    display: block;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.swim-home-pools--hero-match.swim-home-pools--skin-schedule .swim-home-pools__hours-times {
    display: block;
    font-weight: 400;
}

.swim-home-pools--hero-match.swim-home-pools--skin-schedule .swim-home-pools__hours,
.swim-home-pools--hero-match.swim-home-pools--skin-schedule .swim-home-pools__hours-days,
.swim-home-pools--hero-match.swim-home-pools--skin-schedule .swim-home-pools__hours-times {
    color: #2d3748;
}

.swim-home-pools--hero-match.swim-home-pools--skin-schedule .swim-home-pools__contacts-title {
    margin: 0.85rem 0 0;
    margin-bottom: 0 !important;
    color: #1a202c;
}

.swim-home-pools--hero-match.swim-home-pools--skin-schedule .swim-home-pools__contacts {
    margin: 0;
    padding: 0;
    list-style: none;
}

.swim-home-pools--hero-match.swim-home-pools--skin-schedule .swim-home-pools__contact {
    color: #4a5568;
}

.swim-home-pools--hero-match.swim-home-pools--skin-schedule .swim-home-pools__contact a {
    color: #00509e;
}

.swim-home-pools--hero-match.swim-home-pools--skin-schedule .swim-home-pools__contact a:hover,
.swim-home-pools--hero-match.swim-home-pools--skin-schedule .swim-home-pools__contact a:focus {
    text-decoration: underline;
}

@media (min-width: 768px) {
    .swim-home-pools--hero-match .swim-home-pools__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 0.35rem; /* 3x smaller than before */
        column-gap: 1.25rem; /* 2x smaller than before */
    }
}

/* Elementor container background for the shortcode block on home */
.home .elementor-element-9e1e768 > .elementor-widget-wrap.elementor-element-populated {
    background-color: #bce8ff;
}
