/*
Theme Name: Town Index
Theme URI: https://example.com/town-index
Author: Dimitris
Description: A warm, local business directory theme for a town company index. Company listings with categories, areas, amenities, photo galleries with lightbox, star-rated reviews, opening hours ("open now"), OpenStreetMap maps, search & A–Z filters, featured listings, share buttons and a front-end "Add your business" form with moderation. Bilingual-ready (Greek/English) with Polylang.
Version: 1.3.0
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: townindex
Tags: directory, business, custom-colors, custom-logo, custom-menu, featured-images, translation-ready, two-columns, footer-widgets
*/

/* ==========================================================================
   1. Tokens
   ========================================================================== */
:root {
	--ti-primary: #c2562f;
	--ti-primary-dark: #973f20;
	--ti-primary-soft: #f8e7df;
	--ti-second: #5b6b3a;
	--ti-second-soft: #e8ebdf;
	--ti-bg: #fbf6ee;
	--ti-bg-alt: #f3ebdf;
	--ti-surface: #ffffff;
	--ti-ink: #2b2420;
	--ti-muted: #6f645a;
	--ti-line: #eadfcf;
	--ti-gold: #d4893a;
	--ti-open: #2f7d4f;
	--ti-closed: #a6402a;
	--ti-radius: 14px;
	--ti-radius-sm: 8px;
	--ti-shadow: 0 1px 2px rgba(60, 40, 20, .06), 0 6px 20px rgba(60, 40, 20, .07);
	--ti-shadow-lg: 0 10px 40px rgba(60, 40, 20, .14);
	--ti-font-head: "Literata", Georgia, "Times New Roman", serif;
	--ti-font-body: "Commissioner", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--ti-container: 1200px;
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--ti-bg);
	color: var(--ti-ink);
	font-family: var(--ti-font-body);
	font-size: 1.0625rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--ti-primary-dark); text-underline-offset: .15em; }
a:hover { color: var(--ti-primary); }
h1, h2, h3, h4 { font-family: var(--ti-font-head); font-weight: 700; line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 2.5vw, 1.85rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--ti-gold); outline-offset: 2px; border-radius: 4px; }
hr { border: 0; border-top: 1px solid var(--ti-line); margin: 2rem 0; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; z-index: 1000;
	top: 8px; left: 8px; padding: 10px 16px; background: #fff; border-radius: 8px; box-shadow: var(--ti-shadow);
}
.container { width: 100%; max-width: var(--ti-container); margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 820px; }
.section { padding: clamp(40px, 6vw, 72px) 0; }
.section--alt { background: var(--ti-bg-alt); }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section__head h2 { margin: 0; }
.link-arrow { font-weight: 600; text-decoration: none; }
[hidden] { display: none !important; }

/* Icons */
.ti-icon { flex: none; vertical-align: -0.2em; }

/* ==========================================================================
   3. Buttons, badges, chips
   ========================================================================== */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 12px 20px; border-radius: 999px; border: 2px solid transparent;
	font: 600 1rem/1.1 var(--ti-font-body); text-decoration: none; cursor: pointer;
	transition: background .15s, color .15s, border-color .15s, transform .15s;
	white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ti-primary); color: #fff; }
