/* ===============================================================
   DW Design Collections — frontend
   Tier cards: per-card image carousel + guest/investment slider.
   Namespaced dw-ed-tiers / dw-ed-tier (won't collide with the gallery).
=============================================================== */

.dw-ed-tiers,
.dw-ed-tiers *,
.dw-ed-tiers *::before,
.dw-ed-tiers *::after { box-sizing: border-box; }

.dw-ed-tiers {
	--dwc-dark:     #1a1a1a;
	--dwc-brown:    #413225;
	--dwc-olive:    #7E8460;
	--dwc-muted:    #756050;
	--dwc-cream:    #E9E0CF;
	--dwc-sand:     #BFB198;
	--dwc-offwhite: #F7F7F3;
	--dwc-white:    #FFFFFF;
	--dwc-sans:     'Poppins', system-ui, -apple-system, sans-serif;
	--dwc-serif:    'Libre Baskerville', Georgia, serif;

	position: relative;
	width: 100vw;
	margin-left: calc(-50vw + 50%);
	background-color: var(--dwc-white);
	padding: 100px 0;
	font-family: var(--dwc-sans);
	color: var(--dwc-dark);
}

/* Header */
.dw-ed-tiers-header-wrap { max-width: 1300px; margin: 0 auto 60px; padding: 0 24px; }
.dw-ed-tiers-header { text-align: center; max-width: 760px; margin: 0 auto; }
.dw-ed-tiers-eyebrow {
	display: inline-block;
	font-size: 11px; font-weight: 400;
	letter-spacing: 0.34em; text-transform: uppercase;
	color: var(--dwc-olive); margin-bottom: 20px;
}
.dw-ed-tiers-rule {
	display: block; width: 44px; height: 1px;
	background-color: rgba(126, 132, 96, 0.45); margin: 0 auto 26px;
}
.dw-ed-tiers-title {
	font-family: var(--dwc-serif);
	font-size: clamp(28px, 3.4vw, 44px);
	font-weight: 400; line-height: 1.16; letter-spacing: 0.005em;
	color: var(--dwc-dark); margin: 0;
}

/* Grid */
.dw-ed-tiers-grid-wrap { max-width: 1300px; margin: 0 auto; padding: 0 24px; }
.dw-ed-tiers-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
	align-items: stretch;
}
/* Adapt when a different number of cards is configured */
.dw-ed-tiers-grid[data-count="1"] { grid-template-columns: minmax(0, 460px); justify-content: center; }
.dw-ed-tiers-grid[data-count="2"] { grid-template-columns: repeat(2, 1fr); max-width: 880px; }
.dw-ed-tiers-grid[data-count="4"] { grid-template-columns: repeat(4, 1fr); }

/* Card */
.dw-ed-tiers-card {
	background-color: var(--dwc-offwhite);
	border: 1px solid rgba(126, 132, 96, 0.16);
	display: flex; flex-direction: column;
	width: 100%; overflow: hidden;
	transition: border-color 0.5s ease, box-shadow 0.5s ease;
}
.dw-ed-tiers-card:hover {
	border-color: rgba(126, 132, 96, 0.4);
	box-shadow: 0 18px 40px rgba(26, 26, 26, 0.06);
}

