/* Scotland: compact photo-led country tiles matching established DANZO country layout.
   Scoped to Scotland-only stylesheet; shared DANZO styling is untouched. */
#heritage.heritage{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;align-items:stretch}
#heritage .hcard{position:relative;display:flex;flex-direction:column;min-width:0;min-height:365px;padding:0 0 16px;overflow:hidden;border:1px solid #e3e7ef;border-radius:8px;background:#fff;box-shadow:0 6px 24px rgba(13,27,54,.07)}
#heritage .hcard .art,#heritage.heritage.photo-top .hcard .art{position:relative;inset:auto;width:100%;height:145px;flex:0 0 145px;margin:0 0 12px;display:block;overflow:hidden;background:#e6edf1}
#heritage .hcard .art img,#heritage.heritage.photo-top .hcard .art img{width:100%;height:100%;display:block;object-fit:cover;-webkit-mask-image:none!important;mask-image:none!important}
#heritage .hcard .ico,#heritage.heritage.photo-top .hcard .ico{position:relative;top:auto;inset:auto;margin:0 14px 7px;padding:0;width:25px;height:25px;flex:0 0 25px;background:none;box-shadow:none;color:#0d1b36}
#heritage .hcard h3,#heritage .hcard p,#heritage .hcard ul,#heritage.heritage.photo-top .hcard h3,#heritage.heritage.photo-top .hcard p,#heritage.heritage.photo-top .hcard ul{position:relative;z-index:1;max-width:none;width:auto;margin-inline:14px;overflow-wrap:anywhere;text-shadow:none}
#heritage .hcard h3{font-size:17px;line-height:1.2;margin-bottom:6px;color:#0d1b36}
#heritage .hcard p,#heritage .hcard li{font-size:12.5px;line-height:1.55;color:#4b5971}
#heritage .hcard ul{padding-inline-start:17px}
#heritage .hcard .pill-btn{margin:auto 14px 0;align-self:flex-start;max-width:calc(100% - 28px);box-sizing:border-box;white-space:normal;min-height:36px}
/* Famous Places: five landscape photos on one row, navy captions below, like the country reference. */
#places.places{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:11px}
#places .place{display:flex;flex-direction:column;position:relative;height:195px;aspect-ratio:auto;min-width:0;overflow:hidden;background:#e6edf1;border-radius:7px;box-shadow:0 5px 15px rgba(13,27,54,.08)}
#places .place>img{display:block;flex:1 1 auto;min-height:0;width:100%;height:136px;object-fit:cover;transition:transform .3s}
#places .place:hover>img{transform:scale(1.03)}
#places .place::after{content:none!important;display:none!important}
#places .place>span{position:relative;inset:auto;bottom:auto;flex:0 0 59px;display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;background:#0d1b36;color:#fff;padding:8px 10px;font-size:14px;line-height:1.25;text-shadow:none;font-family:var(--serif);font-weight:700;overflow-wrap:anywhere}
#places .place .ext{top:8px;inset-inline-end:8px}
#places .place.with-desc{height:195px;min-height:195px}
#places .place.with-desc .pimg{height:136px;flex:1 1 auto}
#places .place.with-desc .pband{background:#0d1b36;padding:8px 10px}
#places .place.with-desc .pband b{font-size:14px;color:white}
/* Fail clearly, not with a fake colorful placeholder. */
.dcard .ph{background:#e6edf1}
.img-missing,.dcard .ph.img-missing,#places .place.img-missing,#heritage .hcard .art.img-missing{background:#e6edf1!important}
img[data-scotland-photo-failed="true"]{opacity:0}
.scotland-photo-unavailable{position:absolute;inset:0 0 59px;display:flex;align-items:center;justify-content:center;text-align:center;padding:12px;background:#e6edf1;color:#526072;font-size:12px;font-weight:600;line-height:1.4}
html[dir="rtl"] #heritage .hcard{text-align:right}
html[dir="rtl"] #places .place>span{text-align:right}
@media(max-width:1100px){#heritage.heritage{grid-template-columns:repeat(2,minmax(0,1fr))}#places.places{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:670px){#heritage.heritage{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}#heritage .hcard{min-height:370px}#heritage .hcard .art,#heritage.heritage.photo-top .hcard .art{height:110px;flex-basis:110px}#heritage .hcard h3{font-size:16px}#heritage .hcard p{font-size:12px}#places.places{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}#places .place{height:188px}#places .place>span{font-size:13px;flex-basis:59px}}
@media(max-width:390px){#heritage.heritage{grid-template-columns:1fr}#heritage .hcard{min-height:0}#heritage .hcard .art,#heritage.heritage.photo-top .hcard .art{height:150px;flex-basis:150px}#heritage .hcard .pill-btn{margin-top:15px}}

/* Scotland: graceful YouTube embed fallback */
.danzo-video-player{display:grid;gap:10px}.danzo-video-player .vframe{width:100%;aspect-ratio:16/9;display:block;min-height:240px;border:0;border-radius:18px}.danzo-direct-youtube{display:inline-flex;align-items:center;justify-content:center;justify-self:center;padding:10px 20px;border-radius:999px;background:#0e1b36;color:white!important;font-weight:700;text-decoration:none}

/* Scotland-only related card sizing: match the compact Peru reference. */
body:has(#related) #rgrid.rgrid { display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); max-width:1160px; margin-inline:auto; gap:16px; }
body:has(#related) #rgrid .rcard {aspect-ratio: 3/4; background:#12284b;}
body:has(#related) #rgrid .rcard::after {background:linear-gradient(0deg,rgba(7,16,42,.86) 0%,rgba(7,16,42,.12) 45%,transparent 80%);}
body:has(#related) #rgrid .rcard:nth-child(n)::after {background:linear-gradient(0deg,rgba(7,16,42,.86) 0%,rgba(7,16,42,.12) 45%,transparent 80%);}
body:has(#related) #rgrid .rcard .r-ph img{object-fit:cover;object-position:center center;filter:none;}
body:has(#related) #rgrid .rcard b{font-size:15.5px;line-height:1.4;inset-inline:14px;bottom:14px;}

@media(max-width:640px){body:has(#related) #rgrid.rgrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}body:has(#related) #rgrid .rcard b{font-size:14px;}}
/* No artificial fake badges, gradients never masquerade as photographs. */

/* Netherlands high-resolution photo visibility repair: original Scotland geometry untouched. */
.dcard .ph img, .rcard .r-ph img, .door-ph img, .hcard .art img {display:block!important;visibility:visible!important;opacity:1!important;object-fit:cover!important;}
body:has(#related) #rgrid .rcard::after {background:linear-gradient(0deg,rgba(7,16,42,.77) 0%,rgba(7,16,42,.05) 43%,transparent 72%)!important;}
