/**
 * Sènia Safari Booking - Experience Feed Catalog Styling
 */

.ssb-feed-container {
    max-width: min(90vw, 1228px);
    margin: 0 auto;
    padding-block: 40px 90px;
    box-sizing: border-box;
}

/* Grid Layout */
.ssb-feed-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3%;
    margin-bottom: 40px;
}

@media (max-width: 980px) {
    .ssb-feed-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .ssb-feed-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

/* Card Styling */
.ssb-experience-card {
    display: flex;
    position: relative;
    flex-direction: column;
    background-color: #fefaf5;
    border-radius: 0 !important;
    box-shadow: none !important;
    text-decoration: none !important;
    color: #333333 !important;
    padding: 12px;
    transition: transform 300ms ease;
    overflow: hidden;
    border: 1px solid #f6f0e6;
    box-sizing: border-box;
}

/* Card Header (Featured Phrase) */
.ssb-card-header {
    position: absolute;
    z-index: 9;
    top: 32px;
    left: 24px;
    max-width: calc(100% - 56px);
    background-color: #fefaf5;
    padding: 2px 12px;
    text-align: center;
    border-bottom: 1px solid #f6f0e6;
    border-radius: 6px;
    box-sizing: border-box;
}

.ssb-card-featured-phrase {
    display: block;
    font-size: 16px;
    font-weight: 400;
    color: #3f3f3f;
    margin: 0;
    line-height: 1.3em;
}

/* Card Image Wrapper & Overlay */
.ssb-card-image-wrapper {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
}

.ssb-card-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    transition: transform 300ms ease;
}

.ssb-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* color(srgb 0 0 0 / 0.6) */
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 300ms ease;
    padding: 20px;
    box-sizing: border-box;
}

.ssb-card-overlay-text {
    color: #ffffff !important;
    font-size: 26px;
    font-weight: 300;
    font-family: 'Lato', Helvetica, Arial, sans-serif;
    text-align: center;
}

/* Card Body */
.ssb-card-body {
    padding: 16px 0 24px 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.ssb-card-title {
    font-size: 26px;
    font-weight: 600;
    color: #000000;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.ssb-card-excerpt {
    font-family: 'Lato', Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #666666;
    margin: 0;
}

.ssb-card-excerpt p {
    margin: 0;
    line-height: 1.6;
}

/* Card Footer & Button */
.ssb-card-footer {
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.ssb-card-button {
    font-size: 20px !important;
    color: #FFFFFF !important;
    text-align: center !important;
    transition: background 300ms ease 0ms;
    background-color: #d28a4b;
    display: block !important;
    padding: 16px;
    font-weight: 600;
    font-family: 'Lato', Helvetica, Arial, sans-serif;
    border: none;
    box-sizing: border-box;
}

/* Hover Interactions */
.ssb-experience-card:hover .ssb-card-overlay {
    opacity: 1;
}

.ssb-experience-card:hover .ssb-card-button {
    background-color: #875a34 !important;
}

/* Pagination Styling */
.ssb-feed-pagination {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 20px;
}

.ssb-feed-pagination ul {
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.ssb-feed-pagination li {
    margin: 0;
    padding: 0;
}

.ssb-feed-pagination a,
.ssb-feed-pagination span {
    display: inline-block;
    padding: 10px 16px;
    font-size: 16px;
    font-weight: bold;
    color: #d28a4b;
    background-color: #fefaf5;
    text-decoration: none;
    transition: background 300ms ease, color 300ms ease;
    font-family: 'Lato', Helvetica, Arial, sans-serif;
    border: 1px solid #f6f0e6;
    line-height: 1;
}

.ssb-feed-pagination span.current {
    background-color: #d28a4b;
    color: #ffffff;
    border-color: #d28a4b;
}

.ssb-feed-pagination a:hover {
    background-color: #875a34;
    color: #ffffff;
    border-color: #875a34;
}

/* Actions Bar Styling (Above booking form) */
.ssb-feed-actions-bar {
    max-width: 740px;
    margin: 0 auto 25px auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

@media (max-width: 780px) {
    .ssb-feed-actions-bar {
        padding: 0 15px;
    }
}

.ssb-back-to-feed-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #333333;
    background-color: #fefaf5;
    border: 1px solid #f6f0e6;
    padding: 10px 20px;
    text-decoration: none !important;
    transition: all 200ms ease;
    font-family: 'Lato', Helvetica, Arial, sans-serif;
}

.ssb-back-to-feed-btn:hover {
    background-color: #f6f0e6;
    color: #000000;
}

.ssb-back-arrow {
    font-size: 18px;
    line-height: 1;
}

.ssb-save-progress-btn,
#ssb-prev-step,
#ssb-next-step {
    display: inline-flex;
    align-items: center;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    background-color: #d28a4b;
    border: 1px solid #d28a4b;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 200ms ease;
    font-family: 'Lato', Helvetica, Arial, sans-serif;
}

.ssb-save-progress-btn:hover,
#ssb-prev-step:hover,
#ssb-next-step:hover {
    background-color: #875a34;
    border-color: #875a34;
}

#ssb-submit-btn {
    border: unset;
    cursor: pointer;
}

.ssb-no-experiences {
    text-align: center;
    font-family: 'Lato', Helvetica, Arial, sans-serif;
    font-size: 18px;
    color: #666666;
    margin: 40px 0;
}

/* Centered Booking Form Layout */
.ssb-booking-form-center {
    background-color: #ffffff;
    max-width: 740px;
    margin: 0 auto;
    border-radius: 18px 18px 18px 18px;
    box-shadow: rgba(0, 0, 0, 0.08) 0px 4px 12px !important;
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    height: calc(100vh - 224px);
}

@media (max-width: 920px) {
    .ssb-booking-form-center {
        padding: 0 15px;
    }
}

