/* =========================================
   RETREAT PAGE
   ========================================= */

:root {
    --rp-green:      #4a6741;
    --rp-green-dark: #2d3f2b;
    --rp-card:       #ffffff;
    --rp-text:       #2c2c2c;
    --rp-text-light: #6b7068;
    --rp-border:     rgba(0,0,0,0.07);
    --rp-radius:     20px;
    --rp-shadow:     0 2px 24px rgba(0,0,0,0.07);
}

/* ── Override Divi row/column constraints — scoped to body area only, not header/footer ── */
body.single-retreat .et-l--body .et_pb_section {
    padding-top: 0 !important;
}

body.single-retreat .et-l--body .et_pb_row,
body.single-retreat .et-l--body .et_pb_row_inner {
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
}

body.single-retreat .et-l--body .et_pb_column,
body.single-retreat .et-l--body .et_pb_column_inner {
    width: 100% !important;
    padding: 0 !important;
}

body.single-retreat .et-l--body .et_pb_text_inner {
    max-width: none !important;
}

/* Make body-area Divi wrappers transparent so the section bg (#cbd8cb) shows through */
body.single-retreat .et-l--body .et_pb_row,
body.single-retreat .et-l--body .et_pb_row_inner,
body.single-retreat .et-l--body .et_pb_column,
body.single-retreat .et-l--body .et_pb_column_inner,
body.single-retreat .et-l--body .et_pb_code,
body.single-retreat .et-l--body .et_pb_code_inner {
    background: transparent !important;
    background-color: transparent !important;
}

.retreat-page {
    max-width: 860px;
    margin: 0 auto;
    padding: 40px 24px 80px;
    font-family: inherit;
    color: var(--rp-text);
}

/* ── HERO ── */
.rp-hero {
    width: 100%;
    min-height: 420px;
    background-size: cover;
    background-position: center;
    border-radius: var(--rp-radius);
    overflow: hidden;
    position: relative;
    margin-bottom: 16px;
}

.rp-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.72) 0%,
        rgba(0,0,0,0.2)  50%,
        transparent      100%
    );
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
}

/* Breadcrumb pinned to top of hero */
.rp-hero-top {
    padding: 20px 28px 0;
}

.rp-hero-top .wwr-breadcrumb-list {
    font-size: 0.78rem;
}

.rp-hero-top .wwr-breadcrumb-item {
    color: rgba(255,255,255,0.75);
}

.rp-hero-top .wwr-breadcrumb-item a:hover {
    color: #fff;
}

.rp-hero-top .wwr-breadcrumb-item--current {
    color: #fff;
}

.rp-hero-top .wwr-breadcrumb-item + .wwr-breadcrumb-item::before {
    color: rgba(255,255,255,0.5);
}

/* Title + badges sit at the bottom */
.rp-hero-text {
    max-width: 680px;
    padding: 0 28px 36px;
}

/* ── Hide Divi/WP default post meta (author, date) on single retreat ── */
body.single-retreat .entry-meta,
body.single-retreat .post-meta,
body.single-retreat .et-single-post-meta,
body.single-retreat .et_pb_post_meta,
body.single-retreat .et_pb_title_meta_container {
    display: none !important;
}

.rp-title {
    color: #fff;
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 12px;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

.rp-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rp-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.15);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 500;
}

/* ── SECTIONS ── */
.rp-section {
    background: var(--rp-card);
    border-radius: var(--rp-radius);
    padding: 24px 28px;
    margin-bottom: 12px;
    box-shadow: var(--rp-shadow);
}

/* Compact variant: less vertical padding for simple/small content */
.rp-section--compact {
    padding-top: 20px;
    padding-bottom: 20px;
}

.rp-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--rp-border);
}

.rp-section-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: #f0f4ef;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.rp-section-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    color: var(--rp-green-dark);
    flex: 1;
}

.rp-content {
    line-height: 1.8;
    font-size: 0.95rem;
    color: var(--rp-text);
}

.rp-content p { margin-bottom: 0.8em; }
.rp-content p:last-child { margin-bottom: 0; }


/* ── DATES ── */
.rp-dates-card {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    background: #f0f4ef;
    border-radius: 12px;
    padding: 18px 28px;
}

.rp-date-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center;
}

.rp-date-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--rp-text-light);
    font-weight: 600;
}

.rp-date-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--rp-green-dark);
}

.rp-date-divider {
    color: var(--rp-green);
    font-size: 1.2rem;
    opacity: 0.5;
    line-height: 1;
}

/* ── INCLUDED ── */
.rp-included-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.rp-included-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    background: #f8f9f7;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.rp-included-list li::before {
    content: '✓';
    color: var(--rp-green);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ── SCHEDULE ACCORDION ── */
