/* ================================================
   WebHotelier Offers Plugin — Frontend Styles
   Matching Laguna Coast Resort branding
   ================================================ */

/* ── Offer Cards Grid ── */
.who-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(3, 1fr);
}
.who-cols-1 { grid-template-columns: 1fr; }
.who-cols-2 { grid-template-columns: repeat(2, 1fr); }
.who-cols-3 { grid-template-columns: repeat(3, 1fr); }

.who-card {
    border: 1px solid #e0ddd7;
    border-radius: 2px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.25s ease;
}
.who-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.10);
}

.who-card-img {
    height: 210px;
    background-size: cover;
    background-position: center;
    background-color: #c8b9a8;
    flex-shrink: 0;
}

.who-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
}

.who-card-title {
    font-size: 18px !important;
    font-weight: 500 !important;
    margin: 0 !important;
    color: #1a1a1a !important;
    letter-spacing: 0.04em;
    line-height: 1.3;
}

.who-card-desc {
    font-size: 14px;
    color: #666;
    margin: 0;
    flex: 1;
    line-height: 1.6;
}

.who-card-price {
    font-size: 13px;
    color: #8a7060;
    margin: 0;
    letter-spacing: 0.06em;
}

.who-card-btn {
    display: inline-block;
    margin-top: 6px;
    padding: 11px 28px;
    border: 1px solid #6b2737;
    color: #6b2737 !important;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none !important;
    align-self: center;
    transition: background 0.2s ease, color 0.2s ease;
    border-radius: 1px;
}
.who-card-btn:hover {
    background: #6b2737;
    color: #fff !important;
}

/* ── Popup Overlay ── */
.who-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}
.who-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* ── Popup Box ── */
.who-popup {
    background: #fff;
    width: 400px;
    max-width: 92vw;
    max-height: 90vh;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.who-popup-close {
    position: absolute;
    top: 12px;
    right: 14px;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    background: none;
    border: none;
    color: #fff;
    z-index: 2;
    padding: 0;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    transition: opacity 0.15s;
}
.who-popup-close:hover { opacity: 0.7; }

.who-popup-img {
    height: 220px;
    background-size: cover;
    background-position: center;
    background-color: #c8b9a8;
    flex-shrink: 0;
}

.who-popup-content {
    padding: 28px 32px 32px;
    text-align: center;
    overflow-y: auto;
}

.who-popup-label {
    font-size: 11px;
    letter-spacing: 0.18em;
    color: #8a7060;
    margin: 0 0 10px;
    text-transform: uppercase;
}

.who-popup-title {
    font-size: 22px !important;
    font-weight: 500 !important;
    color: #1a1a1a !important;
    margin: 0 0 10px !important;
    line-height: 1.3;
    letter-spacing: 0.02em;
}

.who-popup-desc {
    font-size: 14px;
    color: #666;
    margin: 0 0 8px;
    line-height: 1.6;
    min-height: 0;
}
.who-popup-desc:empty { display: none; }

.who-popup-price {
    font-size: 13px;
    color: #8a7060;
    margin: 0 0 20px;
    letter-spacing: 0.06em;
}
.who-popup-price:empty { display: none; }

.who-popup-cta {
    border: 1px solid #6b2737;
    padding: 14px 28px;
    display: inline-block;
}

.who-popup-btn {
    font-size: 12px;
    letter-spacing: 0.12em;
    color: #6b2737 !important;
    text-decoration: none !important;
    text-transform: uppercase;
    transition: opacity 0.15s;
}
.who-popup-btn:hover { opacity: 0.65; }

/* ── Responsive ── */
@media (max-width: 900px) {
    .who-grid,
    .who-cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .who-grid,
    .who-cols-2,
    .who-cols-3 { grid-template-columns: 1fr; }

    .who-popup-content { padding: 20px 20px 24px; }
    .who-popup-cta { padding: 12px 20px; }
}
