/* ================================================================
   COOGLE LOCATIONS — hub + town pages
   /var/www/staging.coogle.com.sg/wp-content/mu-plugins/location-templates/style.css
   ================================================================ */

/* ── Single-location page sections ────────────────────────────── */
.location-page section { max-width: 1100px; margin: 0 auto; padding: 40px 20px; }

.loc-hero-photo { max-width: none !important; padding: 0 !important; margin: 0 !important; }
.loc-hero-photo img { display: block; width: 100%; max-width: 800px; height: 360px; object-fit: cover; margin: 0 auto; }

.loc-hero-text { max-width: none !important; padding: 60px 20px !important; margin: 0 !important; background-color: #1a1a1a; color: #fff; text-align: center; }
.loc-hero-text__inner { max-width: 700px; margin: 0 auto; }
.loc-hero-text h1 { font-size: 2.2rem; margin-bottom: 10px; color: #fff; }
.loc-hero-text__line { font-size: 1.1rem; margin-bottom: 24px; }

.loc-region-tag { display: inline-block; background: rgba(255,255,255,.15); padding: 4px 12px; border-radius: 20px; font-size: .85rem; margin-bottom: 16px; }
.loc-cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-block; padding: 12px 28px; border-radius: 6px; text-decoration: none; font-weight: 600; }
.btn-whatsapp { background: #25D366; color: #fff; }
.btn-call { background: #fff; color: #1a1a1a; border: 2px solid #1a1a1a; }

.loc-subareas__grid,
.loc-services__grid,
.loc-trust__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.loc-subarea-card img { width: 100%; height: 140px; object-fit: cover; border-radius: 8px; }
.loc-service-card { display: block; padding: 20px; background: #f5f5f5; border-radius: 8px; text-align: center; text-decoration: none; color: #1a1a1a; font-weight: 600; }
.loc-trust-item { padding: 20px; background: #f5f5f5; border-radius: 8px; text-align: center; }

.loc-faq-item { border-bottom: 1px solid #e0e0e0; padding: 16px 0; }
.loc-other-areas__list { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; }
.loc-other-areas__list a { text-decoration: none; color: #1a1a1a; font-weight: 600; font-size: 14px; }
.loc-other-areas__list a:hover { text-decoration: underline; }

.loc-final-cta { text-align: center; background: #f0f0f0; border-radius: 12px; }
.loc-map { text-align: center; margin: 32px 0; }

/* ── Breadcrumb + back-link ────────────────────────────────────── */
.loc-breadcrumb { padding: 12px 24px 0; max-width: 900px; margin: 0 auto; }
.loc-breadcrumb__list { display: flex; flex-wrap: wrap; gap: 0; list-style: none; padding: 0; margin: 0; font-size: 13px; color: #888; }
.loc-breadcrumb__list li + li::before { content: " › "; padding: 0 6px; }
.loc-breadcrumb__list a { color: #29C4E0; text-decoration: none; }
.loc-breadcrumb__list a:hover { text-decoration: underline; }
.loc-back-link { padding: 6px 24px 0; max-width: 900px; margin: 0 auto; font-size: 13px; }
.loc-back-link a { color: #555; text-decoration: none; }
.loc-back-link a:hover { color: #29C4E0; text-decoration: underline; }

/* ── Hub: Hero ─────────────────────────────────────────────────── */
.loc-hub-hero { background: #f9f9f9; padding: 72px 24px; text-align: center; color: #1a1a1a; }
.loc-hub-hero__inner { max-width: 620px; margin: 0 auto; }
.loc-hub-hero__eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #29C4E0; margin: 0 0 12px; }
.loc-hub-hero h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 800; margin: 0 0 14px; color: #1a1a1a; line-height: 1.15; }
.loc-hub-hero__sub { font-size: 1.05rem; opacity: .8; margin: 0 0 28px; }
.loc-hub-hero__cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Shared hub buttons ────────────────────────────────────────── */
.loc-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; border-radius: 24px; font-size: 14px; font-weight: 700; text-decoration: none; transition: opacity .15s, transform .1s; cursor: pointer; }
.loc-btn:hover { opacity: .88; transform: translateY(-1px); }
.loc-btn--wa  { background: #25D366; color: #fff; }
.loc-btn--tel { background: #fff; color: #1a1a1a; border: 1px solid #ccc; }
.loc-btn--primary { background: #29C4E0; color: #fff; margin-top: 20px; justify-content: center; }

/* ── Filter bar ────────────────────────────────────────────────── */
.loc-filter-bar { display: flex; gap: 8px; padding: 14px 24px; background: #f7f7f7; border-bottom: 1px solid #e5e5e5; position: sticky; top: 64px; z-index: 50; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.loc-filter-bar::-webkit-scrollbar { display: none; }
.loc-filter-tab { flex-shrink: 0; padding: 7px 16px; border: 1px solid #ddd; border-radius: 20px; background: #fff; font-size: 13px; font-weight: 600; cursor: pointer; color: #444; transition: all .15s; font-family: inherit; }
.loc-filter-tab.active,
.loc-filter-tab:hover { background: #29C4E0; color: #fff; border-color: #29C4E0; }

/* ── Hub main layout ───────────────────────────────────────────── */
.loc-hub-main { display: grid; grid-template-columns: 340px 1fr; gap: 0 32px; max-width: 1240px; margin: 0 auto; padding: 32px 24px; align-items: start; }

/* ── Preview panel ─────────────────────────────────────────────── */
.loc-preview { position: sticky; top: 120px; background: #fff; border: 1px solid #e8e8e8; border-radius: 16px; padding: 28px 24px; box-shadow: 0 2px 16px rgba(0,0,0,.07); }
.loc-preview__prompt { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 32px 0; color: #bbb; text-align: center; }
.loc-preview__prompt p { font-size: 14px; margin: 0; }
.loc-preview__region-label { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #29C4E0; margin: 0 0 4px; }
.loc-preview__town { font-size: 1.5rem; font-weight: 800; margin: 0 0 16px; color: #111; }
.loc-preview__details { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: 13px; margin: 0 0 18px; }
.loc-preview__details dt { font-weight: 700; color: #555; white-space: nowrap; }
.loc-preview__details dd { margin: 0; color: #333; }
.lp-jobs-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #888; margin: 0 0 8px; }
.lp-job { background: #f6f6f6; border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; }
.lpj-svc { display: block; font-size: 13px; font-weight: 700; color: #111; }
.lpj-loc { display: block; font-size: 12px; color: #555; margin-top: 2px; }
.lpj-mo  { display: block; font-size: 11px; color: #888; margin-top: 1px; }
.loc-preview__cta { display: block; text-align: center; width: 100%; box-sizing: border-box; }

/* ── Card grid ─────────────────────────────────────────────────── */
.loc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 14px; }
.loc-card { border-radius: 12px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.1); cursor: pointer; transition: box-shadow .15s, transform .15s; background: #fff; border: 2px solid transparent; }
.loc-card:hover,
.loc-card.is-active { box-shadow: 0 6px 20px rgba(0,0,0,.12); transform: translateY(-2px); border-color: #29C4E0; }
.loc-card:focus { outline: 3px solid #29C4E0; outline-offset: 2px; }
.loc-card__media { aspect-ratio: 4/3; overflow: hidden; }
.loc-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.loc-card:hover .loc-card__media img { transform: scale(1.04); }
.loc-card__placeholder { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 12px; box-sizing: border-box; }
.loc-card__ph-town   { color: #fff; font-size: 1rem; font-weight: 800; text-align: center; line-height: 1.2; }
.loc-card__ph-region { color: rgba(255,255,255,.75); font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.loc-card__body  { padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.loc-card__town  { font-size: 12px; font-weight: 700; color: #111; }
.loc-card__badge { font-size: 10px; font-weight: 700; color: #fff; padding: 2px 8px; border-radius: 10px; white-space: nowrap; flex-shrink: 0; }

/* ── No-JS fallback ────────────────────────────────────────────── */
.loc-fallback { max-width: 900px; margin: 40px auto; padding: 0 24px; }
.loc-fallback h3 { font-size: 1.1rem; margin: 28px 0 8px; border-bottom: 2px solid #eee; padding-bottom: 6px; }
.loc-fallback ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 6px 16px; }
.loc-fallback li a { text-decoration: none; color: #1a1a1a; font-weight: 600; font-size: 14px; }
.loc-fallback li a:hover { text-decoration: underline; }

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 960px) {
	.loc-hub-main { grid-template-columns: 1fr; padding: 20px 16px; gap: 20px; }
	.loc-preview { position: static; order: -1; }
	.loc-preview__town { font-size: 1.25rem; }
}
@media (max-width: 600px) {
	.loc-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.loc-hub-hero { padding: 52px 20px; }
	.loc-hub-hero h1 { font-size: 1.7rem; }
	.loc-filter-bar { padding: 12px 16px; }
}
