/* 
 * Custom CSS for The222 Divi child theme
 * (migrated from Kallyas child theme; Kallyas-specific selectors removed)
 */

/* WooCommerce: hide product meta (SKU/category/tags) */
.woocommerce div.product .product_meta { display: none; }

/* WooCommerce: keep tabs list visible but allow you to hide specific tabs via PHP */


/* ── FacetWP filter bar ── */
#fwp-filter-bar {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
	column-gap: 12px !important;
    flex-wrap: wrap !important;
    margin-bottom: 30px !important;
    padding: 16px 0 !important;
}
#fwp-filter-bar .facetwp-facet {
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    flex-shrink: 0;
}
#fwp-filter-bar .facetwp-type-reset {
    margin-left: 12px !important;
}


/* ── Custom category dropdown — force border (Divi reset override) ── */
.fwp-custom-dropdown {
    position: relative !important;
    display: inline-flex !important;
}
.fwp-custom-trigger {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: #fff !important;
    border: 1.5px solid #222 !important;
    border-radius: 6px !important;
    padding: 10px 16px 10px 12px !important;
    font-size: 0.95rem !important;
    font-family: 'Source Sans 3', sans-serif !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    min-width: 160px !important;
    color: #222 !important;
    line-height: normal !important;
    box-shadow: none !important;
    outline: none !important;
    text-align: left !important;
}
.fwp-custom-trigger:hover,
.fwp-custom-trigger:focus {
    background: #fff !important;
    border-color: #000 !important;
    color: #222 !important;
}
.fwp-trigger-dot {
    display: inline-block !important;
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
    border: 1.5px solid #ccc !important;
}
.fwp-custom-list {
    display: none;
    position: absolute !important;
    top: calc(100% + 4px) !important;
    left: 0 !important;
    min-width: 210px !important;
    background: #fff !important;
    border: 1.5px solid #222 !important;
    border-radius: 6px !important;
    padding: 6px 0 !important;
    margin: 0 !important;
    list-style: none !important;
    z-index: 9999 !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.10) !important;
}
.fwp-custom-dropdown.open .fwp-custom-list { display: block !important; }
.fwp-custom-opt {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 9px 16px !important;
    cursor: pointer !important;
    font-size: 0.9rem !important;
    font-family: 'Source Sans 3', sans-serif !important;
    transition: background 0.15s !important;
    color: #222 !important;
}
.fwp-custom-opt:hover { background: #f5f5f5 !important; }
.fwp-custom-opt.selected { font-weight: 700 !important; background: #f0f0f0 !important; }
.fwp-dot { display: inline-block !important; width: 10px !important; height: 10px !important; border-radius: 50% !important; flex-shrink: 0 !important; }
.fwp-dot-all { background: transparent !important; border: 1.5px solid #ccc !important; }

/* ── Date range — each input its OWN box ── */
.facetwp-type-date_range,
.facetwp-date-range {
    display: inline-flex !important;
    align-items: center !important;
    gap: 16px !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
}
.fwp-date-start,
.fwp-date-end {
    display: inline-flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    margin: 0 0 0 12px !important;
    padding: 0 !important;
}


.fwp-date-start input,
.fwp-date-end input,
.facetwp-type-date_range input[type="text"],
.facetwp-type-date_range .facetwp-date,
.facetwp-date-range input[type="text"],
.facetwp-date-range .facetwp-date {
    appearance: none !important;
    -webkit-appearance: none !important;
    background: #fff !important;
    border: 1.5px solid #222 !important;
    border-radius: 6px !important;
    padding: 10px 14px !important;
    font-size: 0.95rem !important;
    font-family: 'Source Sans 3', sans-serif !important;
    min-width: 110px !important;
    width: 110px !important;
    box-shadow: none !important;
    outline: none !important;
    color: #222 !important;
    cursor: pointer !important;
}
.facetwp-dr-separator { display: none !important; }

/* ── Clear filters ── */
.facetwp-type-reset .facetwp-reset {
    display: inline-block !important;
    background: transparent !important;
    border: 1.5px solid #222 !important;
    border-radius: 6px !important;
    padding: 10px 18px !important;
    font-size: 0.95rem !important;
    font-family: 'Source Sans 3', sans-serif !important;
    cursor: pointer !important;
    text-decoration: none !important;
    color: #222 !important;
    white-space: nowrap !important;
    transition: background 0.2s, color 0.2s !important;
}
.facetwp-type-reset .facetwp-reset:hover { background: #222 !important; color: #fff !important; }


/* ── Production grid ── */
.facetwp-template {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 30px 0;
    background-color: transparent !important;
    opacity: 1 !important;
}

/* ── Card ── */
.fwp-item {
    background: #f6f5f3;
    border: none;
    box-shadow: 0 0 10px rgba(0,0,0,0.10);
    transition: 0.25s;

}
.fwp-item:hover {
    background: #eceae6;
    box-shadow: 0 8px 28px rgba(0,0,0,0.14);
    transform: translateY(-4px);


}
.fwp-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
.fwp-item-image {
    overflow: hidden;
    width: 100%;
    aspect-ratio: 4 / 3;
}
.fwp-item-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
	object-position: top center;
    display: block;
    transition: transform ease-in-out 0.4s;
}

.fwp-item:hover .fwp-item-image img { transform: scale(1.05); }


.fwp-item-body { padding: 16px 18px 20px; }

/* ── Category — Source Sans Pro, small caps ── */
.fwp-item-category {
    display: block;
        font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #000;
    margin-bottom: 6px;
}

/* ── Title — Playfair Display, matching homepage ── */
.fwp-item-title {
        font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;

    margin: 0 0 8px;
    line-height: 1.3;
    color: #0e0c19;
}

/* ── Date — Source Sans 3 ── */
.fwp-item-date {
        font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    color: #555;

    margin: 0;
}

/* ── Responsive ── */
@media (max-width: 980px) {
    .facetwp-template { grid-template-columns: repeat(2, 1fr); }
    #fwp-filter-bar   { flex-wrap: wrap !important; }
}
@media (max-width: 600px) {
    .facetwp-template { grid-template-columns: 1fr; }
}
/* ── Hero CTA button position fix ── */
.nycb-hero-video .hero-cta {
    left: 120px !important;
    transform: translateY(-50%) !important;
}
/* ============================================================
   RESPONSIVE — Homepage + What's On
   Append to the bottom of custom.css
   Breakpoints: tablet ≤ 980px | phone ≤ 767px | small ≤ 480px
   ============================================================ */


/* ── 1. HERO VIDEO ─────────────────────────────────────────── */

/* Use small viewport height so mobile browser chrome doesn't cut it off */
.nycb-hero-video {
    height: 100svh !important;   /* svh = safe viewport height */
}

/* Hero heading text — scale down on tablet */
@media (max-width: 980px) {
    .nycb-hero-video .hero-text h1 {
        font-size: clamp(28px, 5vw, 64px) !important;
        letter-spacing: 0.05em !important;
    }
    .nycb-hero-video .hero-text p {
        font-size: clamp(11px, 1.4vw, 16px) !important;
        letter-spacing: 0.15em !important;
    }
}

/* Hero heading text — scale down further on phone */
@media (max-width: 767px) {
    .nycb-hero-video .hero-text h1 {
        font-size: clamp(22px, 7vw, 42px) !important;
        letter-spacing: 0.03em !important;
    }
    .nycb-hero-video .hero-text p {
        font-size: clamp(10px, 2.5vw, 14px) !important;
        letter-spacing: 0.1em !important;
    }
}

/* Hero CTA button — tablet: left-aligned with safe padding */
@media (max-width: 980px) {
    .nycb-hero-video .hero-cta {
        left: 32px !important;
        bottom: 80px !important;
        font-size: 15px !important;
        padding: 12px 20px !important;
    }
}

/* Hero CTA button — phone: full-width centered */
@media (max-width: 767px) {
    .nycb-hero-video .hero-cta {
        left: 50% !important;
        transform: translateX(-50%) !important;
        bottom: 60px !important;
        font-size: 14px !important;
        padding: 12px 24px !important;
        white-space: nowrap !important;
    }
}


/* ── 2. HIGHLIGHTS SECTION (homepage) ──────────────────────── */

/* Section heading */
@media (max-width: 980px) {
    .et_pb_heading_2 .et_pb_module_header {
        font-size: 28px !important;
    }
}
@media (max-width: 767px) {
    .et_pb_heading_2 .et_pb_module_header {
        font-size: 22px !important;
    }
}

/* Card columns: Divi inline already does 50% @ 980px and 100% @ 767px.
   Adjust min-height so portrait images don't feel cramped. */
@media (max-width: 980px) {
    .et_pb_column_6,  .et_pb_column_7,
    .et_pb_column_8,  .et_pb_column_9,
    .et_pb_column_10, .et_pb_column_11,
    .et_pb_column_12, .et_pb_column_13 {
        min-height: 300px !important;
    }
}
@media (max-width: 767px) {
    .et_pb_column_6,  .et_pb_column_7,
    .et_pb_column_8,  .et_pb_column_9,
    .et_pb_column_10, .et_pb_column_11,
    .et_pb_column_12, .et_pb_column_13 {
        min-height: 260px !important;
        background-size: cover !important;
        background-position: top center !important;
    }
}

/* Card text modules inside highlights row */
@media (max-width: 767px) {
    .prod-card .et_pb_text_inner {
        font-size: 13px !important;
    }
    .prod-title .et_pb_module_header {
        font-size: 16px !important;
    }
}


/* ── 3. WHAT'S ON — FILTER BAR ─────────────────────────────── */

/* Tablet: stack into two rows, keep inputs same size */
@media (max-width: 980px) {
    #fwp-filter-bar {
        gap: 10px !important;
        column-gap: 10px !important;
        padding: 12px 0 !important;
    }
    .fwp-custom-trigger {
        min-width: 140px !important;
        font-size: 0.875rem !important;
        padding: 9px 14px 9px 10px !important;
    }
    .fwp-date-start input,
    .fwp-date-end input,
    .facetwp-type-date_range input[type="text"] {
        min-width: 95px !important;
        width: 95px !important;
        font-size: 0.875rem !important;
        padding: 9px 10px !important;
    }
}

/* Phone: full-width stacked filters */
@media (max-width: 767px) {
    #fwp-filter-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
        padding: 10px 0 !important;
    }
    #fwp-filter-bar .facetwp-facet {
        width: 100% !important;
        display: block !important;
    }
    .fwp-custom-dropdown {
        width: 100% !important;
        display: block !important;
    }
    .fwp-custom-trigger {
        width: 100% !important;
        min-width: unset !important;
        font-size: 0.9rem !important;
        padding: 11px 14px !important;
        box-sizing: border-box !important;
    }
    .fwp-custom-list {
        width: 100% !important;
        min-width: unset !important;
        box-sizing: border-box !important;
    }
    .facetwp-type-date_range,
    .facetwp-date-range {
        width: 100% !important;
        flex-direction: column !important;
        gap: 8px !important;
    }
    .fwp-date-start,
    .fwp-date-end {
        width: 100% !important;
        margin: 0 !important;
    }
    .fwp-date-start input,
    .fwp-date-end input,
    .facetwp-type-date_range input[type="text"] {
        width: 100% !important;
        min-width: unset !important;
        box-sizing: border-box !important;
        font-size: 0.9rem !important;
        padding: 11px 14px !important;
    }
    .facetwp-type-reset .facetwp-reset {
        width: 100% !important;
        text-align: center !important;
        padding: 11px 18px !important;
        box-sizing: border-box !important;
    }
}