.rp-toggle-all {
    margin-left: auto;
    background: none;
    border: 1px solid var(--rp-border);
    border-radius: 8px;
    padding: 4px 28px 4px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--rp-green-dark);
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, border-color 0.2s;
    position: relative;
}

.rp-toggle-all::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-65%) rotate(45deg);
    transition: transform 0.2s;
}

.rp-toggle-all[aria-expanded="true"]::after {
    transform: translateY(-35%) rotate(-135deg);
}

.rp-toggle-all:hover {
    background: #f0f4ef;
    border-color: var(--rp-green);
}

.rp-days {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rp-day {
    border-radius: 10px;
    border: 1px solid var(--rp-border);
    overflow: hidden;
    background: #f8f9f7;
}

.rp-day-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    gap: 8px;
    transition: background 0.15s;
}

.rp-day-toggle:hover {
    background: rgba(74,103,65,0.06);
}

.rp-day-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--rp-green);
    font-weight: 700;
    margin: 0;
}

.rp-day-chevron {
    width: 7px;
    height: 7px;
    border-right: 2px solid var(--rp-text-light);
    border-bottom: 2px solid var(--rp-text-light);
    transform: rotate(45deg);
    transition: transform 0.25s ease;
    flex-shrink: 0;
    margin-bottom: 2px;
}

/* Body hidden by default */
.rp-day-body {
    display: none;
    padding: 0 16px 16px;
}

.rp-day--open .rp-day-body {
    display: block;
}

.rp-day--open .rp-day-chevron {
    transform: rotate(-135deg);
    margin-bottom: -2px;
}

.rp-day-body p {
    margin: 0 0 6px;
    font-size: 0.91rem;
    line-height: 1.6;
    color: var(--rp-text);
}

.rp-day-body p:last-child { margin-bottom: 0; }
.rp-day-body strong { color: var(--rp-green-dark); }

/* ── FEES ── */
.rp-fees-grid {
    display: grid;
    gap: 14px;
    margin-bottom: 24px;
}

/* Two fees: side by side */
.rp-fees-grid--2 {
    grid-template-columns: 1fr 1fr;
}

/* Single fee: centered, limited width */
.rp-fees-grid--1 {
    grid-template-columns: minmax(180px, 280px);
    justify-content: center;
}

.rp-fee-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 20px;
    border-radius: 12px;
    background: #f8f9f7;
    border: 1px solid var(--rp-border);
    gap: 6px;
    text-align: center;
    transition: box-shadow 0.2s;
}

.rp-fee-card:hover {
    box-shadow: 0 4px 20px rgba(74,103,65,0.12);
}

.rp-fee-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--rp-text-light);
    font-weight: 600;
}

.rp-fee-price {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--rp-green-dark);
    line-height: 1;
}

.rp-fee-currency {
    font-size: 0.8rem;
    color: var(--rp-text-light);
}

/* ── PACKAGE CARDS ── */
.rp-pkg-grid {
    display: grid;
    gap: 20px;
    margin-top: 16px;
}

.rp-pkg-grid--1 { grid-template-columns: minmax(0, 480px); justify-content: center; }
.rp-pkg-grid--2 { grid-template-columns: repeat(2, 1fr); }
.rp-pkg-grid--3 { grid-template-columns: repeat(3, 1fr); }
.rp-pkg-grid--4 { grid-template-columns: repeat(2, 1fr); }

.rp-pkg-card {
    background: var(--rp-card);
    border: 1.5px solid var(--rp-border);
    border-radius: var(--rp-radius);
    box-shadow: var(--rp-shadow);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.rp-pkg-card:hover {
    box-shadow: 0 6px 32px rgba(0,0,0,0.11);
    transform: translateY(-2px);
}

.rp-pkg-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--rp-green-dark);
}

.rp-pkg-desc {
    font-size: 0.9rem;
    color: var(--rp-text-light);
    line-height: 1.5;
    margin: 0;
}

.rp-pkg-price-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: 4px;
}

.rp-pkg-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--rp-green-dark);
    line-height: 1;
}

.rp-pkg-currency {
    font-size: 0.8rem;
    color: var(--rp-text-light);
}

.rp-pkg-spots {
    font-size: 0.8rem;
    color: var(--rp-green);
    font-weight: 600;
}

.rp-add-to-cart {
    margin-top: auto;
    padding: 12px 24px;
    border: none;
    border-radius: 50px;
    background: var(--rp-green-dark);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 14px rgba(45,63,43,0.22);
    width: 100%;
}

.rp-add-to-cart:hover {
    background: var(--rp-green);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(45,63,43,0.28);
}

.rp-add-to-cart:active {
    transform: translateY(0);
}

.rp-add-to-cart.added {
    background: #588157;
    pointer-events: none;
}

/* ── CTA ── */
.rp-cta-wrap { text-align: center; }

