/* قوالب صفحة المرشد/البرنامج — Saudi Tour Guide
   لوحة الألوان: أخضر نخيل (#0f6b53) + رملي دافئ (#c9a15a) + محايدات داكنة. */

:root {
	--tg-primary: #0f6b53;
	--tg-primary-dark: #0c5643;
	--tg-accent: #c9a15a;
	--tg-text: #1f2937;
	--tg-muted: #6b7280;
	--tg-border: #e5e7eb;
	--tg-bg-soft: #f8f9f7;
}

.tg-page { color: var( --tg-text ); }

.tg-section {
	max-width: 1100px;
	margin: 0 auto;
	padding: 40px 20px;
}

.tg-section__title {
	font-size: 24px;
	font-weight: 700;
	margin-bottom: 20px;
	position: relative;
	padding-inline-start: 14px;
	border-inline-start: 4px solid var( --tg-primary );
}

/* Hero */
.tg-hero {
	position: relative;
	background-color: var( --tg-bg-soft );
	background-size: cover;
	background-position: center;
	padding: 60px 20px;
	text-align: center;
	color: #fff;
}

.tg-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient( 180deg, rgba( 15, 107, 83, 0.55 ), rgba( 15, 107, 83, 0.85 ) );
}

.tg-hero__inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }

.tg-hero__avatar {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	object-fit: cover;
	border: 4px solid #fff;
	margin-bottom: 16px;
}

.tg-hero__name { font-size: 32px; font-weight: 800; margin: 0 0 8px; }

.tg-hero__bio { font-size: 16px; opacity: 0.95; margin-bottom: 16px; }

.tg-hero__badge {
	display: inline-block;
	padding: 4px 14px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	background: var( --tg-accent );
	color: #1f2937;
	margin-bottom: 12px;
}

.tg-hero__socials { display: flex; justify-content: center; gap: 12px; margin-top: 12px; }

.tg-hero__licenses {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-bottom: 12px;
}

.tg-hero__license-badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 13px;
	background: rgba( 255, 255, 255, 0.15 );
	border: 1px solid rgba( 255, 255, 255, 0.3 );
	color: #fff;
}

.tg-hero__socials a {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: rgba( 255, 255, 255, 0.2 );
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	font-size: 13px;
}

/* بطاقات إحصائية */
.tg-stats { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: -30px; position: relative; z-index: 2; }

.tg-stats__card {
	background: #fff;
	border: 1px solid var( --tg-border );
	border-radius: 10px;
	padding: 16px 24px;
	min-width: 140px;
	text-align: center;
	box-shadow: 0 4px 12px rgba( 0, 0, 0, 0.06 );
}

.tg-stats__value { font-size: 24px; font-weight: 800; color: var( --tg-primary ); }
.tg-stats__label { font-size: 13px; color: var( --tg-muted ); margin-top: 4px; }

/* بطاقات عامة (برامج/إقامة/شركاء) */
.tg-cards-grid { display: grid; grid-template-columns: repeat( auto-fill, minmax( 260px, 1fr ) ); gap: 20px; }

.tg-card {
	border: 1px solid var( --tg-border );
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.tg-card:hover { box-shadow: 0 8px 20px rgba( 0, 0, 0, 0.08 ); transform: translateY( -2px ); }

.tg-card__image { width: 100%; aspect-ratio: 16/10; object-fit: cover; background: var( --tg-bg-soft ); }

.tg-card__body { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }

.tg-card__title { font-size: 17px; font-weight: 700; margin: 0; }

.tg-card__meta { font-size: 13px; color: var( --tg-muted ); display: flex; gap: 10px; flex-wrap: wrap; }

.tg-card__price { font-weight: 700; color: var( --tg-primary ); margin-top: auto; }

.tg-card__cta {
	display: inline-block;
	margin-top: 10px;
	padding: 8px 16px;
	background: var( --tg-primary );
	color: #fff;
	border-radius: 6px;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	text-align: center;
}

.tg-card__cta:hover { background: var( --tg-primary-dark ); color: #fff; }

/* تقييمات */
.tg-review-card {
	border: 1px solid var( --tg-border );
	border-radius: 10px;
	padding: 16px;
	margin-bottom: 12px;
	background: #fff;
}

.tg-review-card__stars { color: var( --tg-accent ); font-size: 15px; }
.tg-review-card__name { font-weight: 700; margin-inline-start: 6px; }
.tg-review-card__comment { margin-top: 8px; color: var( --tg-text ); }
.tg-review-card__date { font-size: 12px; color: var( --tg-muted ); margin-top: 6px; }

/* التواصل */
.tg-contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tg-contact-list li { display: flex; gap: 10px; align-items: center; }
.tg-contact-list a { color: var( --tg-primary ); text-decoration: none; font-weight: 600; }

/* خريطة */
.tg-map iframe { width: 100%; height: 360px; border: 0; border-radius: 10px; }

/* صفحة البرنامج */
.tg-program-hero { background: var( --tg-bg-soft ); padding: 30px 20px; }
.tg-program-hero__title { font-size: 28px; font-weight: 800; margin: 0 0 8px; }
.tg-program-hero__meta { display: flex; flex-wrap: wrap; gap: 16px; color: var( --tg-muted ); font-size: 14px; }
.tg-program-hero__price { font-size: 22px; font-weight: 800; color: var( --tg-primary ); }

.tg-itinerary { list-style: none; margin: 0; padding: 0; }
.tg-itinerary li {
	border-inline-start: 3px solid var( --tg-primary );
	padding: 6px 16px;
	margin-bottom: 14px;
}
.tg-itinerary__day { font-weight: 700; color: var( --tg-primary ); }

.tg-services-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tg-services-columns ul { margin: 0; padding-inline-start: 18px; }

@media ( max-width: 600px ) {
	.tg-services-columns { grid-template-columns: 1fr; }
	.tg-hero__name { font-size: 24px; }
}

.tg-empty-note { color: var( --tg-muted ); font-size: 14px; }

/* نموذج البحث: شبكة أفقية بدل التكديس العمودي الافتراضي لـ .tg-form */
.tg-search-form {
	max-width: 100%;
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax( 160px, 1fr ) );
	gap: 14px 16px;
	align-items: end;
	background: var( --tg-bg-soft );
	padding: 20px;
	border-radius: 10px;
}

.tg-search-form .tg-form__field { margin: 0; }

.tg-search-form .tg-form__submit {
	grid-column: 1 / -1;
	display: flex;
	gap: 10px;
	margin: 0;
}

.tg-search-form select,
.tg-search-form input[type="number"] {
	width: 100%;
	padding: 9px 10px;
	border: 1px solid var( --tg-border );
	border-radius: 6px;
}
