/* =========================================================
   Instagram Carousel Feed — Frontend Styles v3
   Real Instagram embeds inside customisable cards
   ========================================================= */

/* ── Wrapper ─────────────────────────────────────────────── */
.icf-carousel-wrapper {
	position: relative;
	box-sizing: border-box;
	padding: 0 48px;
}

/* ── Swiper ──────────────────────────────────────────────── */
.icf-swiper {
	overflow: hidden;
}

.swiper-wrapper {
	align-items: stretch;
}

/* ── Card ────────────────────────────────────────────────── */
.icf-card {
	background: #ffffff;
	border: 1px solid #dbdbdb;
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	height: 100%;
	box-sizing: border-box;
}

/* ── Embed wrapper ───────────────────────────────────────── */
/*
   Instagram's /embed/ iframe writes its own internal height
   via postMessage. We give it a sensible default and let the
   JS ResizeObserver (or a fixed height control) adjust it.
*/
.icf-card__embed-wrap {
	flex: 1 1 auto;
	min-height: 480px;
	position: relative;
	overflow: hidden;
	background: #fafafa;
	display: flex;
	align-items: stretch;
}

.icf-embed-iframe {
	display: block;
	width: 100%;
	height: 560px;        /* default; overridden by Elementor slider control */
	border: none;
	flex-shrink: 0;
}

/* ── Footer (badge only) ─────────────────────────────────── */
.icf-card__footer {
	background: #ffffff;
	padding: 8px 12px 10px;
	flex-shrink: 0;
}

/* ── Badge ───────────────────────────────────────────────── */
.icf-card__badge {
	display: flex;
	align-items: center;
	gap: 6px;
}

.icf-badge-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #e1306c;
	flex-shrink: 0;
}

.icf-badge-text {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .06em;
	color: #8e8e8e;
	text-transform: uppercase;
}

/* ── Navigation arrows ───────────────────────────────────── */
.icf-btn-prev,
.icf-btn-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #ffffff;
	border: 1px solid #dbdbdb;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #262626;
	box-shadow: 0 2px 6px rgba(0,0,0,.12);
	transition: background-color .2s ease, color .2s ease,
	            box-shadow .2s ease, border-color .2s ease, opacity .2s ease;
	padding: 0;
	line-height: 1;
}

.icf-btn-prev { left: 0; }
.icf-btn-next { right: 0; }

.icf-btn-prev svg,
.icf-btn-next svg {
	display: block;
	width: 18px;
	height: 18px;
	pointer-events: none;
}

.icf-btn-prev:hover,
.icf-btn-next:hover {
	background: #f5f5f5;
	box-shadow: 0 4px 12px rgba(0,0,0,.18);
}

.icf-btn-prev.swiper-button-disabled,
.icf-btn-next.swiper-button-disabled {
	opacity: .3;
	cursor: default;
	pointer-events: none;
}

/* ── Pagination dots ─────────────────────────────────────── */
.icf-pagination {
	margin-top: 14px;
	text-align: center;
	position: static !important;
}

.icf-pagination.swiper-pagination-bullets {
	bottom: auto;
}

.icf-pagination .swiper-pagination-bullet {
	width: 8px;
	height: 8px;
	background: #dbdbdb;
	opacity: 1;
	transition: background .2s;
}

.icf-pagination .swiper-pagination-bullet-active {
	background: #262626;
}

/* ── Placeholder / Error ─────────────────────────────────── */
.icf-placeholder,
.icf-error {
	padding: 24px;
	border: 1.5px dashed #dbdbdb;
	border-radius: 8px;
	text-align: center;
	color: #8e8e8e;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 14px;
	background: #fafafa;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
	.icf-carousel-wrapper { padding: 0 40px; }
}

@media (max-width: 767px) {
	.icf-carousel-wrapper { padding: 0 36px; }

	.icf-btn-prev,
	.icf-btn-next {
		width: 32px;
		height: 32px;
	}

	.icf-btn-prev svg,
	.icf-btn-next svg {
		width: 14px;
		height: 14px;
	}
}
