/* headings for ba and ppk */

.booking .booking-headings_ba,
.booking .booking-headings_ppk {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-content: space-between;
    text-align: center;
    margin-bottom: 26px;
}

.booking {
    margin-bottom: 60px;
}

.booking .booking-title {
    margin-bottom: 30px;
}

.booking-headings_ba h4:nth-child(2)::before,
.booking-headings_ba h4:nth-child(2)::after,
.booking-headings_ppk h4:nth-child(2)::before,
.booking-headings_ppk h4:nth-child(2)::after,
.booking-headings_ppk h4:nth-child(3)::after {
    border-left: 1px solid;
    border-right: 1px solid;
    border-color: #86818d;
    content: '';
    position: absolute;
    height: 16px;
}

/* headings for ba */
.booking-headings_ba h4:nth-child(2)::before {
    left: 33.2%;
}
.booking-headings_ba h4:nth-child(2)::after {
    right: 33.2%;
}

/* headings for ppk */
.booking .booking-headings_ppk {
    grid-template-columns: repeat(4, 1fr);
}

.booking-headings_ppk h4:nth-child(2)::before {
    left: 22%;
}
.booking-headings_ppk h4:nth-child(2)::after {
    right: 50%;
}
.booking-headings_ppk h4:nth-child(3)::after {
    right: 22%;
}

.booking-headings_ppk .h4:first-of-type {
    padding-left: 20px;
    text-align: left;
}
.booking-headings_ppk .h4:nth-of-type(2) {
    padding-right: 28px;
}
.booking-headings_ppk .h4:nth-of-type(3) {
    padding-left: 28px;
}

.booking-headings_ppk .h4:last-of-type {
    padding-right: 38px;
    text-align: right;
}

.em-event {
    border: 1px solid #e0e0e0;

    box-shadow: 0px 0px 8px 8px rgba(0, 0, 0, 0.05);
    border-radius: 10px;

    margin-bottom: 32px;
}

.em-item-info_ba,
.em-item-info_pk {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    margin-top: 20px;
}
.em-item-info_pk {
    grid-template-columns: 3fr 1fr;
    align-items: center;
}

.em-item-controls {
    display: flex;
    justify-content: space-between;
    padding-left: 22px;
    padding-right: 24px;
    margin-top: 20px;
    background-color: #f7e6eb;
    align-items: center;
}
.em-item-controls .event-location {
    float: left;
    padding: 15px 0;
    color: #a80532;
    font-size: 14px;
}

.em-item-controls .ic--marker {
    font-size: 20px;
    margin-right: 15px;
}

.em-item-controls .event-apply {
    border-bottom: solid 2px;
    border-color: transparent;
    float: right;
}
.em-item-controls .event-apply {
    font-size: 16px;
}
.em-item-controls .event-apply a:hover {
    color: unset;
    text-decoration: none;
}
.em-item-controls .event-apply:hover {
    border-bottom: solid 2px;
    border-color: #a80532;
}

.em-item-controls .event-apply .ic--arrow_long {
    padding-left: 5px;
}

/* .activity-name, .event-time, .event-date, .activity-name:first-of-type, .activity-time:first-of-type, .activity-date:first-of-type{
  margin-top: 20px;
} */

/* .activity-name, .activity-description {
  padding:0 18px;
} */

.pre-text {
    margin-right: 26px;
}

select {
    appearance: none;
    background-color: transparent;
    border: none;
    padding: 0 1em 0 0;
    margin: 0;
    width: 100%;
    font-family: inherit;
    font-size: inherit;
    cursor: inherit;
    line-height: inherit;
    outline: none;
}

select:focus + .ic--carret-up {
    transform: rotate(1turn);
    font-size: 1000px;
}

select option {
    padding: 10px 10px;
}

.filter-bookings select::-ms-expand {
    display: none;
}

.filter-bookings {
    display: flex;
    align-items: center;
    vertical-align: middle;
    margin-bottom: 84px;
}

.e-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: auto 0;
}

.activity-name,
.activity-time,
.activity-date {
    margin-bottom: 4px;
}

.dropdown-filter {
    display: flex;
    flex-direction: row;
    width: 49%;
    align-items: center;
}

.dropdown-filter:first-of-type {
    margin-right: 20px;
}

/* style for availability status */
.availability {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-block;
    float: right;
    margin-right: 38px;
}

.status-green {
    border: 2px solid #219653;
}
.status-yellow {
    border: 2px solid #f2c94c;
    background-color: #f8e4a5;
}
.status-red {
    border: 2px solid #a80532;
    background-color: #a80532;
}

@media (max-width: 768px) {
    .booking .booking-headings_ppk,
    .booking .booking-headings_ba {
        display: none;
    }
    .filter-bookings {
        flex-direction: column;
        margin-bottom: 10px;
    }

    .dropdown-filter {
        margin-bottom: 25px;
        flex-direction: column;
        width: 100%;
        align-items: flex-start;
    }

    .dropdown-filter:first-of-type {
        margin-right: 0;
    }

    .dropdown-filter .pre-text {
        margin-bottom: 5px;
    }
}

@media (max-width: 768px) {
    .booking .em-item-info_ba {
        grid-template-rows: 2;
        grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    }
    .booking .event-activities {
        grid-row: 1;
        grid-column: span 5;
    }
    .booking .event-date,
    .booking .event-time {
        grid-row: 2;
    }

    .em-item-info_ba .event-time,
    .em-item-info_ba .event-date {
        margin-top: 18px;
    }
    .em-item-controls {
        margin-top: 32px;
    }
}

@media (max-width: 560px) {
    .em-item-info_pk {
        grid-template-columns: 1fr;
    }

    .availability {
        margin-left: unset;
        margin-bottom: 36px;
    }

    .activity-name,
    .activity-date,
    .activity-time {
        padding: 0 4px;
        display: flex;
        align-items: flex-end;
        justify-content: center;
    }
}
