/* Pakistan Travel Guides: optional features (map, tools, tables, community). Built on main.css tokens. */

/* ---------- Shared ---------- */
.btn--line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }
summary.btn { list-style: none; cursor: pointer; display: inline-flex; }
summary.btn::-webkit-details-marker { display: none; }
.pill { display: inline-block; padding: .12rem .55rem; font-size: .82rem; font-weight: 600; border-radius: 999px; background: var(--snow); color: var(--granite); border: 1px solid var(--rule); white-space: nowrap; }
.pill.is-good { background: #E1F1EC; color: #0E5B4E; border-color: #9CCFC1; }
.pill.is-warn { background: #FDF1DC; color: var(--apricot-text); border-color: #EFC98A; }
.pill.is-bad { background: #FBE4DE; color: #9A2E16; border-color: #EBA99A; }
.fbox { background: var(--snow); padding: clamp(1.1rem, 3vw, 1.8rem); margin: 1.5rem 0; }
.fform { margin: 2.5rem 0; padding-top: 1.5rem; border-top: 3px solid var(--ink); }
.fform h2 { font-size: var(--step-2); }
.submit-form--compact { gap: .8rem; margin-top: 1rem; }
.submit-form--compact p { margin: 0; }
.lead { font-size: var(--step-1); line-height: 1.45; }

/* ---------- Information tables ---------- */
.ftable-wrap { overflow-x: auto; margin: 1.2rem 0; }
.ftable { width: 100%; border-collapse: collapse; font-size: .98rem; }
.ftable th, .ftable td { text-align: left; padding: .65rem .8rem .65rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.ftable thead th { font-family: var(--display); font-weight: 800; font-size: 1.1rem; border-bottom: 2px solid var(--ink); }
.ftable tbody th { font-weight: 600; }
.ftable .num { text-align: right; font-variant-numeric: tabular-nums; }
.ftable__total th, .ftable__total td { border-top: 2px solid var(--ink); border-bottom: 0; font-weight: 700; font-size: 1.1rem; }
.ftable__tel { font-family: var(--display); font-weight: 800; font-size: 1.5rem; text-decoration: none; }
.ftable--menu th { font-weight: 400; }
.ftable--menu td { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.menu-table__group th { font-family: var(--display); font-weight: 800; font-size: 1.15rem; padding-top: 1.2rem; }
@media (max-width: 640px) {
	.ftable--signal thead, .ftable--transport thead, .ftable--emergency thead, .ftable--money thead, .ftable--roads thead { display: none; }
	.ftable--signal tr, .ftable--transport tr, .ftable--emergency tr, .ftable--money tr, .ftable--roads tr { display: block; padding: .8rem 0; border-bottom: 1px solid var(--rule); }
	.ftable--signal th, .ftable--signal td, .ftable--transport th, .ftable--transport td, .ftable--emergency th, .ftable--emergency td, .ftable--money th, .ftable--money td, .ftable--roads th, .ftable--roads td { display: block; border: 0; padding: .15rem 0; }
	.ftable--signal td::before, .ftable--transport td::before, .ftable--emergency td::before, .ftable--money td::before, .ftable--roads td::before { content: attr(data-label) ": "; color: var(--granite); font-size: .85rem; }
}

/* ---------- Map ---------- */
.fmap { margin: 1.5rem 0; }
.fmap__filters { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; align-items: end; margin-bottom: .9rem; }
.fmap__filters label, .ftool__row label { display: grid; gap: .3rem; font-family: var(--display); font-weight: 700; font-size: 1.05rem; }
.fmap__filters select, .ftool__row select, .ftool__row input, .dir-filter input, .dir-filter select { font: inherit; font-family: var(--serif); font-weight: 400; font-size: 1rem; padding: .55rem .7rem; border: 1px solid #9DABA7; border-radius: var(--radius); background: var(--paper); color: var(--ink); min-width: 10rem; }
.fmap__count { margin-left: auto; color: var(--granite); font-size: var(--step--1); }
.fmap__canvas { width: 100%; min-height: 360px; background: var(--snow); border: 1px solid var(--rule); }
.fmap__note { font-size: var(--step--1); color: var(--granite); margin-top: .5rem; }
.fmap__pop { display: grid; gap: .3rem; font-family: var(--serif); }
.fmap__pop img { width: 100%; height: 110px; object-fit: cover; display: block; }
.fmap__pop strong { font-family: var(--display); font-size: 1.15rem; line-height: 1.05; }
.fmap__pop-meta { color: var(--granite); font-size: .85rem; }
.fmap__pop-note { color: var(--apricot-text); font-size: .8rem; }
.leaflet-container { font: inherit; }

/* ---------- Weather ---------- */
.fcond h2 { margin-top: 2rem; }
.fwx__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 1rem; }
.fwx__card { background: var(--snow); padding: 1rem 1.1rem; border-top: 4px solid var(--teal); }
.fwx__name { font-size: 1.35rem; margin-bottom: .4rem; }
.fwx__now { display: grid; gap: .1rem; margin: 0 0 .7rem; }
.fwx__temp { font-family: var(--display); font-weight: 800; font-size: 3rem; line-height: 1; }
.fwx__desc { color: var(--granite); font-size: .92rem; }
.fwx__days { list-style: none; margin: 0; padding: .6rem 0 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: repeat(3, 1fr); gap: .3rem; text-align: center; font-size: .85rem; }
.fwx__days li { display: grid; gap: .1rem; }
.fwx__d { font-weight: 600; }
.fwx__i { font-size: 1.2rem; }

/* ---------- Tools (planner, packing, budget, altitude) ---------- */
.ftool { margin: 1.5rem 0; }
.ftool__form { display: grid; gap: 1.2rem; padding: clamp(1rem, 3vw, 1.6rem); background: var(--snow); }
.ftool__form fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.ftool__form legend { font-family: var(--display); font-weight: 700; font-size: 1.15rem; margin-bottom: .5rem; }
.ftool__form p { margin: 0; display: flex; gap: .6rem; flex-wrap: wrap; }
.ftool__row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: end; }
.ftool__row .grow { flex: 1 1 16rem; }
.ftool__row .grow select { width: 100%; }
.ftool__row input[type="number"] { min-width: 6rem; width: 7rem; }
.ftool__out { margin-top: 1.5rem; }
.plan { list-style: none; margin: 0; padding: 0; counter-reset: none; display: grid; gap: 1rem; }
.plan__day { padding: 1rem 0 1rem 1.2rem; border-left: 4px solid var(--apricot); }
.plan__title { font-size: 1.45rem; margin-bottom: .4rem; }
.plan__stops { margin: 0 0 .4rem; padding-left: 1.1rem; }
.plan__time { color: var(--granite); font-size: .9rem; }
.plan__stay { margin: .2rem 0 0; font-size: .95rem; }
.pack__title { font-size: 1.35rem; margin: 1.4rem 0 .5rem; }
.pack { list-style: none; margin: 0; padding: 0; columns: 2 18rem; column-gap: 2rem; }
.pack li { break-inside: avoid; padding: .3rem 0; border-bottom: 1px dotted var(--rule); }
.pack input { accent-color: var(--teal); margin-right: .3rem; }
.falt { list-style: none; margin: 1.2rem 0; padding: 0; display: grid; gap: .5rem; }
.falt__night { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .2rem 1rem; padding: .6rem 0; border-bottom: 1px solid var(--rule); }
.falt__alt { font-variant-numeric: tabular-nums; color: var(--granite); }
.falt__bar { grid-column: 1 / -1; height: 6px; background: var(--teal); }
.falt__night.is-warn .falt__bar { background: #C2410C; }
.falt__warn { grid-column: 1 / -1; color: #9A2E16; font-size: .92rem; }

/* ---------- Tools hub & quick tools ---------- */
.fhub, .quicktools, .villages { list-style: none; margin: 1.5rem 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.fhub a, .quicktools a, .villages a { display: grid; gap: .3rem; height: 100%; padding: 1.1rem 1.2rem; background: var(--paper); color: var(--ink); text-decoration: none; }
.fhub a:hover, .quicktools a:hover, .villages a:hover { background: var(--snow); }
.fhub strong, .quicktools strong, .villages strong { font-family: var(--display); font-weight: 800; font-size: 1.35rem; line-height: 1; }
.fhub a:hover strong, .quicktools a:hover strong, .villages a:hover strong { color: var(--teal); }
.fhub span, .quicktools span, .villages span { font-size: .92rem; color: var(--granite); }
.quicktools { margin-top: 1rem; }

/* Front page "Plan ahead" band */
.band--plan { background: var(--paper); border-top: 1px solid var(--rule); }
.plan-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .plan-grid { grid-template-columns: 1fr; } }
.otd { margin-top: 1.6rem; padding: 1.1rem 1.3rem; background: var(--ink); color: var(--paper); }
.otd__label { margin: 0 0 .3rem; font-family: var(--display); font-weight: 700; font-size: 1.1rem; color: var(--apricot); }
.otd__text { margin: 0; font-size: var(--step-1); line-height: 1.35; }

/* ---------- Events ---------- */
.evrows { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.evrow { display: grid; grid-template-columns: 4.2rem minmax(0, 1fr); gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--rule); align-items: center; }
.evrow__date { display: grid; place-items: center; height: 4.2rem; background: var(--blossom-2); border-top: 3px solid var(--apricot); line-height: 1; }
.evrow__d { font-family: var(--display); font-weight: 800; font-size: 1.9rem; }
.evrow__m { font-family: var(--display); font-weight: 700; font-size: 1rem; color: var(--apricot-text); }
.evrow__title { font-family: var(--display); font-weight: 800; font-size: 1.35rem; line-height: 1.05; text-decoration: none; color: var(--ink); }
.evrow__title:hover { color: var(--teal); }
.evrow__meta { margin: .25rem 0 0; font-size: .92rem; color: var(--granite); }
.front-events__title { font-size: 1.6rem; }
.facts--inline { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 0 1.5rem; margin: 0 0 1.5rem; }

/* ---------- Badges, ratings ---------- */
.badges { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1rem; }
.stay-row .badges { margin: .3rem 0; }
.badge { display: inline-block; padding: .18rem .6rem; font-size: .8rem; font-weight: 700; border-radius: 999px; }
.badge--featured { background: var(--apricot); color: var(--ink); }
.badge--verified { background: #E1F1EC; color: #0E5B4E; }
.badge--verified::before { content: "✓ "; }
.badge--green { background: #E8F3DC; color: #3B6212; }
.stars { --s: 1.05rem; display: inline-block; font-size: var(--s); line-height: 1; letter-spacing: 2px; background: linear-gradient(90deg, var(--apricot) calc(var(--r) / 5 * 100%), #CBD5D2 0); -webkit-background-clip: text; background-clip: text; color: transparent; vertical-align: -1px; }
.stars::before { content: "★★★★★"; }
.rating-summary a { text-decoration: none; color: var(--ink); font-weight: 600; }
.review-stars { margin: 0 0 .3rem; }
.comment-form-rating select { font: inherit; padding: .4rem .6rem; }

/* ---------- Enquiry, claim, feedback ---------- */
.enquiry { margin-top: 1.2rem; display: grid; gap: .7rem; }
.btn--wa { background: #1E7E4F; border-color: #1E7E4F; color: #fff; justify-content: center; }
.btn--wa:hover { background: #155C39; border-color: #155C39; color: #fff; }
.enquiry__form > summary { width: 100%; justify-content: center; }
.claim, .feedback { margin-top: 1.4rem; font-size: .95rem; }
.claim summary, .feedback summary { cursor: pointer; color: var(--teal); text-decoration: underline; text-underline-offset: .18em; }
.feedback { padding-top: 1rem; border-top: 1px solid var(--rule); margin-top: 2.5rem; }

/* ---------- Visitor photos, videos, audio ---------- */
.vphotos { margin-top: 2.5rem; }
.vphotos__grid { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .6rem; }
.vphotos__grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.vphotos__grid span { display: block; font-size: .8rem; color: var(--granite); margin-top: .2rem; }
.videos { margin-top: 2.5rem; }
.videos__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1rem; }
.videos__grid figure { margin: 0; }
.videos__grid figcaption { margin-top: .4rem; font-family: var(--display); font-weight: 700; font-size: 1.1rem; }
.yt { position: relative; aspect-ratio: 16 / 9; background: var(--ink); }
.yt iframe, .yt__play, .yt__play img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt__play { padding: 0; cursor: pointer; background: none; }
.yt__play img { object-fit: cover; }
.yt__play::after { content: ""; position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; margin: -24px 0 0 -34px; border-radius: 12px; background: rgba(18, 48, 58, .85) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 28px no-repeat; }
.yt__play:hover::after { background-color: #C2410C; }
.audio-guide { margin: 0 0 1.5rem; padding: .9rem 1rem; background: var(--snow); border-left: 4px solid var(--teal); }
.audio-guide figcaption { font-family: var(--display); font-weight: 700; font-size: 1.15rem; margin-bottom: .4rem; }
.audio-guide audio { width: 100%; }

/* ---------- Directory, buddies, pledge, newsletter ---------- */
.dir-filter { margin-bottom: 1.4rem; }
.procards, .buddies { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1rem; }
.procard, .buddy { padding: 1.1rem 1.2rem; background: var(--snow); border-top: 4px solid var(--teal); }
.procard__name { font-size: 1.5rem; margin-bottom: .2rem; }
.procard__type, .buddy__kind { margin: 0 0 .6rem; color: var(--apricot-text); font-family: var(--display); font-weight: 700; }
.procard .facts > div { grid-template-columns: 6.5rem minmax(0, 1fr); }
.buddy h3 { font-size: 1.4rem; }
.buddy__meta { color: var(--granite); font-size: .92rem; }
.pledge__list { font-size: var(--step-1); }
.pledge__count { font-family: var(--display); font-weight: 800; font-size: 1.6rem; color: var(--teal); }
.story-by { font-style: italic; color: var(--granite); }
.newsletter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 1rem 2.5rem; align-items: center; }
.newsletter .submit-note { grid-column: 1 / -1; }
@media (max-width: 760px) { .newsletter { grid-template-columns: 1fr; } }
.newsletter__text { margin: 0; font-family: var(--display); font-weight: 700; font-size: var(--step-2); line-height: 1.05; }
.newsletter__form { display: flex; flex-wrap: wrap; gap: .6rem; }
.newsletter__form input[type="email"] { flex: 1 1 14rem; font: inherit; padding: .7rem .8rem; border: 1px solid #9DABA7; border-radius: var(--radius); }
.newsletter__consent { flex-basis: 100%; font-size: .88rem; color: var(--granite); }
.newsletter-band { padding-block: clamp(2.5rem, 5vw, 3.5rem); }

/* ---------- Recipes ---------- */
.recipe__photo { margin: 0 0 1.5rem; aspect-ratio: 16 / 9; overflow: hidden; background: var(--snow); }
.recipe__photo img { width: 100%; height: 100%; object-fit: cover; }
.recipe__ing { columns: 2 16rem; column-gap: 2rem; }
.recipe__ing li { break-inside: avoid; margin-bottom: .3rem; }
.recipe__steps li { margin-bottom: .7rem; padding-left: .3rem; }

/* ---------- Language switcher ---------- */
.lang-switch { list-style: none; margin: 0; padding: 0; display: flex; gap: .6rem; font-family: var(--display); font-weight: 700; }
.lang-switch a { text-decoration: none; }

/* ---------- Printing a tool ---------- */
@media print {
	body.is-printing-tool > *:not(main), body.is-printing-tool .site-header, body.is-printing-tool .footer, body.is-printing-tool .hero, body.is-printing-tool .newsletter-band { display: none !important; }
	body.is-printing-tool .ftool:not(.is-print), body.is-printing-tool .ftool__form, body.is-printing-tool .prose > *:not(.ftool) { display: none !important; }
	.ftool__out a { color: #000; text-decoration: none; }
}
