/*
Theme Name: Travel Africa in Miniature
Theme URI: https://bamendacameroon.site
Author: Chairman Dgodz
Description: Glass-style travel guide theme for Cameroon with listing directories (things to do, stays, restaurants), live Google Maps with filters, a vendor dashboard, affiliate-ready booking buttons and built-in SEO. Main styles live in assets/css/main.css; add small custom tweaks below.
Version: 2.4.0
Requires at least: 6.3
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: tam
*/

/* Your custom CSS tweaks go below this line. */

/* About page: latest blog post */
.side-latest h2 a { color: inherit; text-decoration: none; }
.side-latest h2 a:hover { text-decoration: underline; }
.side-latest__post { display: grid; gap: 6px; margin-bottom: 14px; color: var(--text); text-decoration: none; }
.side-latest__post img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; }
.side-latest__post b { font-family: var(--f-display); font-size: 1.08rem; color: var(--ink); line-height: 1.25; }
.side-latest__post:hover b { text-decoration: underline; }
.side-latest__post span { font-size: .9rem; color: var(--muted); }

/* Live restaurant finder */
.finder-wrap { margin-top: 18px; }
.finder { position: relative; overflow: hidden; border-radius: var(--r-l); padding: clamp(18px, 3vw, 32px); background: var(--glass-dark); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border: 1px solid var(--glass-dark-edge); color: var(--raffia); box-shadow: var(--shadow); }
.finder::before { content: ""; position: absolute; inset: 0; background: url("assets/img/ndop-tile.svg") repeat; background-size: 96px; opacity: .04; pointer-events: none; }
.finder > * { position: relative; }
.finder__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.finder__head h2 { color: #fff; margin-bottom: .2em; }
.finder__head p { margin: 0; color: rgba(239, 230, 210, .82); max-width: 46rem; }
.finder__city { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.finder__city select, .finder__sort select { appearance: none; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2314213D' fill='none' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 12px center; padding: 9px 34px 9px 14px; color: var(--ink); font-weight: 700; cursor: pointer; }
.finder__cities, .finder__cuisines, .finder__filters { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: thin; }
.finder__cities button { flex: none; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08); color: #fff; padding: .5em 1em; border-radius: 999px; font-weight: 600; cursor: pointer; }
.finder__cities button[aria-pressed="true"] { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.finder__cuisines button { flex: none; border: 0; background: rgba(255,255,255,.92); color: var(--ink); padding: .5em 1em; border-radius: 12px; font-weight: 600; cursor: pointer; border-bottom: 3px solid transparent; }
.finder__cuisines button[aria-pressed="true"] { background: var(--camwood); color: #fff; }
.finder__filters { align-items: center; }
.finder__filters .fchip { flex: none; }
.finder__sort { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; flex: none; font-size: .9rem; }
.finder__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 40%); gap: 16px; align-items: start; margin-top: 6px; }
.finder__map { position: sticky; top: calc(var(--header-h) + 16px); height: 560px; border-radius: var(--r-m); overflow: hidden; border: 1px solid var(--glass-edge); }
.finder__map .gmap { height: 100%; }
.finder__status { margin: 0 0 10px; color: #fff; font-weight: 600; }
.finder__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; max-height: 760px; overflow-y: auto; padding-right: 4px; scrollbar-width: thin; }
.finder__credit { margin: 14px 0 0; font-size: .82rem; color: rgba(239, 230, 210, .7); }
.fcard { background: var(--paper); color: var(--text); border-radius: var(--r-m); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-s); }
.fcard.is-hot { outline: 3px solid var(--gold); outline-offset: -3px; }
.fcard__media { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(135deg, #E9E2D0, #D4DDD3); }
.fcard__media img { width: 100%; height: 100%; object-fit: cover; }
.fcard__media .gcredit { left: 8px; bottom: 8px; }
.fcard__nophoto { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: .85rem; }
.fcard__open { position: absolute; top: 10px; left: 10px; background: rgba(13,21,40,.8); color: #fff; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.fcard__open.is-open { background: #2E6B3F; }
.fcard__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.fcard__title { font-family: var(--f-display); font-size: 1.12rem; margin: 0; color: var(--ink); }
.fcard__meta { margin: 0; color: var(--muted); font-size: .86rem; }
.fcard__meta b { color: var(--ink); }
.fcard__addr { margin: 0; font-size: .86rem; color: #3E4454; }
.fcard__tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.fcard__tags li { font-size: .74rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--raffia); color: var(--ink); }
.fcard__actions { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.fcard__actions .btn { min-height: 36px; padding: .4em .85em; font-size: .85rem; }
.picks-title { color: #fff; margin: 34px 0 4px; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.picks-intro { color: #F1E8D4; margin: 0; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
@media (max-width: 1000px) {
	.finder__body { grid-template-columns: 1fr; }
	.finder__map { position: relative; top: 0; height: 320px; order: -1; }
	.finder__grid { max-height: none; overflow: visible; }
}

/* Responsive polish */
.view-fab.is-away { opacity: 0; pointer-events: none; transform: translate(-50%, 16px); }
.view-fab { transition: opacity .2s, transform .2s; }
@media (max-width: 1100px) {
	.finder__cities, .finder__cuisines, .finder__filters, .city-tabs, .type-tabs {
		-webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
		mask-image: linear-gradient(90deg, #000 88%, transparent);
		padding-right: 28px;
	}
	.finder__filters { flex-wrap: nowrap; }
	.finder__sort { margin-left: 0; }
}
@media (min-width: 1101px) {
	.finder__cities { flex-wrap: wrap; overflow: visible; }
	.finder__cuisines { flex-wrap: wrap; overflow: visible; }
}
@media (max-width: 640px) {
	.finder { padding: 16px 14px; border-radius: 18px; }
	.finder__head h2 { font-size: 1.5rem; }
	.finder__head p { font-size: .95rem; }
	.finder__map { height: 230px; }
	.finder__cuisines button, .finder__cities button { padding: .45em .85em; font-size: .92rem; }
	.fcard__actions .btn { flex: 1 1 auto; }
}
.card__place { display: block; line-height: 1.35; }
.card__place .icon { display: inline-block; vertical-align: -3px; margin-right: 3px; }
@media (min-width: 641px) and (max-width: 900px) { .grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); } }

/* Google photo credit on directory cards: bottom-left of the photo, clear of the category label */
@supports (top: 1cqw) {
	.card { container-type: inline-size; }
	.card > .gcredit { right: auto; left: 10px; top: calc(75cqw - 34px); max-width: calc(100% - 20px); }
}

/* Private airport transfers page */
.transfer-guide { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 8px; }
.transfer-guide > *, .airports > * { min-width: 0; }
.transfer-guide__head { background: var(--glass-dark); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border: 1px solid var(--glass-dark-edge); border-radius: var(--r-l); padding: clamp(18px, 3vw, 30px); color: var(--raffia); position: relative; overflow: hidden; }
.transfer-guide__head::before { content: ""; position: absolute; inset: 0; background: url("assets/img/ndop-tile.svg") repeat; background-size: 96px; opacity: .04; pointer-events: none; }
.transfer-guide__head h2 { color: #fff; margin: 0 0 .3em; position: relative; }
.transfer-guide__head p { margin: 0; max-width: 52rem; color: rgba(239, 230, 210, .86); position: relative; }
.airports { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.airport { position: relative; border-radius: var(--r-l); padding: 22px 22px 20px; color: var(--raffia); display: flex; flex-wrap: wrap; align-items: flex-start; align-content: flex-start; gap: 8px 10px; }
.airport > :not(.btn) { flex: 1 1 100%; min-width: 0; }
.airport h3 { margin: 0; font-size: 1.3rem; padding-right: 76px; }
.airport p { margin: 0; color: rgba(239, 230, 210, .86); }
.airport > .airport__code { flex: none; position: absolute; top: 18px; right: 18px; font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; letter-spacing: .06em; color: var(--ink); background: var(--gold); border-radius: 12px; padding: 4px 10px; }
.airport ul { list-style: none; margin: 4px 0 6px; padding: 0; display: grid; gap: 4px; font-size: .92rem; }
.airport li { display: flex; align-items: center; gap: 8px; }
.airport li .icon { color: var(--gold); flex: none; }
.airport .btn { flex: 0 1 auto; }
.transfer-compare, .transfer-tips { border-radius: var(--r-l); padding: clamp(16px, 2.6vw, 26px); }
.transfer-compare h3, .transfer-tips h3 { margin: 0 0 10px; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.transfer-compare table { width: 100%; border-collapse: collapse; font-size: .94rem; min-width: 560px; }
.transfer-compare th, .transfer-compare td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.transfer-compare thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.transfer-compare tbody tr:nth-child(odd) { background: rgba(242, 183, 5, .07); }
.transfer-compare td b { color: var(--camwood); white-space: nowrap; }
.transfer-compare__note { margin: 10px 0 0; font-size: .82rem; color: var(--muted); }
.transfer-tips ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.photo-credits { color: var(--muted); }
@media (max-width: 760px) {
	.airports { grid-template-columns: 1fr; }
	.transfer-compare table { font-size: .88rem; }
}
.airport .btn--line { background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .38); box-shadow: none; }
.airport .btn--line:hover { background: rgba(255, 255, 255, .18); color: #fff; }
@media (max-width: 640px) {
	.transfer-compare table { min-width: 0; }
	.transfer-compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.transfer-compare tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
	.transfer-compare td { display: block; padding: 0; border: 0; }
	.transfer-compare td:nth-child(1) { font-weight: 700; color: var(--ink); }
	.transfer-compare td:nth-child(4) { grid-column: 2; grid-row: 1; text-align: right; }
	.transfer-compare td:nth-child(2), .transfer-compare td:nth-child(3) { grid-column: 1 / -1; font-size: .84rem; color: var(--muted); }
	.transfer-compare td:nth-child(2)::before { content: "Book with "; }
}

/* Booking box: extra partner colours */
.book__btn--stays { --b: #7A3E8E; }
.book__btn--other { --b: #0E7490; }
