/* Layout containers */
.bpde-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    grid-gap: 24px;
    margin: 24px 0;
}

.bpde-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: 18px 0;
}

/* Card base */
.bpde-card {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(10, 31, 51, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    border: 1px solid rgba(10, 31, 51, 0.04);
}

.bpde-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 40px rgba(10, 31, 51, 0.12);
}

.bpde-card__image {
    width: 100%;
    overflow: hidden;
}

.bpde-card__img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.bpde-card__body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bpde-card__title {
    font-size: 1.05rem;
    margin: 0;
    color: #0a1f33;
    font-weight: 600;
}

.bpde-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.bpde-chip {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.72rem;
    line-height: 1.4;
    border: 1px solid transparent;
}

.bpde-chip--primary {
    background: #e0f7f4;
    border-color: #00c2a7;
    color: #006c60;
    font-weight: 600;
}

.bpde-chip--soft {
    background: #f5f7f9;
    border-color: rgba(10,31,51,0.04);
    color: #4f5f73;
}

.bpde-card__rating-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bpde-rating {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 0.8rem;
    color: #f7b500;
}

.bpde-star {
    font-size: 0.9rem;
}

.bpde-rating__value {
    margin-left: 4px;
    font-weight: 500;
    color: #0a1f33;
}

.bpde-card__price {
    font-weight: 700;
    color: #00c2a7;
    font-size: 1rem;
}

.bpde-card__excerpt {
    font-size: 0.86rem;
    color: #4f5f73;
    line-height: 1.5;
    min-height: 40px;
}

.bpde-card__actions {
    margin-top: 6px;
}

/* Buttons */
.bpde-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 16px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.16s ease, box-shadow 0.16s ease, transform 0.1s ease, opacity 0.1s ease;
}

.bpde-btn--primary {
    background: #00c2a7;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(0, 194, 167, 0.35);
}

.bpde-btn--primary:hover {
    background: #00ac94;
    box-shadow: 0 10px 22px rgba(0, 172, 148, 0.4);
    transform: translateY(-1px);
}

/* List view for construction */
.bpde-card--construction {
    flex-direction: row;
    align-items: stretch;
}

.bpde-card--construction .bpde-card__image {
    flex: 0 0 32%;
}

.bpde-card--construction .bpde-card__body {
    flex: 1;
}

.bpde-card__header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.bpde-card__actions--row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

/* Travel cards */
.bpde-card--travel .bpde-card__image {
    max-height: 190px;
}

/* Modal */
.bpde-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

.bpde-modal.is-open {
    display: block;
}

.bpde-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 18, 32, 0.55);
}

.bpde-modal__dialog {
    position: relative;
    max-width: 500px;
    margin: 40px auto;
    background: #ffffff;
    border-radius: 20px;
    padding: 18px 18px 16px;
    box-shadow: 0 20px 60px rgba(5, 15, 30, 0.45);
}

@media (max-width: 720px) {
    .bpde-card--construction {
        flex-direction: column;
    }
    .bpde-card--construction .bpde-card__image {
        flex-basis: auto;
        max-height: 220px;
    }
    .bpde-modal__dialog {
        margin: 20px 12px;
    }
}

.bpde-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.bpde-modal__title {
    font-size: 1.02rem;
    font-weight: 600;
    color: #0a1f33;
    margin: 0;
}

.bpde-modal__close {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1.1rem;
    color: #4f5f73;
}

/* Chat stream */
.bpde-chat {
    max-height: 260px;
    overflow-y: auto;
    padding-bottom: 6px;
}

.bpde-chat__bubble {
    max-width: 90%;
    border-radius: 16px;
    padding: 8px 11px;
    font-size: 0.86rem;
    line-height: 1.4;
    margin-bottom: 6px;
}

.bpde-chat__bubble--bot {
    background: #f5f7f9;
    color: #0a1f33;
    border-bottom-left-radius: 4px;
}

.bpde-chat__bubble--user {
    background: #00c2a7;
    color: #ffffff;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

/* Input row */
.bpde-modal__input-row {
    display: flex;
    gap: 6px;
    margin-top: 6px;
}

.bpde-modal__input-row input {
    flex: 1;
    border-radius: 999px;
    border: 1px solid #d5dde5;
    padding: 7px 11px;
    font-size: 0.86rem;
    box-sizing: border-box;
}

/* Preview row */
.bpde-preview-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

/* Media row */
.bpde-media-row {
    margin-top: 10px;
    font-size: 0.8rem;
}

.bpde-media-row label {
    display: block;
    margin-bottom: 6px;
    color: #0a1f33;
    font-weight: 500;
}

/* WhatsApp-style media options */
.bpde-media-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 6px;
}

.bpde-media-btn {
    flex: 1 1 30%;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 7px 10px;
    text-align: center;
    font-weight: 600;
    background: #f5f7f9;
    color: #0a1f33;
    box-shadow: 0 4px 10px rgba(10,31,51,0.05);
    transition: background 0.14s ease, transform 0.1s ease, box-shadow 0.14s ease;
}

.bpde-media-btn:hover {
    background: #e3e8ef;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(10,31,51,0.10);
}

.bpde-media-btn--voice {
    background: #e9f3ff;
    color: #0b3c88;
}

/* Footer */
.bpde-modal__footer {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.bpde-modal__footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.bpde-text-muted {
    font-size: 0.78rem;
    color: #7c8ba0;
}

/* Alerts */
.bpde-alert {
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 0.8rem;
    margin: 4px 0 6px;
}

.bpde-alert--error {
    background: #ffe5e5;
    color: #a02929;
}

.bpde-alert--success {
    background: #e6f8ee;
    color: #166f3b;
}

/* Disabled state for WhatsApp button */
.bpde-btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

/* Single cards */
.bpde-card--single {
    max-width: 720px;
    margin: 0 auto 30px;
}
