/*
 * rt-event-details.css
 * ─────────────────────────────────────────────────────────────────────────────
 * Single Event Details page (Figma 289:3671). Scoped to .rt-event-details.
 * Depends on rt-global + rt-discover-people (speaker cards).
 */

.rt-event-details,
.rt-event-details * { box-sizing: border-box !important; }

.rt-event-details {
	max-width: 860px;             /* match the group details page */
	margin: 0 auto;
	padding: 0 16px;              /* side inset so cards match group width (828px) */
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 20px;
	font-family: var(--rt-font-primary, 'Inter', sans-serif);
	color: #111111;
}
.rt-event-details a { text-decoration: none; color: inherit; }

/* ── Main card + cover ──────────────────────────────────────────────────── */
.rt-event-details__card {
	background: #fff;
	border-radius: 10px;
	box-shadow: var(--rt-shadow-card, 0 0 20px 0 rgba(0, 0, 0, 0.05));
}
.rt-event-details__cover {
	width: 100%;
	height: 160px;                /* match the group details cover */
	border-radius: 10px 10px 0 0;
	background-color: lightgray;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}
.rt-event-details__body { padding: 24px 30px 30px; }

/* ── Detail block ───────────────────────────────────────────────────────── */
.rt-event-details__org {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 6px;
	background: #eef2fb;
	color: #558AF5 !important;
	text-align: center;
	font-family: Inter, sans-serif;
	font-size: 14px !important;
	font-style: normal;
	font-weight: 500 !important;
	line-height: 20px;
}
.rt-event-details__title {
	margin: 14px 0 0 !important;
	font-size: 26px !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
	color: #111 !important;
}
.rt-event-details__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 14px;
}
.rt-event-details__pill {
	display: flex !important;
	padding: 2px 10px 2px 10px !important;
	align-items: center !important;
	gap: 4px !important;
	border-radius: 5px !important;
	background: #F0F0F2 !important;
	font-size: 14px;
	font-weight: 500;
	color: #111;
	white-space: nowrap;
}
.rt-event-details__pill svg { flex: 0 0 auto; }