.rp-cta-btn {
    display: inline-block;
    padding: 14px 48px;
    border-radius: 50px;
    background: var(--rp-green-dark);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(45,63,43,0.25);
}

.rp-cta-btn:hover {
    background: var(--rp-green);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(45,63,43,0.3);
    color: #fff;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .retreat-page { max-width: 100%; }
}

@media (max-width: 768px) {
    .retreat-page    { padding: 16px 14px 60px; }
    .rp-section      { padding: 20px 18px; border-radius: 14px; }
    .rp-hero         { min-height: 340px; border-radius: 14px; }
    .rp-hero-overlay { padding: 0; }
    .rp-hero-top     { padding: 14px 16px 0; }
    .rp-hero-text    { padding: 0 16px 24px; }
    .rp-title        { font-size: 1.7rem; }
    .rp-included-list { grid-template-columns: 1fr; }
    .rp-fees-grid--2 { grid-template-columns: 1fr; }
    .rp-fees-grid--1 { grid-template-columns: 1fr; justify-content: stretch; }
    .rp-pkg-grid--2,
    .rp-pkg-grid--3,
    .rp-pkg-grid--4 { grid-template-columns: 1fr; }
    .rp-dates-card   { flex-direction: column; gap: 10px; width: 100%; justify-content: center; }
    .rp-fee-price    { font-size: 1.9rem; }
}

/* =========================================
   RETREAT ARCHIVE — Card grid
   ========================================= */

/* Override Divi constraints on the archive page */
body.post-type-archive-retreat .et-l--body .et_pb_section { padding-top: 0 !important; }
body.post-type-archive-retreat .et-l--body .et_pb_row,
body.post-type-archive-retreat .et-l--body .et_pb_row_inner { max-width: none !important; width: 100% !important; padding: 0 !important; }
body.post-type-archive-retreat .et-l--body .et_pb_column,
body.post-type-archive-retreat .et-l--body .et_pb_column_inner { width: 100% !important; padding: 0 !important; }
body.post-type-archive-retreat .et-l--body .et_pb_text_inner { max-width: none !important; }

/* Hide Divi/WP default post-list meta on archive */
body.post-type-archive-retreat .entry-meta,
body.post-type-archive-retreat .post-meta,
body.post-type-archive-retreat .et_pb_post_meta { display: none !important; }

.wwr-retreats-archive {
    max-width: 1080px;
    margin: 0 auto;
    padding: 60px 24px 80px;
}

.wwr-ra-header {
    text-align: center;
    margin-bottom: 48px;
}

.wwr-ra-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--rp-green-dark);
    margin-bottom: 10px;
}

.wwr-ra-header p {
    font-size: 1rem;
    color: var(--rp-text-light);
}

/* ── Card grid ── */
.wwr-ra-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}

.wwr-ra-card {
    background: var(--rp-card);
    border-radius: var(--rp-radius);
    box-shadow: var(--rp-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wwr-ra-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.13);
}

.wwr-ra-card-img-link { display: block; }

.wwr-ra-card-img {
    width: 100%;
    height: 210px;
    background-size: cover;
    background-position: center;
    transition: transform 0.35s ease;
}

.wwr-ra-card:hover .wwr-ra-card-img {
    transform: scale(1.04);
}

.wwr-ra-card-img-link {
    overflow: hidden;
    display: block;
}

/* ── Card body ── */
.wwr-ra-card-body {
    padding: 20px 22px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 10px;
}

.wwr-ra-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.wwr-ra-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--rp-text-light);
    background: rgba(74,103,65,0.08);
    padding: 3px 9px;
    border-radius: 50px;
}

.wwr-ra-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--rp-green-dark);
    margin: 0;
    line-height: 1.3;
}

.wwr-ra-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

.wwr-ra-card-title a:hover { color: var(--rp-green); }

.wwr-ra-card-excerpt {
    font-size: 0.875rem;
    color: var(--rp-text-light);
    line-height: 1.55;
    margin: 0;
    flex: 1;
}

.wwr-ra-card-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--rp-green-dark);
    text-decoration: none;
    margin-top: 4px;
    transition: gap 0.15s ease, color 0.15s ease;
}

.wwr-ra-card-link:hover {
    color: var(--rp-green);
    gap: 8px;
}

/* ── Empty state ── */
.wwr-ra-empty {
    text-align: center;
    padding: 80px 24px;
    color: var(--rp-text-light);
}

@media (max-width: 768px) {
    .wwr-retreats-archive { padding: 40px 16px 60px; }
    .wwr-ra-grid { grid-template-columns: 1fr; gap: 20px; }
    .wwr-ra-header h1 { font-size: 1.7rem; }
    .wwr-ra-card-img { height: 180px; }
}
