/* Soul Search — styles for the place, city and all-places pages (built by build-pages.js) */
*{margin:0;padding:0;box-sizing:border-box}
body{font-family:Dosis,Arial,sans-serif;background:#3a4a9a;color:#333;font-size:17px;line-height:1.5}
a{color:#3a4a9a}
.pg-head{text-align:center;padding:30px 20px 8px;color:#fff;background-color:#3a4a9a;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cg fill='%23ffffff'%3E%3Ccircle cx='20' cy='30' r='1.5' opacity='.35'/%3E%3Ccircle cx='90' cy='15' r='1' opacity='.25'/%3E%3Ccircle cx='140' cy='60' r='1.5' opacity='.3'/%3E%3Ccircle cx='60' cy='100' r='1' opacity='.25'/%3E%3Ccircle cx='120' cy='130' r='1.2' opacity='.3'/%3E%3Ccircle cx='30' cy='145' r='1' opacity='.2'/%3E%3Cpath d='M100 80l2 6 6 2-6 2-2 6-2-6-6-2 6-2z' opacity='.35'/%3E%3C/g%3E%3C/svg%3E")}
.pg-head img{width:180px}
.pg-head p{margin-top:4px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;opacity:.9}
.pg{max-width:1100px;margin:0 auto;padding:10px 20px 30px}
.crumbs{color:rgba(255,255,255,.75);font-size:15px;margin:6px 0 14px}
.crumbs a{color:#fff}
.pg-title{color:#fff;text-align:center;font-size:34px;text-transform:uppercase;letter-spacing:.03em;line-height:1.2}
.pg-sub{color:rgba(255,255,255,.85);text-align:center;margin:6px 0 22px;font-weight:600}
.block{margin-top:30px}
.block h2,.region-name{color:#fff;font-size:22px;text-transform:uppercase;letter-spacing:.04em;margin-bottom:12px}
.region{margin-top:34px}
.city-name{color:#fff;font-size:20px;margin:22px 0 10px}
.city-name a{color:#fff;text-decoration:none}
.city-name a:hover{text-decoration:underline}
.jump{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
.jump a{color:#fff;background:rgba(255,255,255,.15);padding:6px 14px;border-radius:20px;text-decoration:none;font-weight:600}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.city-chip{background:#f0f2fb;color:#3a4a9a;border-radius:20px;padding:6px 14px;font-size:15px;font-weight:600;text-decoration:none}
.city-chip span{opacity:.6;font-weight:500;margin-left:5px}
.city-chip:hover{background:#ffd700}
.more{text-align:center;margin-top:30px;color:#fff}
.more a{color:#fff;font-weight:600}
.fix{text-align:center;margin-top:8px;color:rgba(255,255,255,.7);font-size:15px}
.fix a{color:#ffd700}

/* small cards */
.mini-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:14px}
.mini{display:flex;flex-direction:column;background:#fff;border-radius:16px;overflow:hidden;text-decoration:none;color:#333;transition:transform .2s ease}
.mini:hover{transform:translateY(-4px)}
.mini-img{height:140px;display:flex;align-items:center;justify-content:center;font-size:44px}
.mini-img img{width:100%;height:100%;object-fit:cover}
.mini-body{padding:12px 14px 14px;display:flex;flex-direction:column;gap:2px}
.mini-body b{font-size:19px;color:#3a4a9a;line-height:1.2}
.mini-type{font-size:14px;color:#666}
.mini-svc{font-size:14px;color:#333}
.mini-extra{font-size:14px;color:#888}

/* full place card (same look as the Finding page) */
.institution-card{background:#fff;border-radius:20px;overflow:hidden}
.card-header{color:#fff;padding:25px;position:relative;min-height:170px}
.card-header-logo{position:absolute;top:25px;right:25px;width:200px;height:80px;display:flex;align-items:center;justify-content:center}
.card-header-logo img{max-width:100%;max-height:100%;object-fit:contain}
.institution-name{font-size:2.1em;font-weight:700;margin-bottom:14px;line-height:1.15;padding-right:220px}
.institution-type{background:rgba(255,255,255,.3);padding:6px 15px;border-radius:20px;font-size:.9em;display:inline-block;margin:0 8px 6px 0}
.quick-tags{margin-top:10px;display:flex;flex-wrap:wrap;gap:8px}
.tag{background:rgba(255,255,255,.2);padding:5px 12px;border-radius:15px;font-size:.85em}
.card-body{padding:25px}
.photo-gallery{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-bottom:20px}
.photo-item{position:relative;height:170px;border-radius:15px;background:#e1e5e9;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#666;font-size:2em;cursor:pointer;overflow:hidden}
.photo-item img{width:100%;height:100%;object-fit:cover}
.photo-item-label{font-size:.5em;font-weight:600}
.credit{position:absolute;right:4px;bottom:3px;max-width:95%;font-size:9px;line-height:1.2;color:#fff;background:rgba(0,0,0,.55);padding:1px 4px;border-radius:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.action-buttons{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:22px}
.btn{padding:12px 24px;border-radius:10px;font-weight:700;text-decoration:none;font-size:16px}
.btn-primary{background:#667eea;color:#fff}
.btn-secondary{background:#FFE66D;color:#333}
.btn:hover{box-shadow:0 4px 12px rgba(0,0,0,.2)}
.overview-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.info-section{background:#f8f9ff;padding:20px;border-radius:15px}
.info-section h2,.sec{color:#667eea;margin-bottom:12px;font-size:1.1em;text-transform:uppercase;letter-spacing:.04em}
.sec{margin:28px 0 14px}
.info-item{margin-bottom:9px;font-size:.95em;display:flex;gap:10px}
.event-card{background:#e8ebf7;padding:18px;border-radius:15px;margin-bottom:12px}
.event-card p,.program-card p{color:#666;font-size:.95em}
.event-date{background:#667eea;color:#fff;padding:4px 12px;border-radius:10px;display:inline-block;font-size:.9em;margin-bottom:8px}
.event-title{font-weight:700;font-size:1.1em}
.program-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:14px}
.program-card{background:#f8f9ff;padding:15px;border-radius:12px;border:2px solid #e1e5e9}
.program-icon{font-size:2em;margin-bottom:6px}
.program-name{font-weight:700}
.map-container{height:380px;border-radius:15px;overflow:hidden;background:#e1e5e9}
.map-container iframe{width:100%;height:100%;border:0}
.modal{display:none;position:fixed;z-index:2000;inset:0;background:rgba(0,0,0,.8);justify-content:center;align-items:center}
.modal.active{display:flex}
.modal-content{max-width:90%;max-height:80vh;object-fit:contain;border-radius:10px}
.pg-foot{background:#2a3a7a;color:#fff;padding:26px 20px;text-align:center;margin-top:40px}
.pg-foot a{color:#fff}

@media (max-width:768px){
  .pg-title{font-size:26px}
  .institution-name{font-size:1.6em;padding-right:0}
  .card-header-logo{display:none}
  .photo-gallery{grid-template-columns:repeat(2,1fr)}
  .photo-item{height:130px}
  .overview-grid{grid-template-columns:1fr}
}