.btn-primary:hover { background: var(--ti-primary-dark); color: #fff; }
.btn-outline { background: var(--ti-surface); color: var(--ti-ink); border-color: var(--ti-line); }
.btn-outline:hover { border-color: var(--ti-primary); color: var(--ti-primary-dark); }
.btn-light { background: #fff; color: var(--ti-primary-dark); }
.btn-light:hover { background: var(--ti-primary-soft); color: var(--ti-primary-dark); }
.btn-sm { padding: 8px 14px; font-size: .9rem; }
.btn-lg { padding: 16px 28px; font-size: 1.1rem; }
.btn .ti-icon { width: 18px; height: 18px; }

.badge {
	display: inline-flex; align-items: center; gap: 4px;
	padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; line-height: 1.3;
}
.badge .ti-icon { width: 14px; height: 14px; }
.badge-featured { background: var(--ti-gold); color: #fff; }
.badge-featured .ti-icon { fill: currentColor; }
.badge-open { background: #e3f1e8; color: var(--ti-open); }
.badge-open::before, .badge-closed::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-closed { background: #f7e4df; color: var(--ti-closed); }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
	display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
	background: var(--ti-surface); border: 1px solid var(--ti-line); color: var(--ti-ink);
	font-size: .9rem; text-decoration: none;
}
.chip:hover { border-color: var(--ti-primary); color: var(--ti-primary-dark); }
.chip .ti-icon { width: 15px; height: 15px; color: var(--ti-second); }
.chip small { color: var(--ti-muted); }
.chips--sub { margin: 16px 0 0; }

/* ==========================================================================
   4. Header & navigation
   ========================================================================== */
.site-header {
	position: sticky; top: 0; z-index: 900;
	background: rgba(251, 246, 238, .92);
	backdrop-filter: saturate(1.4) blur(10px);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid transparent;
	transition: border-color .2s, box-shadow .2s;
}
.admin-bar .site-header { top: 32px; }
.site-header.is-scrolled { border-color: var(--ti-line); box-shadow: 0 4px 18px rgba(60, 40, 20, .06); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.site-title { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ti-ink); }
.site-title__mark {
	display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px 12px 12px 4px;
	background: var(--ti-primary); color: #fff; font: 700 1.3rem/1 var(--ti-font-head);
}
.site-title__text { font: 700 1.25rem/1.1 var(--ti-font-head); }
.custom-logo { max-height: 52px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav .menu a {
	display: block; padding: 8px 12px; border-radius: 8px; color: var(--ti-ink);
	text-decoration: none; font-weight: 500;
}
.site-nav .menu a:hover, .site-nav .current-menu-item > a { background: var(--ti-bg-alt); color: var(--ti-primary-dark); }
.site-nav .menu li { position: relative; }
.site-nav .sub-menu {
	list-style: none; margin: 0; padding: 8px; position: absolute; left: 0; top: 100%; min-width: 220px;
	background: #fff; border-radius: 12px; box-shadow: var(--ti-shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s;
}
.site-nav li:hover > .sub-menu, .site-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.site-nav__extra { display: flex; align-items: center; gap: 14px; }

.lang-switch { list-style: none; display: flex; gap: 2px; margin: 0; padding: 3px; background: var(--ti-bg-alt); border-radius: 999px; }
.lang-switch a { display: block; padding: 4px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; text-decoration: none; color: var(--ti-muted); }
.lang-switch a.is-current { background: #fff; color: var(--ti-ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle__bar { display: block; width: 24px; height: 2px; background: var(--ti-ink); margin: 5px 0; border-radius: 2px; transition: .2s; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
	/* backdrop-filter would make the header the containing block of the fixed nav panel */
	.site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--ti-bg); }
	.nav-toggle { display: block; }
	.site-nav {
		position: fixed; inset: 72px 0 0 0; background: var(--ti-bg); flex-direction: column; align-items: stretch;
		padding: 20px; gap: 20px; overflow-y: auto;
		transform: translateX(100%); transition: transform .25s ease; visibility: hidden;
	}
	.admin-bar .site-nav { top: 118px; }
	.site-nav.is-open { transform: none; visibility: visible; }
	.site-nav .menu { flex-direction: column; }
	.site-nav .menu a { font-size: 1.15rem; padding: 12px; }
	.site-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent; padding-left: 16px; }
	.site-nav__extra { flex-direction: column; align-items: flex-start; }
	body.nav-open { overflow: hidden; }
}
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

/* ==========================================================================
   5. Hero & search
   ========================================================================== */
.hero {
	position: relative; overflow: hidden; padding: clamp(56px, 9vw, 110px) 0 clamp(56px, 8vw, 96px);
	background:
		radial-gradient(1200px 400px at 85% -10%, var(--ti-primary-soft), transparent 60%),
		radial-gradient(800px 380px at -5% 110%, var(--ti-second-soft), transparent 60%),
		var(--ti-bg);
}
.hero::after { /* subtle tiled-roof pattern */
	content: ""; position: absolute; inset: auto 0 0 0; height: 14px;
	background: repeating-linear-gradient(90deg, var(--ti-primary) 0 22px, var(--ti-primary-dark) 22px 24px);
	opacity: .9; border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.hero--image { color: #fff; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero--image::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(40, 25, 15, .35), rgba(40, 25, 15, .65)); }
.hero__inner { position: relative; z-index: 2; text-align: center; }
.hero__eyebrow {
	display: inline-block; margin-bottom: 18px; padding: 6px 14px; border-radius: 999px;
	background: rgba(255, 255, 255, .7); color: var(--ti-second); font-weight: 600; font-size: .9rem;
}
.hero--image .hero__eyebrow { background: rgba(255, 255, 255, .18); color: #fff; }
.hero__title { max-width: 820px; margin: 0 auto 16px; font-size: clamp(2.2rem, 5.5vw, 3.6rem); }
.hero__title em { font-style: italic; color: var(--ti-primary); }
.hero--image .hero__title em { color: #ffd9c4; }
.hero__text { max-width: 620px; margin: 0 auto 32px; font-size: 1.15rem; color: var(--ti-muted); }
.hero--image .hero__text { color: rgba(255, 255, 255, .9); }

.ti-search {
	display: flex; gap: 8px; background: var(--ti-surface); border-radius: 999px; padding: 8px;
	box-shadow: var(--ti-shadow-lg); max-width: 860px; margin: 0 auto; text-align: left;
}
.ti-search__field { position: relative; flex: 0 1 auto; min-width: 0; display: flex; align-items: center; }
.ti-search__field select { width: auto; max-width: 240px; }
.ti-search__field + .ti-search__field { border-left: 1px solid var(--ti-line); }
.ti-search__field--q { flex: 1 1 220px; }
.ti-search__field--q .ti-icon { position: absolute; left: 16px; color: var(--ti-muted); pointer-events: none; }
.ti-search input, .ti-search select {
	width: 100%; border: 0; background: transparent; font: inherit; color: var(--ti-ink);
	padding: 12px 16px; border-radius: 999px; min-height: 48px;
}
.ti-search__field--q input { padding-left: 46px; }
.ti-search select { cursor: pointer; appearance: none; -webkit-appearance: none;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236f645a' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 16px center; padding-right: 36px; }
.ti-search input:focus, .ti-search select:focus { outline: none; background-color: var(--ti-bg); }
.ti-search .btn { padding-inline: 26px; }
.ti-search--bar { margin: 24px 0 0; max-width: none; box-shadow: var(--ti-shadow); }

@media (max-width: 760px) {
	.ti-search { flex-direction: column; border-radius: 20px; }
	.ti-search__field + .ti-search__field { border-left: 0; border-top: 1px solid var(--ti-line); }
	.ti-search .btn { width: 100%; }
	.ti-search__field select { width: 100%; max-width: none; }
	.ti-search__field--q { flex: 1 1 auto; }
}

/* ==========================================================================
   6. Category tiles
   ========================================================================== */
.cat-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); gap: 14px; }
@media (max-width: 480px) { .cat-tiles { grid-template-columns: 1fr 1fr; gap: 10px; } .cat-tiles a { padding: 14px; } .cat-tiles__icon { width: 44px; height: 44px; font-size: 1.35rem; } }
.cat-tiles a {
	--tile: #f3e3d3;
	display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 20px 18px; border-radius: var(--ti-radius);
	background: var(--ti-surface); border: 1px solid var(--ti-line); text-decoration: none; color: var(--ti-ink);
	transition: transform .15s, box-shadow .15s, border-color .15s;
}
.cat-tiles a:hover { transform: translateY(-3px); box-shadow: var(--ti-shadow); border-color: transparent; color: var(--ti-ink); }
.cat-tiles__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--tile); font-size: 1.6rem; margin-bottom: 6px; }
.cat-tiles__name { font-weight: 600; line-height: 1.3; }
.cat-tiles__count { color: var(--ti-muted); font-size: .85rem; }
.cat-tiles__all { border-style: dashed !important; background: transparent !important; }
.cat-tiles__all .cat-tiles__icon { background: var(--ti-primary-soft); color: var(--ti-primary-dark); font-weight: 700; }

/* ==========================================================================
   7. Company cards & grid
   ========================================================================== */
.company-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); gap: 22px; }
.company-grid--4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.company-card {
	display: flex; flex-direction: column; background: var(--ti-surface); border-radius: var(--ti-radius);
	overflow: hidden; box-shadow: var(--ti-shadow); transition: transform .18s, box-shadow .18s;
	border: 1px solid transparent;
}
.company-card:hover { transform: translateY(-3px); box-shadow: var(--ti-shadow-lg); }
.company-card.is-featured { border-color: var(--ti-gold); }
.company-card__media { --tile: var(--ti-bg-alt); position: relative; display: block; aspect-ratio: 16 / 10; background: var(--tile); overflow: hidden; }
.company-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.company-card:hover .company-card__media img { transform: scale(1.04); }
.company-card__placeholder { display: grid; place-items: center; height: 100%; font: 700 3rem/1 var(--ti-font-head); color: rgba(0, 0, 0, .35); }
.company-card__badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; }
.company-card__body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.company-card__cat { margin: 0 0 4px; font-size: .82rem; font-weight: 600; color: var(--ti-second); text-transform: uppercase; letter-spacing: .04em; }
.company-card__title { margin: 0 0 6px; font-size: 1.22rem; }
.company-card__title a { color: var(--ti-ink); text-decoration: none; }
.company-card__title a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.company-card { position: relative; }
.company-card__meta a, .company-card__badges { position: relative; z-index: 2; }
.company-card__tagline { color: var(--ti-muted); font-size: .95rem; margin: 0 0 12px; }
.company-card__meta { list-style: none; margin: 0 0 14px; padding: 0; font-size: .92rem; color: var(--ti-muted); }
.company-card__meta li { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 4px; }
.company-card__meta .ti-icon { width: 16px; height: 16px; margin-top: 3px; color: var(--ti-primary); }
.company-card__meta a { color: inherit; text-decoration: none; }
.company-card__meta a:hover { color: var(--ti-primary-dark); }
.company-card__foot { margin-top: auto; }

