/* Arabic Maldives travel guide — isolated page styles. */

.ttg-maldives {
	--ttg-ink: #123429;
	--ttg-muted: #587067;
	--ttg-green: #174d3c;
	--ttg-green-dark: #0e3328;
	--ttg-mint: #e7f3ee;
	--ttg-sand: #f4eee3;
	--ttg-gold: #c9903d;
	--ttg-line: rgba(23, 77, 60, 0.14);
	--ttg-white: #fff;
	--ttg-shadow: 0 22px 60px rgba(18, 52, 41, 0.1);
	background: #fff;
	color: var(--ttg-ink);
	font-family: "Tajawal", sans-serif;
	line-height: 1.85;
	overflow: clip;
}

.ttg-maldives *,
.ttg-maldives *::before,
.ttg-maldives *::after { box-sizing: border-box; }

.ttg-container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

.ttg-breadcrumb { background: #f7faf8; border-bottom: 1px solid var(--ttg-line); font-size: .88rem; }
.ttg-breadcrumb ol { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; margin: 0; padding: .7rem 0; }
.ttg-breadcrumb li:not(:last-child)::after { content: "/"; margin-inline-start: .45rem; color: #9aaba5; }
.ttg-breadcrumb a { color: var(--ttg-green); text-decoration: none; }
.ttg-breadcrumb a:hover { text-decoration: underline; }

.ttg-hero { position: relative; min-height: clamp(590px, 70vh, 760px); display: grid; align-items: end; isolation: isolate; background: var(--ttg-green-dark); }
.ttg-hero__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.ttg-hero__overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 31, 24, .2), rgba(8, 31, 24, .86) 72%), linear-gradient(0deg, rgba(8, 31, 24, .82), transparent 60%); }
.ttg-hero__inner { padding-block: clamp(5rem, 10vw, 8rem) clamp(3.2rem, 7vw, 5.5rem); }
.ttg-hero__content { max-width: 790px; color: #fff; }
.ttg-kicker, .ttg-eyebrow { margin: 0 0 .7rem; color: var(--ttg-gold); font-size: .85rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ttg-hero h1 { max-width: 760px; margin: 0; color: #fff; font-size: clamp(2.35rem, 6vw, 4.8rem); line-height: 1.12; letter-spacing: -.04em; }
.ttg-hero__lead { max-width: 700px; margin: 1.25rem 0 0; color: rgba(255, 255, 255, .9); font-size: clamp(1.05rem, 2vw, 1.3rem); line-height: 1.8; }
.ttg-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.7rem; }
.ttg-btn { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 999px; padding: .8rem 1.35rem; font-weight: 800; line-height: 1.2; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.ttg-btn:hover { transform: translateY(-2px); }
.ttg-btn--primary { background: var(--ttg-gold); color: #152c23; box-shadow: 0 13px 35px rgba(201, 144, 61, .25); }
.ttg-btn--primary:hover { background: #d9a557; color: #10251e; }
.ttg-btn--ghost { border-color: rgba(255,255,255,.55); color: #fff; background: rgba(255,255,255,.08); }
.ttg-btn--ghost:hover { background: rgba(255,255,255,.16); color: #fff; }
.ttg-btn--outline { border-color: rgba(255,255,255,.45); color: #fff; }
.ttg-btn--outline:hover { background: #fff; color: var(--ttg-green-dark); }
.ttg-hero__meta { display: flex; flex-wrap: wrap; gap: .45rem 1.3rem; list-style: none; margin: 1.7rem 0 0; padding: 0; color: rgba(255,255,255,.74); font-size: .87rem; }
.ttg-hero__meta li { display: flex; align-items: center; gap: .45rem; }
.ttg-hero__meta li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ttg-gold); }

.ttg-snapshot { position: relative; z-index: 2; margin-top: -1px; background: var(--ttg-green-dark); color: #fff; border-top: 1px solid rgba(255,255,255,.12); }
.ttg-snapshot__grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.ttg-snapshot__grid > div { min-width: 0; padding: 1.25rem 1.05rem; border-inline-start: 1px solid rgba(255,255,255,.12); }
.ttg-snapshot__grid > div:last-child { border-inline-end: 1px solid rgba(255,255,255,.12); }
.ttg-snapshot span { display: block; color: rgba(255,255,255,.62); font-size: .78rem; }
.ttg-snapshot strong { display: block; margin-top: .2rem; color: #fff; font-size: .98rem; line-height: 1.45; }
.ttg-snapshot__note { margin: 0; padding: .65rem 0 .8rem; color: rgba(255,255,255,.65); font-size: .76rem; text-align: center; }

.ttg-layout { display: grid; grid-template-columns: 230px minmax(0, 790px); justify-content: space-between; gap: clamp(2.5rem, 6vw, 6rem); padding-block: clamp(4rem, 8vw, 7rem); }
.ttg-toc { position: relative; }
.ttg-toc__inner { position: sticky; top: 115px; border: 1px solid var(--ttg-line); border-radius: 22px; padding: 1.2rem; background: #fff; box-shadow: 0 15px 45px rgba(18,52,41,.06); }
.ttg-toc strong { display: block; margin-bottom: .8rem; font-size: 1rem; }
.ttg-toc nav { display: grid; gap: .15rem; }
.ttg-toc nav a { border-radius: 10px; padding: .38rem .55rem; color: var(--ttg-muted); font-size: .84rem; line-height: 1.55; text-decoration: none; }
.ttg-toc nav a:hover { background: var(--ttg-mint); color: var(--ttg-green); }
.ttg-toc__cta { display: block; margin-top: 1rem; border-radius: 12px; padding: .7rem .8rem; background: var(--ttg-green); color: #fff; font-size: .84rem; font-weight: 800; text-align: center; text-decoration: none; }

.ttg-content { min-width: 0; }
.ttg-section { padding: clamp(3.4rem, 7vw, 5.7rem) 0; border-bottom: 1px solid var(--ttg-line); scroll-margin-top: 110px; }
.ttg-section:first-child { padding-top: 0; }
.ttg-section:last-child { border-bottom: 0; }
.ttg-section h2 { max-width: 720px; margin: 0 0 1rem; color: var(--ttg-ink); font-size: clamp(1.85rem, 4vw, 2.75rem); line-height: 1.3; letter-spacing: -.025em; }
.ttg-section h3 { color: var(--ttg-ink); font-size: 1.15rem; line-height: 1.45; }
.ttg-section p { margin: 0 0 1.15rem; color: var(--ttg-muted); }
.ttg-section a:not(.ttg-btn) { color: var(--ttg-green); text-decoration-color: rgba(23,77,60,.35); text-underline-offset: .18em; }
.ttg-section a:not(.ttg-btn):hover { text-decoration-color: currentColor; }
.ttg-lead { color: var(--ttg-ink) !important; font-size: 1.18rem; line-height: 1.9; }
.ttg-fineprint { font-size: .86rem; color: #6f7f79 !important; }

.ttg-decision-grid, .ttg-budget-grid, .ttg-audience-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
.ttg-decision-grid article, .ttg-budget-grid article, .ttg-audience-grid article { border: 1px solid var(--ttg-line); border-radius: 18px; padding: 1.35rem; background: #fff; }
.ttg-decision-grid span, .ttg-budget-grid span, .ttg-audience-grid span { color: var(--ttg-gold); font-size: .78rem; font-weight: 800; }
.ttg-decision-grid h3, .ttg-budget-grid h3, .ttg-audience-grid h3 { margin: .35rem 0 .45rem; }
.ttg-decision-grid p, .ttg-budget-grid p, .ttg-audience-grid p { margin: 0; font-size: .92rem; line-height: 1.75; }
.ttg-budget-card--featured { background: var(--ttg-green) !important; color: #fff; transform: translateY(-8px); box-shadow: var(--ttg-shadow); }
.ttg-budget-card--featured h3, .ttg-budget-card--featured p { color: #fff; }

.ttg-callout { display: flex; align-items: flex-start; gap: .8rem; margin-top: 1.8rem; border-radius: 18px; padding: 1.2rem 1.35rem; }
.ttg-callout strong { flex: 0 0 auto; color: var(--ttg-ink); }
.ttg-callout p { margin: 0; }
.ttg-callout--tip { background: var(--ttg-sand); }
.ttg-callout--warning { background: #fff7e7; border: 1px solid rgba(201,144,61,.28); }
.ttg-callout--official { justify-content: space-between; background: var(--ttg-mint); border: 1px solid rgba(23,77,60,.12); }
.ttg-callout--official div { max-width: 600px; }
.ttg-callout--official span { flex: 0 0 auto; border-radius: 999px; padding: .3rem .7rem; background: #fff; color: var(--ttg-green); font-size: .76rem; font-weight: 700; }

.ttg-check-card { margin: 1.7rem 0; border-radius: 22px; padding: clamp(1.25rem, 4vw, 2rem); background: var(--ttg-green-dark); color: #fff; box-shadow: var(--ttg-shadow); }
.ttg-check-card h3 { margin: 0 0 1rem; color: #fff; font-size: 1.35rem; }
.ttg-check-list { display: grid; gap: .65rem; list-style: none; margin: 0; padding: 0; }
.ttg-check-list li { position: relative; padding-inline-start: 1.7rem; color: rgba(255,255,255,.87); }
.ttg-check-list li::before { content: "✓"; position: absolute; inset-inline-start: 0; top: .05rem; display: grid; width: 1.15rem; height: 1.15rem; place-items: center; border-radius: 50%; background: var(--ttg-gold); color: #17372d; font-size: .72rem; font-weight: 900; }

.ttg-season-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2rem 0; }
.ttg-season-card { min-height: 225px; border: 1px solid var(--ttg-line); border-radius: 20px; padding: 1.35rem; background: linear-gradient(150deg, #fff, #f4f8f6); }
.ttg-season-card--sun { background: linear-gradient(150deg, #fff9ed, #fff); }
.ttg-season-card--rain { background: linear-gradient(150deg, #edf7fa, #fff); }
.ttg-season-card span { display: inline-block; border-radius: 999px; padding: .25rem .65rem; background: #fff; color: var(--ttg-green); font-size: .76rem; font-weight: 800; box-shadow: 0 5px 20px rgba(18,52,41,.08); }
.ttg-season-card h3 { margin: 1rem 0 .55rem; }
.ttg-season-card p { margin: 0; font-size: .9rem; }

.ttg-place-list { display: grid; gap: .85rem; margin: 1.8rem 0; }
.ttg-place-list article { display: grid; grid-template-columns: 220px 1fr; gap: 1.4rem; align-items: start; border: 1px solid var(--ttg-line); border-radius: 18px; padding: 1.25rem; }
.ttg-place-list span { color: var(--ttg-gold); font-size: .75rem; font-weight: 800; }
.ttg-place-list h3 { margin: .2rem 0 0; }
.ttg-place-list p { margin: 0; }

.ttg-compare { margin: 1.8rem 0; overflow-x: auto; border: 1px solid var(--ttg-line); border-radius: 20px; }
.ttg-maldives .ttg-compare table { width: 100%; min-width: 680px !important; border-collapse: collapse; text-align: right; }
.ttg-compare th, .ttg-compare td { padding: 1rem; border-bottom: 1px solid var(--ttg-line); vertical-align: top; }
.ttg-compare thead th { background: var(--ttg-green-dark); color: #fff; font-size: .85rem; }
.ttg-compare tbody th { width: 170px; color: var(--ttg-ink); }
.ttg-compare tbody td { color: var(--ttg-muted); font-size: .9rem; }
.ttg-compare tr:last-child th, .ttg-compare tr:last-child td { border-bottom: 0; }
.ttg-question-list { columns: 2; column-gap: 2rem; margin: 1rem 0 0; padding-inline-start: 1.3rem; }
.ttg-question-list li { break-inside: avoid; margin-bottom: .7rem; color: var(--ttg-muted); }

.ttg-transport-grid, .ttg-food-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.8rem; }
.ttg-transport-grid article, .ttg-food-grid article { border-top: 3px solid var(--ttg-gold); border-radius: 0 0 18px 18px; padding: 1.3rem; background: #f7faf8; }
.ttg-transport-grid span { color: var(--ttg-gold); font-size: 1.5rem; font-weight: 800; }
.ttg-transport-grid h3, .ttg-food-grid h3 { margin: .35rem 0 .5rem; }
.ttg-transport-grid p, .ttg-food-grid p { margin: 0; font-size: .9rem; }
.ttg-food-grid { grid-template-columns: repeat(2, 1fr); }

.ttg-formula { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .55rem; margin: 1.8rem 0 2.2rem; border-radius: 20px; padding: 1.35rem; background: var(--ttg-sand); }
.ttg-formula span { border-radius: 999px; padding: .45rem .8rem; background: #fff; color: var(--ttg-ink); font-size: .82rem; font-weight: 700; }
.ttg-formula b { color: var(--ttg-gold); }
.ttg-number-list { display: grid; gap: .7rem; counter-reset: item; list-style: none; margin: 1rem 0 0; padding: 0; }
.ttg-number-list li { border-inline-start: 3px solid var(--ttg-gold); padding: .7rem 1rem; background: #f8faf9; color: var(--ttg-muted); }

.ttg-timeline { position: relative; display: grid; gap: 1rem; list-style: none; margin: 2rem 0; padding: 0; }
.ttg-timeline::before { content: ""; position: absolute; inset-block: 1.3rem; inset-inline-start: 58px; width: 1px; background: var(--ttg-line); }
.ttg-timeline li { position: relative; display: grid; grid-template-columns: 115px 1fr; gap: 1rem; align-items: start; }
.ttg-timeline li > span { position: relative; z-index: 1; border: 1px solid var(--ttg-line); border-radius: 999px; padding: .35rem .45rem; background: #fff; color: var(--ttg-green); font-size: .76rem; font-weight: 800; text-align: center; }
.ttg-timeline li > div { border-radius: 18px; padding: 1.15rem 1.25rem; background: #f7faf8; }
.ttg-timeline h3 { margin: 0 0 .35rem; }
.ttg-timeline p { margin: 0; font-size: .92rem; }

.ttg-sources { border-radius: 24px; padding-inline: clamp(1.2rem, 4vw, 2rem); background: #f7faf8; }
.ttg-sources ul { display: grid; gap: .55rem; margin: 1rem 0 0; padding-inline-start: 1.2rem; }
.ttg-sources li { color: var(--ttg-muted); }

.ttg-faq__list { display: grid; gap: .75rem; margin-top: 1.6rem; }
.ttg-faq details { border: 1px solid var(--ttg-line); border-radius: 16px; background: #fff; overflow: hidden; }
.ttg-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.2rem; color: var(--ttg-ink); font-weight: 800; cursor: pointer; list-style: none; }
.ttg-faq summary::-webkit-details-marker { display: none; }
.ttg-faq summary span { position: relative; flex: 0 0 18px; width: 18px; height: 18px; }
.ttg-faq summary span::before, .ttg-faq summary span::after { content: ""; position: absolute; inset: 50% 0 auto; height: 2px; background: var(--ttg-green); transition: transform .2s ease; }
.ttg-faq summary span::after { transform: rotate(90deg); }
.ttg-faq details[open] summary span::after { transform: rotate(0); }
.ttg-faq details > div { padding: 0 1.2rem 1.1rem; }
.ttg-faq details p { margin: 0; }

.ttg-final { padding: clamp(4rem, 8vw, 7rem) 0; background: #eef5f1; }
.ttg-final__card { display: grid; grid-template-columns: 1.3fr .7fr; gap: 2rem; align-items: center; border-radius: 28px; padding: clamp(2rem, 6vw, 4rem); background: var(--ttg-green-dark); color: #fff; box-shadow: var(--ttg-shadow); }
.ttg-final h2 { max-width: 650px; margin: 0; color: #fff; font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.3; }
.ttg-final p:not(.ttg-eyebrow) { max-width: 660px; margin: .8rem 0 0; color: rgba(255,255,255,.75); }
.ttg-final .ttg-actions { justify-content: flex-end; margin: 0; }

/* Keep text contrast deterministic against later global theme rules. */
.ttg-maldives .ttg-hero h1,
.ttg-maldives .ttg-check-card h3,
.ttg-maldives .ttg-budget-card--featured h3,
.ttg-maldives .ttg-final h2 { color: #fff !important; }

.ttg-maldives .ttg-hero__lead,
.ttg-maldives .ttg-check-card .ttg-check-list li,
.ttg-maldives .ttg-budget-card--featured p,
.ttg-maldives .ttg-final p:not(.ttg-eyebrow) { color: rgba(255, 255, 255, .84) !important; }

.ttg-maldives .ttg-hero .ttg-kicker,
.ttg-maldives .ttg-final .ttg-eyebrow,
.ttg-maldives .ttg-budget-card--featured > span { color: #e2ae5d !important; }

.ttg-maldives .ttg-final .ttg-btn--outline { color: #fff !important; }
.ttg-maldives .ttg-final .ttg-btn--outline:hover { color: var(--ttg-green-dark) !important; }

.ttg-maldives :focus-visible { outline: 3px solid #e5b15e; outline-offset: 4px; }

@media (max-width: 1050px) {
	.ttg-snapshot__grid { grid-template-columns: repeat(3, 1fr); }
	.ttg-layout { grid-template-columns: minmax(0, 1fr); }
	.ttg-toc { display: none; }
	.ttg-content { width: 100%; max-width: 790px; margin-inline: auto; }
	.ttg-compare { width: 100%; max-width: 100%; }
}

@media (max-width: 760px) {
	.ttg-container { width: min(100% - 28px, 1180px); }
	.ttg-hero { min-height: 620px; }
	.ttg-hero__overlay { background: linear-gradient(0deg, rgba(8,31,24,.92), rgba(8,31,24,.26)); }
	.ttg-snapshot__grid { grid-template-columns: repeat(2, 1fr); }
	.ttg-decision-grid, .ttg-budget-grid, .ttg-audience-grid, .ttg-season-grid, .ttg-transport-grid { grid-template-columns: 1fr; }
	.ttg-budget-card--featured { transform: none; }
	.ttg-place-list article { grid-template-columns: 1fr; gap: .5rem; }
	.ttg-question-list { columns: 1; }
	.ttg-food-grid { grid-template-columns: 1fr; }
	.ttg-callout, .ttg-callout--official { flex-direction: column; }
	.ttg-final__card { grid-template-columns: 1fr; }
	.ttg-final .ttg-actions { justify-content: flex-start; }
}

@media (max-width: 520px) {
	.ttg-hero h1 { font-size: 2.4rem; }
	.ttg-hero__lead { font-size: 1rem; }
	.ttg-actions, .ttg-actions .ttg-btn { width: 100%; }
	.ttg-snapshot__grid > div { padding: .9rem .75rem; }
	.ttg-snapshot strong { font-size: .86rem; }
	.ttg-layout { padding-block: 3.5rem; }
	.ttg-section { padding-block: 3.4rem; }
	.ttg-timeline::before { display: none; }
	.ttg-timeline li { grid-template-columns: 1fr; gap: .45rem; }
	.ttg-timeline li > span { justify-self: start; min-width: 90px; }
}

@media (prefers-reduced-motion: reduce) {
	.ttg-maldives *, .ttg-maldives *::before, .ttg-maldives *::after { scroll-behavior: auto !important; transition: none !important; }
}
