/* =========================================================
   Sepid24 Home — OTA Design (Booking × Flytoday) v3.0
   RTL-first · Vazirmatn · Mobile-first
   ========================================================= */
:root {
	--sp-primary: #1f4bd8;
	--sp-primary-dark: #16369c;
	--sp-navy: #10205b;
	--sp-gold: #ffb703;
	--sp-gold-dark: #e09600;
	--sp-green: #0d8a3f;
	--sp-text: #1b2559;
	--sp-muted: #667085;
	--sp-bg: #f6f8fc;
	--sp-card: #ffffff;
	--sp-line: #e6eaf3;
	--sp-radius: 18px;
	--sp-shadow: 0 10px 30px rgba(16, 32, 91, .10);
	--sp-shadow-lg: 0 24px 70px rgba(16, 32, 91, .22);
}

.sp-home { background: var(--sp-bg); color: var(--sp-text); font-family: Vazirmatn, IRANSans, Tahoma, sans-serif; }
.sp-wrap { max-width: 1200px; margin-inline: auto; padding-inline: 20px; }
.sp-wrap-narrow { max-width: 860px; }
.sp-gold { color: var(--sp-gold); }

/* ================= HERO ================= */
.sp-hero {
	position: relative;
	overflow: hidden;
	padding: 64px 0 84px;
	background: linear-gradient(160deg, #0d1f63 0%, #1f4bd8 55%, #2e63ff 100%);
	color: #fff;
}
.sp-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.sp-blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .35; animation: spFloat 12s ease-in-out infinite alternate; }
.sp-blob-1 { width: 420px; height: 420px; background: #4f7dff; top: -140px; inset-inline-start: -120px; }
.sp-blob-2 { width: 360px; height: 360px; background: #ffb703; bottom: -180px; inset-inline-end: -100px; opacity: .22; animation-delay: -4s; }
.sp-blob-3 { width: 260px; height: 260px; background: #00c2ff; top: 30%; inset-inline-end: 20%; opacity: .18; animation-delay: -8s; }
.sp-plane {
	position: absolute; top: 84px; inset-inline-start: 6%;
	font-size: 34px; opacity: .85;
	animation: spPlane 22s linear infinite;
}
@keyframes spPlane {
	0%   { transform: translate(0, 0) rotate(8deg); opacity: 0; }
	6%   { opacity: .9; }
	50%  { transform: translate(-45vw, 60px) rotate(-4deg); }
	100% { transform: translate(-110vw, -20px) rotate(6deg); opacity: 0; }
}
@keyframes spFloat {
	from { transform: translateY(0) scale(1); }
	to   { transform: translateY(26px) scale(1.08); }
}

.sp-hero-title { position: relative; font-size: clamp(26px, 4.6vw, 46px); font-weight: 900; line-height: 1.35; margin: 0 0 10px; text-align: center; }
.sp-hero-sub { position: relative; text-align: center; margin: 0 auto 30px; max-width: 720px; color: rgba(255,255,255,.85); font-size: clamp(13px, 1.6vw, 16.5px); line-height: 2; }

/* ---- جستجوکارت ---- */
.sp-searchcard {
	position: relative;
	background: var(--sp-card);
	border-radius: 24px;
	box-shadow: var(--sp-shadow-lg);
	padding: 12px 14px 16px;
	max-width: 980px;
	margin-inline: auto;
	color: var(--sp-text);
}
.sp-tabs { position: relative; display: flex; gap: 4px; border-bottom: 1px solid var(--sp-line); padding: 4px 6px 0; overflow-x: auto; scrollbar-width: none; }
.sp-tabs::-webkit-scrollbar { display: none; }
.sp-tab {
	appearance: none; border: 0; background: transparent; cursor: pointer;
	font: inherit; font-weight: 700; font-size: 14.5px;
	color: var(--sp-muted); padding: 12px 16px 14px;
	display: flex; align-items: center; gap: 7px; white-space: nowrap;
	border-radius: 12px 12px 0 0; transition: color .2s;
}
.sp-tab:hover { color: var(--sp-primary); }
.sp-tab.is-active { color: var(--sp-primary); }
.sp-tab-ink {
	position: absolute; bottom: -1px; height: 3px; width: 0;
	background: var(--sp-primary); border-radius: 3px 3px 0 0;
	transition: inset-inline-start .3s cubic-bezier(.5,0,.2,1), width .3s cubic-bezier(.5,0,.2,1);
}
.sp-panel { display: none; padding: 18px 4px 4px; gap: 10px; align-items: stretch; }
.sp-panel.is-active { display: flex; flex-wrap: wrap; }
.sp-field { display: flex; flex-direction: column; gap: 5px; min-width: 150px; flex: 1; position: relative; }
.sp-field-grow { flex: 1.6; }
.sp-field label { font-size: 12px; font-weight: 700; color: var(--sp-muted); }
.sp-field input, .sp-field select {
	font: inherit; font-size: 14.5px;
	border: 1.6px solid var(--sp-line); border-radius: 12px;
	padding: 11px 12px; background: #fbfcff; color: var(--sp-text);
	transition: border-color .2s, box-shadow .2s; width: 100%;
}
.sp-field input:focus, .sp-field select:focus {
	outline: none; border-color: var(--sp-primary);
	box-shadow: 0 0 0 4px rgba(31, 75, 216, .12); background: #fff;
}
.sp-go {
	appearance: none; border: 0; cursor: pointer; font: inherit;
	font-weight: 800; font-size: 15px; color: #fff;
	background: linear-gradient(135deg, var(--sp-primary), #2e63ff);
	padding: 12px 26px; border-radius: 13px; align-self: end;
	box-shadow: 0 10px 22px rgba(31, 75, 216, .35);
	transition: transform .15s, box-shadow .2s, filter .2s;
	white-space: nowrap;
}
.sp-go:hover { transform: translateY(-2px); filter: brightness(1.06); }
.sp-go:active { transform: translateY(0); }
.sp-go-green { background: linear-gradient(135deg, var(--sp-green), #12b45a); box-shadow: 0 10px 22px rgba(13, 138, 63, .35); }
.sp-visa-links { display: flex; flex-wrap: wrap; gap: 10px; padding: 6px 0 2px; }
.sp-visa-links a {
	flex: 1 1 180px; text-align: center;
	background: #f2f6ff; border: 1.5px dashed #c6d4f7; border-radius: 12px;
	padding: 13px 10px; font-weight: 700; font-size: 14px; color: var(--sp-primary-dark);
	transition: background .2s, transform .15s;
}
.sp-visa-links a:hover { background: #e8efff; transform: translateY(-2px); text-decoration: none; }

/* ---- چیپ‌های پرجستجو ---- */
.sp-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 4px 2px; border-top: 1px dashed var(--sp-line); }
.sp-chips-label { font-size: 12.5px; font-weight: 700; color: var(--sp-muted); }
.sp-chip {
	font-size: 12.5px; font-weight: 700; color: var(--sp-primary-dark);
	background: #f0f4ff; border: 1px solid #dbe5fb; border-radius: 999px;
	padding: 5px 13px; transition: all .2s;
}
.sp-chip:hover { background: var(--sp-primary); color: #fff; border-color: var(--sp-primary); text-decoration: none; transform: translateY(-1px); }

/* ---- اتوکامپلیت ---- */
.sp-ac-wrap { position: relative; }
.sp-ac-list {
	position: absolute; top: calc(100% + 6px); inset-inline: 0; z-index: 40;
	background: #fff; border: 1px solid var(--sp-line); border-radius: 14px;
	box-shadow: var(--sp-shadow-lg); overflow: hidden;
	display: none; max-height: 300px; overflow-y: auto;
}
.sp-ac-list.is-open { display: block; }
.sp-ac-item {
	display: flex; align-items: center; gap: 9px;
	padding: 10px 13px; font-size: 13.5px; cursor: pointer;
	border-bottom: 1px solid #f1f4fa; transition: background .15s;
}
.sp-ac-item:last-child { border-bottom: 0; }
.sp-ac-item:hover, .sp-ac-item.is-hl { background: #f0f4ff; }
.sp-ac-item b { font-weight: 800; }
.sp-ac-item small { color: var(--sp-muted); margin-inline-start: auto; font-size: 11.5px; }
.sp-ac-item .sp-ac-kind { font-size: 10.5px; font-weight: 800; color: var(--sp-primary); background: #e8efff; padding: 2px 8px; border-radius: 999px; }
.sp-ac-empty { padding: 12px; font-size: 13px; color: var(--sp-muted); text-align: center; }

/* ---- ردیف اعتماد ---- */
.sp-trustrow {
	position: relative; display: flex; flex-wrap: wrap; justify-content: center;
	gap: 10px 26px; margin-top: 26px;
	font-size: 13.5px; font-weight: 700; color: rgba(255,255,255,.92);
}
.sp-trustrow span { background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.18); padding: 7px 16px; border-radius: 999px; backdrop-filter: blur(6px); }

/* ================= STATS ================= */
.sp-stats { background: #fff; border-bottom: 1px solid var(--sp-line); }
.sp-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding-block: 26px; }
.sp-stat { text-align: center; }
.sp-stat b { display: block; font-size: clamp(22px, 3vw, 34px); font-weight: 900; color: var(--sp-primary); }
.sp-stat span { font-size: 12.5px; color: var(--sp-muted); font-weight: 600; }

/* ================= SECTIONS ================= */
.sp-section { padding: 54px 0; }
.sp-alt { background: #fff; border-block: 1px solid var(--sp-line); }
.sp-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 24px; flex-wrap: wrap; }
.sp-head h2 { font-size: clamp(20px, 2.6vw, 27px); font-weight: 900; margin: 0; }
.sp-head-sub { margin: 0; color: var(--sp-muted); font-size: 13.5px; }
.sp-more { font-weight: 800; font-size: 13.5px; color: var(--sp-primary); white-space: nowrap; }
.sp-more:hover { color: var(--sp-primary-dark); }

/* ================= DEALS ================= */
.sp-countdown { display: flex; align-items: center; gap: 8px; }
.sp-cd-label { font-size: 12.5px; font-weight: 700; color: var(--sp-muted); }
.sp-cd {
	font-weight: 900; font-size: 15px; color: #b42318;
	background: #fee4e2; border: 1px solid #fda29b; border-radius: 10px;
	padding: 4px 12px; font-variant-numeric: tabular-nums; letter-spacing: 1px;
}
.sp-hscroll {
	display: grid; grid-auto-flow: column; grid-auto-columns: minmax(255px, 1fr);
	gap: 16px; overflow-x: auto; padding: 6px 2px 14px;
	scroll-snap-type: x mandatory; scrollbar-width: none;
}
.sp-hscroll::-webkit-scrollbar { display: none; }
.sp-hscroll > * { scroll-snap-align: start; }
.sp-scroll-nav { display: flex; gap: 8px; justify-content: flex-end; }
.sp-scroll-nav button {
	appearance: none; cursor: pointer; width: 40px; height: 40px;
	border-radius: 50%; border: 1.5px solid var(--sp-line); background: #fff;
	font-size: 17px; color: var(--sp-primary); transition: all .2s;
}
.sp-scroll-nav button:hover { background: var(--sp-primary); color: #fff; border-color: var(--sp-primary); }

/* ================= CARDS (Booking-style) ================= */
.sp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.sepcard {
	display: flex; flex-direction: column;
	background: var(--sp-card); border: 1px solid var(--sp-line);
	border-radius: var(--sp-radius); overflow: hidden;
	box-shadow: 0 4px 14px rgba(16, 32, 91, .06);
	transition: transform .22s ease, box-shadow .22s ease;
	text-decoration: none;
}
.sepcard:hover { transform: translateY(-5px); box-shadow: var(--sp-shadow-lg); text-decoration: none; }
.sepcard-img { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: #e9edf6; }
.sepcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.sepcard:hover .sepcard-img img { transform: scale(1.07); }
.sepcard-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 44px; background: linear-gradient(135deg, #dfe7fb, #c9d7f9); }
.sepcard-badge {
	position: absolute; top: 10px; inset-inline-start: 10px;
	background: var(--sp-gold); color: #4a3000;
	font-size: 11px; font-weight: 900; padding: 4px 11px; border-radius: 999px;
	box-shadow: 0 4px 10px rgba(0,0,0,.18);
}
.sepcard-stars {
	position: absolute; bottom: 8px; inset-inline-end: 9px;
	background: rgba(16, 32, 91, .82); color: #ffd166;
	font-size: 11px; letter-spacing: 1.5px; padding: 3px 9px; border-radius: 999px;
	direction: ltr;
}
.sepcard-body { display: flex; flex-direction: column; gap: 7px; padding: 13px 14px 14px; flex: 1; }
.sepcard-title {
	font-weight: 800; font-size: 14.5px; line-height: 1.6; color: var(--sp-text);
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
	min-height: 2.6em;
}
.sepcard-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.sepcard-city { font-size: 12px; font-weight: 700; color: var(--sp-muted); }
.sepcard-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 8px; border-top: 1px dashed var(--sp-line); }
.sepcard-cta { font-size: 12px; font-weight: 800; color: var(--sp-primary); }
.sepcard-price { font-size: 15px; font-weight: 900; color: var(--sp-text); white-space: nowrap; }
.sepcard-price small { font-size: 11px; font-weight: 700; color: var(--sp-muted); }
.sepcard-price-inq { color: var(--sp-green); font-size: 13px; }

/* ================= DESTINATIONS ================= */
.sp-dest-grid {
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
	grid-auto-rows: 150px; grid-auto-flow: dense;
}
.sp-dest { position: relative; border-radius: var(--sp-radius); overflow: hidden; display: block; }
.sp-dest.is-big { grid-row: span 2; grid-column: span 2; }
.sp-dest img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.sp-dest:hover img { transform: scale(1.08); }
.sp-dest-ph {
	position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
	font-size: 44px; font-weight: 900; color: #fff;
	background: linear-gradient(135deg, var(--sp-primary-dark), var(--sp-primary));
}
.sp-dest-overlay {
	position: absolute; inset: 0;
	background: linear-gradient(to top, rgba(13, 24, 64, .86) 0%, rgba(13, 24, 64, .18) 46%, transparent 70%);
	display: flex; flex-direction: column; justify-content: flex-end; padding: 13px 14px; color: #fff;
}
.sp-dest-overlay b { font-size: 16.5px; font-weight: 900; }
.sp-dest-overlay i { font-style: normal; font-size: 11.5px; color: rgba(255,255,255,.85); }

/* ================= WHY US ================= */
.sp-why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sp-why {
	background: #fff; border: 1px solid var(--sp-line); border-radius: var(--sp-radius);
	padding: 22px 18px; text-align: center; transition: transform .2s, box-shadow .2s;
}
.sp-alt .sp-why { background: var(--sp-bg); }
.sp-why:hover { transform: translateY(-4px); box-shadow: var(--sp-shadow); }
.sp-why-ico { display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 18px; font-size: 27px; background: linear-gradient(135deg, #e8efff, #dbe6ff); margin-bottom: 12px; }
.sp-why h3 { margin: 0 0 7px; font-size: 15.5px; font-weight: 900; }
.sp-why p { margin: 0; font-size: 12.8px; line-height: 1.9; color: var(--sp-muted); }

/* ================= FAQ ================= */
.sp-faq details {
	background: #fff; border: 1px solid var(--sp-line); border-radius: 14px;
	margin-bottom: 10px; overflow: hidden; transition: border-color .2s;
}
.sp-faq details[open] { border-color: var(--sp-primary); box-shadow: 0 6px 18px rgba(31, 75, 216, .08); }
.sp-faq summary {
	cursor: pointer; font-weight: 800; font-size: 14.5px; padding: 15px 18px;
	list-style: none; position: relative; padding-inline-end: 44px;
}
.sp-faq summary::-webkit-details-marker { display: none; }
.sp-faq summary::after {
	content: '+'; position: absolute; inset-inline-end: 16px; top: 50%; transform: translateY(-50%);
	font-size: 22px; font-weight: 700; color: var(--sp-primary); transition: transform .25s;
}
.sp-faq details[open] summary::after { content: '−'; }
.sp-faq details p { margin: 0; padding: 0 18px 16px; font-size: 13.5px; line-height: 2.05; color: var(--sp-muted); }

/* ================= BLOG ================= */
.sp-blog {
	display: flex; flex-direction: column; background: #fff; border: 1px solid var(--sp-line);
	border-radius: var(--sp-radius); overflow: hidden; text-decoration: none;
	transition: transform .22s, box-shadow .22s;
}
.sp-blog:hover { transform: translateY(-4px); box-shadow: var(--sp-shadow); text-decoration: none; }
.sp-blog-img { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: #e9edf6; position: relative; }
.sp-blog-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.sp-blog:hover .sp-blog-img img { transform: scale(1.06); }
.sp-blog-body { display: flex; flex-direction: column; gap: 7px; padding: 13px 14px; }
.sp-blog-body b { font-size: 14px; font-weight: 800; line-height: 1.7; color: var(--sp-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sp-blog-body i { font-style: normal; font-size: 11.5px; color: var(--sp-muted); }

/* ================= CTA ================= */
.sp-cta { padding: 50px 0 64px; background: linear-gradient(150deg, #0d1f63, #1f4bd8); color: #fff; }
.sp-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; }
.sp-cta h2 { margin: 0 0 8px; font-size: clamp(19px, 2.6vw, 26px); font-weight: 900; }
.sp-cta p { margin: 0; color: rgba(255,255,255,.82); font-size: 14px; }
.sp-cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.sp-btn {
	display: inline-flex; align-items: center; gap: 8px;
	font-weight: 900; font-size: 14.5px; padding: 13px 26px; border-radius: 14px;
	text-decoration: none; transition: transform .15s, box-shadow .2s;
}
.sp-btn:hover { transform: translateY(-2px); text-decoration: none; }
.sp-btn-gold { background: var(--sp-gold); color: #3a2800; box-shadow: 0 12px 26px rgba(255, 183, 3, .35); }
.sp-btn-ghost { background: rgba(255,255,255,.10); color: #fff; border: 1.5px solid rgba(255,255,255,.4); }

/* ================= GRID EMPTY ================= */
.sepid24-grid-empty { text-align: center; background: #fff; border: 1px dashed var(--sp-line); border-radius: 14px; padding: 26px; font-size: 14px; }

/* ================= REVEAL ================= */
@media (prefers-reduced-motion: no-preference) {
	.sp-reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
	.sp-reveal.is-in { opacity: 1; transform: none; }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
	.sp-grid, .sp-why-grid { grid-template-columns: repeat(2, 1fr); }
	.sp-dest-grid { grid-template-columns: repeat(3, 1fr); }
	.sp-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
	.sp-hero { padding: 44px 0 64px; }
	.sp-panel { flex-direction: column; }
	.sp-field { min-width: 100%; }
	.sp-go { width: 100%; align-self: stretch; }
	.sp-grid { grid-template-columns: 1fr; }
	.sp-dest-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 128px; }
	.sp-dest.is-big { grid-row: span 2; grid-column: span 2; }
	.sp-why-grid { grid-template-columns: 1fr; }
	.sp-blog-grid { grid-template-columns: 1fr; }
	.sp-cta-inner { flex-direction: column; text-align: center; }
	.sp-hscroll { grid-auto-columns: 82%; }
}

/* =========================================================
   Override — برتری specificity مقابل reset.css المنتور
   ========================================================= */
.sp-home .sp-tabs .sp-tab { border: 0; background: transparent; color: var(--sp-muted); }
.sp-home .sp-tabs .sp-tab:hover { color: var(--sp-primary); background: transparent; }
.sp-home .sp-tabs .sp-tab.is-active { color: var(--sp-primary); background: transparent; }
.sp-home .sp-go { border: 0; }
.sp-home .sp-scroll-nav button { border: 1.5px solid var(--sp-line); background: #fff; }
.sp-home .sp-field input, .sp-home .sp-field select { border: 1.6px solid var(--sp-line); background: #fbfcff; border-radius: 12px; color: var(--sp-text); font-family: inherit; }
.sp-home .sp-visa-links a { border: 1.5px dashed #c6d4f7; background: #f2f6ff; font-family: inherit; }
.sp-home .sepcard, .sp-home .sp-blog { font-family: inherit; }
