/*
Theme Name:     Neve Child
Theme URI:      https://themeisle.com/themes/neve/
Template:       neve
Author:         ThemeIsle
Author URI:     https://themeisle.com
Description:    Neve child theme.
Version:        1.0.0
License:        GNU General Public License v2 or later
License URI:    http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:    neve
*/


/* =========================================================
   SINGLE EVENT PAGE
   ========================================================= */

.single-event-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 16px 40px;
}

.single-event-layout {
    width: 100%;
    min-width: 0;
}

.single-event-back {
    margin-bottom: 16px;
}

.single-event-title {
    margin: 0 0 20px;
    font-size: clamp(1.75rem, 5vw, 2.75rem);
    line-height: 1.15;
}

.single-event-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
    margin-bottom: 40px;
}

.single-event-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    max-height: 420px;
    overflow: hidden;
    border-radius: 10px;
    margin: 0;
}

.single-event-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.single-event-details {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px;
    margin: 0;
    background: #f7f7f7;
    border-radius: 10px;
    line-height: 1.5;
}

.single-event-detail {
    min-width: 0;
    overflow-wrap: anywhere;
}

.single-event-detail > strong {
    display: block;
    margin-bottom: 2px;
}

.single-event-address {
    font-weight: normal;
}

.single-event-prices ul {
    list-style: none;
    margin: 4px 0 0;
    padding: 0;
}

.single-event-prices li {
    padding: 2px 0;
}

.single-event-description,
.single-event-map {
    margin: 0 0 40px;
}

.single-event-description h2,
.single-event-map h2 {
    margin: 0 0 16px;
    padding-top: 8px;
}

.single-event-map iframe,
.single-event-map .eo-venue-map,
.single-event-map .eo-venue-map img {
    max-width: 100%;
}

.single-event-map .eo-venue-map {
    margin-bottom: 16px;
}

.single-event-button {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 6px;
    background: #333;
    color: #fff !important;
    text-decoration: none;
    text-align: center;
}

.single-event-button:hover {
    opacity: 0.85;
}

@media (max-width: 767px) {
    .single-event-map .single-event-button {
        display: block;
        width: 100%;
    }
}

@media (min-width: 768px) {
    .single-event-container {
        padding: 35px 24px 60px;
    }

    .single-event-main {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
        gap: 32px;
        margin-bottom: 48px;
    }

    .single-event-image {
        aspect-ratio: 4 / 3;
        max-height: 400px;
    }

    .single-event-details {
        padding: 26px;
        gap: 16px;
    }

    .single-event-detail > strong {
        display: inline;
        margin-right: 4px;
    }

    .single-event-prices > strong {
        display: block;
    }
}

@media (min-width: 1100px) {
    .single-event-image {
        max-height: 420px;
    }
}


/* =========================================================
   THREE-COLUMN EVENT ORGANISER LISTING
   Retained for any standard Event Organiser shortcodes
   ========================================================= */

ul.eo-events-shortcode {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
    list-style: none;
    padding: 0;
}

ul.eo-events-shortcode > li {
    margin: 0;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
}

.event-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
}

.event-card h3 {
    margin-top: 15px;
}

.event-card-button {
    display: inline-block;
    padding: 10px 18px;
    background: #333;
    color: white !important;
    border-radius: 5px;
    text-decoration: none;
}