/* Image carousel */
.dw-ed-tiers-media {
	position: relative;
	width: 100%;
	height: 260px;
	overflow: hidden;
	background: #ece9e2;
}
.dw-ed-tiers-media.is-empty::after {
	content: '';
	position: absolute; inset: 0;
	background-image: linear-gradient(135deg, #ece9e2 0%, #f4f2ec 100%);
}
.dw-ed-tier-swiper { width: 100%; height: 100%; }
.dw-ed-tier-swiper .swiper-slide { overflow: hidden; }
.dw-ed-tier-swiper img {
	width: 100% !important; height: 100% !important;
	object-fit: cover !important; display: block !important;
	transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.dw-ed-tiers-card:hover .dw-ed-tier-swiper .swiper-slide-active img { transform: scale(1.04); }

.dw-ed-tier-nav {
	position: absolute; top: 50%; transform: translateY(-50%);
	z-index: 5;
	width: 38px !important; height: 38px !important;
	border-radius: 50% !important;
	background: rgba(255, 255, 255, 0.92) !important;
	border: 0 !important; padding: 0 !important;
	color: #1a1a1a !important;
	display: inline-flex !important; align-items: center; justify-content: center;
	cursor: pointer;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18) !important;
	opacity: 0;
	transition: opacity 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
}
.dw-ed-tiers-media:hover .dw-ed-tier-nav { opacity: 1; }
.dw-ed-tier-nav:hover { background: #fff !important; }
.dw-ed-tier-nav svg { width: 16px; height: 16px; }
.dw-ed-tier-prev { left: 14px; }
.dw-ed-tier-next { right: 14px; }
.dw-ed-tier-prev:hover { transform: translateY(-50%) translateX(-2px); }
.dw-ed-tier-next:hover { transform: translateY(-50%) translateX(2px); }

.dw-ed-tier-dots {
	position: absolute; bottom: 14px; left: 0; right: 0;
	z-index: 5; display: flex; justify-content: center; gap: 6px;
}
.dw-ed-tier-dots .swiper-pagination-bullet {
	width: 7px !important; height: 7px !important;
	background: #fff !important; opacity: 0.55 !important;
	border-radius: 50% !important; margin: 0 !important;
	transition: opacity 0.3s ease, width 0.35s ease, border-radius 0.35s ease;
	box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}
.dw-ed-tier-dots .swiper-pagination-bullet-active {
	opacity: 1 !important; width: 18px !important; border-radius: 4px !important;
}

/* Body */
.dw-ed-tiers-card-body {
	padding: 32px 35px 22px;
	display: flex; flex-direction: column; gap: 13px;
}
.dw-ed-tiers-card-eyebrow {
	font-size: 10px; font-weight: 500;
	letter-spacing: 0.3em; text-transform: uppercase; color: var(--dwc-olive);
}
.dw-ed-tiers-card-title {
	font-family: var(--dwc-serif);
	font-size: 24px; font-weight: 400; line-height: 1.25;
	color: var(--dwc-dark); margin: 0; letter-spacing: 0.005em;
}
.dw-ed-tiers-card-desc {
	font-family: var(--dwc-sans);
	font-size: 13.5px; font-weight: 300; line-height: 1.75;
	color: var(--dwc-muted); margin: 0; min-height: 72px;
}

/* Data / slider */
.dw-ed-tiers-data-wrap {
	padding: 18px 35px 40px;
	flex-grow: 1; width: 100%;
	display: flex; flex-direction: column; justify-content: flex-end;
}
.dw-ed-data-head {
	display: flex; justify-content: space-between; align-items: center;
	padding-bottom: 16px;
	border-bottom: 1px solid rgba(126, 132, 96, 0.25);
	font-size: 10.5px; font-weight: 500; text-transform: uppercase;
	letter-spacing: 0.18em; color: var(--dwc-olive);
}
.dw-ed-tiers-data { width: 100%; display: flex; flex-direction: column; }
.dw-ed-data-row {
	display: flex; justify-content: space-between; align-items: center;
	padding: 16px 0; border-bottom: 1px solid rgba(126, 132, 96, 0.1);
	font-size: 13.5px;
}
.dw-ed-data-row:last-child { border-bottom: none; padding-bottom: 0; }
.dw-ed-label { color: var(--dwc-dark); font-weight: 400; }
.dw-ed-value { color: var(--dwc-dark); font-weight: 500; letter-spacing: 0.02em; }
.dw-ed-tiers-data-wrap.has-slider .dw-ed-tiers-data { display: none; }

/* Interactive slider */
.dw-ed-slider { width: 100%; padding-top: 22px; }
.dw-ed-slider-display {
	display: flex; justify-content: space-between; align-items: baseline;
	gap: 12px; margin-bottom: 20px;
}
.dw-ed-slider-guests { font-family: var(--dwc-serif); font-size: 19px; color: var(--dwc-dark); }
.dw-ed-slider-gnum { font-weight: 600; }
.dw-ed-slider-gword { font-family: var(--dwc-sans); font-size: 12.5px; color: var(--dwc-muted); margin-left: 3px; }
.dw-ed-slider-price {
	font-family: var(--dwc-serif); font-size: 25px; font-weight: 500;
	color: var(--dwc-olive); letter-spacing: 0.01em; white-space: nowrap;
}

.dw-ed-slider-range {
	-webkit-appearance: none; appearance: none;
	width: 100%; height: 4px; border-radius: 4px; margin: 0;
	background: linear-gradient(to right,
		var(--dwc-olive) 0%, var(--dwc-olive) var(--p, 0%),
		rgba(126, 132, 96, 0.18) var(--p, 0%), rgba(126, 132, 96, 0.18) 100%);
	outline: none; cursor: pointer;
}
.dw-ed-slider-range::-webkit-slider-thumb {
	-webkit-appearance: none; appearance: none;
	width: 20px; height: 20px; border-radius: 50%;
	background: #fff; border: 2px solid var(--dwc-olive);
	box-shadow: 0 2px 7px rgba(26, 26, 26, 0.18);
	cursor: grab; transition: transform 0.2s ease;
}
.dw-ed-slider-range::-webkit-slider-thumb:active { transform: scale(1.15); cursor: grabbing; }
.dw-ed-slider-range::-moz-range-thumb {
	width: 20px; height: 20px; border-radius: 50%;
	background: #fff; border: 2px solid var(--dwc-olive);
	box-shadow: 0 2px 7px rgba(26, 26, 26, 0.18); cursor: grab;
}
.dw-ed-slider-range::-moz-range-track { background: transparent; }

.dw-ed-slider-ticks { display: flex; justify-content: space-between; margin-top: 16px; }
.dw-ed-slider-ticks button {
	background: none; border: 0; padding: 4px 0; cursor: pointer;
	font-family: var(--dwc-sans); font-size: 11px; letter-spacing: 0.06em;
	color: var(--dwc-muted); transition: color 0.3s ease;
}
.dw-ed-slider-ticks button:hover { color: var(--dwc-dark); }
.dw-ed-slider-ticks button.is-active { color: var(--dwc-olive); font-weight: 600; }

/* Responsive */
@media (max-width: 1160px) {
	.dw-ed-tiers-grid { gap: 20px; }
	.dw-ed-tiers-card-body { padding: 28px 24px 18px; }
	.dw-ed-tiers-data-wrap { padding: 14px 24px 34px; }
	.dw-ed-tiers-card-desc { min-height: 96px; }
}
@media (max-width: 950px) {
	.dw-ed-tiers { padding: 80px 0; }
	.dw-ed-tiers-grid,
	.dw-ed-tiers-grid[data-count="1"],
	.dw-ed-tiers-grid[data-count="2"],
	.dw-ed-tiers-grid[data-count="4"] {
		grid-template-columns: 1fr;
		max-width: 480px; margin: 0 auto; gap: 45px;
	}
	.dw-ed-tiers-card-desc { min-height: auto; }
	.dw-ed-tiers-media { height: 280px; }
	.dw-ed-tier-nav { opacity: 1; }
}
@media (max-width: 600px) {
	.dw-ed-tiers { padding: 60px 0; }
	.dw-ed-tiers-header-wrap { padding: 0 20px; margin-bottom: 40px; }
	.dw-ed-tiers-grid-wrap { padding: 0 20px; }
	.dw-ed-slider-price { font-size: 22px; }
}
