/* Event4Life additions on top of the Wedding Manager template */

.alert-fixed { top: 0; position: fixed; left: 0; z-index: 99999; width: 100%; padding: 10px; pointer-events: none; }
.alert-fixed .alert { max-width: 1140px; margin: 0 auto 8px; pointer-events: auto; box-shadow: 0 4px 16px rgba(0,0,0,.12); }
.alert-fixed[hidden] { display: none; }

/* filled hearts / bookmarks */
.like-btn.active i, .like-btn .fa-heart, .bookmark-btn.active i { color: #ff3b5c; }

/* inline forms that should look like links or icons */
.inline-form { display: inline; margin: 0; }
.btn-plain { background: none; border: 0; padding: 0; color: inherit; cursor: pointer; }
.btn-plain:hover { text-decoration: underline; }

.empty-state { text-align: center; padding: 40px 20px; color: #777; }
.empty-state i { font-size: 48px; display: block; margin-bottom: 10px; color: #ccc; }

/* checklist */
.task-done .task-title { text-decoration: line-through; color: #999; }
.task-meta { font-size: 12px; color: #999; }

/* guest list status icons */
.rsvp-yes { color: #2eca6a; } .rsvp-no { color: #ff3b5c; } .rsvp-pending { color: #999; }

/* photo manager */
.photo-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.photo-grid .photo-item { width: 160px; position: relative; }
.photo-grid .photo-item img { width: 160px; height: 120px; object-fit: cover; border-radius: 4px; }
.photo-grid .photo-item .photo-actions { position: absolute; top: 4px; right: 4px; display: flex; gap: 4px; }
.photo-grid .photo-item .photo-actions button { background: rgba(0,0,0,.6); color: #fff; border: 0; border-radius: 3px; width: 26px; height: 26px; }

/* listing cards: keep images a consistent size when real uploads vary */
.listing-bx .listing-media img { width: 100%; height: 220px; object-fit: cover; }
.listing-sm .listing-media img { height: 190px; }
.featured-gallery img { width: 100%; max-height: 480px; object-fit: cover; }

/* map column on the search page */
#results-map { width: 100%; height: 100%; min-height: 480px; }

/* admin tables */
.admin-table { width: 100%; background: #fff; }
.admin-table th, .admin-table td { padding: 10px 12px; border-bottom: 1px solid #eee; vertical-align: middle; font-size: 14px; }
.admin-table th { background: #f7f7f7; font-weight: 600; }
.admin-card { background: #fff; padding: 20px 25px; border-radius: 6px; margin-bottom: 25px; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.stat-card { background: #fff; border-radius: 6px; padding: 20px; text-align: center; margin-bottom: 20px; }
.stat-card h3 { margin: 0; font-size: 32px; }
.stat-card span { color: #888; font-size: 13px; text-transform: uppercase; }
.badge-status { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 12px; background: #eee; }
.badge-status.active, .badge-status.approved, .badge-status.booked { background: #d4f5e0; color: #1d8a47; }
.badge-status.pending, .badge-status.in_progress { background: #fff1cc; color: #9a6b00; }
.badge-status.suspended, .badge-status.rejected, .badge-status.lost { background: #ffe0e5; color: #c0213c; }

.article-body img { max-width: 100%; height: auto; }
.form-errors { color: #c0213c; margin-bottom: 15px; }

/* ---------------------------------------------------------------- live chat */
.chat-app { display: flex; background: #fff; border-radius: 8px; box-shadow: 0 2px 12px rgba(0,0,0,.06); height: 72vh; min-height: 460px; overflow: hidden; }
.chat-list { width: 320px; border-right: 1px solid #eee; overflow-y: auto; flex-shrink: 0; }
.chat-list-head { padding: 16px 18px; font-weight: 600; border-bottom: 1px solid #eee; }
.chat-list-item { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid #f3f3f3; color: #333; }
.chat-list-item:hover { background: #fafafa; color: #333; }
.chat-list-item.active { background: #fdf0f4; }
.chat-list-item img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.chat-list-text { flex: 1; min-width: 0; }
.chat-list-text strong, .chat-list-text small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-list-text small { color: #888; }
.chat-list-item.unread .chat-list-text strong::after { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #e0457b; margin-left: 6px; vertical-align: middle; }
.chat-list-item.unread small { color: #333; font-weight: 600; }
.chat-list-time { font-size: 12px; color: #aaa; }
.chat-thread { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.chat-thread-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid #eee; }
.chat-thread-title { flex: 1; min-width: 0; }
.chat-thread-title strong, .chat-thread-title small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-thread-title small { color: #888; }
.chat-back { display: none; font-size: 22px; color: #333; }
.chat-call-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: #f3f3f3; color: #e0457b; font-size: 17px; cursor: pointer; }
.chat-call-btn:hover { background: #e0457b; color: #fff; }
.chat-messages { flex: 1; overflow-y: auto; padding: 18px; background: #f7f5f2; }
.chat-bubble { max-width: 72%; margin: 0 0 10px; padding: 9px 13px; border-radius: 14px; line-height: 1.45; word-wrap: break-word; }
.chat-bubble.theirs { background: #fff; border-bottom-left-radius: 4px; }
.chat-bubble.mine { background: #e0457b; color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.chat-text { white-space: pre-wrap; }
.chat-time { font-size: 11px; opacity: .7; margin-top: 3px; text-align: right; }
.chat-bubble.mine.seen .chat-time::after { content: ' · Seen'; }
.chat-system { text-align: center; font-size: 12px; color: #888; margin: 8px 0 14px; }
.chat-loading { text-align: center; color: #999; padding: 30px; }
.chat-compose { display: flex; gap: 8px; padding: 12px; border-top: 1px solid #eee; }
.chat-compose textarea { flex: 1; resize: none; border: 1px solid #ddd; border-radius: 20px; padding: 9px 15px; max-height: 140px; }
.chat-compose .btn { border-radius: 50%; width: 44px; height: 44px; padding: 0; }
.chat-empty { margin: auto; }
@media (max-width: 767px) {
	.chat-app { height: 78vh; }
	.chat-list { width: 100%; border-right: 0; }
	.chat-thread { display: none; }
	.chat-app.has-thread .chat-list { display: none; }
	.chat-app.has-thread .chat-thread { display: flex; }
	.chat-back { display: block; }
	.chat-bubble { max-width: 85%; }
}

/* ------------------------------------------------------------- call screen */
.call-screen { position: fixed; inset: 0; z-index: 100000; background: #16161d; color: #fff; }
.call-screen[hidden] { display: none; }
.call-screen #remote-video { width: 100%; height: 100%; object-fit: cover; display: none; background: #000; }
.call-screen.connected-video #remote-video { display: block; }
.call-screen.connected-video .call-avatar { display: none; }
.call-avatar { position: absolute; top: 30%; left: 50%; transform: translate(-50%, -50%); text-align: center; }
.call-avatar i { font-size: 90px; display: block; width: 150px; height: 150px; line-height: 150px; border-radius: 50%; background: #2c2c38; margin: 0 auto 14px; }
.call-avatar strong { font-size: 22px; }
.call-screen #local-video { position: absolute; right: 16px; bottom: 110px; width: 28vw; max-width: 220px; border-radius: 10px; background: #000; transform: scaleX(-1); }
.call-screen.audio-only #local-video { display: none; }
.call-status { position: absolute; top: 20px; left: 0; right: 0; text-align: center; font-size: 15px; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.call-controls { position: absolute; bottom: 28px; left: 0; right: 0; display: flex; justify-content: center; gap: 22px; }
.call-controls button { width: 60px; height: 60px; border-radius: 50%; border: 0; background: rgba(255,255,255,.18); color: #fff; font-size: 22px; cursor: pointer; }
.call-controls button.off { background: #fff; color: #16161d; }
.call-controls .hangup { background: #e53935; }
.call-controls .hangup i { transform: rotate(135deg); }
body.in-call { overflow: hidden; }

/* ---------------------------------------------------------- incoming call */
.incoming-call { position: fixed; right: 20px; bottom: 20px; z-index: 100001; background: #fff; border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,.25); padding: 16px 18px; display: flex; align-items: center; gap: 14px; max-width: calc(100vw - 40px); animation: e4lpulse 1.5s infinite; }
.incoming-icon { width: 50px; height: 50px; border-radius: 50%; background: #2eca6a; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.incoming-text strong, .incoming-text span { display: block; }
.incoming-text span { color: #777; font-size: 13px; }
.incoming-actions { display: flex; gap: 8px; }
.incoming-actions .btn { padding: 8px 14px; }
@keyframes e4lpulse { 0%,100% { box-shadow: 0 8px 30px rgba(0,0,0,.25); } 50% { box-shadow: 0 8px 30px rgba(46,202,106,.6); } }

/* ------------------------------------------------------------ booking (couples) */
.book-svc { cursor: pointer; margin-bottom: 10px; }
.book-svc input { position: absolute; opacity: 0; }
.book-svc-box { display: block; border: 2px solid #eee; border-radius: 8px; padding: 12px 14px; }
.book-svc input:checked + .book-svc-box { border-color: #e0457b; background: #fdf0f4; }
.bk-nav { display: flex; justify-content: space-between; margin-bottom: 10px; }
.bk-months { display: flex; gap: 24px; flex-wrap: wrap; }
.bk-month { flex: 1; min-width: 250px; }
.bk-title { font-weight: 600; text-align: center; margin-bottom: 6px; }
.bk-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.bk-dow { text-align: center; font-size: 12px; color: #999; }
.bk-day { border: 0; border-radius: 6px; padding: 8px 0; font-size: 14px; cursor: pointer; background: #e6f7ec; color: #1d8a47; }
.bk-day:hover:not([disabled]) { background: #2eca6a; color: #fff; }
.bk-day.full { background: #ffe8ec; color: #c0213c; text-decoration: line-through; }
.bk-day.closed, .bk-day.unavailable { background: #f3f3f3; color: #bbb; }
.bk-day[disabled] { cursor: not-allowed; }
.bk-day.selected { background: #e0457b !important; color: #fff !important; }
.bk-key { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-left: 10px; }
.bk-key.free { background: #e6f7ec; } .bk-key.full { background: #ffe8ec; } .bk-key.closed { background: #f3f3f3; }
.booking-steps { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0; }
.booking-steps span { padding: 4px 10px; border-radius: 12px; background: #f3f3f3; font-size: 12px; color: #999; }
.booking-steps span.done { background: #d4f5e0; color: #1d8a47; }
.booking-steps span.now { background: #e0457b; color: #fff; }

/* bootstrap-select live search hides non-matches with .hidden, which Bootstrap 4 no longer defines */
.bootstrap-select .dropdown-menu li.hidden { display: none; }
