:root {
	--bg: #FCFAF7;
	--bg-sand: #F5EFE6;
	--bg-sand-light: #FAF6F0;
	--card-bg: #FFFFFF;
	--card-border: #EADBCE;
	--fg: #1A1715;
	--fg-muted: #6B625B;
	--accent: #B8432F;
	--accent-hover: #9E3523;
	--accent-dark: #7A2114;
	--accent-light: #FDF1EE;
	--gold: #D97706;
	--gold-light: #FEF3C7;
	--border: #E8DFD5;
	--radius-sm: 8px;
	--radius: 14px;
	--radius-lg: 22px;
	--radius-full: 9999px;
	--shadow-sm: 0 2px 6px rgba(26, 23, 21, 0.04);
	--shadow: 0 8px 24px rgba(26, 23, 21, 0.07);
	--shadow-lg: 0 16px 40px rgba(26, 23, 21, 0.12);
	--font-ar: 'Alexandria', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--font-en: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--font: var(--font-ar);
}

[dir="ltr"] {
	--font: var(--font-en), var(--font-ar);
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	-webkit-tap-highlight-color: transparent;
}

body {
	background-color: var(--bg);
	color: var(--fg);
	font-family: var(--font);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	min-height: 100vh;
	overflow-x: hidden;
	padding-bottom: 75px; /* for mobile nav bar */
}

@media (min-width: 768px) {
	body {
		padding-bottom: 0;
	}
}

a {
	color: inherit;
	text-decoration: none;
}

button {
	font-family: inherit;
	cursor: pointer;
	border: none;
	background: none;
}

input, select, textarea {
	font-family: inherit;
	color: inherit;
}

/* Header & Navigation */
.navbar {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(252, 250, 247, 0.95);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--border);
	transition: all 0.2s ease;
}

.nav-container {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0.85rem 1.25rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.brand-logo {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	font-weight: 800;
	font-size: 1.35rem;
	color: var(--accent);
	letter-spacing: -0.02em;
	cursor: pointer;
}

.brand-badge {
	font-size: 0.72rem;
	background: var(--accent);
	color: #fff;
	padding: 0.15rem 0.5rem;
	border-radius: var(--radius-full);
	font-weight: 600;
}

.nav-links {
	display: none;
	align-items: center;
	gap: 1.5rem;
	list-style: none;
}

@media (min-width: 900px) {
	.nav-links {
		display: flex;
	}
}

.nav-item-btn {
	padding: 0.5rem 0.85rem;
	border-radius: var(--radius-sm);
	font-weight: 500;
	font-size: 0.95rem;
	color: var(--fg);
	transition: all 0.15s ease;
	cursor: pointer;
}

.nav-item-btn:hover, .nav-item-btn.active {
	background: var(--bg-sand);
	color: var(--accent);
	font-weight: 600;
}

.nav-actions {
	display: flex;
	align-items: center;
	gap: 0.65rem;
}

/* Lang Switcher */
.lang-toggle {
	display: inline-flex;
	align-items: center;
	padding: 0.35rem 0.65rem;
	border-radius: var(--radius-full);
	border: 1px solid var(--border);
	background: var(--card-bg);
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--fg);
	gap: 0.3rem;
}

/* Mobile Bottom Navigation */
.mobile-nav {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 150;
	background: #ffffff;
	border-top: 1px solid var(--border);
	display: flex;
	justify-content: space-around;
	padding: 0.5rem 0.25rem env(safe-area-inset-bottom, 0.5rem);
	box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.05);
}

@media (min-width: 768px) {
	.mobile-nav {
		display: none;
	}
}

.mobile-nav-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.25rem;
	color: var(--fg-muted);
	font-size: 0.72rem;
	font-weight: 500;
	padding: 0.3rem 0.5rem;
	border-radius: var(--radius-sm);
	transition: all 0.15s ease;
	position: relative;
}

.mobile-nav-item.active {
	color: var(--accent);
	font-weight: 700;
}

.mobile-nav-icon {
	font-size: 1.25rem;
}

.mobile-nav-badge {
	position: absolute;
	top: 0.15rem;
	right: 0.75rem;
	background: var(--accent);
	color: white;
	font-size: 0.65rem;
	border-radius: 999px;
	padding: 0.05rem 0.35rem;
	font-weight: 700;
}

