/*
Theme Name: Boathouse Flexible
Theme URI: https://www.boathouse.wales/
Author: KGN Technologies
Description: Coastal WordPress theme with reusable ACF PRO flexible content, local media and a guided content importer.
Version: 1.1.0
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: boathouse-flex
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

.scpm-bw-book-btn.disabled,
.scpm-bw-book-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.scpm-bw-day--minimum,
.scpm-bw-day--blocked-range {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}


.scpm-bw-error {
    display: none;
    margin: 12px 0;
    padding: 11px 16px;
    color: red;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
    animation: scpmErrorIn 0.25s ease;
}

@keyframes scpmErrorIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.favorite-btn.post-footer__like-button svg path {
    fill: none !important;
    stroke: #e84a43 !important;
    stroke-width: 1.5;
}

.favorite-btn.post-footer__like-button.favorited svg path {
    fill: #e84a43 !important;
    stroke: #e84a43 !important;
}


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

/* Fixes potential theme CSS conflict. */
.acf-map img {
    max-width: inherit !important;
}


.scpm-bw-prev.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.scpm-bw-day--past,
.scpm-bw-day--booked {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.scpm-bw-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.scpm-bw-calendar-grid > span {
    text-align: center;
    padding: 10px;
}

.scpm-bw-day {
    cursor: default;
}

.scpm-bw-day--available {
    cursor: pointer;
}

.scpm-bw-day--past {
    opacity: 0.35;
}

.scpm-bw-day--booked {
    background: #ddd;
    color: #777;
}

.scpm-bw-day--available:hover {
    background: #eee;
}

.scpm-bw-day--selected,
.scpm-bw-day--selected-arrival,
.scpm-bw-day--selected-departure {
    background: #000;
    color: #fff;
}

.scpm-bw-day--selected-arrival,
.scpm-bw-day--selected-departure {
    border-radius: 4px;
}

.scpm-bw-calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.scpm-bw-prev,
.scpm-bw-next {
    cursor: pointer;
    border: 0;
    background: none;
    font-size: 30px;
}
html,
body {
    margin: 0;
    padding: 0;
}

#supercontrolCalendarPopup {
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    border: 0;
}

.recent-posts {
    position: relative;
    padding: 40px 0;
}

.recent-posts__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.recent-posts__header h2 {
    margin: 0;
}

.recent-posts__slider {
    display: flex;
    gap: 24px;
    overflow: hidden;
}

.recent-post {
    flex: 0 0 calc(33.333% - 16px);
}

.recent-post__image {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.recent-post__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.recent-post__content h3 {
    margin: 12px 0 8px;
}

.recent-post__content h3 a {
    text-decoration: none;
}

.recent-post__meta {
    display: flex;
    gap: 15px;
    font-size: 14px;
}

.recent-posts__prev,
.recent-posts__next {
    position: absolute;
    top: 50%;
    z-index: 2;
}