/* ── 4. WHAT'S ON — EVENT GRID ─────────────────────────────── */

/* 3 col already set in base; 2 col @ 980px and 1 col @ 600px already in custom.css */
/* Refine card internals for tablet */
@media (max-width: 980px) {
    .fwp-item-title {
        font-size: 1rem !important;
    }
    .fwp-item-body {
        padding: 14px 15px 16px !important;
    }
}

/* Phone: slightly tighter card body */
@media (max-width: 767px) {
    .fwp-item-image {
        aspect-ratio: 16 / 9 !important;   /* wider crop on phone — more content visible */
    }
    .fwp-item-image img {
        aspect-ratio: 16 / 9 !important;
    }
    .fwp-item-title {
        font-size: 1.05rem !important;
        margin-bottom: 6px !important;
    }
    .fwp-item-category {
        font-size: 10px !important;
    }
    .fwp-item-date {
        font-size: 0.75rem !important;
    }
}


/* ── 5. GLOBAL HEADER — mobile ──────────────────────────────── */

/* Reduce header row padding on mobile so it doesn't eat vertical space */
@media (max-width: 980px) {
    .et_pb_row_0_tb_header.et_pb_row {
        padding-top: 12px !important;
        padding-bottom: 12px !important;
    }
    .et_pb_image_0_tb_header {
        width: 22% !important;
    }
}
@media (max-width: 767px) {
    .et_pb_row_0_tb_header.et_pb_row {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }
    .et_pb_image_0_tb_header {
        width: 30% !important;
    }
}
/* ── Header search bar – desktop + all sizes ── */
.header-search-form {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    border: none !important;
    background: transparent !important;
    gap: 4px !important;
}
.header-search-form input[type="search"] {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    border: none !important;
    border-bottom: 2px solid #111111 !important;
    border-radius: 0 !important;
    padding: 4px 0 !important;
    font-size: 13px !important;
    background: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    color: #0e0c19 !important;
    transition: border-bottom-color 0.25s ease !important;
}
.header-search-form input[type="search"]:focus {
    border-bottom-color: #fca311 !important;
}
.header-search-form input[type="search"]::placeholder {
    color: #999 !important;
}
.header-search-form button[type="submit"] {
    flex: 0 0 auto !important;
    border: none !important;
    background: transparent !important;
    padding: 0 0 0 6px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}