/* Hero Section */
.hero-wrapper {
	position: relative;
	min-height: 540px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 3.5rem 1.25rem 4.5rem;
	background: linear-gradient(180deg, rgba(26,23,21,0.65) 0%, rgba(26,23,21,0.75) 100%),
		url('https://images.unsplash.com/photo-1579606032822-e42ee0811e5e?auto=format&fit=crop&w=1800&q=80') center/cover no-repeat;
	color: #fff;
	text-align: center;
}

.hero-content {
	max-width: 860px;
	z-index: 2;
	animation: fadeIn 0.6s ease-out;
}

.hero-tag {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	background: rgba(255, 255, 255, 0.2);
	backdrop-filter: blur(8px);
	padding: 0.35rem 1rem;
	border-radius: var(--radius-full);
	font-size: 0.875rem;
	font-weight: 600;
	margin-bottom: 1.25rem;
	border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-title {
	font-size: clamp(2rem, 5.5vw, 3.75rem);
	font-weight: 800;
	line-height: 1.15;
	margin-bottom: 1rem;
	letter-spacing: -0.03em;
	text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
	font-size: clamp(1rem, 2.2vw, 1.35rem);
	color: rgba(255, 255, 255, 0.9);
	margin-bottom: 2.25rem;
	max-width: 650px;
	margin-left: auto;
	margin-right: auto;
}

/* Search Component */
.search-card-wrapper {
	max-width: 1050px;
	margin: -2.5rem auto 2.5rem;
	padding: 0 1.25rem;
	position: relative;
	z-index: 20;
}

.search-box {
	background: #ffffff;
	border-radius: var(--radius-lg);
	box-shadow: 0 12px 36px rgba(26, 23, 21, 0.12);
	border: 1px solid var(--border);
	padding: 1.25rem;
	display: grid;
	gap: 1rem;
	grid-template-columns: 1fr;
}

@media (min-width: 768px) {
	.search-box {
		grid-template-columns: 1.3fr 1fr 1fr auto;
		align-items: center;
		padding: 0.85rem 1.25rem;
	}
}

.search-field {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.search-field label {
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--fg-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.search-field input, .search-field select {
	border: 1px solid transparent;
	background: var(--bg-sand-light);
	padding: 0.65rem 0.85rem;
	border-radius: var(--radius-sm);
	font-size: 0.95rem;
	font-weight: 500;
	color: var(--fg);
	outline: none;
	transition: all 0.15s ease;
}

.search-field input:focus, .search-field select:focus {
	border-color: var(--accent);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(184, 67, 47, 0.1);
}

.search-btn {
	background: var(--accent);
	color: white;
	font-weight: 700;
	font-size: 1.05rem;
	padding: 0.85rem 1.85rem;
	border-radius: var(--radius);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	transition: all 0.2s ease;
	box-shadow: 0 4px 14px rgba(184, 67, 47, 0.3);
}

.search-btn:hover {
	background: var(--accent-hover);
	transform: translateY(-1px);
}

/* Popular Pills */
.popular-pills {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	overflow-x: auto;
	padding: 0.5rem 0;
	scrollbar-width: none;
}

.popular-pills::-webkit-scrollbar {
	display: none;
}

.pill-btn {
	background: var(--card-bg);
	border: 1px solid var(--border);
	padding: 0.45rem 0.95rem;
	border-radius: var(--radius-full);
	font-size: 0.85rem;
	font-weight: 600;
	white-space: nowrap;
	color: var(--fg);
	transition: all 0.15s ease;
}

.pill-btn:hover, .pill-btn.active {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

/* Main Layout Shell */
.app-container {
	max-width: 1280px;
	margin: 0 auto;
	padding: 1.5rem 1.25rem 3rem;
}

.section-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	margin-bottom: 1.5rem;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.section-title {
	font-size: clamp(1.4rem, 3vw, 1.85rem);
	font-weight: 800;
	color: var(--fg);
	letter-spacing: -0.02em;
}

.section-subtitle {
	color: var(--fg-muted);
	font-size: 0.95rem;
	margin-top: 0.2rem;
}

.section-more-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	color: var(--accent);
	font-weight: 700;
	font-size: 0.95rem;
	transition: all 0.15s ease;
}

.section-more-btn:hover {
	color: var(--accent-dark);
	text-decoration: underline;
}

/* Card Grids */
.cards-grid {
	display: grid;
	gap: 1.35rem;
	grid-template-columns: repeat(auto-fill, minmax(min(18rem, 100%), 1fr));
}

@media (min-width: 1024px) {
	.cards-grid.cols-4 {
		grid-template-columns: repeat(4, 1fr);
	}
	.cards-grid.cols-3 {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* Premium Item Card */
.tour-card {
	background: var(--card-bg);
	border-radius: var(--radius);
	border: 1px solid var(--border);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	display: flex;
	flex-direction: column;
	position: relative;
}

.tour-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow);
}

.tour-card-image-wrap {
	position: relative;
	width: 100%;
	padding-top: 62%;
	background-color: var(--bg-sand);
	overflow: hidden;
}

.tour-card-img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.tour-card:hover .tour-card-img {
	transform: scale(1.04);
}

.tour-card-badge {
	position: absolute;
	top: 0.85rem;
	inset-inline-start: 0.85rem;
	background: rgba(26, 23, 21, 0.75);
	backdrop-filter: blur(6px);
	color: white;
	padding: 0.25rem 0.65rem;
	border-radius: var(--radius-full);
	font-size: 0.75rem;
	font-weight: 600;
}

.favorite-btn-overlay {
	position: absolute;
	top: 0.75rem;
	inset-inline-end: 0.75rem;
	background: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(6px);
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #e11d48;
	font-size: 1.15rem;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	transition: all 0.15s ease;
}

.favorite-btn-overlay:hover {
	transform: scale(1.1);
	background: #fff;
}

.tour-card-body {
	padding: 1.15rem;
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 0.5rem;
}

.tour-card-location {
	font-size: 0.82rem;
	color: var(--fg-muted);
	display: flex;
	align-items: center;
	gap: 0.3rem;
}

.tour-card-title {
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--fg);
	line-height: 1.35;
}

.tour-card-desc {
	font-size: 0.85rem;
	color: var(--fg-muted);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.tour-card-footer {
	margin-top: auto;
	padding-top: 0.85rem;
	border-top: 1px solid var(--border);
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.rating-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	font-weight: 700;
	font-size: 0.85rem;
	color: var(--fg);
}

.rating-star {
	color: #eab308;
}

.tour-card-price {
	font-size: 0.9rem;
	color: var(--fg-muted);
}

.tour-card-price strong {
	font-size: 1.15rem;
	color: var(--accent);
	font-weight: 800;
}

/* Detail Views */
.detail-hero {
	width: 100%;
	height: 380px;
	border-radius: var(--radius-lg);
	overflow: hidden;
	position: relative;
	margin-bottom: 2rem;
	background: var(--bg-sand);
}

.detail-hero-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.detail-gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 0.75rem;
	margin-top: 0.75rem;
}

.gallery-thumb {
	height: 100px;
	border-radius: var(--radius-sm);
	overflow: hidden;
	cursor: pointer;
}

.gallery-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.2s ease;
}

.gallery-thumb img:hover {
	transform: scale(1.05);
}

.detail-layout {
	display: grid;
	gap: 2rem;
	grid-template-columns: 1fr;
}

@media (min-width: 900px) {
	.detail-layout {
		grid-template-columns: 1.8fr 1fr;
	}
}

.booking-card {
	background: #ffffff;
	border-radius: var(--radius-lg);
	border: 1px solid var(--border);
	box-shadow: var(--shadow);
	padding: 1.75rem;
	position: sticky;
	top: 90px;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

/* Interactive Map Canvas */
.interactive-map-container {
	position: relative;
	width: 100%;
	height: 480px;
	background: #eef3ee;
	border-radius: var(--radius-lg);
	border: 1px solid var(--border);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
}

.map-svg {
	width: 100%;
	height: 100%;
}

.map-pin {
	cursor: pointer;
	transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.map-pin:hover {
	transform: scale(1.25);
}

.map-popup-card {
	position: absolute;
	bottom: 1.25rem;
	inset-inline-start: 1.25rem;
	max-width: 340px;
	background: #ffffff;
	border-radius: var(--radius);
	box-shadow: var(--shadow-lg);
	border: 1px solid var(--border);
	padding: 1rem;
	z-index: 10;
	animation: popIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Trip Planner */
.itinerary-day-box {
	background: #ffffff;
	border-radius: var(--radius);
	border: 1px solid var(--border);
	padding: 1.25rem;
	margin-bottom: 1.25rem;
}

.itinerary-item-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.85rem;
	border-radius: var(--radius-sm);
	background: var(--bg-sand-light);
	margin-top: 0.5rem;
	gap: 0.75rem;
}

/* Modal */
.modal-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(26, 23, 21, 0.65);
	backdrop-filter: blur(5px);
	z-index: 200;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.modal-content {
	background: #ffffff;
	border-radius: var(--radius-lg);
	max-width: 540px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	padding: 2rem;
	position: relative;
	box-shadow: var(--shadow-lg);
	animation: popIn 0.25s ease-out;
}

.modal-close-btn {
	position: absolute;
	top: 1.25rem;
	inset-inline-end: 1.25rem;
	font-size: 1.5rem;
	color: var(--fg-muted);
	cursor: pointer;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--bg-sand);
}

/* Buttons and Form elements */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.65rem 1.25rem;
	border-radius: var(--radius-sm);
	font-weight: 600;
	font-size: 0.95rem;
	transition: all 0.15s ease;
	cursor: pointer;
}

.btn-primary {
	background: var(--accent);
	color: #fff;
	box-shadow: 0 2px 8px rgba(184, 67, 47, 0.25);
}

.btn-primary:hover {
	background: var(--accent-hover);
}

.btn-secondary {
	background: var(--bg-sand);
	color: var(--fg);
	border: 1px solid var(--border);
}

.btn-secondary:hover {
	background: #e8dfd5;
}

.btn-outline {
	background: transparent;
	border: 1px solid var(--accent);
	color: var(--accent);
}

.btn-outline:hover {
	background: var(--accent-light);
}

.form-group {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	margin-bottom: 1rem;
}

.form-group label {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--fg);
}