@media (max-width: 900px) {
    ul.eo-events-shortcode {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    ul.eo-events-shortcode {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   HOLIDAY EVENT LISTING
   Matches the current holiday_event_filters PHP markup
   ========================================================= */


/* ---------- Colour palette ---------- */

:root {
    --hef-green: #1F7E24;
    --hef-green-dark: #17631B;
    --hef-green-light: #E3F2E1;
    --hef-green-border: #C9E2C5;

    --hef-red: #B5232F;
    --hef-red-light: #FBEDEE;

    --hef-amber: #F2B93B;
    --hef-purple: #6B3FA0;

    --hef-ink: #14261f;
    --hef-muted: #66736e;
    --hef-line: #e3e8e3;
}


/* =========================================================
   FILTER BOX
   One outline around the entire filter area
   ========================================================= */

.hef-filter-form {
    display: block;
    width: 100%;
    margin: 0 0 28px;
    padding: 26px;
    background: #ffffff;
    border: 1px solid var(--hef-green-border) !important;
    border-radius: 16px !important;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
}

/* Filter field layout */

.hef-filter-fields {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 16px;
    width: 100%;
}

.hef-filter-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.hef-filter-field label {
    color: var(--hef-ink);
    font-size: 14px;
    font-weight: 700;
}

/* Individual input fields */

.hef-filter-field input,
.hef-filter-field select {
    display: block;
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #d8e1d8 !important;
    border-radius: 9px !important;
    background: #ffffff;
    color: var(--hef-ink);
    font-size: 14px;
    box-sizing: border-box;
    box-shadow: none;
}

.hef-filter-field input:focus,
.hef-filter-field select:focus {
    border-color: var(--hef-green) !important;
    outline: 2px solid rgba(31, 126, 36, 0.12) !important;
    box-shadow: none !important;
}

/* Filter buttons */

.hef-filter-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

.hef-filter-button,
.hef-reset-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 22px;
    border-radius: 9px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none !important;
    cursor: pointer;
    box-sizing: border-box;
}

.hef-filter-button {
    border: 1px solid var(--hef-green) !important;
    background: var(--hef-green) !important;
    color: #ffffff !important;
}

.hef-filter-button:hover {
    background: var(--hef-green-dark) !important;
    color: #ffffff !important;
}

.hef-reset-button {
    border: 1px solid var(--hef-green) !important;
    background: #ffffff !important;
    color: var(--hef-green) !important;
}

.hef-reset-button:hover {
    background: var(--hef-green-light) !important;
}


/* =========================================================
   RESULTS TOOLBAR
   ========================================================= */

.hef-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 28px 0 18px;
    flex-wrap: wrap;
}

.hef-results-count {
    color: var(--hef-muted);
    font-size: 16px;
}

.hef-results-count strong {
    color: var(--hef-ink);
    font-weight: 800;
}

/* Hide old price legend and sorting controls */

.hef-price-legend,
.hef-sort-form {
    display: none !important;
}


/* =========================================================
   EVENT GRID
   ========================================================= */

.hef-results-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 25px;
}


/* =========================================================
   EVENT CARDS
   ========================================================= */

.hef-event-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    padding: 0;
    background: #ffffff;
    border: 1px solid var(--hef-line);
    border-radius: 16px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hef-event-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.10);
}


/* ---------- Event image ---------- */

.hef-event-card > a:first-child {
    display: block;
    width: 100%;
    overflow: hidden;
}

.hef-event-card .hef-card-image {
    display: block;
    width: 100%;
    height: 210px;
    margin: 0;
    object-fit: cover;
    border-radius: 0;
}


/* ---------- Event title ---------- */

.hef-event-card h3 {
    margin: 18px 20px 12px;
    color: var(--hef-ink);
    font-size: 21px;
    font-weight: 800;
    line-height: 1.3;
}

.hef-event-card h3 a {
    color: inherit;
    text-decoration: none;
}

.hef-event-card h3 a:hover {
    color: var(--hef-green);
}


/* ---------- Date and time ---------- */

.hef-event-card > p:nth-of-type(1),
.hef-event-card > p:nth-of-type(2) {
    margin: 0 20px;
    padding: 10px 13px;
    background: var(--hef-green-light);
    color: var(--hef-ink);
    font-size: 14px;
    line-height: 1.5;
}

.hef-event-card > p:nth-of-type(1) {
    margin-top: 8px;
    padding-bottom: 5px;
    border-radius: 10px 10px 0 0;
}

.hef-event-card > p:nth-of-type(2) {
    padding-top: 5px;
    margin-bottom: 12px;
    border-radius: 0 0 10px 10px;
}

.hef-event-card > p:nth-of-type(1) strong,
.hef-event-card > p:nth-of-type(2) strong {
    color: var(--hef-green-dark);
}


/* ---------- Location ---------- */

.hef-event-card > p:nth-of-type(3) {
    margin: 0 20px 14px;
    padding: 12px 13px;
    background: var(--hef-red-light);
    border-radius: 10px;
    color: var(--hef-ink);
    font-size: 14px;
    line-height: 1.5;
}

.hef-event-card > p:nth-of-type(3) strong {
    color: var(--hef-red);
}


/* =========================================================
   AGE-GROUP PRICING
   ========================================================= */

.hef-card-pricing {
    width: auto;
    margin: 4px 20px 18px;
    padding: 14px 0 0;
    border-top: 1px solid #e3eee1;
    box-sizing: border-box;
}

.hef-card-pricing-label {
    display: block;
    margin-bottom: 10px;
    color: var(--hef-green-dark);
    font-size: 13px;
    font-weight: 800;
}

/* Two evenly sized columns */

