/*
Theme Name: Boise with Kids
Theme URI: https://www.valice.com/
Author: Valice
Author URI: https://www.valice.com/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Template: whitespace
Text Domain: boise-with-kids
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

/* Site Header */

header.wp-block-template-part {
    box-shadow: rgba(33, 35, 38, 0.6) 0px 20px 30px 0px;
    z-index: 99;
    position: relative;
}

a.search-link-mobile {
    display: none;
}

.wp-block-navigation__responsive-container-open svg {
    width: 30px;
    height: 30px;
}

.wp-block-navigation__responsive-container-open.wp-block-navigation__responsive-container-open.wp-block-navigation__responsive-container-open {
    border: none;
}
@media only screen and (max-width:920px) {
.wp-block-navigation__submenu-container {
    gap: 30px !important;
    }
}

.wp-block-group.triangle {
    clip-path: polygon(0 0,100% 0,100% calc(100% - 100px),50% 100%,0 calc(100% - 100px));
}

.wp-block-group.logo-background {
    background-image: url(images/logo-bg.png);
    background-size: 400px auto;
    background-position: left center;
    background-repeat: no-repeat;
}

button.wp-block-search__button {
    padding: 5px;
}

.wp-block-search__button svg {
    width: 30px;
    height: 30px;
}

.wp-block-search__inside-wrapper {
    padding: 0;
}

.triangle h1 {
    max-width: 60%;
    margin-left: auto;
    margin-right: auto;
}

/* Facet WP */

.facetwp-facet input,
.facetwp-facet .fs-label-wrap,
.articles-filter select {
    border-color: var(--wp--preset--color--secondary);
    border-width: 2px;
}

.facetwp-facet input.facetwp-search {
    padding: 5px 30px 5px 10px;
    line-height: 1;
}

.facetwp-facet .fs-wrap.multiple {
    line-height: 1.2;
}

.facetwp-facet button.facetwp-reset {
    background-color: var(--wp--preset--color--secondary);
    color: #fff;
    padding: 10px;
    margin-top: 32px;
    border: none;
    box-shadow: none;
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    text-transform: uppercase;
}

.articles-filter .facetwp-facet button.facetwp-reset {
    margin-top: 0;
}

.articles-filter select {
    padding: 5px 20px;
}

.facetwp-facet button.facetwp-map-filtering {
    background-color: var(--wp--preset--color--secondary);
    color: #fff;
    padding: 10px;
    border: none;
    box-shadow: none;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
}

.facetwp-facet #facetwp-map {
    max-width: 100%;
}

.facetwp-facet.facetwp-type-checkboxes {
    display: flex;
    gap: 10px;
}

/* Gravity Forms */

.gform-theme--api,.gform-theme--foundation {
    --gf-form-gap-x: 16px;
    --gf-form-gap-y: 10px;
}

button.facetwp-load-more {
    background-color: #32547c;
    color: #fff;
    padding: 10px;
    border-radius: 0;
    border: none;
    font-size: 18px;
    text-transform: uppercase;
}

/* Directory Fields */

.directory-fields > div {
    margin-bottom: 8px;
    line-height: 1.1;
    text-indent: -27px;
    padding-left: 30px;
}

.directory-fields .social-links {
    display: flex;
    gap: 20px;
    text-indent: 0;
    padding-left: 0;
    margin-bottom: 0;
    margin-left: -12px;
}

.directory-fields a {
    text-decoration: none;
}

.directory-fields a:hover {
    color: #e58574;
}

.directory-fields .social-links .dashicons {
    font-size: 26px;
    width: 26px;
    height: 26px;
}

.desktop-hide {
    display: none;
}

.block-editor-block-list__block.desktop-hide {
    display: block;
}

.discount-wrapper {
    position: relative;
    padding: 40px;
}

.discount {
    padding: 35px;
    border: 3px dashed #32547c;
    color:#32547c;
}

.discount-icon {
    background-image: url(images/discount.png);
    background-size: contain;
    background-repeat: no-repeat;
    padding: 20px;
    width: 80px;
    height: 80px;
    position: absolute;
    left: 0;
    top: 0;
}

.discount-listing {
    position: relative;
    color: transparent;
    width: 100px;
    height: 40px;
}

.discount-listing .discount-icon {
    top: -20px;
}

