/* ============================================
   Owner Event Packages — Safari Vents Compact
   Prefix: ep-
   ============================================ */

/* ── Page Shell ── */
.ep {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    color: #2A2A2A;
    background: #f5f3ef;
    min-height: 100vh;
    padding: 1.25rem 1.5rem;
}

/* ── Page Header ── */
.ep-header {
    background: linear-gradient(135deg, #2A2A2A 0%, #3d3d3d 100%);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.ep-header-title {
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    margin: 0 0 0.125rem 0;
}
.ep-header-sub {
    font-size: 0.6875rem;
    color: rgba(255,255,255,0.55);
    margin: 0;
}

/* ── Buttons ── */
.ep-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    white-space: nowrap;
}
.ep-btn-primary { background: #C87941; color: #fff; }
.ep-btn-primary:hover { background: #b36a35; color: #fff; }
.ep-btn-sm {
    font-size: 0.625rem;
    padding: 0.3rem 0.5rem;
    border-radius: 6px;
}
.ep-btn-edit { background: rgba(72,140,130,0.1); color: #488C82; border: 1px solid rgba(72,140,130,0.15); }
.ep-btn-edit:hover { background: rgba(72,140,130,0.18); border-color: #488C82; }
.ep-btn-toggle { background: rgba(158,139,99,0.08); color: #9E8B63; border: 1px solid rgba(158,139,99,0.15); }
.ep-btn-toggle:hover { background: rgba(158,139,99,0.15); border-color: #9E8B63; }
.ep-btn-delete { background: rgba(200,80,60,0.06); color: #c8503c; border: 1px solid rgba(200,80,60,0.1); }
.ep-btn-delete:hover { background: rgba(200,80,60,0.12); border-color: #c8503c; }

/* ── Stats Row ── */
.ep-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.625rem;
    margin-bottom: 1rem;
}
.ep-stat {
    background: #fff;
    border: 1px solid rgba(158,139,99,0.12);
    border-radius: 12px;
    padding: 0.75rem 0.875rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: border-color 0.15s ease;
}
.ep-stat:hover { border-color: rgba(158,139,99,0.25); }
.ep-stat-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: #2A2A2A;
    letter-spacing: -0.02em;
    line-height: 1;
}
.ep-stat-label {
    font-size: 0.5625rem;
    color: #8a8177;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 0.125rem;
}
.ep-stat-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    flex-shrink: 0;
}
.ep-icon-terracotta { background: rgba(200,121,65,0.1); color: #C87941; }
.ep-icon-teal { background: rgba(72,140,130,0.1); color: #488C82; }
.ep-icon-bronze { background: rgba(158,139,99,0.1); color: #9E8B63; }
.ep-icon-charcoal { background: rgba(42,42,42,0.06); color: #2A2A2A; }

/* ── Card Shell ── */
.ep-card {
    background: #fff;
    border: 1px solid rgba(158,139,99,0.12);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}
.ep-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(158,139,99,0.08);
}
.ep-card-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #2A2A2A;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin: 0;
}
.ep-card-title i { color: #9E8B63; font-size: 0.8125rem; }
.ep-card-count {
    font-size: 0.5625rem;
    font-weight: 700;
    background: rgba(200,121,65,0.1);
    color: #C87941;
    padding: 0.125rem 0.375rem;
    border-radius: 6px;
}
.ep-card-body { padding: 1rem; }

/* ── Package Grid ── */
.ep-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.75rem;
}

/* ── Package Item ── */
.ep-item {
    background: #fff;
    border: 1px solid rgba(158,139,99,0.12);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    position: relative;
}
.ep-item:hover {
    border-color: rgba(158,139,99,0.25);
    box-shadow: 0 2px 12px rgba(42,42,42,0.06);
}

/* Image / Placeholder */
.ep-item-img {
    height: 140px;
    overflow: hidden;
    position: relative;
}
.ep-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ep-item-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #C87941 0%, #9E8B63 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    font-size: 2rem;
}

/* Featured badge */
.ep-featured {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-size: 0.5625rem;
    font-weight: 700;
    background: rgba(200,121,65,0.92);
    color: #fff;
    padding: 0.15rem 0.4rem;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    z-index: 2;
}

/* Item body */
.ep-item-body { padding: 0.75rem 0.875rem; }

/* Status badges row */
.ep-badges {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.375rem;
}
.ep-badge {
    font-size: 0.5625rem;
    font-weight: 700;
    padding: 0.1rem 0.35rem;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.ep-badge-type { background: rgba(72,140,130,0.1); color: #488C82; }
.ep-badge-approved { background: rgba(72,140,130,0.1); color: #488C82; }
.ep-badge-pending { background: rgba(200,121,65,0.1); color: #C87941; }
.ep-badge-active { background: rgba(107,112,40,0.1); color: #6B7028; }
.ep-badge-inactive { background: rgba(42,42,42,0.06); color: #8a8177; }

/* Item title & desc */
.ep-item-name {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #2A2A2A;
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
}
.ep-item-desc {
    font-size: 0.625rem;
    color: #8a8177;
    line-height: 1.5;
    margin: 0 0 0.5rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Price row */
.ep-price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}
.ep-price {
    font-size: 0.9375rem;
    font-weight: 800;
    color: #488C82;
    letter-spacing: -0.02em;
}
.ep-price-old {
    font-size: 0.625rem;
    color: #b0a897;
    text-decoration: line-through;
    margin-right: 0.25rem;
}
.ep-guests {
    font-size: 0.5625rem;
    color: #8a8177;
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

/* Action buttons row */
.ep-actions {
    display: flex;
    gap: 0.375rem;
}
.ep-actions .ep-btn { flex: 1; justify-content: center; }
.ep-actions .ep-btn:not(:first-child) { flex: 0; }

/* ── Empty State ── */
.ep-empty {
    text-align: center;
    padding: 2.5rem 1rem;
}
.ep-empty-icon {
    font-size: 2rem;
    color: #c4b99a;
    margin-bottom: 0.5rem;
}
.ep-empty-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #2A2A2A;
    margin-bottom: 0.25rem;
}
.ep-empty-text {
    font-size: 0.6875rem;
    color: #8a8177;
    margin-bottom: 0.75rem;
}

/* ── Loading State ── */
.ep-loading {
    text-align: center;
    padding: 2.5rem 1rem;
}
.ep-spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(200,121,65,0.15);
    border-top-color: #C87941;
    border-radius: 50%;
    animation: ep-spin 0.6s linear infinite;
}
@keyframes ep-spin { to { transform: rotate(360deg); } }
.ep-loading-text {
    font-size: 0.6875rem;
    color: #8a8177;
    margin-top: 0.5rem;
}

/* ── Responsive ── */
@media (max-width: 992px) {
    .ep-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .ep { padding: 0.75rem; }
    .ep-header { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
    .ep-stats { grid-template-columns: 1fr 1fr; }
    .ep-grid { grid-template-columns: 1fr; }
}
@media (max-width: 576px) {
    .ep-stats { grid-template-columns: 1fr; }
}
