/* GM Directory Engine — directory views in the HappySmile demo style (brand tokens from the child theme) */

/* Hero */
.gmde-hero { position: relative; color: #fff; text-align: center; padding: 200px 0 90px; background: var(--gcd-navy, #173441) var(--gmde-hero, none) center / cover no-repeat; }
.gmde-hero::before { content: ""; position: absolute; inset: 0; background: rgba(23, 52, 65, .78); }
.gmde-hero > .container { position: relative; max-width: 960px; }
.gmde-hero .gcd-eyebrow { color: #fff; justify-content: center; }
.gmde-hero h1 { color: #fff; margin: 0 0 16px; font-size: clamp(36px, 5.5vw, 66px); line-height: 1.06; font-weight: 700; letter-spacing: -1px; }
.gmde-hero-lead { font-size: 18px; line-height: 1.6; color: rgba(255, 255, 255, .88); max-width: 720px; margin: 0 auto 18px; }
@media (max-width: 1024px) { .gmde-hero { padding: 70px 0 56px; } }

.gmde-breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; justify-content: center; }
.gmde-breadcrumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.gmde-hero .gmde-breadcrumbs, .gmde-hero .gmde-breadcrumbs a { color: #E8F4F3; }

/* Sections */
.gmde-main { padding: 0; }
.gmde-section { padding: 100px 0; }
.gmde-grey { background: var(--gcd-bg, #F6F8F9); }
@media (max-width: 767px) { .gmde-section { padding: 60px 0; } }
.gmde-section .container { max-width: 1240px; padding-left: 20px; padding-right: 20px; }

/* Content + aside split */
.gmde-split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
@media (max-width: 991px) { .gmde-split { grid-template-columns: 1fr; } }
.gmde-content { background: #fff; border-radius: 22px; padding: 44px 48px; }
@media (max-width: 767px) { .gmde-content { padding: 26px 20px; } }
.gmde-content h2 { font-size: 30px; line-height: 1.2; margin: 36px 0 14px; letter-spacing: -0.3px; }
.gmde-content h2:first-child { margin-top: 0; }
.gmde-content h3 { font-size: 21px; margin: 26px 0 10px; }
.gmde-content p, .gmde-content li { font-size: 16.5px; line-height: 1.75; color: var(--gcd-text-2, #52656B); }
.gmde-content ul { padding-left: 0; list-style: none; }
.gmde-content ul li { position: relative; padding-left: 28px; margin-bottom: 8px; }
.gmde-content ul li::before { content: "\2197"; position: absolute; left: 0; color: var(--gcd-teal, #008F95); font-weight: 700; }
.gmde-content a { text-decoration: underline; text-underline-offset: 3px; }
.gmde-aside { display: grid; gap: 20px; position: sticky; top: 110px; }
.gmde-aside-card { background: #fff; border: 1px solid var(--gcd-border, #E3EAEC); border-radius: 22px; padding: 26px 24px; }
.gmde-aside-card h3 { font-size: 20px; margin: 0 0 14px; }
.gmde-aside-card h3 a { color: var(--gcd-navy, #173441); }
.gmde-aside-card .gcd-btn { margin: 13px 0 0 7px; display: block; text-align: center; padding-left: 14px; padding-right: 14px; font-size: 13px; }
.gmde-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }

/* Empty state + cards */
.gmde-empty-card { max-width: 760px; margin: 0 auto; text-align: center; background: var(--gcd-mint, #E8F4F3); border-radius: 22px; padding: 30px 28px; }
.gmde-empty-card p { margin: 0 0 8px; color: var(--gcd-navy, #173441); }
.gmde-empty, .gmde-note { color: var(--gcd-text-2, #52656B); }
.gmde-card-wrap { background: #fff; border: 1px solid var(--gcd-border, #E3EAEC); border-radius: 22px; padding: 28px; }
.gmde-cards { list-style: none; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.gmde-card { border: 1px solid var(--gcd-border, #E3EAEC); border-radius: 22px; padding: 24px; background: #fff; }
.gmde-card h3 { margin: 0 0 6px; font-size: 21px; }

/* Tiles */
.gmde-tiles { list-style: none; margin: 12px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.gmde-tiles li { display: flex; }
.gmde-tiles a { flex: 1; display: flex; align-items: center; padding: 14px 18px; border: 1px solid var(--gcd-border, #E3EAEC); border-radius: 14px; background: #fff; text-decoration: none; color: var(--gcd-navy, #173441); font-weight: 500; transition: background .2s, border-color .2s; }
.gmde-tiles a:hover { background: var(--gcd-mint, #E8F4F3); border-color: var(--gcd-teal, #008F95); }
.gmde-tiles-compact { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.gmde-tiles-stack { grid-template-columns: 1fr; gap: 8px; margin: 0; }
.gmde-tiles-stack a { padding: 11px 14px; }
.gmde-tiles-center { display: flex; flex-wrap: wrap; justify-content: center; max-width: 1060px; margin: 10px auto; }
.gmde-tiles-center li { flex: 0 0 auto; }
.gmde-tiles-center a { white-space: nowrap; padding: 13px 20px; }

/* Locations hub */
.gmde-locations { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; }
.gmde-locations section { background: #fff; border: 1px solid var(--gcd-border, #E3EAEC); border-radius: 22px; padding: 24px; }
.gmde-locations h3 { font-size: 21px; line-height: 1.25; margin: 0 0 10px; letter-spacing: 0; }
.gmde-locations h3 a { color: var(--gcd-navy, #173441); }
.gmde-locations ul { list-style: none; padding: 0; margin: 0; columns: 2; }
.gmde-locations li { margin: 0 0 6px; font-size: 15px; }

/* Prices table */
.gmde-table-wrap { overflow-x: auto; }
.gmde-prices { width: 100%; border-collapse: collapse; }
.gmde-prices th, .gmde-prices td { padding: 12px 14px; border-bottom: 1px solid var(--gcd-border, #E3EAEC); text-align: left; }
.gmde-prices caption { text-align: left; font-weight: 600; padding-bottom: 8px; }
.gmde-stale { font-size: 12px; color: #8a5a00; }

/* CTA band */
.gmde-cta-band { background: #fff; border-top: 1px solid var(--gcd-border, #E3EAEC); }
.gmde-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.gmde-cta-inner .gcd-section-title { font-size: 40px; margin-bottom: 8px; }
.gmde-cta-inner .gcd-lead { margin: 0; }
@media (max-width: 767px) { .gmde-cta-inner { flex-direction: column; align-items: flex-start; } }

/* Search form */
.gmde-search { display: grid; grid-template-columns: 1.2fr 1.2fr 1fr auto; gap: 12px; align-items: end; background: #fff; padding: 18px; border-radius: 14px; box-shadow: 0 10px 30px rgba(23, 52, 65, .12); text-align: left; }
.gmde-field label { display: block; font-size: 14px; font-weight: 600; color: var(--gcd-navy, #173441); margin-bottom: 6px; }
.gmde-field label span { font-weight: 400; color: var(--gcd-text-2, #52656B); }
.gmde-field select, .gmde-field input { width: 100%; height: 48px; padding: 0 12px; border: 1px solid var(--gcd-border, #E3EAEC); border-radius: 10px; background: #fff; font: inherit; color: var(--gcd-charcoal, #333); }
.gmde-search-btn { height: 48px; padding: 0 26px; font-weight: 600; white-space: nowrap; }
@media (max-width: 900px) { .gmde-search { grid-template-columns: 1fr; } .gmde-search-btn { width: 100%; } }