.form-input, .form-select, .form-textarea {
	width: 100%;
	padding: 0.75rem 1rem;
	border-radius: var(--radius-sm);
	border: 1px solid var(--border);
	background: #fff;
	font-size: 0.95rem;
	color: var(--fg);
	transition: all 0.15s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px rgba(184, 67, 47, 0.12);
}

/* Tabs */
.tabs-nav {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	border-bottom: 1px solid var(--border);
	margin-bottom: 1.5rem;
	overflow-x: auto;
	scrollbar-width: none;
}

.tab-btn {
	padding: 0.75rem 1.25rem;
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--fg-muted);
	border-bottom: 2px solid transparent;
	white-space: nowrap;
	transition: all 0.15s ease;
}

.tab-btn.active {
	color: var(--accent);
	border-bottom-color: var(--accent);
}

/* Animations */
@keyframes fadeIn {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: translateY(0); }
}

@keyframes popIn {
	from { opacity: 0; transform: scale(0.95); }
	to { opacity: 1; transform: scale(1); }
}

/* Empty, Loading, Alerts */
.loading-box {
	padding: 3rem;
	text-align: center;
	color: var(--fg-muted);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
}

.spinner {
	width: 32px;
	height: 32px;
	border: 3px solid var(--border);
	border-top-color: var(--accent);
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
}

@keyframes spin {
	to { transform: rotate(360deg); }
}

.empty-box {
	background: #fff;
	border: 1px dashed var(--border);
	border-radius: var(--radius);
	padding: 3rem 1.5rem;
	text-align: center;
	color: var(--fg-muted);
}

.empty-icon {
	font-size: 3rem;
	margin-bottom: 0.75rem;
}

.alert-box {
	padding: 0.85rem 1.25rem;
	border-radius: var(--radius-sm);
	margin-bottom: 1rem;
	font-size: 0.9rem;
	font-weight: 500;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.alert-success {
	background: #dcfce7;
	color: #166534;
	border: 1px solid #bbf7d0;
}

.alert-danger {
	background: #fee2e2;
	color: #991b1b;
	border: 1px solid #fecaca;
}