/* ACF Map */
.acf-map {
    width: 100%;
    height: 400px;
    border: #ccc solid 1px;
    margin: 20px 0;
}

.acf-map img {
   max-width: inherit !important;
}

/* Header Mobile */

@media only screen and (max-width: 920px) {
    .wp-block-navigation .wp-block-navigation-item__content.wp-block-navigation-item__content {
        font-size: 14px;
    }

    .site-header img.custom-logo {
        max-width: 150px;
    }

   .site-header .wp-container-core-group-is-layout-2 {
        margin-top: 0;
   }

   .home .wp-block-group.triangle .wp-block-search__inside-wrapper {
        padding-bottom: 20px;
   }
}

@media only screen and (max-width: 920px) {
    .mobile-hide {
        display: none !important;
    }

    .desktop-hide {
        display: block;
    }

    a.search-link-mobile {
        display: block;
    }

    form.header-search {
        display: none;
    }

    header #mega-menu-wrap-menu-1 {
        position: absolute;
        right: 10px;
        top: 30px;
    }
    .wp-block-navigation .wp-block-navigation-item__content.wp-block-navigation-item__content {
        font-size: 18px;
    }
}

/* Events */

.events-section .tribe-events-widget-events-list__events {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.events-section .tribe-events-widget-events-list__events .tribe-common-g-row.tribe-events-widget-events-list__event-row {
    background: #fff;
    color: #32547c;
    padding: 20px;
    height: 180px;
    overflow: scroll;
}

.events-section .tribe-events-widget .tribe-events-widget-events-list__event-date-tag-datetime {
    margin-right: 10px;
}

.events-section .tribe-events-widget .tribe-events-widget-events-list__event-date-tag-datetime:before {
    content: "\f508";
    font-family: 'dashicons';
}

.events-section .tribe-events-widget .tribe-events-widget-events-list__event-date-tag-month {
    color: #32547c;
    font-size: 20px;
    font-weight: 600;
    text-transform: capitalize;
}

.events-section .tribe-events-widget .tribe-events-widget-events-list__event-date-tag-daynum.tribe-common-h4--min-medium  {
    font-size: 40px;
    margin-top: -10px;
    color: #32547c;
}

.events-section .tribe-common--breakpoint-medium.tribe-events-widget .tribe-events-widget-events-list__event-title {
    color: #32547c;
    line-height: 1.1;
    color: #32547c;
}

.events-section .tribe-common--breakpoint-medium.tribe-events-widget .tribe-events-widget-events-list__event-title a {
    text-decoration: none;
    color: #32547c;
}

.events-section .tribe-common--breakpoint-medium.tribe-events-widget .tribe-events-widget-events-list__event-title a:hover {
    text-decoration: none;
    color: #e58574;
    border: none;
}

.events-section .tribe-events-widget-events-list__event-venue,
.events-section .tribe-events-widget-events-list__event-venue a {
    color: #32547c !important;
}

.events-section .tribe-events-widget-events-list__event-venue a:hover {
    text-decoration: none;
    border: none;
}

.events-section a.tribe-events-widget-events-list__view-more-link.tribe-common-anchor-thin {
    padding: 10px;
    background: #fff;
    color: #32547c !important;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
}

.events-section a.tribe-events-widget-events-list__view-more-link.tribe-common-anchor-thin:hover {
    border: none;
}

.single-event-details .tribe-block__venue__address {
    display: none;
}

.single-event-details .tribe-block.tribe-block__venue.tribe-clearfix {
    padding: 0;
    border: none;
}

.single-event-details .tribe-block__venue__name h3 a {
    font-size: 18px;
}

.single-event-details .tribe-common .tribe-common-c-btn-border {
    border-color:  #32547c;
    color: #32547c;
}

.single-event-details .tribe-common .tribe-common-c-btn-border:hover {
    background-color: #32547c;
}

.single-event-details .tribe-block.tribe-block__events-link {
    padding: 0;
    margin: 0;
}

.single-event-details .tribe-events-c-subscribe-dropdown {
    margin: 10px 0;
}

.tribe-events-c-subscribe-dropdown .tribe-common-c-btn-border.tribe-events-c-subscribe-dropdown__button {
    border-radius: 0;
    border-color: #32547c;
    color: #32547c;
}

.tribe-events-c-subscribe-dropdown .tribe-common-c-btn-border.tribe-events-c-subscribe-dropdown__button:hover {
    background-color: #32547c !important;
}

.tribe-common--breakpoint-medium.tribe-events .tribe-events-l-container {
    padding-bottom: 0;
}

.tribe-block.tec-block__archive-events .tribe-common--breakpoint-medium.tribe-events .tribe-events-l-container {
    padding-top: 0;
    padding-bottom: 0;
}

@media only screen and (max-width: 840px) {
    .events-section .tribe-events-widget-events-list__events {
        grid-template-columns: 1fr;
    }
    .events-section .tribe-events-widget-events-list__events .tribe-common-g-row.tribe-events-widget-events-list__event-row {
        height: auto;
    }
}

/* Home Page */

.home-posts .wp-block-cover__inner-container {
    height: 100%;
}

.social-block .swp_social_panel.swp_horizontal_panel {
    position: fixed;
    right: 0;
    width: 100px !important;
    z-index: 999;
    display: flex;
    flex-direction: column;
    height: auto;
}

.social-block .swp_social_panel.swp_horizontal_panel .swp_share_button {
    width: 50px;
}

/* Footer */

footer nav {
    line-height: .5;
}

footer a {
    text-decoration: none;
}

@media only screen and (max-width: 780px) {
    figure.wp-block-image.footer-logo {
        display: none;
    }

    .wp-block-group.facet-row {
        gap: 5px;
    }

    .wp-block-group.facet-row .fs-wrap,
    .wp-block-group.facet-row .wp-block-group,
    .wp-block-group.facet-row .facetwp-input-wrap,
    .wp-block-group.facet-row .facetwp-facet {
        width: 100%;
    }
    .wp-block-group.facet-row .facetwp-input-wrap {
        margin-bottom: 5px;
    }

    .facetwp-facet button.facetwp-reset {
        margin-top: 0;
    }
}

.wp-block-media-text.is-stacked-on-mobile>.wp-block-media-text__media {
    text-align: center;
}

.wp-block-media-text.is-stacked-on-mobile>.wp-block-media-text__media img {
    max-width: 300px;
    margin: 0 auto;
}

.facetwp-facet .fs-wrap.multiple .fs-option.selected .fs-checkbox i {
    background-color: var(--wp--preset--color--secondary);
}

/* Simple Calendar */

.mobile-only {
    display: none;
}

@media only screen and (max-width: 700px) {
    .mobile-only {
        display: block;
    } 

    .desktop-only {
        display: none;
    }
}

.events-section .simcal-calendar-list ul.simcal-events {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.events-section .simcal-calendar-list ul.simcal-events li.simcal-event {
    background: #fff;
    padding: 10px;
}

.events-section .simcal-calendar-list ul.simcal-events li.simcal-event .simcal-event-details {
    display: flex;
    color: #32547c;
    align-items: center;
}

.events-section .simcal-calendar-list ul.simcal-events li.simcal-event .date-section:before {
    content: "\f508";
  font-family: 'dashicons';
  display: block;
}

.events-section .simcal-calendar-list ul.simcal-events li.simcal-event .date-section {
    font-size: 24px;
    line-height: 1;
    padding: 10px;
    text-align: center;
}

.events-section .simcal-calendar-list ul.simcal-events li.simcal-event .event-overview-section {
    line-height: 1;
}

.events-section .simcal-calendar-list ul.simcal-events li.simcal-event .event-overview-section h3 {
    font-weight: 600;
}

.events-section .simcal-calendar-list ul.simcal-events li.simcal-event .event-overview-section h3, 
.events-section .simcal-calendar-list ul.simcal-events li.simcal-event .event-overview-section p {
    padding: 5px 0;
    margin: 0;
}

@media only screen and (max-width: 900px) {
    .events-section .simcal-calendar-list ul.simcal-events {
        grid-template-columns: 1fr;
    }
}

/* Toggle */
.toggleable .toggle-body {
    display: none;
}
    
.toggleable.open .toggle-body {
    display: block;
}

.toggleable .toggle-handle {
    background-color: #32547c;
    color: #fff;
    padding: 5px 10px;
}

.toggleable .toggle-handle:after {
    content: "\f347";
    font-family: 'dashicons';
    position: absolute;
    right: 20px;
}
.toggleable.open .toggle-handle:after {
    content: "\f343";
}
    
    