/* Pittoresco - global styles */

:root{
  --bg1:#cbe0ee;
  --bg2:#0674b9;

  --card: rgba(255,255,255,.86);
  --card2: rgba(255,255,255,.92);

  --text:#0c2233;
  --muted:#355262;

  --shadow: 0 12px 26px rgba(0,0,0,.16);
  --shadow-soft: 0 8px 18px rgba(0,0,0,.12);

  --radius: 18px;
  --radius-sm: 14px;
  --ring: 0 0 0 3px rgba(6,116,185,.25);
}

*{ box-sizing:border-box; }

html, body{
  height:100%;
}

body{
  margin:0;
  font-family: "Open Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background: linear-gradient(var(--bg1), var(--bg2)) fixed;
}

/* Header */
.site-header{
  max-width:1100px;
  margin: 0 auto;
  padding: 22px 16px 8px;
  display:flex;
  align-items:center;
  gap:14px;
}

.logo{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  color:inherit;
}

.site-title{
  font-family:"Cormorant Garamond", serif;
  font-weight:700;
  letter-spacing:.2px;
  font-size: 34px;
  line-height: 1.05;
}

.site-tagline{
  margin-top:2px;
  font-size:13px;
  color: rgba(0,0,0,.55);
}

/* Nav */
.site-nav{
  max-width:1100px;
  margin: 0 auto;
  padding: 0 16px 12px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.nav-link{
  text-decoration:none;
  background: rgba(255,255,255,.85);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
  box-shadow: 0 6px 16px rgba(0,0,0,.10);
}

.nav-link:hover{
  background: rgba(255,255,255,.95);
}

.nav-link.is-active{
  background: #fff;
  box-shadow: var(--shadow-soft);
}

/* Layout */
.container{
  max-width:1100px;
  margin:0 auto;
  padding: 10px 16px 44px;
}

.hero{
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  margin-bottom: 16px;
}

.hero p{
  margin:0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.warn{
  background: rgba(255,255,255,.92);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  margin: 16px 0;
}

.grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  align-items: stretch;
}

.card{
  background: var(--card2);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
  text-decoration:none;
  color:inherit;
  display:flex;
  flex-direction:column;
  height: 100%;
}

.thumb{
  width:100%;
  aspect-ratio: 2 / 3;
  background: rgba(255,255,255,.65);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

.thumb img{
  width:100%;
  height:100%;
  object-fit: contain;
  display:block;
}

.card .body{
  padding: 12px 12px 14px;
}

.publine{
  font-size: 12px;
  color: rgba(0,0,0,.55);
  margin-bottom: 6px;
  display:flex;
  align-items:center;
  gap: 8px;
  flex-wrap: wrap;
}

.badge{
  display:inline-flex;
  align-items:center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  background: rgba(6,116,185,.12);
  color: rgba(0,0,0,.75);
}

.card h2{
  margin:0;
  font-family:"Cormorant Garamond", serif;
  font-size: 22px;
  line-height: 1.1;
}

.subplace{
  margin-top: 6px;
  font-size: 13px;
  color: rgba(0,0,0,.65);
  line-height: 1.45;
}

.crumbs{
  margin: 6px 0 14px;
  color: rgba(0,0,0,.55);
  font-size: 13px;
}

.crumbs a{
  color: inherit;
  text-decoration: none;
}

.crumbs a:hover{
  text-decoration: underline;
}

/* Buttons */
.btn-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin: 12px 0 18px;
}

.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  text-decoration:none;
  background: rgba(255,255,255,.92);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14px;
  box-shadow: var(--shadow-soft);
}

.btn:hover{
  background: #fff;
}

.btn:focus{
  outline: none;
  box-shadow: var(--shadow-soft), var(--ring);
}

/* Homepage */
.home-wrap{
  background: rgba(255,255,255,.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

.home-title{
  margin:0 0 10px 0;
  font-family:"Cormorant Garamond", serif;
  font-size: 52px;
  line-height: 1.02;
}

.home-sub{
  margin:0 0 14px 0;
  color: rgba(0,0,0,.70);
  line-height: 1.7;
  font-size: 15px;
  max-width: 820px;
}

/* Detail (card) */
.detail{
  background: rgba(255,255,255,.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}

.detail-top{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
}

.detail-img{
  flex: 1 1 360px;
  max-width: 560px;
  border-radius: var(--radius-sm);
  overflow:hidden;
  background: rgba(255,255,255,.7);
}

.detail-img img{
  width:100%;
  height:auto;
  display:block;
}

.detail-text{
  flex: 2 1 360px;
  min-width: 280px;
}

.detail-title{
  font-family:"Cormorant Garamond", serif;
  font-size: 44px;
  margin: 0 0 8px 0;
  line-height: 1.05;
}

.detail-sub{
  font-size: 15px;
  color: rgba(0,0,0,.65);
  margin: 0 0 12px 0;
  line-height: 1.5;
}

.detail-desc{
  font-size: 15px;
  color: rgba(0,0,0,.80);
  line-height: 1.7;
  white-space: pre-line;
}

/* Map */
.map-card{
  background: rgba(255,255,255,.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}

#map{
  width:100%;
  height: 72vh;
  min-height: 520px;
}

.map-bar{
  padding: 12px 14px;
  border-bottom: 1px solid rgba(0,0,0,.08);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.map-bar .hint{
  color: rgba(0,0,0,.65);
  font-size: 13px;
  line-height: 1.4;
}

@media (max-width: 520px){
  .site-title{ font-size: 30px; }
  .home-title{ font-size: 44px; }
  .detail-title{ font-size: 36px; }
  #map{ min-height: 420px; }
}