/* ==========================================================================
   8. Directory page
   ========================================================================== */
.page-hero { padding: 28px 0 36px; background: linear-gradient(180deg, var(--ti-bg-alt), var(--ti-bg)); border-bottom: 1px solid var(--ti-line); }
.page-hero--compact { padding-bottom: 28px; }
.page-title { margin: 8px 0 8px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.page-title__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: #fff; box-shadow: var(--ti-shadow); font-size: 1.8rem; }
.page-intro { color: var(--ti-muted); max-width: 720px; font-size: 1.08rem; }
.page-intro p:last-child { margin: 0; }

.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .88rem; color: var(--ti-muted); }
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; opacity: .6; }
.breadcrumbs a { color: var(--ti-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--ti-primary-dark); }

.directory { padding-top: 24px; padding-bottom: 64px; }
.az-bar { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 18px; }
.az-bar a {
	min-width: 34px; height: 34px; padding: 0 8px; display: grid; place-items: center; border-radius: 8px;
	font-weight: 600; font-size: .9rem; color: var(--ti-muted); text-decoration: none; background: transparent;
}
.az-bar a:hover { background: var(--ti-bg-alt); color: var(--ti-ink); }
.az-bar a.is-active { background: var(--ti-ink); color: #fff; }

.directory__toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.results-count { margin: 0; color: var(--ti-muted); }
.clear-filters { margin-left: 6px; font-weight: 600; }
.view-toggle { display: inline-flex; padding: 4px; background: var(--ti-bg-alt); border-radius: 999px; }
.view-toggle button {
	display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; padding: 8px 16px;
	border-radius: 999px; font: 600 .9rem var(--ti-font-body); color: var(--ti-muted); cursor: pointer;
}
.view-toggle button .ti-icon { width: 16px; height: 16px; }
.view-toggle button.is-active { background: #fff; color: var(--ti-ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }

.empty-state { text-align: center; padding: 56px 20px; background: var(--ti-surface); border-radius: var(--ti-radius); box-shadow: var(--ti-shadow); }
.empty-state__icon { font-size: 2.6rem; margin-bottom: 8px; }
.empty-state .ti-search { margin-top: 24px; }

.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; }
.pagination .page-numbers {
	min-width: 42px; height: 42px; padding: 0 12px; display: grid; place-items: center; border-radius: 999px;
	background: var(--ti-surface); color: var(--ti-ink); text-decoration: none; font-weight: 600; border: 1px solid var(--ti-line);
}
.pagination .page-numbers.current { background: var(--ti-primary); border-color: var(--ti-primary); color: #fff; }
.pagination a.page-numbers:hover { border-color: var(--ti-primary); }

/* ==========================================================================
   9. Maps
   ========================================================================== */
.ti-map { position: relative; border-radius: var(--ti-radius); overflow: hidden; background: var(--ti-bg-alt); z-index: 1; }
.ti-map--home { height: 440px; box-shadow: var(--ti-shadow); }
.ti-map--directory { height: 600px; margin-bottom: 24px; box-shadow: var(--ti-shadow); }
.ti-map--single { height: 340px; border-radius: 0 0 var(--ti-radius) var(--ti-radius); }
.ti-map--full { height: calc(100vh - 230px); min-height: 460px; border-radius: 0; }
.ti-map--picker { height: 300px; margin: 10px 0 6px; border: 1px solid var(--ti-line); }
.ti-map.is-loading::after { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, .4); z-index: 500; }
.ti-map__empty { position: absolute; z-index: 600; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; background: #fff; padding: 12px 18px; border-radius: 10px; box-shadow: var(--ti-shadow); }

.ti-pin {
	display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50% 50% 50% 0;
	background: var(--ti-primary); transform: rotate(-45deg); box-shadow: 0 3px 8px rgba(0, 0, 0, .3); border: 2px solid #fff;
}
.ti-pin > span { transform: rotate(45deg); font-size: 15px; line-height: 1; }
.ti-pin > span:empty::before { content: ""; display: block; width: 10px; height: 10px; border-radius: 50%; background: #fff; }
.ti-pin--featured { background: var(--ti-gold); }
.leaflet-popup-content-wrapper { border-radius: 12px; }
.leaflet-popup-content { margin: 12px 14px; font-family: var(--ti-font-body); }
.ti-popup { display: flex; gap: 12px; min-width: 200px; }
.ti-popup img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; flex: none; }
.ti-popup p { margin: 0; }
.ti-popup__cat { font-size: .75rem; color: var(--ti-second); font-weight: 600; text-transform: uppercase; }
.ti-popup__title { font: 700 1rem/1.25 var(--ti-font-head); margin: 2px 0 !important; }
.ti-popup__title a { color: var(--ti-ink); text-decoration: none; }
.ti-popup__addr { font-size: .82rem; color: var(--ti-muted); }
.ti-popup__link { font-size: .85rem; font-weight: 600; }

.map-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.map-filters select { flex: 1 1 140px; min-width: 0; max-width: 100%; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--ti-line); background: #fff; font: inherit; }

/* ==========================================================================
   10. Single company
   ========================================================================== */
.company-hero__row { display: flex; gap: 24px; align-items: center; margin-top: 12px; }
.company-hero__logo { flex: none; width: 120px; height: 120px; border-radius: 22px; overflow: hidden; background: #fff; box-shadow: var(--ti-shadow); display: grid; place-items: center; }
.company-hero__logo img { width: 100%; height: 100%; object-fit: cover; }
.company-hero__badges { display: flex; gap: 6px; flex-wrap: wrap; }
.company-hero__badges:empty { display: none; }
.company-hero__tagline { font-size: 1.15rem; color: var(--ti-muted); margin-bottom: 12px; }
.company-hero__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.action-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.company-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; padding-top: 32px; padding-bottom: 56px; align-items: start; }
.company-side { position: sticky; top: 96px; display: grid; gap: 20px; }
.company-main { display: grid; gap: 24px; }
.card { background: var(--ti-surface); border-radius: var(--ti-radius); box-shadow: var(--ti-shadow); padding: 24px; }
.card--flush { padding: 24px 0 0; }
.card--flush .card__title { padding: 0 24px; }
.card__title { display: flex; align-items: center; gap: 8px; font-size: 1.2rem; margin-bottom: 14px; }
.card__title .ti-icon { color: var(--ti-primary); }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px dashed var(--ti-line); word-break: break-word; }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .ti-icon { color: var(--ti-primary); margin-top: 2px; }
.contact-list a { color: var(--ti-ink); text-decoration: none; }
.contact-list a:hover { color: var(--ti-primary-dark); text-decoration: underline; }
.social-links { display: flex; gap: 8px; margin-top: 14px; }
.social-links a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ti-bg-alt); color: var(--ti-ink); }
.social-links a:hover { background: var(--ti-primary); color: #fff; }

.hours-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.hours-table th, .hours-table td { padding: 8px 10px; text-align: left; }
.hours-table th { font-weight: 500; }
.hours-table td { text-align: right; font-variant-numeric: tabular-nums; }
.hours-table tr.is-today { background: var(--ti-primary-soft); font-weight: 700; }
.hours-table tr.is-today th, .hours-table tr.is-today td { font-weight: 700; }
.hours-table tr.is-today th { border-radius: 8px 0 0 8px; }
.hours-table tr.is-today td { border-radius: 0 8px 8px 0; }
.hours-table tr.is-closed td { color: var(--ti-closed); }
.hours-note { margin: 12px 0 0; font-size: .9rem; color: var(--ti-muted); font-style: italic; }

@media (max-width: 900px) {
	.company-layout { grid-template-columns: 1fr; }
	.company-side { position: static; }
	/* On phones show contact & hours right after the photos, before the long content. */
	.company-main { display: contents; }
	.company-gallery { order: 1; }
	.company-side { order: 2; }
	.company-main > :not(.company-gallery) { order: 3; }
	.company-layout { gap: 20px; padding-top: 20px; padding-bottom: 40px; }
	.company-side { display: contents; }
	.company-side > .card { order: 2; }
	.company-side > .last-updated, .company-side > .report { order: 4; }
	.company-hero__row { flex-direction: column; align-items: flex-start; }
	.company-hero__logo { width: 88px; height: 88px; }
}

/* ==========================================================================
   11. Forms (submission)
   ========================================================================== */
.ti-form fieldset { min-width: 0; border: 0; margin: 0 0 24px; padding: 24px; background: var(--ti-surface); border-radius: var(--ti-radius); box-shadow: var(--ti-shadow); }
.ti-form legend { float: left; width: 100%; padding: 0; margin-bottom: 14px; font: 700 1.25rem var(--ti-font-head); }
.ti-form legend + * { clear: both; }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label, .label-like { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.req { color: var(--ti-primary); }
.ti-form input[type="text"], .ti-form input[type="email"], .ti-form input[type="tel"], .ti-form input[type="url"],
.ti-form select, .ti-form textarea, .search-form .search-field, .comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 12px 14px; border: 1px solid var(--ti-line); border-radius: var(--ti-radius-sm);
	background: var(--ti-bg); font: inherit; color: var(--ti-ink); transition: border-color .15s, background .15s;
}
.ti-form input:focus, .ti-form select:focus, .ti-form textarea:focus, .search-form .search-field:focus { outline: none; border-color: var(--ti-primary); background: #fff; box-shadow: 0 0 0 3px var(--ti-primary-soft); }
.ti-form input[type="file"] { font: inherit; }
.help { font-size: .87rem; color: var(--ti-muted); margin: 6px 0 0; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.checkbox input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--ti-primary); }
.ti-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; gap: 0; } .ti-form fieldset { padding: 18px; } }

