@charset "utf-8";

/* Project 41 — custom UX & mobile enhancements */

/* Smooth scroll + anchor offset (fixed header) */
html {
    scroll-behavior: smooth;
}

#about,
#team,
#membership,
#contacts {
    scroll-margin-top: 200px;
}

@media (max-width: 767px) {
    #about,
    #team,
    #membership,
    #contacts {
        scroll-margin-top: 80px;
    }
}

/* Testimonials rotator */
#testimonials-swiper.testimonials-rotator {
    overflow: hidden;
}

#testimonials-swiper.testimonials-rotator .slides {
    display: flex;
    width: 300%;
    transition: transform 1.5s ease;
    will-change: transform;
}

#testimonials-swiper.testimonials-rotator .slides .swiper-slide {
    flex: 0 0 33.333333%;
    width: 33.333333%;
    box-sizing: border-box;
}

@media (max-width: 767px) {
    .sc_testimonials.width_66_per,
    #sc_testimonials_3 {
        width: 100% !important;
        max-width: 100%;
        padding-left: 16px;
        padding-right: 16px;
        box-sizing: border-box;
    }

    .testimonials_custom_block_3 .sc_testimonial_content p {
        font-size: 0.95em;
        line-height: 1.6;
    }
}

/* Mobile header enhancements */
.header_mobile .content_wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.header_mobile .logo {
    flex: 1;
    text-align: center;
}

.header_mobile .logo_main {
    max-height: 44px;
    width: auto;
    max-width: 180px;
    height: auto;
}

.header_mobile .menu_button {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.p41-mobile-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.p41-mobile-cart {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    color: inherit;
    text-decoration: none;
}

.p41-mobile-cart .contact_icon {
    font-size: 1.25em;
}

.p41-mobile-cart-count {
    position: absolute;
    top: 4px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #1ca9eb;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

.p41-mobile-cart-count:empty,
.p41-mobile-cart-count[data-count="0"] {
    display: none;
}

.header_mobile .close {
    cursor: pointer;
    min-height: 44px;
    display: flex;
    align-items: center;
}

/* Hide template leftovers in mobile drawer */
.header_mobile .search_wrap,
.header_mobile .login {
    display: none !important;
}

.header_mobile .top_panel_link a {
    display: block;
    padding: 14px 20px;
    text-align: center;
    font-weight: 600;
}

/* Touch-friendly buttons & form fields */
@media (max-width: 767px) {
    .button,
    .sc_button,
    input[type="submit"],
    input[type="button"],
    .woocommerce a.button,
    .woocommerce button.button {
        min-height: 44px;
        line-height: 1.3;
    }

    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    input[type="number"],
    input[type="date"],
    select,
    textarea {
        font-size: 16px;
    }

    .content_wrap {
        padding-left: 16px;
        padding-right: 16px;
        box-sizing: border-box;
    }

    .footer_wrap .columns_wrap .widget {
        margin-bottom: 2em;
    }

    .top_panel_title .breadcrumbs {
        font-size: 0.85em;
        line-height: 1.5;
        word-break: break-word;
    }

    .woocommerce ul.products li.product,
    .woocommerce-page ul.products li.product {
        width: 100% !important;
        float: none;
        margin: 0 0 1.5em;
    }

    .woocommerce.columns-4 ul.products {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }
}

/* ── Booking page (tennis + padel pro) ── */
#p41BookingApp {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 0 48px;
}

.p41-bk-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 45%, #0c4a6e 100%);
    border-radius: 16px;
    padding: 36px 32px;
    margin-bottom: 24px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.p41-bk-hero::after {
    content: '';
    position: absolute;
    right: -20px;
    top: -20px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(28, 169, 235, 0.35) 0%, transparent 70%);
    pointer-events: none;
}

.p41-bk-hero-inner { position: relative; z-index: 1; }

