.rome-hotels-intro, .rome-hotels, .rome-hotels-map {
    --nh-ink: #29231c;
    --nh-accent: #714829;
    --nh-border: #e0d5c4;
    --nh-paper: #faf7f0;
    color: var(--nh-ink);
    margin: 24px 0 34px;
}
.rome-hotels-intro h2:not(:first-child), .rome-hotels-map h2, .rome-hotels h2 { margin: 1.2em 0 .6em; }
.rome-hotels-intro__picks, .rome-hotels-intro__verdicts { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rome-hotels-intro__verdicts { display: flex; flex-wrap: wrap; margin-top: 12px; }
.rome-hotels-intro__verdict { flex: 1 1 225px; }
.rome-hotels-intro__pick { display: grid; align-content: start; padding: 12px; border: 1px solid var(--nh-border); background: var(--nh-paper); border-radius: 8px; color: var(--nh-ink); }
.rome-hotels-intro__pick.is-top { border-color: var(--nh-accent); }
.rome-hotels-intro__pick small { color: var(--nh-accent); }
.rome-hotels-intro__nav, .rome-hotels-intro__walk { display: flex; gap: 8px 16px; overflow-x: auto; margin: 12px 0 0; padding: 2px 3px 7px; }
.rome-hotels-intro__nav a, .rome-hotels-intro__walk li { white-space: nowrap; flex: 0 0 auto; }
.rome-hotels-intro__walk { list-style: none; }
.rome-hotels-intro__walk small { margin-left: 5px; }
p.rome-hotels-intro__disclosure { margin-top: 14px; font-size: .92em; }
.rome-hotel-card { margin: 0 0 22px; border: 1px solid var(--nh-border); border-radius: 12px; overflow: hidden; }
.rome-hotel-card__cover { position: relative; min-height: 175px; aspect-ratio: 16 / 9; background: #514537; overflow: hidden; display: flex; align-items: end; }

.nh-hotel-collection .rome-hotels .rome-hotel-card__cover img { position: absolute; inset: 0; box-sizing: border-box; width: 100%; max-width: none; height: 100%; object-fit: cover; margin: 0; padding: 0; border-radius: 0; }
.rome-hotel-card__facts { position: relative; box-sizing: border-box; width: 100%; padding: 14px 16px; background: rgb(24 20 15 / .86); color: #fff; }
.nh-hotel-collection .rome-hotels .rome-hotel-card__facts h3 { margin: 0; color: inherit; font-size: clamp(1.2rem, 3vw, 1.65rem); line-height: 1.25; text-align: left; }
.rome-hotel-card .rome-hotel-card__facts p { margin: 2px 0 0; color: inherit; }
.rome-hotel-card__tags { position: absolute; z-index: 1; top: 12px; left: 12px; display: flex; gap: 6px; }
.rome-hotel-card__tags span { padding: 3px 8px; border-radius: 4px; color: var(--nh-ink); background: var(--nh-paper); }
.rome-hotel-card__body { padding: 14px 16px 16px; }
.rome-hotel-card__body details { margin: .65em 0; }
.rome-hotel-card__body summary { cursor: pointer; font-weight: 650; }
.rome-hotel-card__actions { display: flex; gap: 10px; margin-top: 12px; }
.rome-hotel-card__actions a { min-height: 44px; display: grid; place-items: center; padding: 4px 14px; box-sizing: border-box; border: 1px solid var(--nh-accent); border-radius: 6px; }
.rome-hotel-card__actions .rome-hotel-card__booking { flex: 1; color: #fff; background: var(--nh-accent); }
.rome-hotels-map svg { width: 100%; display: block; height: auto; border-radius: 8px; }
.rome-hotels-map__canvas a:target rect, .rome-hotels-map__canvas a:focus-visible rect { stroke:#09518d; stroke-width:2px; rx:8px; }
.rome-hotel-card, .rome-hotels, .rome-hotels-map__legend li, .rome-hotels-map { scroll-margin-top: 85px; }
.rome-hotels-intro a:focus-visible, .rome-hotels a:focus-visible, .rome-hotels summary:focus-visible, .rome-hotels-map a:focus-visible { outline: 2px solid #2c5193; outline-offset: 2px; }
@media (max-width: 600px) {
    .rome-hotels-intro__picks { display: flex; overflow-x: auto; padding: 3px; }
    .rome-hotels-intro__pick { flex: 0 0 65%; }
}

/* Compact collection cards, scoped above the theme's article typography. */
.nh-hotel-collection .rome-hotels {
    display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,290px),1fr));
    align-items: stretch; grid-template-rows: auto; grid-auto-rows: 1fr; gap: 14px;
}
.rome-hotels > h2 { grid-column: 1 / -1; }
.nh-hotel-collection .rome-hotels .rome-hotel-card {
    display: flex; flex-direction: column; margin: 0; min-width: 0; background: #1c1d20; border: 1px solid #38393c; border-radius: 14px; color: #f8f8f9;
}
.rome-hotels .rome-hotel-card__cover { height: clamp(148px,40vw,178px); min-height: 0; aspect-ratio: auto; background: #30343a; }

body.nh-hotel-collection main .rome-hotels .rome-hotel-card__cover > img {
    display:block; position:absolute; inset:0; width:100% !important; height:100% !important;
    max-width:none !important; margin:0 !important; padding:0 !important; transform:none !important; scale:1; object-fit:cover; border-radius:0;
}
.rome-hotels .rome-hotel-card__tags { top:8px; left:9px; gap:5px; }
.rome-hotels .rome-hotel-card__tags span { font-family:inherit; font-size:12px; line-height:20px; font-weight:600; padding:0 7px; color:white; background:#17191c; }
.rome-hotels .rome-hotel-card__tags span + span { color:#ffdc96; background:#382915; }
.rome-hotels .rome-hotel-card__tags[data-badge="best-value"] span + span { background:#153927; color:#a9efbd; }
.rome-hotels .rome-hotel-card__facts { padding:22px 12px 9px; background:linear-gradient(transparent,rgba(12,13,16,.9)); }
body.nh-hotel-collection main .rome-hotels .rome-hotel-card__facts h3 { display:inline; font-size:18px; line-height:1.2; }
.rome-hotel-card__stars {
    position:absolute; top:8px; right:9px; z-index:1;
    padding:0 8px; border-radius:4px; background:#262119; color:#ffdc80;
    font-size:13px; line-height:22px; font-weight:700; white-space:nowrap;
}
body.nh-hotel-collection main .rome-hotels .rome-hotel-card__facts p { font-size:13px; line-height:1.35; margin:2px 0 0; color:#fff; }
.rome-hotels .rome-hotel-card__body {
    display: grid; flex: 1; align-content: stretch; grid-template-rows: minmax(42px, 1fr) minmax(24px, auto) minmax(44px, auto);
    gap: 4px; padding: 9px 12px 11px;
}
.rome-hotel-card__body > .rome-hotel-card__best { grid-row: 1; }
.rome-hotel-card__body > details, .rome-hotel-card__body > p:not(.rome-hotel-card__best) { grid-row: 2; }
.rome-hotels .rome-hotel-card__body > .rome-hotel-card__actions { grid-row: 3; margin: 0; align-self: end; }
.nh-hotel-collection .rome-hotels:has(details[open]) { grid-auto-rows: auto; align-items: start; }

body.nh-hotel-collection main .rome-hotels .rome-hotel-card__body p { margin:0 0 6px; color:#eee; font-size:15px; line-height:1.4; }
.rome-hotels .rome-hotel-card__body details { margin:3px 0 8px; }
.rome-hotels .rome-hotel-card__body summary, .rome-hotels .rome-hotel-card__body details a { color:#8bc6ff; font-size:14px; }
.rome-hotels .rome-hotel-card__actions { margin:6px 0 0; gap:8px; }
.rome-hotels .rome-hotel-card__actions a { color:#fff; border-color:#515660; border-radius:8px; font-size:15px; line-height:1.2; }
.rome-hotels .rome-hotel-card__actions .rome-hotel-card__booking { background:#226ac2; border-color:#226ac2; }
.rome-hotels .rome-hotel-card__map { width:46px; }

/* The hotel list shares the light surface and yellow accents of the Rome.us guide. */
.nh-hotel-collection .rome-hotels { grid-template-columns:minmax(0,1fr); }
body.nh-hotel-collection main .rome-hotels .rome-hotel-card { background:white; color:#232323; border-color:#d5d2c9; }
body.nh-hotel-collection main .rome-hotels .rome-hotel-card:is(:target, :has(> .rome-hotel-card__legacy-anchor:target)) {
    position:relative;
    border-color:transparent;
    box-shadow:0 0 6px 1px rgb(201 149 48 / 36%), 0 0 24px 3px rgb(206 159 62 / 32%);
}
.rome-hotels .rome-hotel-card:is(:target, :has(> .rome-hotel-card__legacy-anchor:target))::after {
    content:"";
    position:absolute;
    inset:0;
    z-index:2;
    border:2px solid #c89b42;
    border-radius:inherit;
    pointer-events:none;
}
body.nh-hotel-collection main .rome-hotels .rome-hotel-card__body p { color:#292929; }
body.nh-hotel-collection main .rome-hotel-card__body :is(summary,a:not(.rome-hotel-card__booking)) { color:#075394; }
body.nh-hotel-collection main .rome-hotel-card__body details a { text-decoration:underline; }
.rome-hotels .rome-hotel-card__facts { padding:8px 12px; background:rgba(12,14,16,.79); }
.rome-hotels .rome-hotel-card__tags[data-badge] span { color:#28200d; background:#ffd447; }
.rome-hotels-intro .rome-hotels-intro__nav a { padding:8px 13px; min-height:44px; box-sizing:border-box; display:flex; align-items:center; border:1px solid #d9d5cb; border-radius:24px; text-decoration:none; color:#302b22; }
.rome-hotels-intro .rome-hotels-intro__nav { gap:6px; }
.rome-hotels-intro .rome-hotels-intro__pick { position:relative; display:grid; grid-template-columns:64px minmax(0,1fr); align-items:center; gap:2px 10px; padding-right:24px; }
body.nh-hotel-collection main .rome-hotels-intro__pick img { grid-column:1; grid-row:1 / span 3; width:64px!important; height:64px!important; margin:0!important; object-fit:cover; border-radius:7px; }
.rome-hotels-intro__pick :is(strong,small,span) { grid-column:2; }
.rome-hotels-intro__pick i { position:absolute; right:6px; top:8px; font-style:normal; }
.rome-hotels-intro__pick span { font-size:12px; line-height:1.3; }
.rome-hotels-map__canvas { overflow:hidden; background:#f5f2e9; border-radius:12px; }
.rome-hotels-map__canvas svg { min-width:340px; max-width:500px; margin:auto; }
.rome-hotels-compare__scroll { overflow-x:auto; }
.rome-hotels-compare table { width:100%; border-collapse:collapse; font-size:14px; line-height:1.4; }
.rome-hotels-compare :is(td,th) { padding:9px; text-align:left; vertical-align:top; border-bottom:1px solid #dedbd4; }
.rome-hotels-compare thead { background:#f6f3eb; }
.rome-hotels-compare table { min-width:660px; }
@media(min-width:800px) {
    body.nh-hotel-collection main .rome-hotels .rome-hotel-card { display:grid; grid-template-columns:60% minmax(0,1fr); position:relative; }
    .rome-hotel-card__legacy-anchor { position:absolute; }
    .rome-hotels .rome-hotel-card__cover { align-self:stretch; height:auto; min-height:240px; }
    .rome-hotels .rome-hotel-card__body { padding:16px; }
}

/* Card details, price and touch targets. */
.rome-hotel-card__body:has(details[open]) > .rome-hotel-card__preview { display:none; }
.rome-hotels .rome-hotel-card__body summary { min-height:44px; display:flex; align-items:center; gap:6px; list-style-position:inside; }
.rome-hotels .rome-hotel-card__body summary { list-style:none; }
.rome-hotels .rome-hotel-card__body summary::-webkit-details-marker { display:none; }
.rome-hotels .rome-hotel-card__body summary::before { content:"▸"; font-size:.9em; }
.rome-hotels .rome-hotel-card__body details[open] > summary::before { content:"▾"; }
.rome-hotels .rome-hotel-card__body:has(details[open]) { grid-template-rows:auto; align-content:start; }
body.nh-hotel-collection main .rome-hotels .rome-hotel-card__body p.rome-hotel-card__price { grid-row:3; align-self:end; margin:0; font-size:14px; color:#3a3a3a; }
.rome-hotel-card__price:empty::before { content:"\00a0"; }
.rome-hotels .rome-hotel-card__body:has(.rome-hotel-card__price) { grid-template-rows:minmax(42px,1fr) minmax(24px,auto) auto minmax(44px,auto); }
.rome-hotels .rome-hotel-card__body:has(.rome-hotel-card__price) > .rome-hotel-card__actions { grid-row:4; }
.rome-hotels .rome-hotel-card__stars.is-type { color:#28200d; background:#fff; font-weight:600; }
body.nh-actions-low #toTop { opacity:0; pointer-events:none; transition:opacity .15s; }

/* Intro after H1 — compact editorial header (design review 18.11.2026). */
body.nh-hotel-collection main .rome-hotels-intro { margin:14px 0 26px; font-size:17px; line-height:1.45; }
body.nh-hotel-collection main .rome-hotels-intro h2 {
    margin:26px 0 10px !important; text-align:left; font-size:22px; line-height:1.25;
}
/* Byline: round avatar, one muted meta line. */
/* Picks: compact rows, no horizontal scroller. */
.rome-hotels-intro .rome-hotels-intro__pick { grid-template-columns:56px minmax(0,1fr); gap:1px 12px; padding:10px 34px 10px 10px; text-decoration:none; border-radius:10px; }
body.nh-hotel-collection main .rome-hotels-intro__pick img { width:56px!important; height:56px!important; border-radius:8px; }
.rome-hotels-intro__pick small { font-size:12px; line-height:1.3; font-weight:600; text-transform:uppercase; letter-spacing:.04em; }
.rome-hotels-intro__pick strong { font-size:16px; line-height:1.25; }
.rome-hotels-intro__pick span { color:#5c574e; }
.rome-hotels-intro__pick i { top:50%; right:12px; transform:translateY(-50%); color:var(--nh-accent); }
/* How to choose: a quiet tip box with markers instead of a second big heading block. */
.rome-hotels-intro__verdicts { margin-top:18px; }
.rome-hotels-intro__verdict { padding:14px 16px; background:var(--nh-paper); border:1px solid var(--nh-border); border-radius:10px; }
body.nh-hotel-collection main .rome-hotels-intro .rome-hotels-intro__verdict h2, body.nh-hotel-collection main .rome-hotels-intro .rome-hotels-intro__verdict h2:not(:first-child) { margin:0 0 8px !important; font-size:18px; }
body.nh-hotel-collection main .rome-hotels-intro__verdict ul { margin:0; padding:0; list-style:none; }
body.nh-hotel-collection main .rome-hotels-intro__verdict li { position:relative; margin:0 0 4px; padding-left:22px; font-size:16px; line-height:1.45; }
body.nh-hotel-collection main .rome-hotels-intro__verdict li::before { content:"✓"; position:absolute; left:0; top:0; color:var(--nh-accent); font-weight:700; }
/* Page nav: chips without a visible scrollbar. */
.rome-hotels-intro .rome-hotels-intro__nav { margin-top:16px; scrollbar-width:none; }
.rome-hotels-intro .rome-hotels-intro__nav::-webkit-scrollbar { display:none; }
.rome-hotels-intro .rome-hotels-intro__nav a { min-height:40px; padding:6px 14px; font-size:15px; }
body.nh-hotel-collection main p.rome-hotels-intro__disclosure { margin-top:10px; font-size:13px; line-height:1.4; color:#6b665d; }
@media (max-width:600px) {
    .rome-hotels-intro__picks { display:grid; grid-template-columns:minmax(0,1fr); overflow:visible; padding:0; gap:8px; }
    .rome-hotels-intro__pick { flex:none; }
}

/* Keep the editorial copy together and reserve spare height above the price. */
.rome-hotels .rome-hotel-card__body:has(.rome-hotel-card__reason) { display:flex; flex-direction:column; align-items:stretch; }
.rome-hotels .rome-hotel-card__reason details { margin:0; }
.rome-hotels .rome-hotel-card__reason details > summary { display:block; min-height:32px; font-size:15px; text-decoration:none; }
.rome-hotels .rome-hotel-card__reason details > summary::before { content:none; }
.rome-hotel-card__reason summary strong { color:#292929; }
.rome-hotel-card__reason .rome-hotel-card__excerpt { display:block; font-weight:400; line-height:1.4; color:#292929; }
.rome-hotel-card__tail { display:inline-block; white-space:nowrap; }
.rome-hotel-card__tail svg { vertical-align:-3px; margin-left:2px; color:#075394; }
.rome-hotel-card__reason details:not([open]) .rome-hotel-card__collapse,
.rome-hotel-card__reason details[open] .rome-hotel-card__excerpt { display:none; }
.rome-hotel-card__collapse { vertical-align:middle; transform:rotate(180deg); }
.rome-hotels .rome-hotel-card__body > .rome-hotel-card__reason { margin-bottom:auto; }
body.nh-hotel-collection main .rome-hotels .rome-hotel-card__body:has(.rome-hotel-card__reason) > :is(.rome-hotel-card__price,.rome-hotel-card__actions) { align-self:stretch; }
body.nh-hotel-collection main .rome-hotel-card__reason p.rome-hotel-card__excerpt { padding:0; }
.rome-hotel-card__reason summary .screen-reader-text { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }

body.nh-hotel-collection main ol.rome-hotels-map__legend {
    display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));
    gap:0 20px; margin:16px 0; padding:0; list-style:none;
}
body.nh-hotel-collection main .rome-hotels-map__legend li {
    margin:0; padding:0; border-bottom:1px solid #e4e0d8;
}
body.nh-hotel-collection main .rome-hotels-map__legend li::before { content:none; }
body.nh-hotel-collection main .rome-hotels-map__legend a {
    display:flex; align-items:center; gap:10px; min-height:44px; padding:4px 6px;
    color:#22445b; font-size:15px; line-height:1.35; text-decoration:none;
}
.rome-hotels-map__legend a:is(:hover,:focus-visible) { background:#f7f5ee; }
.rome-hotels-map__legend a:is(:hover,:focus-visible) > span:nth-child(2) { text-decoration:underline; }
.rome-hotels-map__number {
    display:grid; place-items:center; flex:0 0 26px; height:26px; border-radius:50%;
    background:#ffd447; color:#302918; font-size:13px; font-weight:700;
}
.rome-hotels-map__legend small { margin-left:auto; white-space:nowrap; }
.rome-hotels-compare__check { color:#236745; font-weight:700; }
.rome-hotels-intro__disclosure > span { display:block; }

/* Keep markers at the mobile scale while letting the geographic layer paint the desktop gutters. */
.rome-hotels-map .rome-hotels-map__canvas > svg { overflow:visible; display:block; width:100%; min-width:0; }
@media (width < 800px) {
    .rome-hotels-map .rome-hotels-map__canvas > svg { width:calc(100% - 32px); }
    /* Crop the map per collection to keep its outermost markers in view. */
    body.postid-713 .rome-hotels-map .rome-hotels-map__canvas > svg {
        margin-block:max(-27px, -5%) max(-24px, -4.5%);
    }
    body.postid-741 .rome-hotels-map .rome-hotels-map__canvas > svg {
        margin-block:max(-95px, -20%) max(-55px, -12%);
    }
    body.postid-1282 .rome-hotels-map .rome-hotels-map__canvas > svg {
        margin-block:max(-96px, -21%);
    }
    body.postid-1235 .rome-hotels-map .rome-hotels-map__canvas > svg {
        margin-block:max(-76px, -16%) max(-142px, -31%);
    }
    body.postid-1238 .rome-hotels-map .rome-hotels-map__canvas > svg {
        margin-block:max(-72px, -15%) max(-116px, -25%);
    }
    body.postid-1279 .rome-hotels-map .rome-hotels-map__canvas > svg {
        margin-block:max(-52px, -9%) max(-95px, -20%);
    }
    body.postid-1740 .rome-hotels-map .rome-hotels-map__canvas > svg {
        margin-block:max(-150px, -28%) max(-14px, -2.5%);
    }
    body.postid-1285 .rome-hotels-map .rome-hotels-map__canvas > svg {
        margin-block:max(-80px, -15%) max(-84px, -16%);
    }
    body.postid-881 .rome-hotels-map .rome-hotels-map__canvas > svg {
        margin-block:-21% -11%;
    }
}
@media (min-width:800px) {
    .rome-hotels-map .rome-hotels-map__canvas > svg { max-width:600px; }
}
@media (prefers-reduced-motion:no-preference) {
    html:has(body.nh-hotel-collection) { scroll-behavior:smooth; }
}
.rome-hotels-map__strip {
    position:relative; display:flex; align-items:center; background:#fbf8f1;
    border-top:1px solid #d8cdb8; color:#443629;
}
body.nh-hotel-collection main ul.rome-hotels-map__places {
    display:flex; align-items:center; gap:18px; flex:1; min-width:0; margin:0; padding:6px 12px;
    overflow-x:auto; scrollbar-width:none; list-style:none;
}
body.nh-hotel-collection main .rome-hotels-map__places li {
    display:flex; align-items:center; flex:none; gap:6px; margin:0; padding:0;
    white-space:nowrap; font-size:14px; line-height:1.3;
}
body.nh-hotel-collection main .rome-hotels-map__places li::before { content:none; }
body.nh-hotel-collection main .rome-hotels-map__places li > img { width:24px; max-width:24px; height:24px; margin:0; flex:0 0 24px; border-radius:0; animation:none; }
body.nh-hotel-collection main ul.rome-hotels-map__places::-webkit-scrollbar { display:none; width:0; height:0; }
.rome-hotels-map__strip :focus-visible { outline:2px solid #155a91; outline-offset:-3px; }
.rome-hotels-map__credit { display:block; margin-top:.3em; font-size:inherit; color:inherit; }
.rome-hotels-map__canvas { position:relative; }
.rome-hotels-map__popup {
    position:absolute; z-index:2; width:max-content; max-width:calc(100% - 12px);
    padding:9px 14px; border:1px solid #d8cdb8; border-radius:10px;
    background:#fffaf2; color:#34291f; box-shadow:0 3px 12px #43342229;
    font-size:15px; line-height:1.4; text-align:left;
}
.rome-hotels-map__popup strong { display:block; }
.rome-hotels-map__popup a { display:inline-block; padding:4px 0; color:#12568a; text-decoration:underline; }
.rome-hotels-map__poi:focus-visible { outline:2px solid #155a91; }
@media (pointer:coarse) {
    .rome-hotels-map__popup {
        position:relative; inset:auto !important; width:100%; max-width:none;
        border-radius:0; box-shadow:none;
    }
    .rome-hotels-map__popup:not([hidden]) { display:flex; align-items:center; justify-content:space-between; gap:12px; }
    .rome-hotels-map__popup a { display:inline-flex; align-items:center; gap:4px; min-height:44px; }
}

.rome-hotels-compare__rank {
    display: inline-grid;
    place-items: center;
    min-width: 1.55em;
    height: 1.55em;
    margin-inline-end: .3em;
    border-radius: 50%;
    background: #332e28;
    color: #fff;
    font-variant-numeric: tabular-nums;
}
.rome-hotel-card .rome-hotel-card__quote-room {
    display: block;
    margin: 0;
    font-size: .875em;
    line-height: 1.35;
}