.hef-card-prices {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 8px;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Individual price chips */

.hef-chip {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    width: 100%;
    min-width: 0;
    min-height: 36px;
    margin: 0;
    padding: 8px 10px;
    background: #E8F3E6;
    border: 1px solid #C9E2C5;
    border-radius: 10px;
    color: #17631B;
    font-size: 13px;
    line-height: 1.3;
    box-sizing: border-box;
    white-space: normal;
}

.hef-chip strong {
    color: #17631B;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.3;
}

.hef-chip span {
    color: #17631B;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    text-align: right;
}


/* =========================================================
   VIEW EVENT BUTTON
   ========================================================= */

.hef-event-card .hef-card-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    margin: auto 20px 20px;
    padding: 12px 18px;
    background: var(--hef-green);
    border: 0;
    border-radius: 10px;
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 800;
    text-align: center;
    text-decoration: none !important;
    transition: background 0.2s ease;
    box-sizing: border-box;
}

.hef-event-card .hef-card-button:hover {
    background: var(--hef-green-dark);
}


/* ---------- No results ---------- */

.hef-no-results {
    margin: 25px 0;
    padding: 20px;
    background: #f7f9f7;
    border: 1px solid var(--hef-line);
    border-radius: 12px;
    color: var(--hef-ink);
    font-size: 16px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .hef-results-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .hef-filter-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hef-filter-field:first-child {
        grid-column: 1 / -1;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .hef-filter-form {
        padding: 18px;
    }

    .hef-filter-fields {
        grid-template-columns: 1fr;
    }

    .hef-filter-field:first-child {
        grid-column: auto;
    }

    .hef-filter-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hef-filter-button,
    .hef-reset-button {
        width: 100%;
    }

    .hef-results-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hef-event-card .hef-card-image {
        height: 200px;
    }

    .hef-event-card h3 {
        font-size: 20px;
    }

    .hef-event-card > p:nth-of-type(1),
    .hef-event-card > p:nth-of-type(2),
    .hef-event-card > p:nth-of-type(3) {
        margin-left: 16px;
        margin-right: 16px;
    }

    .hef-card-pricing {
        margin-left: 16px;
        margin-right: 16px;
    }

    .hef-card-prices {
        gap: 6px;
    }

    .hef-chip {
        padding: 7px 8px;
        font-size: 12px;
    }

    .hef-chip strong,
    .hef-chip span {
        font-size: 12px;
    }

    .hef-event-card .hef-card-button {
        margin-left: 16px;
        margin-right: 16px;
    }
}


/* =========================================================
   INDIVIDUAL EVENT PAGE
   Holiday Event Directory
   ========================================================= */

.eo-custom-event {
    max-width: 1250px;
    margin: 0 auto;
    padding: 16px 24px 60px;
    color: #1c2b27;
    box-sizing: border-box;
}


/* ---------- Back button ---------- */

.eo-back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 8px 16px 8px 12px;
    border: 1px solid #d5e2d5;
    border-radius: 999px;
    background: #ffffff;
    color: #1F7E24 !important;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none !important;
    transition: background 0.2s ease;
}

.eo-back-button:hover {
    background: #F0F7EF;
}

.eo-back-button svg {
    width: 18px;
    height: 18px;
}


/* ---------- Title ---------- */

.eo-event-header h1 {
    margin: 0 0 16px;
    font-size: clamp(1.6rem, 3.4vw, 2.25rem);
    font-weight: 700;
    line-height: 1.15;
    color: #0b2e26;
}


/* ---------- Image and details card ---------- */

.eo-event-overview {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
}

.eo-event-image {
    position: relative;
    min-height: 340px;
    border-radius: 16px;
    overflow: hidden;
    background: #e9efe9;
}

.eo-event-image img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.eo-no-image {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7a74;
}

.eo-event-info-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e3e8e3;
    border-radius: 16px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}


/* ---------- Green circle icons ---------- */

.eo-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1F7E24;
    color: #ffffff;
}

.eo-info-icon svg {
    width: 19px;
    height: 19px;
}


/* ---------- Date, time, and location rows ---------- */

.eo-info-row {
    display: grid;
    grid-template-columns: 36px 96px minmax(0, 1fr);
    column-gap: 14px;
    align-items: center;
}

.eo-info-label {
    font-size: 16px;
    font-weight: 700;
    color: #0b2e26;
}

.eo-info-value {
    margin: 0;
    font-size: 16px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.eo-info-value p {
    margin: 0;
}

.eo-address {
    display: block;
    margin-top: 2px;
    font-size: 14px;
    color: #66736e;
}


/* ---------- Pricing ---------- */

.eo-pricing-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    padding: 14px 18px;
    background: #EAF6E8;
    border-radius: 14px;
}

.eo-pricing-box--single {
    grid-template-columns: 1fr;
}

.eo-pricing-summary {
    display: flex;
    align-items: center;
    gap: 14px;
}