/* ── Attend + kebab ─────────────────────────────────────────────────────── */
.rt-event-details__actions {
	display: flex;
	align-items: center;
	gap: 23px;
	margin-top: 30px !important;   /* 30px below the badges */
}
.rt-event-details__attend {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-width: 120px;
	padding: 12px 24px !important;
	border: 1px solid #111 !important;
	border-radius: 5px !important;
	background: #111 !important;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	color: #fff !important;
	cursor: pointer;
	-webkit-appearance: none;
	        appearance: none;
	box-shadow: none !important;
}
.rt-event-details__attend:hover { background: #000 !important; }
.rt-event-details__attend.is-attending {
	background: #fff !important;
	color: #111 !important;
	border-color: #d0d5dd !important;
}
.rt-event-details__attend[disabled] { opacity: 0.6; cursor: default; }
.rt-event-details__attend-check { display: none; flex: 0 0 auto; }
.rt-event-details__attend.is-attending .rt-event-details__attend-check { display: inline-flex; }

.rt-event-details__menu-wrap { position: relative; }
.rt-event-details__kebab {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 30px !important;
	height: 30px !important;
	aspect-ratio: 1 / 1 !important;
	min-width: 0 !important;
	min-height: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: #F0F0F2 !important;
	background-color: #F0F0F2 !important;
	color: #111 !important;
	cursor: pointer;
	box-shadow: none !important;
	line-height: 1 !important;
	-webkit-appearance: none !important;
	        appearance: none !important;
}
.rt-event-details__kebab svg { width: 24px !important; height: 24px !important; display: block; transform: none !important; }
.rt-event-details__menu {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	min-width: 190px;
	margin: 0;
	padding: 6px;
	list-style: none;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
	z-index: 30;
}
.rt-event-details__menu[hidden] { display: none !important; }
.rt-event-details__menu-item {
	display: block;
	width: 100%;
	padding: 10px 12px !important;
	border: 0 !important;
	border-radius: 6px !important;
	background: transparent !important;
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	color: #111 !important;
	text-align: left;
	cursor: pointer;
}
.rt-event-details__menu-item:hover { background: #f3f4f6 !important; }

.event_listing-template-default h1.elementor-heading-title {
	display: none !important;
}


/* ── Tabs ───────────────────────────────────────────────────────────────── */
/* Each tab is a ~168px pill; the row is flex so the tabs shrink evenly on
   smaller windows instead of overflowing. */
.rt-event-details__tabs {
	display: flex;
	align-items: center;
	gap: 4px;
	width: 100%;
	max-width: 522px;   /* 3 × 168 + gaps + padding */
	margin-top: 20px;
	padding: 5px;
	border-radius: 8px;
	background: #f1f2f4;
}
.rt-event-details__tab {
	flex: 1 1 0;
	min-width: 0;
	display: flex !important;
	height: 28px;
	padding: 10px 24px !important;
	justify-content: center !important;
	align-items: center !important;
	gap: 10px;
	border: 0 !important;
	border-radius: 5px !important;
	background: transparent !important;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	color: #4a4f57 !important;
	white-space: nowrap;
	cursor: pointer;
	-webkit-appearance: none;
	        appearance: none;
}
.rt-event-details__tab--active { background: #fff !important; color: #111 !important; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06); }

/* ── Panels ─────────────────────────────────────────────────────────────── */
.rt-event-details__panel { margin-top: 20px; }
.rt-event-details__panel[hidden] { display: none !important; }
.rt-event-details__empty { color: #585858; font-size: 15px; padding: 24px 0; }

/* ── Comments tab: post card wrapper (Figma 289:3975) ───────────────────── */
.rt-event-details [data-rt-panel="comments"] .rt-post,
.rt-event-details [data-rt-panel="comments"] .rt-create-post {
	border-radius: 10px !important;  /* match the header section radius */
	border: 1.5px solid #CCD2D9 !important;
	background: var(--Base-White, #FFF) !important;
	box-shadow: 0 1px 2px 0 rgba(10, 13, 18, 0.05) !important;
}

/* Composer + feed stack full-width with a 20px gap between them. */
.rt-event-details [data-rt-panel="comments"] {
	display: flex;
	flex-direction: column;
	gap: 20px;
}
.rt-event-details [data-rt-panel="comments"] .rt-create-post,
.rt-event-details [data-rt-panel="comments"] .rt-post-feed {
	width: 100% !important;
	max-width: none !important;
}

/* ── Attendees preview ──────────────────────────────────────────────────── */
.rt-event-details__attendees {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	cursor: pointer;
	box-shadow: none !important;
}
.rt-event-details__avatars { display: inline-flex; }
.rt-event-details__avatar {
	width: 32px !important;
	height: 32px !important;
	border-radius: 50% !important;
	object-fit: cover;
	border: 2px solid #fff;
	margin-left: -10px;
	background: #d3d3d3;
}
.rt-event-details__avatars .rt-event-details__avatar:first-child { margin-left: 0; }
.rt-event-details__attendees-text { font-size: 15px; color: #111; }

.rt-event-details__divider { border: 0 !important; border-top: 1px solid #DBDBDC !important; margin: 20px 0 !important; }

/* ── About ──────────────────────────────────────────────────────────────── */
.rt-event-details__section-title {
	margin: 0 0 12px !important;
	font-size: 20px !important;
	font-weight: 700 !important;
	color: #111 !important;
}
.rt-event-details__about-body { font-size: 15px; line-height: 1.7; color: #3a3a3a; }
.rt-event-details__about-body p { margin: 0 0 12px !important; }

/* ── Join online (attendee-gated) ───────────────────────────────────────── */
.rt-event-details__online {
	display: flex !important;
	flex-direction: column !important;
	gap: 4px !important;
}
.rt-event-details__online .rt-event-details__section-title { margin: 0 !important; line-height: 1.3 !important; }
.rt-event-details__online-link {
	align-self: flex-start;
	margin: 0 !important;
	font-size: 15px;
	font-weight: 500;
	color: #558AF5 !important;
	text-decoration: none !important;
	word-break: break-all;
}
.rt-event-details__online-link:hover { text-decoration: underline !important; }
.rt-event-details__online-detail { margin: 0 !important; font-size: 15px; color: #111; word-break: break-word; }
.rt-event-details__online-note { margin: 0 !important; font-size: 14px; color: #585858; }

/* ── Speakers card ──────────────────────────────────────────────────────── */
.rt-event-details__speakers {
	background: #fff;
	border-radius: 10px;
	box-shadow: var(--rt-shadow-card, 0 0 20px 0 rgba(0, 0, 0, 0.05));
	padding: 24px 30px;
}
.rt-event-details__speakers[hidden] { display: none !important; }
.rt-event-details__speakers-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin-top: 4px;
}
.rt-event-details__speaker-card {
	width: 100% !important;
	height: auto !important;
	min-height: 0 !important;
	padding: 20px !important;
	border: 1px solid #CCD2D9 !important;
	border-radius: 12px !important;
	background: #fff !important;
	box-shadow: none !important;
}
.rt-event-details__speaker-card .rt-discover-people__actions {
	margin-top: auto;
	padding-top: 16px;
}
.rt-event-details__speaker-card .rt-discover-people__action-btn { width: 100%; flex: 1 0 auto; }

/* The connect (+) icon button is a 30px circle — Elementor's button padding
   (10px 24px) otherwise stretches it. Force the size + zero padding. */
.rt-event-details__speaker-card .rt-discover-people__status-btn {
	width: 30px !important;
	height: 30px !important;
	min-width: 0 !important;
	min-height: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	border-radius: 50% !important;
	line-height: 1 !important;
	box-shadow: none !important;
	-webkit-appearance: none !important;
	        appearance: none !important;
}
.rt-event-details__speaker-card .rt-discover-people__status-btn svg {
	width: 20px !important;
	height: 20px !important;
}

/* ── Modals (invite / attendees) ────────────────────────────────────────── */
.rt-event-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.rt-event-modal[hidden] { display: none !important; }
.rt-event-modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.45); }
.rt-event-modal__card {
	position: relative;
	width: 100%;
	max-width: 480px;
	max-height: 80vh;
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
	overflow: hidden;
}
.rt-event-modal__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 20px;
	border-bottom: 1px solid #eef0f2;
}
.rt-event-modal__title { margin: 0 !important; font-size: 18px !important; font-weight: 600 !important; color: #111 !important; }
.rt-event-modal__close {
	border: 0 !important; background: transparent !important; cursor: pointer;
	font-size: 24px; line-height: 1; color: #111 !important; padding: 0 4px !important; box-shadow: none !important;
}
.rt-event-modal__body { padding: 16px 20px 20px; overflow-y: auto; }
.rt-event-modal__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rt-event-modal__row { display: flex; align-items: center; gap: 12px; padding: 8px 4px; }
.rt-event-modal__row-avatar { width: 40px !important; height: 40px !important; border-radius: 50% !important; object-fit: cover; flex: 0 0 auto; background: #d3d3d3; }
.rt-event-modal__row-info { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; line-height: 1.3; }
.rt-event-modal__row-name { font-size: 15px; font-weight: 600; color: #111; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rt-event-modal__row-pos { font-size: 13px; color: #585858; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rt-event-modal__action-btn {
	flex: 0 0 auto;
	padding: 8px 18px !important;
	border: 1px solid #111 !important;
	border-radius: 6px !important;
	background: #111 !important;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	color: #fff !important;
	cursor: pointer;
	box-shadow: none !important;
	-webkit-appearance: none;
	        appearance: none;
}
.rt-event-modal__action-btn:hover { background: #000 !important; }
.rt-event-modal__action-btn.is-done,
.rt-event-modal__action-btn[disabled] {
	background: #fff !important; color: #585858 !important; border-color: #d0d5dd !important; cursor: default;
}

/* Attendee row "Message" button + infinite-scroll sentinel (modal). */
.rt-event-modal__row-actions { flex: 0 0 auto; }
.rt-event-modal__row-btn {
	display: inline-flex; align-items: center; justify-content: center;
	height: 28px; padding: 0 16px !important;
	border: 1px solid #111 !important; border-radius: 5px !important;
	background: #fff !important; box-shadow: none !important;
	font-family: inherit; font-size: 14px; font-weight: 500;
	color: #111 !important; text-decoration: none !important; white-space: nowrap;
	-webkit-appearance: none; appearance: none;
}
.rt-event-modal__row-btn:hover { background: #f3f4f6 !important; }
.rt-event-modal__sentinel { height: 1px; }

/* ── Networking tab (mirrors the group Members tab) ─────────────────────── */
/* Elementor flattens generic flex containers, so the row layout is enforced. */
.rt-event-details__net-header {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 16px !important;
	width: 100% !important;
}
.rt-event-details__net-heading {
	display: flex !important;
	flex-direction: column !important;
	gap: 0 !important;
	flex: 1 1 auto !important;
	min-width: 0 !important;
	margin: 0 !important;
}
.rt-event-details__net-heading .rt-event-details__section-title {
	margin: 0 !important;
	color: #111 !important;
	font-family: Inter, sans-serif !important;
	font-size: 20px !important;
	font-style: normal !important;
	font-weight: 600 !important;
	line-height: 32px !important; /* the only gap to the subtitle */
}
.rt-event-details__net-subtitle {
	margin: 0 !important;
	color: #585858 !important;
	font-family: Inter, sans-serif !important;
	font-size: 12px !important;
	font-style: normal !important;
	font-weight: 400 !important;
	line-height: 16px !important;
}
.rt-event-details__net-count {
	flex: 0 0 auto !important;
	display: inline-flex !important;
	align-items: center !important;
	align-self: center !important;
	padding: 2px 10px !important;
	border-radius: 5px !important;
	background: #F0F0F2 !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	color: #111 !important;
	white-space: nowrap !important;
}
.rt-event-details__net-rows { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.rt-event-details__net-row {
	display: flex; align-items: center; gap: 14px;
	padding: 16px !important; border: 1.5px solid #CCD2D9 !important; border-radius: 12px !important;
	background: #fff;
}
.rt-event-details__net-avatar-link { flex: 0 0 auto; line-height: 0; }
.rt-event-details__net-avatar {
	width: 50px !important; height: 50px !important; border-radius: 50% !important;
	object-fit: cover; background: #d3d3d3;
}
.rt-event-details__net-info { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; line-height: 1.35; }
.rt-event-details__net-name {
	font-size: 15px; font-weight: 600; color: #111 !important; text-decoration: none !important;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rt-event-details__net-name:hover { text-decoration: underline !important; }
.rt-event-details__net-meta {
	font-size: 13px; color: #585858;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rt-event-details__net-actions { flex: 0 0 auto; }
.rt-event-details__net-btn {
	display: inline-flex; align-items: center; justify-content: center;
	height: 32px; padding: 0 18px !important;
	border: 1px solid #111 !important; border-radius: 5px !important;
	background: #fff !important; box-shadow: none !important;
	font-family: inherit; font-size: 14px; font-weight: 500;
	color: #111 !important; text-decoration: none !important; white-space: nowrap;
	-webkit-appearance: none; appearance: none;
}
.rt-event-details__net-btn:hover { background: #f3f4f6 !important; }
.rt-event-details__net-seeall {
	display: flex !important;
	width: 240px !important;
	max-width: 100% !important;
	margin: 20px auto 0 !important;
	padding: 12px 24px !important;
	justify-content: center !important;
	align-items: center !important;
	gap: 10px !important;
	border: 0 !important; border-radius: 999px !important;
	background: #111 !important; box-shadow: none !important;
	font-family: inherit; font-size: 15px; font-weight: 600; color: #fff !important;
	cursor: pointer; -webkit-appearance: none; appearance: none;
}
.rt-event-details__net-seeall:hover { background: #000 !important; }

@media (max-width: 640px) {
	.rt-event-details__net-row { flex-wrap: wrap; }
	.rt-event-details__net-actions { width: 100%; }
	.rt-event-details__net-btn { width: 100%; }
}

/* ── Search + pagination (shared) ───────────────────────────────────────── */
.rt-event-details__search { position: relative; margin-bottom: 12px; }
.rt-event-details__search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #8a8f98; }
.rt-event-details__search-input {
	width: 100%;
	padding: 10px 12px 10px 40px !important;
	border: 1px solid #d0d5dd !important;
	border-radius: 8px !important;
	background: #fff !important;
	font-family: inherit;
	font-size: 14px;
	outline: none;
}
.rt-event-details__search-icon { z-index: 1; pointer-events: none; }
.rt-event-details__search-input:focus { border-color: var(--rt-color-brand, #558AF5) !important; }
.rt-event-details__pagination { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 14px; }
.rt-event-details__pagination:empty { margin: 0; }
.rt-event-details__page-btn {
	padding: 6px 14px !important; border: 1px solid #d0d5dd !important; border-radius: 6px !important;
	background: #fff !important; font-size: 13px; font-weight: 600; color: #111; cursor: pointer; box-shadow: none !important;
}
.rt-event-details__page-btn[disabled] { opacity: 0.5; cursor: default; }
.rt-event-details__page-info { font-size: 13px; color: #585858; }

/* ── Tablet ─────────────────────────────────────────────────────────────── */
@media (max-width: 820px) {
	.rt-event-details__speakers-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── Mobile ─────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
	.rt-event-details__cover { height: 160px; }
	.rt-event-details__body { padding: 18px 16px 22px; }
	.rt-event-details__speakers { padding: 18px 16px; }
	.rt-event-details__speakers-grid { grid-template-columns: 1fr; }
	.rt-event-details__tabs { display: flex; }
	.rt-event-details__tab { flex: 1; padding: 9px 8px !important; }
	.rt-event-details__meta { gap: 8px; }
}
