/* Category pages (/listing_category/…) – extras on top of town.css */
.ctowns{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
a.ct{position:relative;display:block;height:150px;overflow:hidden;color:#fff;text-decoration:none;background:#1d3f63}
a.ct img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .6s}
a.ct:hover img{transform:scale(1.05)}
a.ct::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(10,26,51,0) 30%,rgba(10,26,51,.82) 100%)}
a.ct .ctb{position:absolute;left:16px;right:52px;bottom:14px;z-index:1;display:flex;flex-direction:column}
a.ct .ctb b{font:800 19px/1.15 var(--hf);letter-spacing:-.01em}
a.ct .ctb small{font:600 13px var(--bf);color:#E2C47E;margin-top:3px}
a.ct .karr{position:absolute;right:14px;bottom:14px;z-index:1}
.near .cn{font-size:12.5px;opacity:.65}
.ch3{font:700 15px var(--bf);color:#C8DCE8;margin:28px 0 0;letter-spacing:.01em}
.pmore.dk{margin-top:26px;color:#C8DCE8}
.pmore.dk a{color:var(--gold)}
.cmap{max-width:720px;justify-self:end}
@media (max-width:1000px){
  .ctowns{grid-template-columns:repeat(3,minmax(0,1fr))}
  .cmap{max-width:none;justify-self:stretch}
}
@media (max-width:760px){
  .ctowns{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  a.ct{height:120px}
  a.ct .ctb{left:12px;right:40px;bottom:11px}
  a.ct .ctb b{font-size:16px}
  a.ct .karr{right:10px;bottom:11px}
  /* Long town filter rows scroll sideways on phones instead of filling the screen */
  #places .filters{flex-wrap:nowrap;overflow-x:auto;margin:0 -18px 20px;padding:0 18px 6px;scrollbar-width:none}
  #places .filters::-webkit-scrollbar{display:none}
  #places .filters a{flex:0 0 auto}
}