.p41-bk-hero-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(28, 169, 235, 0.25);
    border: 1px solid rgba(28, 169, 235, 0.5);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}

.p41-bk-title {
    margin: 0 0 8px;
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.p41-bk-subtitle {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.95rem;
}

.p41-bk-auth {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 20px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-radius: 12px;
}

.p41-bk-auth-icon { font-size: 1.75rem; line-height: 1; flex-shrink: 0; }

.p41-bk-auth strong { display: block; margin-bottom: 4px; color: #0c4a6e; }

.p41-bk-auth p { margin: 0; color: #0369a1; font-size: 0.9rem; line-height: 1.5; }

.p41-bk-auth a { color: #0284c7; font-weight: 600; }

.p41-bk-toolbar {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.p41-bk-quick-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.p41-bk-quick-btn {
    flex: 1 1 calc(25% - 8px);
    min-width: 100px;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.p41-bk-quick-btn:hover { border-color: #1ca9eb; background: #f0f9ff; }

.p41-bk-quick-btn.active {
    border-color: #1ca9eb;
    background: #1ca9eb;
    color: #fff;
    box-shadow: 0 4px 12px rgba(28, 169, 235, 0.35);
}

.p41-bk-quick-btn.active .p41-bk-quick-sub { color: rgba(255, 255, 255, 0.85); }

.p41-bk-quick-label {
    display: block;
    font-weight: 700;
    font-size: 0.85rem;
}

.p41-bk-quick-sub {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 2px;
}

.p41-bk-toolbar-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.p41-bk-date-label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-weight: 600;
    font-size: 0.8rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.p41-bk-date-label input[type="date"] {
    min-height: 44px;
    min-width: 180px;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    background: #fff;
}

.p41-bk-date-label input:focus {
    outline: none;
    border-color: #1ca9eb;
    box-shadow: 0 0 0 3px rgba(28, 169, 235, 0.15);
}

.p41-bk-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 10px;
}

.p41-bk-filter {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    background: transparent;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    color: #64748b;
    transition: background 0.15s, color 0.15s;
}

.p41-bk-filter:hover { color: #0f172a; }

.p41-bk-filter.active {
    background: #fff;
    color: #0f172a;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.p41-bk-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    margin-bottom: 16px;
    font-size: 0.8rem;
    color: #64748b;
}

.p41-bk-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.p41-bk-dot {
    width: 12px;
    height: 12px;
    border-radius: 4px;
    display: inline-block;
}

.p41-bk-dot-free { background: #dcfce7; border: 2px solid #22c55e; }
.p41-bk-dot-taken { background: #fee2e2; border: 2px solid #ef4444; }
.p41-bk-dot-book { background: #1ca9eb; }

.p41-bk-grid-area {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.p41-bk-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 56px 24px;
    color: #64748b;
}

.p41-bk-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #e2e8f0;
    border-top-color: #1ca9eb;
    border-radius: 50%;
    animation: p41-spin 0.7s linear infinite;
}

@keyframes p41-spin { to { transform: rotate(360deg); } }

.p41-bk-empty {
    text-align: center;
    padding: 48px 24px;
    color: #64748b;
}

.p41-bk-empty-error { color: #b91c1c; }

.p41-bk-empty-sm { padding: 24px; font-size: 0.9rem; }

.p41-bk-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.p41-bk-scroll-hint {
    display: none;
    padding: 10px 16px;
    margin: 0;
    font-size: 0.8rem;
    color: #64748b;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    text-align: center;
}

.p41-bk-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.p41-bk-table th,
.p41-bk-table td {
    padding: 10px 8px;
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.p41-bk-table thead th {
    background: #f8fafc;
    font-weight: 600;
    font-size: 11px;
    color: #64748b;
    padding: 14px 8px;
    border-bottom: 1px solid #e2e8f0;
}

.p41-bk-th-time,
.p41-bk-time-cell {
    background: #f8fafc;
    font-weight: 700;
    color: #0f172a;
    min-width: 64px;
}

.p41-bk-court-name { display: block; font-weight: 700; color: #0f172a; font-size: 12px; }

.p41-bk-court-tag {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
}

.p41-bk-court-tag-tennis { background: #fef3c7; color: #92400e; }
.p41-bk-court-tag-padel { background: #dbeafe; color: #1d4ed8; }

.p41-bk-slot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    min-height: 40px;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    border: none;
    font-family: inherit;
    cursor: default;
}

.p41-bk-slot-free {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.p41-bk-slot-taken {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.p41-bk-slot-book {
    background: #1ca9eb;
    color: #fff;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    box-shadow: 0 2px 6px rgba(28, 169, 235, 0.35);
}

.p41-bk-slot-book:hover { background: #1590cc; }
.p41-bk-slot-book:active { transform: scale(0.97); }
.p41-bk-slot-book:disabled { opacity: 0.6; cursor: wait; }

/* Mobile cards */
.p41-bk-cards {
    display: none;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
}

.p41-bk-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.p41-bk-card-time {
    background: linear-gradient(90deg, #0f172a, #1e3a5f);
    color: #fff;
    font-weight: 700;
    padding: 12px 16px;
    font-size: 1.05rem;
}

.p41-bk-card-courts { padding: 4px 12px 8px; }

.p41-bk-card-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 4px;
    border-bottom: 1px solid #f1f5f9;
}

.p41-bk-card-row:last-child { border-bottom: none; }

.p41-bk-card-court { flex: 1; min-width: 0; }

.p41-bk-card-action { flex-shrink: 0; }

/* My bookings */
.p41-bk-mine-section {
    margin-top: 36px;
    padding-top: 32px;
    border-top: 1px solid #e2e8f0;
}

.p41-bk-section-title {
    margin: 0 0 16px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
}

.p41-bk-mine-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 10px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.p41-bk-mine-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f9ff;
    border-radius: 10px;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.p41-bk-mine-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.p41-bk-mine-body strong { color: #0f172a; font-size: 0.95rem; }
.p41-bk-mine-body span { color: #64748b; font-size: 0.85rem; }

/* Confirm modal */
.p41-bk-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.p41-bk-modal.open { display: flex; }

.p41-bk-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
}

.p41-bk-modal-box {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 28px 24px 24px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.p41-bk-modal-box h3 {
    margin: 0 0 12px;
    font-size: 1.15rem;
}

.p41-bk-modal-box p {
    margin: 0 0 20px;
    line-height: 1.6;
    color: #475569;
}

.p41-bk-confirm-meta {
    display: block;
    margin-top: 8px;
    font-size: 0.85rem;
    color: #64748b;
}

.p41-bk-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.p41-bk-btn {
    padding: 11px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    border: none;
}

.p41-bk-btn-ghost {
    background: #f1f5f9;
    color: #475569;
}

.p41-bk-btn-primary {
    background: #1ca9eb;
    color: #fff;
}

.p41-bk-btn-primary:hover { background: #1590cc; }

/* Toast */
.p41-bk-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    padding: 14px 22px;
    background: #0f172a;
    color: #fff;
    border-radius: 12px;
    font-weight: 500;
    font-size: 14px;
    z-index: 10001;
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    pointer-events: none;
    max-width: calc(100% - 32px);
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.p41-bk-toast.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.p41-bk-toast.success { background: #166534; }
.p41-bk-toast.error { background: #991b1b; }

@media (max-width: 767px) {
    .p41-bk-hero { padding: 28px 20px; border-radius: 12px; }

    .p41-bk-quick-btn { flex: 1 1 calc(50% - 8px); }

    .p41-bk-toolbar-row { flex-direction: column; align-items: stretch; }

    .p41-bk-date-label input { width: 100%; }

    .p41-bk-filters { width: 100%; justify-content: stretch; }

    .p41-bk-filter { flex: 1; text-align: center; padding: 10px 8px; font-size: 0.8rem; }

    .p41-bk-scroll-hint { display: block; }

    .p41-bk-cards { display: flex; }

    .p41-bk-table-wrap { display: none; }

    .p41-bk-auth { flex-direction: column; text-align: center; align-items: center; }
}

@media (min-width: 768px) {
    .p41-bk-table tbody tr:hover { background: #fafbfc; }

    .p41-bk-th-time,
    .p41-bk-time-cell {
        position: sticky;
        left: 0;
        z-index: 2;
        box-shadow: 2px 0 4px rgba(0, 0, 0, 0.04);
    }
}

/* Account page */
#p41AccountApp {
    max-width: 720px;
    margin: 0 auto;
    padding: 20px 0;
}

#p41AccountApp .p41-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 26px;
}

#p41AccountApp .p41-tabs button,
#p41AccountApp .p41-tabs .button {
    min-height: 44px;
    padding: 10px 16px;
}

#p41AccountApp input[type="text"],
#p41AccountApp input[type="email"],
#p41AccountApp input[type="tel"],
#p41AccountApp input[type="password"] {
    width: 100%;
    box-sizing: border-box;
    min-height: 44px;
    padding: 10px 12px;
}

@media (max-width: 767px) {
    #p41AccountApp .p41-tabs button,
    #p41AccountApp .p41-tabs .button {
        flex: 1 1 calc(50% - 8px);
    }
}

/* Success page */
.success-container {
    max-width: 800px;
    margin: 60px auto;
    padding: 40px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

@media (max-width: 767px) {
    .success-container {
        margin: 24px 16px;
        padding: 24px 20px;
    }

    .success-title {
        font-size: 24px !important;
    }
}

/* Safe area for notched phones */
@supports (padding: max(0px)) {
    .header_mobile .content_wrap {
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }

    .scroll_to_top {
        bottom: max(20px, env(safe-area-inset-bottom));
    }
}

/* === p41 mobile main-menu fix (self-contained hamburger; theme JS unreliable) === */
@media (max-width: 900px) {
  .top_panel_wrap .menu_main_wrap { position: relative; }
  .top_panel_wrap .menu_main_responsive_button { display: inline-block !important; font-size: 30px; line-height: 1; color: #16294d; cursor: pointer; padding: 4px 6px; }
  .top_panel_wrap .menu_main_nav_area { display: none; position: absolute; right: 0; left: auto; top: 100%; min-width: 240px; background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.15); border-radius: 8px; z-index: 10050; }
  .top_panel_wrap .menu_main_wrap.p41-open .menu_main_nav_area { display: block; }
  .top_panel_wrap .menu_main_nav_area .menu_main_nav { display: block; padding: 6px 0; }
  .top_panel_wrap .menu_main_nav_area .menu_main_nav > li { display: block; float: none; width: 100%; border-bottom: 1px solid #eef0f4; }
  .top_panel_wrap .menu_main_nav_area .menu_main_nav > li:last-child { border-bottom: 0; }
  .top_panel_wrap .menu_main_nav_area .menu_main_nav > li > a { display: block; padding: 13px 22px; color: #16294d; }
  /* weather side-block floats awkwardly on small screens */
  #wpc-weather-id-1, .wpc-weather-id { display: none !important; }
}

/* === p41 CLEAN mobile header (self-contained; theme mobile header is unreliable) === */
#p41-mhdr { display: none; }
@media (max-width: 900px) {
  .top_panel_wrap, .header_mobile, #custom_side_block { display: none !important; }
  body { padding-top: 58px !important; }
  #p41-mhdr { display: flex; align-items: center; justify-content: space-between;
    position: fixed; top: 0; left: 0; right: 0; height: 58px; padding: 0 16px;
    background: #fff; border-bottom: 1px solid #e7eaf1; z-index: 100000; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
  #p41-mhdr .p41-mh-logo { display: flex; align-items: center; }
  #p41-mhdr .p41-mh-logo img { height: 34px; width: auto; }
  #p41-mhdr .p41-mh-burger { background: none; border: 0; color: #16294d; font-size: 26px; line-height: 1; cursor: pointer; padding: 6px; }
  #p41-mhdr .p41-mh-panel { display: none; position: fixed; top: 58px; left: 0; right: 0;
    background: #fff; box-shadow: 0 14px 34px rgba(0,0,0,.18); max-height: calc(100vh - 58px); overflow-y: auto; }
  #p41-mhdr .p41-mh-panel.open { display: block; }
  #p41-mhdr .p41-mh-panel > a { display: block; padding: 15px 22px; color: #16294d; font-weight: 600; border-bottom: 1px solid #eef0f4; text-decoration: none; }
  #p41-mhdr .p41-mh-panel > a:active { background: #f4f6fa; }
  #p41-mhdr .p41-mh-row { display: flex; align-items: center; gap: 16px; padding: 16px 22px; flex-wrap: wrap; }
  #p41-mhdr .p41-mh-row a { color: #16294d; text-decoration: none; font-weight: 600; }
  #p41-mhdr .p41-mh-lang { margin-left: auto; }
  #p41-mhdr .p41-mh-lang a.on { font-weight: 800; } #p41-mhdr .p41-mh-lang a:not(.on) { opacity: .5; }
}

/* === p41 mobile: stack the 2-column info sections (Welcome etc.) to full width === */
@media (max-width: 767px) {
  .general_info_section .columns_wrap .column-1_2 { width: 100% !important; max-width: 100%; float: none; box-sizing: border-box; }
  .general_info_section .columns_wrap .column-1_2:empty { display: none !important; }  /* drop the empty image-only half */
  .general_info_section .sc_column_item_2 .font_size_3_929em,
  .general_info_section .sc_column_item_2 h3 { font-size: 2.2em !important; line-height: 1.12; }
  .general_info_section .sc_column_item_inner { padding-left: 20px; padding-right: 20px; }
}

/* === p41 mobile: content column full-width (theme keeps .content at sidebar width) === */
@media (max-width: 767px) {
  .page_content_wrap > .content_wrap { width: auto !important; max-width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; box-sizing: border-box; padding-left: 10px; padding-right: 10px; }
  .page_content_wrap .content { width: 100% !important; max-width: 100% !important; float: none !important; }
}

/* === p41 mobile: clip residual grid-gutter overflow (e.g. WooCommerce ul.products) === */
@media (max-width: 767px) {
  html, body { overflow-x: hidden !important; }
  .page_content_wrap ul.products { margin-left: 0 !important; margin-right: 0 !important; }
}

/* === p41 booking polish: visible hero title + compact mobile cards === */
.p41-bk-title { color: #fff; }
@media (max-width: 767px) {
  .p41-bk-card-courts { display: grid !important; grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px 10px 10px; }
  .p41-bk-card-row { flex-direction: column !important; align-items: stretch !important; gap: 5px !important; padding: 7px !important; border: 1px solid #eef0f4 !important; border-radius: 8px; }
  .p41-bk-card-row:last-child { border-bottom: 1px solid #eef0f4 !important; }
  .p41-bk-card-court { flex: none !important; font-size: .82em; }
  .p41-bk-card-action { width: 100%; }
  .p41-bk-card-action .p41-bk-slot { width: 100%; display: block; text-align: center; }
}

/* booking compact cards: let grid items shrink so the status pill fits (no clip) */
@media (max-width: 767px) {
  .p41-bk-card-courts .p41-bk-card-row { min-width: 0 !important; overflow: hidden; }
  .p41-bk-card-action { min-width: 0 !important; }
  .p41-bk-card-action .p41-bk-slot { box-sizing: border-box !important; min-width: 0 !important; max-width: 100%; padding-left: 4px !important; padding-right: 4px !important; font-size: .82em; }
}


/* === p41 responsive hero (replaces Revolution Slider) === */
.p41-hero { position: relative; min-height: 62vh; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; background: #0b162e; }
.p41-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; animation: p41HeroFade 18s infinite; }
.p41-hero-bg-1 { background-image: url(/images/slide2_bg.jpg); animation-delay: 0s; }
.p41-hero-bg-2 { background-image: url(/images/header1.png); animation-delay: 6s; }
.p41-hero-bg-3 { background-image: url(/images/header3.png); animation-delay: 12s; }
@keyframes p41HeroFade { 0%{opacity:0;} 5%{opacity:1;} 30%{opacity:1;} 38%{opacity:0;} 100%{opacity:0;} }
.p41-hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,22,46,.45), rgba(11,22,46,.68)); }
.p41-hero-content { position: relative; z-index: 2; color: #fff; padding: 48px 20px; max-width: 780px; }
.p41-hero-content h1 { color: #fff; font-size: clamp(2rem, 6.5vw, 3.6rem); font-weight: 800; line-height: 1.1; margin: 0 0 14px; }
.p41-hero-content p { color: #e6ebf5; font-size: clamp(1rem, 2.6vw, 1.25rem); margin: 0 0 28px; }
.p41-hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.p41-hero-btn { display: inline-block; padding: 14px 30px; border-radius: 8px; font-weight: 700; text-decoration: none; background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.55); transition: opacity .15s; }
.p41-hero-btn.primary { background: #1ca9eb; border-color: #1ca9eb; }
.p41-hero-btn:hover { opacity: .9; }
@media (max-width: 767px) { .p41-hero { min-height: 54vh; } .p41-hero-content { padding: 36px 16px; } }
@media (prefers-reduced-motion: reduce) { .p41-hero-bg { animation: none; } .p41-hero-bg-1 { opacity: 1; } }

/* === p41 mobile booking: compact scrollable table (14 rows) instead of the 84-item card list === */
@media (max-width: 767px) {
  .p41-bk-cards { display: none !important; }
  .p41-bk-table-wrap { display: block !important; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .p41-bk-table { font-size: .72rem; width: auto; }
  .p41-bk-table th, .p41-bk-table td { padding: 5px 4px; text-align: center; }
  .p41-bk-table .p41-bk-th-time, .p41-bk-table .p41-bk-time-cell { position: sticky; left: 0; background: #fff; z-index: 2; box-shadow: 1px 0 0 #e7eaf1; }
  .p41-bk-table .p41-bk-court-tag { display: none; }
  .p41-bk-table .p41-bk-court-name { font-size: .78rem; white-space: nowrap; font-weight: 700; }
  .p41-bk-table .p41-bk-slot { padding: 4px 6px !important; font-size: .9em; min-width: 0; white-space: nowrap; }
  .p41-bk-scroll-hint { display: block; }
}

/* === p41 mobile booking: fit all 6 courts on screen as a color grid (no h-scroll) === */
@media (max-width: 767px) {
  .p41-bk-table-wrap { overflow-x: visible !important; }
  .p41-bk-scroll-hint { display: none !important; }
  .p41-bk-table { width: 100% !important; table-layout: fixed; border-collapse: separate; border-spacing: 3px; }
  .p41-bk-table th, .p41-bk-table td { padding: 1px !important; text-align: center; vertical-align: middle; }
  .p41-bk-table .p41-bk-th-time, .p41-bk-table .p41-bk-time-cell { width: 40px; font-size: .66rem !important; box-shadow: none !important; position: static !important; }
  .p41-bk-table .p41-bk-court-name { font-size: .55rem !important; font-weight: 700; line-height: 1.05; white-space: normal; }
  .p41-bk-table .p41-bk-court-tag { display: none !important; }
  .p41-bk-table td .p41-bk-slot { display: block !important; width: 100% !important; height: 30px; min-width: 0 !important; padding: 0 !important; font-size: 0 !important; border-radius: 5px; border: 0 !important; }
  .p41-bk-table .p41-bk-slot-free { background: #c9ebcc !important; }
  .p41-bk-table .p41-bk-slot-taken { background: #f3d2d2 !important; }
  .p41-bk-table .p41-bk-slot-book { background: #1ca9eb !important; }
}

/* === p41 mobile booking grid: full-width + visible sticky court headers === */
@media (max-width: 767px) {
  .page_content_wrap .content_wrap { width: auto !important; max-width: 100% !important; }
  #bkGrid, #p41BookingApp, .p41-bk-table-wrap { width: 100% !important; max-width: 100% !important; }
  .p41-bk-table thead th { position: sticky; top: 58px; background: #16294d !important; z-index: 3; padding: 6px 2px !important; }
  .p41-bk-table thead th, .p41-bk-table thead .p41-bk-court-name { color: #fff !important; }
  .p41-bk-table thead .p41-bk-th-time { background: #16294d !important; color: #fff !important; }
  .p41-bk-table td .p41-bk-slot { height: 34px; }
}

/* === p41 account / profile page === */
.p41-acct{max-width:1000px;margin:0 auto;}
.p41-acct-hero{display:flex;align-items:center;gap:18px;background:linear-gradient(135deg,#16294d,#23457f);color:#fff;border-radius:18px;padding:26px 28px;margin-bottom:24px;flex-wrap:wrap;box-shadow:0 10px 30px rgba(20,40,80,.18);}
.p41-acct-avatar{width:66px;height:66px;border-radius:50%;background:#1ca9eb;display:flex;align-items:center;justify-content:center;font-size:28px;font-weight:800;flex:0 0 auto;}
.p41-acct-id{flex:1;min-width:170px;}
.p41-acct-id h2{margin:0 0 6px !important;color:#fff !important;font-size:26px !important;line-height:1.1;}
.p41-acct-contact{margin:0;color:#dfe8f5;font-size:14px;word-break:break-word;}
.p41-acct-role{display:inline-block;margin-top:8px;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.25);border-radius:20px;padding:3px 14px;font-size:12px;font-weight:600;letter-spacing:.3px;}
.p41-acct-logout{background:rgba(255,255,255,.12);color:#fff;border:1px solid rgba(255,255,255,.35);border-radius:10px;padding:10px 18px;cursor:pointer;font-weight:600;font-size:14px;align-self:flex-start;}
.p41-acct-logout:hover{background:rgba(255,255,255,.22);}
.p41-acct-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;}
.p41-acct-card{background:#fff;border:1px solid #e7eaf1;border-radius:16px;padding:22px 24px;box-shadow:0 4px 18px rgba(20,40,80,.05);}
.p41-acct-card.p41-acct-wide{grid-column:1 / -1;}
.p41-acct-card h3{margin:0 0 16px !important;font-size:17px !important;color:#16294d !important;border-bottom:1px solid #eef0f5;padding-bottom:12px;}
.p41-acct-card table{width:100%;border-collapse:collapse;font-size:13.5px;}
.p41-acct-card table th,.p41-acct-card table td{padding:8px 6px;border-bottom:1px solid #f0f2f7;text-align:left;}
.p41-acct-card table th{color:#7a8596;font-weight:600;font-size:11.5px;text-transform:uppercase;}
.p41-acct-card p{font-size:14px;color:#55617a;}
.p41-acct-card label{font-size:13px;color:#55617a;}
@media(max-width:767px){.p41-acct-grid{grid-template-columns:1fr;gap:14px;}.p41-acct-hero{padding:20px;gap:14px;}.p41-acct-avatar{width:54px;height:54px;font-size:22px;}.p41-acct-id h2{font-size:22px !important;}.p41-acct-card{padding:18px;}}