.notice { padding: 18px 22px; border-radius: var(--ti-radius); margin-bottom: 24px; }
.notice ul { margin: 8px 0 0; padding-left: 20px; }
.notice--error { background: #fbe9e4; border: 1px solid #efc2b5; color: #7d2c18; }
.notice--success { background: #e7f2ea; border: 1px solid #bcdcc6; text-align: center; padding: 40px 24px; }
.notice--info { background: var(--ti-second-soft); }

.search-form { display: flex; gap: 8px; }
.search-form .btn { flex: none; }

/* ==========================================================================
   12. Call to action
   ========================================================================== */
.cta {
	display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
	padding: clamp(28px, 5vw, 48px); border-radius: 24px; color: #fff;
	background: radial-gradient(600px 200px at 100% 0, rgba(255, 255, 255, .15), transparent), linear-gradient(120deg, var(--ti-primary), var(--ti-primary-dark));
}
.cta h2 { color: #fff; margin-bottom: 6px; }
.cta p { margin: 0; opacity: .92; max-width: 560px; }

/* ==========================================================================
   13. Blog & content
   ========================================================================== */
.content-area { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 36px; padding-bottom: 56px; }
.has-sidebar .content-area { grid-template-columns: minmax(0, 1fr) 300px; }
@media (max-width: 900px) { .has-sidebar .content-area { grid-template-columns: 1fr; } }
.post-list { display: grid; gap: 22px; }
.post-item { display: grid; grid-template-columns: 240px 1fr; gap: 0; background: var(--ti-surface); border-radius: var(--ti-radius); overflow: hidden; box-shadow: var(--ti-shadow); }
.post-item:not(:has(.post-item__media)) { grid-template-columns: 1fr; }
.post-item__media img { width: 100%; height: 100%; object-fit: cover; }
.post-item__body { padding: 22px 24px; }
.post-item__title { font-size: 1.35rem; margin: 0 0 8px; }
.post-item__title a { color: var(--ti-ink); text-decoration: none; }
.post-item__excerpt p:last-child { margin: 0; }
.post-meta { color: var(--ti-muted); font-size: .9rem; margin: 0 0 6px; }
@media (max-width: 640px) { .post-item { grid-template-columns: 1fr; } }
.post-thumb { margin: 0 0 24px; border-radius: var(--ti-radius); overflow: hidden; }

.entry-content > * { margin-top: 0; margin-bottom: 1.1em; }
.entry-content h2, .entry-content h3 { margin-top: 1.6em; }
.entry-content img { border-radius: var(--ti-radius-sm); }
.entry-content blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--ti-primary); font-family: var(--ti-font-head); font-size: 1.15rem; }
.entry-content .alignwide { margin-inline: calc(-1 * min(80px, 5vw)); }
.entry-content .alignfull { margin-inline: calc(50% - 50vw); max-width: 100vw; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { border: 1px solid var(--ti-line); padding: 8px 12px; }
.wp-block-button__link { border-radius: 999px; background: var(--ti-primary); }
.post-tags a { display: inline-block; margin: 0 4px 4px 0; padding: 4px 10px; border-radius: 999px; background: var(--ti-bg-alt); font-size: .85rem; text-decoration: none; }
.post-navigation { margin: 32px 0; display: grid; gap: 12px; }
.post-navigation .nav-links { display: flex; justify-content: space-between; gap: 16px; }

.widget { margin-bottom: 28px; }
.widget-title { font-size: 1.05rem; margin-bottom: 12px; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { padding: 6px 0; border-bottom: 1px solid var(--ti-line); }

.comments-area { margin-top: 40px; }
.comment-list { padding-left: 0; list-style: none; }
.comment-list .comment-body { background: var(--ti-surface); padding: 16px 20px; border-radius: var(--ti-radius-sm); margin-bottom: 12px; }
.comment-form .submit { background: var(--ti-primary); color: #fff; border: 0; padding: 12px 22px; border-radius: 999px; font: 600 1rem var(--ti-font-body); cursor: pointer; }

/* ==========================================================================
   14. Footer
   ========================================================================== */
.site-footer { background: #2f2520; color: #e9dfd4; padding: 56px 0 24px; margin-top: 0; }
.site-footer a { color: #fff; }
.site-footer .widget-title { color: #fff; font-size: 1.1rem; }
.site-footer .widget li { border-color: rgba(255, 255, 255, .1); }
.footer-widgets { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-bottom: 32px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer-col p { color: #cdbfb1; }
.footer-links { list-style: none; margin: 0; padding: 0; columns: 2; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #e9dfd4; text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 22px; font-size: .9rem; flex-wrap: wrap; }
.footer-bottom p { margin: 0; color: #b3a596; }
.footer-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 16px; flex-wrap: wrap; }
.footer-menu a { color: #cdbfb1; text-decoration: none; }
.site-footer .lang-switch { background: rgba(255, 255, 255, .1); }
.site-footer .lang-switch a { color: #cdbfb1; }
.site-footer .lang-switch a.is-current { background: #fff; color: var(--ti-ink); }
@media (max-width: 800px) { .footer-widgets { grid-template-columns: 1fr; gap: 28px; } }


/* ==========================================================================
   15. Gallery & lightbox
   ========================================================================== */
.ti-gallery { display: grid; gap: 8px; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 150px; border-radius: var(--ti-radius); overflow: hidden; }
.ti-gallery__item { position: relative; display: block; overflow: hidden; background: var(--ti-bg-alt); cursor: zoom-in; }
.ti-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s, filter .35s; }
.ti-gallery__item:hover img { transform: scale(1.04); filter: brightness(1.05); }
.ti-gallery__item:first-child { grid-column: span 2; grid-row: span 2; }
.ti-gallery--n1 { grid-template-columns: 1fr; grid-auto-rows: 380px; }
.ti-gallery--n1 .ti-gallery__item:first-child { grid-column: auto; grid-row: auto; }
.ti-gallery--n2 { grid-template-columns: 2fr 1fr; grid-auto-rows: 300px; }
.ti-gallery--n2 .ti-gallery__item:first-child { grid-column: auto; grid-row: auto; }
.ti-gallery--n3 { grid-template-columns: 2fr 1fr; grid-auto-rows: 150px; }
.ti-gallery--n3 .ti-gallery__item:first-child { grid-column: 1; grid-row: span 2; }
.ti-gallery--n4 .ti-gallery__item:nth-child(4) { grid-column: span 2; }
.ti-gallery__more {
	position: absolute; inset: 0; display: grid; place-items: center; background: rgba(30, 20, 15, .55);
	color: #fff; font: 700 1.2rem var(--ti-font-body);
}
@media (max-width: 640px) {
	.ti-gallery, .ti-gallery--n3, .ti-gallery--n2 { grid-template-columns: 1fr 1fr; grid-auto-rows: 120px; }
	.ti-gallery__item:first-child, .ti-gallery--n3 .ti-gallery__item:first-child { grid-column: span 2; grid-row: span 2; }
	.ti-gallery--n2 .ti-gallery__item:first-child { grid-row: span 2; }
	.ti-gallery--n4 .ti-gallery__item:nth-child(4) { grid-column: auto; }
}

.lightbox {
	position: fixed; inset: 0; z-index: 10000; background: rgba(20, 14, 10, .94);
	display: flex; align-items: center; justify-content: center; padding: 56px 64px;
}
.lightbox[hidden] { display: none !important; }
body.lightbox-open { overflow: hidden; }
.lightbox__figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lightbox__figure img { max-width: 100%; max-height: calc(100vh - 150px); object-fit: contain; border-radius: 6px; box-shadow: 0 10px 50px rgba(0, 0, 0, .5); }
.lightbox__figure figcaption { color: #eadfd3; text-align: center; font-size: .95rem; }
.lightbox button { position: absolute; border: 0; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; border-radius: 50%; display: grid; place-items: center; transition: background .15s; }
.lightbox button:hover, .lightbox button:focus-visible { background: rgba(255, 255, 255, .25); }
.lightbox__close { top: 14px; right: 14px; width: 44px; height: 44px; font-size: 28px; line-height: 1; }
.lightbox__nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 34px; line-height: 1; }
.lightbox__prev { left: 10px; }
.lightbox__next { right: 10px; }
.lightbox.is-single .lightbox__nav, .lightbox.is-single .lightbox__count { display: none; }
.lightbox__count { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); color: #cdbfb1; margin: 0; font-size: .9rem; }
@media (max-width: 640px) { .lightbox { padding: 56px 8px; } .lightbox__nav { top: auto; bottom: 14px; transform: none; } }

/* Card extras */
.company-card__pics { position: absolute; right: 12px; bottom: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; background: rgba(30, 20, 15, .65); color: #fff; font-size: .78rem; font-weight: 600; }
.company-card__pics .ti-icon { width: 14px; height: 14px; }
.company-card__facts { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: .9rem; }

/* ==========================================================================
   16. Ratings & reviews
   ========================================================================== */
.stars { --size: 15px; position: relative; display: inline-block; width: calc(var(--size) * 5); height: var(--size); vertical-align: -2px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23e5d8c6' d='m12 2.5 2.9 6 6.6.9-4.8 4.6 1.2 6.5L12 17.4l-5.9 3.1 1.2-6.5L2.5 9.4l6.6-.9z'/%3E%3C/svg%3E") repeat-x 0 0 / var(--size) var(--size); }
.stars__fill { position: absolute; inset: 0 auto 0 0; overflow: hidden;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23d4893a' d='m12 2.5 2.9 6 6.6.9-4.8 4.6 1.2 6.5L12 17.4l-5.9 3.1 1.2-6.5L2.5 9.4l6.6-.9z'/%3E%3C/svg%3E") repeat-x 0 0 / var(--size) var(--size); }
.stars--lg { --size: 22px; }
.rating-inline { display: inline-flex; align-items: center; gap: 5px; color: var(--ti-ink); }
.rating-inline__count { color: var(--ti-muted); }
.price-range { font-weight: 700; color: var(--ti-second); letter-spacing: .05em; }
.price-range__rest { color: var(--ti-line); }
.company-hero__facts { display: flex; align-items: center; gap: 14px; margin: 0 0 12px; flex-wrap: wrap; }
.company-hero__facts:empty { display: none; }
.company-hero__rating { text-decoration: none; }

.reviews__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.reviews__head .card__title { margin: 0; }
.reviews__summary { display: flex; align-items: center; gap: 12px; }
.reviews__avg { font: 700 2.4rem/1 var(--ti-font-head); color: var(--ti-ink); }
.reviews__count { margin: 2px 0 0; font-size: .9rem; color: var(--ti-muted); }
.reviews__empty { color: var(--ti-muted); }
.review-list, .review-list .children { list-style: none; margin: 0; padding: 0; }
.review-list .children { margin: 12px 0 0 28px; padding-left: 16px; border-left: 3px solid var(--ti-primary-soft); }
.review { padding: 18px 0; border-top: 1px solid var(--ti-line); }
.review-list .children .review { border-top: 0; padding: 4px 0; }
.review__head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.review__avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--ti-second-soft); color: var(--ti-second); font-weight: 700; flex: none; }
.review__author { margin: 0; font-weight: 600; }
.review__meta { margin: 0; display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--ti-muted); }
.review__text p:last-child { margin-bottom: 0; }
.review__pending { background: var(--ti-bg-alt); padding: 6px 10px; border-radius: 6px; font-size: .9rem; }
.review__reply { margin: 6px 0 0; font-size: .9rem; }
.bypostauthor > .review__body .review__author::after { content: " ✓"; color: var(--ti-open); }

.review-form-wrap { margin-top: 18px; }
.review-form-wrap > summary { list-style: none; display: inline-flex; }
.review-form-wrap > summary::-webkit-details-marker { display: none; }
.review-form-wrap[open] > summary { display: none; }
.comment-respond { margin-top: 8px; }
.comment-reply-title { font-size: 1.15rem; display: flex; gap: 10px; align-items: baseline; }
.comment-reply-title small a { font: 500 .85rem var(--ti-font-body); }
.comment-form p { margin-bottom: 14px; }
.comment-form label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.comment-form .comment-form-cookies-consent label { display: inline; font-weight: 400; }
.comment-notes { color: var(--ti-muted); font-size: .9rem; }
.star-picker { border: 0; padding: 0; margin: 0 0 14px; }
.star-picker legend { font-weight: 600; margin-bottom: 6px; font-size: .95rem; padding: 0; }
.star-picker__stars { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.star-picker input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-picker label { width: 34px; height: 34px; cursor: pointer; margin: 0;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23e5d8c6' d='m12 2.5 2.9 6 6.6.9-4.8 4.6 1.2 6.5L12 17.4l-5.9 3.1 1.2-6.5L2.5 9.4l6.6-.9z'/%3E%3C/svg%3E") center / 30px no-repeat; transition: transform .1s; }
.star-picker label:hover, .star-picker label:hover ~ label, .star-picker input:checked ~ label {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23d4893a' d='m12 2.5 2.9 6 6.6.9-4.8 4.6 1.2 6.5L12 17.4l-5.9 3.1 1.2-6.5L2.5 9.4l6.6-.9z'/%3E%3C/svg%3E"); }
.star-picker label:hover { transform: scale(1.12); }
.star-picker input:focus-visible + label { outline: 3px solid var(--ti-gold); border-radius: 6px; }

/* ==========================================================================
   17. Listing extras: share, amenities, video, notices, report
   ========================================================================== */
.share { position: relative; }
.share > summary { list-style: none; }
.share > summary::-webkit-details-marker { display: none; }
.share__menu { position: absolute; z-index: 50; top: calc(100% + 8px); left: 0; min-width: 210px; list-style: none; margin: 0; padding: 8px; background: #fff; border-radius: 12px; box-shadow: var(--ti-shadow-lg); }
.share__menu a, .share__menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: 0; background: none; border-radius: 8px; color: var(--ti-ink); text-decoration: none; font: 500 .95rem var(--ti-font-body); cursor: pointer; text-align: left; }
.share__menu a:hover, .share__menu button:hover { background: var(--ti-bg-alt); }
.share__menu .ti-icon { width: 18px; height: 18px; color: var(--ti-primary); }

.amenities { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr)); gap: 8px 16px; }
.amenities a { display: flex; align-items: center; gap: 8px; color: var(--ti-ink); text-decoration: none; padding: 4px 0; }
.amenities a:hover { color: var(--ti-primary-dark); }
.amenities .ti-icon { color: var(--ti-open); width: 18px; height: 18px; }

.video-embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--ti-radius-sm); overflow: hidden; background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.badge-temp { background: #fbeccd; color: #8a5a10; }
.notice--warning { background: #fdf1d8; border: 1px solid #f0d9a6; color: #6b4708; margin-top: 24px; margin-bottom: 0; }

.last-updated { margin: 0; font-size: .85rem; color: var(--ti-muted); text-align: center; }
.report { background: var(--ti-surface); border-radius: var(--ti-radius); box-shadow: var(--ti-shadow); }
.report > summary { padding: 14px 18px; cursor: pointer; font-size: .92rem; font-weight: 600; color: var(--ti-muted); }
.report > summary:hover { color: var(--ti-primary-dark); }
.report[open] > summary { border-bottom: 1px solid var(--ti-line); }
.report .notice { margin: 14px 18px; }
.report__form { padding: 16px 18px 18px; }
.report__form .field { margin-bottom: 12px; }

.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr)); gap: 6px 14px; }
.check-grid .checkbox { font-weight: 400; margin: 0; }
.photo-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.photo-preview img { width: 76px; height: 76px; object-fit: cover; border-radius: 8px; }
.ti-popup__rating { font-size: .82rem; color: var(--ti-gold); font-weight: 700; }


/* ==========================================================================
   18. Mobile refinements
   ========================================================================== */
.ti-search__toggle { display: none; }
.ti-search__toggle .ti-icon { width: 18px; height: 18px; }

@media (max-width: 640px) {
	.container { padding-left: 16px; padding-right: 16px; }
	.section { padding: 32px 0; }
	.section__head { margin-bottom: 16px; }
	.section__head h2 { font-size: 1.35rem; }
	.page-hero { padding: 18px 0 22px; }
	.page-title { font-size: 1.7rem; }
	.page-title__icon { width: 44px; height: 44px; font-size: 1.4rem; border-radius: 12px; }
	.hero { padding: 36px 0 48px; }
	.hero__title { font-size: 1.9rem; }
	.hero__text { font-size: 1rem; margin-bottom: 22px; }

	.btn { white-space: normal; text-align: center; }
	.ti-form input[type="file"] { max-width: 100%; width: 100%; }
	.cta .btn { width: 100%; }
	/* Prevent iOS zoom on focus */
	input, select, textarea { font-size: 16px !important; }

	/* Search: compact bar, filters behind a toggle */
	.ti-search { border-radius: 16px; padding: 6px; gap: 6px; }
	.ti-search input, .ti-search select { min-height: 44px; }
	.ti-search--bar { flex-direction: row; flex-wrap: wrap; margin-top: 16px; }
	.ti-search--bar .ti-search__field--q { flex: 1 1 100%; order: 1; }
	.ti-search--bar .ti-search__field:not(.ti-search__field--q) { display: none; flex: 1 1 100%; order: 2; border-left: 0; border-top: 1px solid var(--ti-line); }
	.ti-search--bar.is-open .ti-search__field:not(.ti-search__field--q) { display: flex; }
	.ti-search--bar .ti-search__toggle { display: inline-flex; order: 3; flex: 1 1 0; }
	.ti-search--bar .btn-primary { order: 4; flex: 1 1 0; width: auto; }
	.ti-search--bar.has-filters .ti-search__toggle { border-color: var(--ti-primary); color: var(--ti-primary-dark); }
	.ti-search .btn { padding: 11px 14px; }

	/* A–Z as one swipeable row */
	.az-bar { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 12px; padding: 2px 16px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
	.az-bar::-webkit-scrollbar { display: none; }
	.az-bar a { flex: none; }
	.directory { padding-top: 16px; }
	.directory__toolbar { margin-bottom: 12px; }

	/* Company cards: compact horizontal layout */
	.company-grid, .company-grid--4 { grid-template-columns: 1fr; gap: 12px; }
	.company-card { flex-direction: row; border-radius: 12px; }
	.company-card:hover { transform: none; }
	.company-card__media { flex: none; width: 96px; aspect-ratio: auto; min-height: 112px; }
	.company-card__placeholder { font-size: 2rem; }
	.company-card__badges { top: 6px; left: 6px; }
	.company-card__badges .badge-featured { font-size: 0; padding: 4px; gap: 0; }
	.company-card__badges .badge-featured .ti-icon { width: 13px; height: 13px; }
	.company-card__pics { display: none; }
	.company-card__body { padding: 12px 14px; min-width: 0; }
	.company-card__cat { font-size: .72rem; margin-bottom: 2px; }
	.company-card__title { font-size: 1.05rem; margin-bottom: 4px; }
	.company-card__tagline { font-size: .88rem; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
	.company-card__meta { font-size: .85rem; margin-bottom: 6px; }
	.company-card__meta li { margin-bottom: 2px; }
	.company-card__foot:empty { display: none; }

	/* Category tiles: icon beside the text */
	.cat-tiles { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
	.cat-tiles__name { overflow-wrap: break-word; }
	.cat-tiles a { display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 8px; align-items: center; padding: 10px; border-radius: 12px; }
	.cat-tiles a:hover { transform: none; }
	.cat-tiles__icon { grid-row: span 2; width: 32px; height: 32px; margin: 0; font-size: 1rem; border-radius: 9px; }
	.cat-tiles__name { font-size: .82rem; line-height: 1.25; }
	.cat-tiles__count { font-size: .75rem; }

	/* Maps */
	.ti-map--home { height: 300px; }
	.ti-map--directory { height: 65vh; }
	.ti-map--full { height: calc(100vh - 190px); min-height: 380px; }
	.ti-map--single { height: 260px; }

	/* Single listing */
	.company-hero__logo { width: 72px; height: 72px; border-radius: 16px; }
	.company-hero__tagline { font-size: 1rem; }
	.action-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
	.action-bar > .btn-primary:first-child { grid-column: 1 / -1; }
	.action-bar > * { min-width: 0; }
	.action-bar .btn, .action-bar .share > summary { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	.action-bar .btn, .action-bar .share > summary { width: 100%; padding: 10px 8px; font-size: .92rem; }
	.share__menu { left: auto; right: 0; }
	.card { padding: 18px; }
	.card--flush { padding: 18px 0 0; }
	.card--flush .card__title { padding: 0 18px; }
	.ti-gallery { border-radius: 12px; }

	/* Footer */
	.site-footer { padding: 40px 0 20px; }
	.footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* WordPress core classes */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption-text, figcaption { font-size: .88rem; color: var(--ti-muted); text-align: center; }
.sticky, .bypostauthor, .gallery-caption { /* required by theme check */ }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
	.site-header, .site-footer, .action-bar, .ti-map, .view-toggle, .az-bar, .ti-search, .report, .review-form-wrap, .lightbox { display: none !important; }
}
