/**
 * Frontend Styles for Retreat Details Shortcode
 */

.ws-retreat-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Section */
.ws-retreat-details-section {
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    padding: 28px 30px;
}

.ws-details-heading {
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
    font-size: 1.2em;
    color: #333;
}

/* Grid */
.ws-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 30px;
}

/* Item */
.ws-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.ws-detail-icon {
    font-size: 1.3em;
    line-height: 1.4;
    flex-shrink: 0;
    width: 28px;
    text-align: center;
}

.ws-detail-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ws-detail-label {
    font-size: 0.8em;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.ws-detail-value {
    font-size: 1em;
    color: #333;
    font-weight: 500;
    word-break: break-word;
}

.ws-detail-price {
    font-size: 1.15em;
    font-weight: 700;
    color: #2271b1;
}

/* Badges */
.ws-detail-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
}

.ws-badge-open {
    background: #edfaef;
    color: #008a20;
    border: 1px solid #68de7c;
}

.ws-badge-full {
    background: #fff8e5;
    color: #8a6d3b;
    border: 1px solid #f2c779;
}

.ws-badge-closed {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
}

/* Spots */
.ws-spots-few {
    color: #c0392b;
}

.ws-date-passed {
    color: #999;
    font-size: 0.9em;
}

/* CTA */
.ws-details-cta {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #f0f0f0;
    text-align: center;
}

.ws-details-register-btn {
    display: inline-block;
    padding: 12px 36px;
    background: #2271b1;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 1.05em;
    font-weight: 600;
    transition: background 0.2s;
}

.ws-details-register-btn:hover {
    background: #135e96;
    color: #fff;
}

/* Individual field shortcode wrapper */
.ws-retreat-field {
    margin-bottom: 20px;
}

.ws-retreat-field__title {
    margin: 0 0 10px;
    font-size: 1.2em;
    color: #333;
}

/* Gallery (from shortcode) */
.ws-retreat-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}

.ws-gallery-link {
    display: block;
    border-radius: 6px;
    overflow: hidden;
    line-height: 0;
}

.ws-gallery-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.2s;
}

.ws-gallery-link:hover .ws-gallery-img {
    transform: scale(1.03);
}

/* Spots (standalone shortcode) */
.ws-spots-zero {
    color: #999;
}

/* Responsive */
@media (max-width: 600px) {
    .ws-details-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .ws-retreat-details-section {
        padding: 20px 18px;
    }
}
.ws-retreat-field__content{
    font-size: 18px;
    line-height: 25px;
}

/* WYSIWYG content: preserve editor formatting */
.ws-retreat-content {
    font-size: 1em;
    line-height: 1.8;
}

.ws-retreat-content p {
    margin: 0 0 1em !important;
}

.ws-retreat-content p:last-child {
    margin-bottom: 0 !important;
}

.ws-retreat-content ul,
.ws-retreat-content ol {
    margin: 0 0 1em !important;
    padding-right: 1.8em !important;
    padding-left: 0 !important;
    list-style-position: inside;
}

.ws-retreat-content ul {
    list-style-type: disc !important;
}

.ws-retreat-content ol {
    list-style-type: decimal !important;
}

.ws-retreat-content ul li,
.ws-retreat-content ol li {
    margin-bottom: 0.4em !important;
    padding: 0 !important;
    list-style: inherit !important;
    display: list-item !important;
}

.ws-retreat-content ul li::before {
    display: none !important;
}

.ws-retreat-content strong,
.ws-retreat-content b {
    font-weight: 700 !important;
}

.ws-retreat-content em,
.ws-retreat-content i {
    font-style: italic !important;
}

/* Spots remaining */
.ws-spots-remaining {
    color: #333;
}