.eo-pricing-summary .eo-info-label {
    display: block;
    margin-bottom: 2px;
}

.eo-price-range {
    display: block;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.1;
    color: #1F7E24;
}

.eo-price-list {
    margin: 0;
    padding: 0 0 0 20px;
    list-style: none;
    border-left: 1px solid #bcd9b9;
    font-size: 16px;
    line-height: 1.55;
}

.eo-price-list li {
    margin: 0;
    padding: 0;
}


/* ---------- Primary button ---------- */

.eo-booking-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 56px;
    margin-top: auto;
    padding: 12px 20px;
    background: #1F7E24;
    color: #ffffff !important;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    text-decoration: none !important;
    border-radius: 999px;
    box-sizing: border-box;
    box-shadow: 0 4px 12px rgba(31, 126, 36, 0.25);
    transition: background 0.2s ease, transform 0.2s ease;
}

.eo-booking-button:hover {
    background: #17631B;
    transform: translateY(-2px);
}

.eo-booking-button svg {
    width: 22px;
    height: 22px;
}


/* ---------- Description ---------- */

.eo-event-description {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 16px;
    margin-top: 24px;
    padding: 22px 24px;
    background: #f4f5f6;
    border-radius: 16px;
}

.eo-event-description .eo-info-icon {
    width: 44px;
    height: 44px;
}

.eo-event-description h2 {
    margin: 0 0 8px;
    font-size: 22px;
    line-height: 1.2;
    color: #0b2e26;
}

.eo-description-content {
    font-size: 16px;
    line-height: 1.7;
}

.eo-description-content > *:first-child {
    margin-top: 0;
}

.eo-description-content > *:last-child {
    margin-bottom: 0;
}


/* ---------- Map ---------- */

.eo-event-map {
    margin-top: 32px;
}

.eo-section-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    font-size: 24px;
    line-height: 1.2;
    color: #0b2e26;
}

.eo-heading-icon {
    display: inline-flex;
    color: #1F7E24;
}

.eo-heading-icon svg {
    width: 28px;
    height: 28px;
}

.eo-map-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border: 1px solid #e3e8e3;
    border-radius: 16px;
    box-sizing: border-box;
}

.eo-map-container .eo-venue-map {
    width: 100% !important;
    max-width: 100%;
    margin: 0;
}


/* ---------- Get Directions button ---------- */

.eo-directions-button {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: #1F7E24;
    color: #ffffff !important;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none !important;
    border-radius: 999px;
    box-shadow: 0 0 0 3px #ffffff, 0 6px 18px rgba(0, 0, 0, 0.35);
    transition: background 0.2s ease, transform 0.2s ease;
}

.eo-directions-button:hover {
    background: #17631B;
    transform: translateY(-2px);
}

.eo-directions-button svg {
    width: 20px;
    height: 20px;
}

.eo-map-container > .eo-directions-button:only-child {
    position: static;
    margin: 16px;
    box-shadow: 0 4px 12px rgba(31, 126, 36, 0.25);
}


/* =========================================================
   INDIVIDUAL EVENT PAGE - TABLET
   ========================================================= */

@media (max-width: 900px) {

    .eo-event-overview {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .eo-event-image {
        min-height: 0;
        aspect-ratio: 16 / 10;
    }
}


/* =========================================================
   INDIVIDUAL EVENT PAGE - MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .eo-custom-event {
        padding: 14px 16px 40px;
    }

    .eo-event-image {
        aspect-ratio: 3 / 2;
        border-radius: 12px;
    }

    .eo-event-info-card {
        padding: 16px;
        gap: 14px;
    }

    .eo-info-row {
        grid-template-columns: 36px minmax(0, 1fr);
        row-gap: 2px;
        align-items: start;
    }

    .eo-info-row .eo-info-icon {
        grid-row: span 2;
    }

    .eo-info-row .eo-info-value {
        grid-column: 2;
    }

    .eo-pricing-box {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 14px;
    }

    .eo-price-list {
        padding: 12px 0 0;
        border-left: 0;
        border-top: 1px solid #bcd9b9;
    }

    .eo-booking-button {
        min-height: 54px;
        font-size: 17px;
    }

    .eo-event-description {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 18px;
    }

    .eo-section-heading {
        font-size: 21px;
    }

    .eo-map-container .eo-venue-map {
        height: 300px !important;
    }

    .eo-directions-button {
        position: static;
        display: flex;
        justify-content: center;
        min-height: 54px;
        padding: 14px 20px;
        border-radius: 0;
        box-shadow: none;
        transform: none;
    }

    .eo-directions-button:hover {
        transform: none;
    }
}