/* Plan a City — shared site chrome */
:root{
  --ink:#0f172a;
  --muted:#3b4453;
  --line:#e6e9f0;
  --bg:#f6f7fb;
  --card:#fff;
  --navy:#0b1f3a;
  --teal:#0ea5a4;
  --sun:#ff7a45;
  --gold:#ffb703;
  --shadow:0 10px 30px rgba(11,31,58,.08);
  --rad:22px;
  --head:64px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body.pc-body{
  margin:0;
  background:#fff;
  color:var(--ink);
  font-family:Inter,"Inter var",system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  line-height:1.5;
}
.pc-skip{position:absolute;left:-999px;top:auto}
.pc-skip:focus{left:12px;top:12px;z-index:80;background:#fff;padding:8px 12px;border-radius:8px}
.pc-disclose{
  background:#0b1f3a;
  color:#fff;
  font-size:15px;
  text-align:center;
  padding:8px 16px;
}
.pc-disclose a{color:#fff;text-decoration:underline}
@media (max-width:700px){
  .pc-disclose{font-size:15px;padding:7px 12px;line-height:1.4}
}

/* Header */
.pc-head{
  position:sticky;top:0;z-index:50;
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(12px);
  border-bottom:1px solid var(--line);
}
.pc-head-in{
  max-width:1180px;margin:0 auto;
  padding:10px 16px 10px;
  display:grid;
  grid-template-columns:auto 1fr auto;
  grid-template-areas:"brand search nav";
  gap:12px 18px;
  align-items:center;
}
.pc-brand{
  grid-area:brand;
  display:flex;align-items:baseline;gap:.4rem;
  text-decoration:none;color:var(--navy);font-weight:850;
  letter-spacing:-.03em;font-size:1.15rem;white-space:nowrap;
}
.pc-brand small{font-weight:600;color:var(--muted);letter-spacing:0;font-size:13px;text-transform:uppercase}
.pc-nav{
  grid-area:nav;
  display:flex;gap:4px;flex-wrap:wrap;justify-content:flex-end;
}
.pc-nav a{
  color:var(--ink);text-decoration:none;font-weight:600;font-size:15px;
  padding:8px 10px;border-radius:999px;min-height:44px;display:inline-flex;align-items:center;
}
.pc-nav a:hover,.pc-nav a[aria-current="page"]{background:var(--bg);color:var(--navy)}
.pc-search{grid-area:search;position:relative;min-width:0;max-width:420px;justify-self:stretch}
.pc-search input[type="search"]{
  width:100%;height:44px;border:1px solid var(--line);border-radius:999px;
  padding:0 16px 0 40px;font:inherit;font-size:1rem;background:#fff var(--search-icon) 14px 50%/16px no-repeat;
  color:var(--ink);outline:none;
  --search-icon:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6475' stroke-width='2' stroke-linecap='round'><circle cx='11' cy='11' r='7'/><path d='M20 20l-3.5-3.5'/></svg>");
}
.pc-search input[type="search"]:focus{border-color:var(--teal);box-shadow:0 0 0 3px rgba(14,165,164,.2)}
.pc-suggest{
  position:absolute;left:0;right:0;top:calc(100% + 6px);
  background:#fff;border:1px solid var(--line);border-radius:16px;
  box-shadow:var(--shadow);padding:6px;margin:0;list-style:none;
  max-height:min(70vh,420px);overflow:auto;z-index:60;
}
.pc-suggest[hidden]{display:none}
.pc-suggest li{margin:0}
.pc-suggest a,.pc-suggest .pc-soon{
  display:block;padding:10px 12px;border-radius:12px;text-decoration:none;color:var(--ink);
  min-height:44px;
}
.pc-suggest a:hover,.pc-suggest a[aria-selected="true"],.pc-suggest a:focus{
  background:#f0fbfa;outline:none;
}
.pc-suggest .pc-soon{color:var(--muted);cursor:default}
.pc-suggest b{display:block;font-size:.98rem}
.pc-suggest span{display:block;font-size:15px;color:var(--muted)}
.pc-suggest .pc-empty{padding:12px;color:var(--muted);font-size:.9rem}
@media(max-width:720px){
  .pc-head-in{
    grid-template-columns:1fr;
    grid-template-areas:"brand" "nav" "search";
  }
  .pc-brand small{display:none}
  .pc-search{max-width:none;justify-self:stretch}
  .pc-nav{justify-content:flex-start;gap:2px}
  .pc-nav a{padding:8px 10px;font-size:15px;min-height:40px}
}
/* Homepage */
.pc-hero{
  position:relative;color:#fff;
  min-height:min(62vh,520px);
  display:flex;align-items:flex-end;
  overflow:hidden;
  background:radial-gradient(120% 80% at 75% 20%,#ffd28a 0%,#ff8a5c 28%,#e2477a 52%,#5b2a86 74%,#0b1f3a 100%);
  background-color:#0b1f3a;
}
.pc-hero::before{
  content:"";position:absolute;right:-30px;top:-30px;width:180px;height:180px;border-radius:50%;
  background:radial-gradient(circle,#ffe3a3 0 35%,rgba(255,227,163,.25) 36% 60%,transparent 61%);
  z-index:0;pointer-events:none;
}
.pc-hero::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(11,31,58,.10) 0%,rgba(11,31,58,.20) 50%,rgba(11,31,58,.36) 100%);
}
.pc-hero-in{position:relative;z-index:1;max-width:1180px;margin:0 auto;padding:48px 20px 28px;width:100%}
.pc-kicker{text-transform:uppercase;letter-spacing:.12em;font-size:13px;font-weight:700;color:#ffe08a;margin:0 0 .6rem}
.pc-hero h1{font-size:clamp(2rem,6vw,3.4rem);letter-spacing:-.04em;line-height:1.1;margin:0 0 .5rem;font-weight:850}
.pc-hero .pc-lede{font-size:clamp(1.02rem,2vw,1.25rem);max-width:34em;color:#fff;margin:0 0 1.4rem}
.pc-hero-search{position:relative;max-width:640px}
.pc-hero-search input[type="search"]{
  width:100%;height:58px;border:0;border-radius:999px;
  padding:0 20px 0 48px;font:inherit;font-size:1.05rem;
  box-shadow:0 16px 40px rgba(0,0,0,.25);
  background:#fff var(--search-icon) 18px 50%/18px no-repeat;
  --search-icon:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6475' stroke-width='2' stroke-linecap='round'><circle cx='11' cy='11' r='7'/><path d='M20 20l-3.5-3.5'/></svg>");
}
.pc-hero-search .pc-suggest{max-width:640px;top:auto;bottom:calc(100% + 8px)}
@media (max-width:420px){
  .pc-hero-search input[type="search"]{font-size:15px;padding:0 16px 0 44px}
}
.pc-card-credit{
  display:block;margin-top:12px;font-size:13px;color:var(--muted);max-width:70ch;
}
.pc-card-credit{color:var(--muted);margin:8px 16px 0;font-size:13px;line-height:1.45}
.pc-section{max-width:1180px;margin:0 auto;padding:36px 20px}
.pc-section h2{font-size:1.6rem;letter-spacing:-.03em;margin:0 0 .3rem}
.pc-section .pc-intro{color:var(--muted);margin:0 0 1.4rem}
.pc-cities{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}
@media(max-width:700px){.pc-cities{grid-template-columns:1fr}}
.pc-city{
  background:#fff;border:1px solid var(--line);border-radius:var(--rad);
  overflow:hidden;box-shadow:var(--shadow);text-decoration:none;color:inherit;
  display:flex;flex-direction:column;min-height:100%;
}
.pc-city:hover{transform:translateY(-2px);transition:transform .15s ease}
.pc-city-main{display:flex;flex-direction:column;flex:1;text-decoration:none;color:inherit}
.pc-city img{width:100%;height:200px;object-fit:cover;display:block;background:#d9dee8}
.pc-city-body{padding:16px 16px 18px;flex:1;display:flex;flex-direction:column}
.pc-city-book{padding:0 16px 14px}
.pc-city-book .pc-aff{margin:0 0 8px}
.pc-city-book .pc-btn{width:100%;box-sizing:border-box}
.pc-city h3{margin:0 0 .2rem;font-size:1.25rem;letter-spacing:-.02em}
.pc-flag{font-size:15px;color:var(--muted)}
.pc-city-chips{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 0;padding:0;list-style:none}
.pc-city-chips li{
  flex:1 1 calc(50% - 8px);
  background:var(--bg);border-radius:12px;padding:8px 10px;
}
.pc-city-chips i{display:block;font-style:normal;font-size:13px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted)}
.pc-city-chips b{font-size:15px}
.pc-soon-tag{
  display:inline-block;margin-top:10px;font-size:13px;font-weight:700;
  text-transform:uppercase;letter-spacing:.08em;color:var(--navy);
  background:#eef2f7;border-radius:999px;padding:5px 10px;
}
.pc-city.is-soon{opacity:.92}
.pc-how{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
@media(max-width:800px){.pc-how{grid-template-columns:1fr}}
.pc-how article{background:var(--bg);border-radius:18px;padding:18px 18px 20px}
.pc-how h3{margin:0 0 .35rem;font-size:1.05rem}
.pc-how p{margin:0;color:var(--muted)}
.pc-cta{display:flex;flex-wrap:wrap;gap:10px;margin-top:8px}
.pc-btn{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:48px;padding:10px 18px;border-radius:999px;
  background:var(--navy);color:#fff;text-decoration:none;font-weight:700;
}
.pc-btn.sec{background:#fff;color:var(--navy);border:1px solid var(--line)}
.pc-aff{display:block;font-size:13px;color:var(--muted);margin-top:6px}
/* Footer */
.pc-foot{
  border-top:1px solid var(--line);margin-top:40px;
  padding:28px 20px 40px;text-align:center;color:var(--muted);font-size:15px;
  background:#fff;
}
.pc-foot nav{display:flex;gap:16px;justify-content:center;flex-wrap:wrap;margin-bottom:10px}
.pc-foot a{color:var(--navy);text-decoration:none;font-weight:600;min-height:44px;display:inline-flex;align-items:center}
.pc-foot a:hover{text-decoration:underline}
/* Guide pages: keep content, add offset for sticky header */
.pc-guide main.wrap{padding-top:12px}
.pc-guide .cg-disclose{display:none}
.pc-body.pc-guide .cg-tablist{top:var(--pc-sticky,110px)!important;z-index:40}
.pc-guide [id^="stay-"],
.pc-guide [id^="safety-"],
.pc-guide [id^="do-"],
.pc-guide [id^="trip-"],
.pc-guide [id^="getting-"],
.pc-guide [id^="when-"],
.pc-guide [id^="costs-"],
.pc-guide [id^="food-"],
.pc-guide [id^="itin-"],
.pc-guide [id^="beyond-"],
.pc-guide [id^="daily-"],
.pc-guide [id^="useful-"],
.pc-guide [id^="access-"],
.pc-guide [id^="quick-"],
.pc-guide #cg-mapwrap,
.pc-guide #cg-map-placeholder{scroll-margin-top:calc(var(--pc-sticky,110px) + var(--pc-tabs,72px) + 10px)}
.pc-guide #arriving-cruise,
.pc-guide #worth-getting-off{scroll-margin-top:calc(var(--pc-sticky,110px) + 10px)}
.pc-guide .cg-tabs #arriving-cruise,
.pc-guide #areas-to-avoid{scroll-margin-top:calc(var(--pc-sticky,110px) + var(--pc-tabs,72px) + 10px)}

/* Shared world-map preview card in the Safety tab */
.pc-guide .cg-worldmap{
  padding:0;
  overflow:hidden;
  margin:0 0 14px;
}
.pc-guide .cg-worldmap-preview{
  display:block;
  position:relative;
  background:#0b1a2b;
  aspect-ratio:3/2;
  overflow:hidden;
  color:inherit;
  text-decoration:none;
}
.pc-guide .cg-worldmap-preview img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  border:0;
  max-width:none;
  box-shadow:none;
  border-radius:0;
  margin:0;
  padding:0;
}
.pc-guide .cg-worldmap-copy{
  padding:16px 16px 18px;
}
.pc-guide .cg-worldmap-copy h3{
  margin:0 0 6px;
  font-size:1.15rem;
  line-height:1.25;
}
.pc-guide .cg-worldmap-copy p{
  margin:0 0 14px;
  line-height:1.5;
}
.pc-guide .cg-worldmap-copy .cg-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
}
/* Homepage: shorter hero on phones so a city card peeks above the fold */
@media (max-width:700px){
  .pc-hero{min-height:0}
  .pc-hero-in{padding:20px 20px 16px}
  .pc-hero h1{font-size:1.9rem}
  .pc-hero .pc-lede{margin:0 0 .85rem;font-size:1rem}
  .pc-hero-search input[type="search"]{height:50px}
  .pc-section{padding-top:22px}
  .pc-section .pc-intro{margin:0 0 .85rem}
}
/* Simple legal pages */
.pc-legal{max-width:760px;margin:0 auto;padding:28px 18px 60px}
@media (min-width:641px){
  .pc-legal{padding:36px clamp(22px,5vw,56px) 72px}
}
.pc-legal h1{
  letter-spacing:-.03em;
  margin:0 0 .5rem;
  color:var(--navy);
  font-size:2rem;
  line-height:1.15;
}
.pc-legal h2{
  font-size:1.15rem;
  margin:1.5rem 0 .55rem;
  color:var(--navy);
  line-height:1.3;
}
.pc-legal p{color:var(--ink);margin:0 0 .85rem;font-size:16px;line-height:1.55}
.pc-legal a{color:#0a4a8a;font-weight:600}
.pc-legal a:hover{text-decoration:underline}
.pc-legal a:focus-visible{outline:3px solid #0a4a8a;outline-offset:2px}
.pc-legal-updated{
  margin:0 0 1.1rem;
  color:var(--muted);
  font-size:15px;
  font-weight:600;
}
.pc-legal-box{
  background:#f7f8fb;
  border:1px solid var(--line);
  border-radius:16px;
  padding:14px 16px;
  margin:0 0 12px;
}
.pc-legal-box p{margin:0}
.pc-legal-box p + p,
.pc-legal-box p + ul,
.pc-legal-box ul + p{margin-top:.7rem}
.pc-legal-box ul{
  margin:0;
  padding:0 0 0 1.15rem;
}
.pc-legal-box li{
  margin:0 0 .4rem;
  color:var(--ink);
  font-size:16px;
  line-height:1.5;
}
.pc-legal-box li:last-child{margin-bottom:0}
.pc-legal-mail{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:8px 18px;
  border-radius:999px;
  background:var(--navy);
  color:#fff !important;
  font-weight:700;
  text-decoration:none !important;
  margin:0 0 12px;
}
.pc-legal-mail:hover{text-decoration:underline !important}
.pc-legal-mail:focus-visible{outline:3px solid #0a4a8a;outline-offset:3px}

input::placeholder,textarea::placeholder{color:#3b4453;opacity:1}

.pc-hero-copy{
  position:relative;z-index:1;
  display:block;width:fit-content;max-width:min(40rem,100%);
  padding:16px 18px 18px;border-radius:24px;
  background:rgba(11,31,58,.82);
  -webkit-backdrop-filter:blur(14px) saturate(120%);
  backdrop-filter:blur(14px) saturate(120%);
  box-shadow:0 10px 40px rgba(11,31,58,.22);
  margin:0 0 16px;
}
.pc-hero-copy .pc-lede{margin-bottom:0}
@media (max-width:700px){
  .pc-hero-copy{width:100%;max-width:none;padding:14px 14px 16px;border-radius:20px;margin:0 0 14px}
}

/* Trust strip and Brazil-by-cruise hook */
.pc-trust, .pc-cruise-hook{
  background:#f0fbfb;
  border:1px solid #d7ecec;
  border-radius:18px;
  padding:20px 20px 22px;
}
.pc-trust-kicker, .pc-cruise-hook .pc-kicker-plain{
  margin:0 0 .4rem;
  font-size:13px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#0a5f5e;
}
.pc-trust h2, .pc-cruise-hook h2{margin:0 0 .8rem}
.pc-trust ul{margin:0;padding:0;list-style:none;display:grid;gap:12px}
@media (min-width:720px){
  .pc-trust ul{grid-template-columns:1fr 1fr;gap:14px 20px}
}
.pc-trust li{
  margin:0;
  padding:0;
  color:var(--ink);
  font-size:15px;
}
.pc-trust li strong{display:block;margin:0 0 .15rem;font-size:1.02rem;color:var(--navy)}
.pc-trust p, .pc-cruise-hook p{margin:0;color:var(--ink);font-size:15px}
.pc-trust .pc-who, .pc-cruise-hook p + p{margin-top:12px}
.pc-cruise-hook a, .pc-trust a, .pc-who-behind a{color:#0a4a8a;font-weight:600}
.pc-who-behind{margin:0 0 1.4rem}
.pc-who-behind h2{font-size:1.25rem;margin:1.2rem 0 .4rem;color:var(--navy)}
.pc-who-behind p{color:var(--ink);font-size:16px}

/* Homepage only: hide the header search on small screens; the hero search stays. */
@media (max-width:768px){
  body.pc-home .pc-head .pc-search{display:none}
  body.pc-home .pc-head-in{
    grid-template-columns:1fr auto;
    grid-template-areas:"brand nav";
  }
}
@media (max-width:720px){
  body.pc-home .pc-head-in{
    grid-template-columns:1fr;
    grid-template-areas:"brand" "nav";
  }
}

/* "made simple": solid yellow fallback, then a clipped yellow-to-pink gradient where supported. */
.pc-hero h1 span,
.cg-hero h1 span{
  color:#ffd166;
  background-image:linear-gradient(90deg,#ffd166,#ff8fab);
}
@supports ((-webkit-background-clip:text) or (background-clip:text)){
  .pc-hero h1 span,
  .cg-hero h1 span{
    -webkit-background-clip:text;
    background-clip:text;
    -webkit-text-fill-color:transparent;
    color:transparent;
  }
}

/* Hero fact boxes: tappable links, chevron, hover / focus / pressed */
.pc-guide [id^="when-"],
.pc-guide [id^="costs-"]{scroll-margin-top:calc(var(--pc-sticky,110px) + var(--pc-tabs,72px) + 10px)}
.cg-chips > li{
  display:flex;
  flex:1 1 calc(50% - 5px);
  min-width:calc(50% - 5px);
  margin:0;
  list-style:none;
}
.cg-chips > li > a.cg-chip{
  flex:1 1 auto;
  min-width:0;
  width:100%;
  max-width:100%;
}
a.cg-chip{
  text-decoration:none;
  color:#fff;
  width:100%;
  box-sizing:border-box;
  min-height:44px;
  position:relative;
  padding-right:1.7rem;
  cursor:pointer;
  transition:transform .15s ease, filter .15s ease, box-shadow .15s ease;
}
a.cg-chip i,
a.cg-chip b{color:#fff}
a.cg-chip::after{
  content:"";
  position:absolute;
  right:12px;
  bottom:12px;
  width:8px;
  height:8px;
  border-right:2px solid #fff;
  border-bottom:2px solid #fff;
  transform:rotate(-45deg);
  pointer-events:none;
}
a.cg-chip:hover{
  filter:brightness(1.1);
}
a.cg-chip:hover::after{
  right:10px;
}
a.cg-chip:focus{outline:none}
a.cg-chip:focus-visible{
  outline:3px solid #fff;
  outline-offset:3px;
}
a.cg-chip:active,
a.cg-chip.is-pressed{
  transform:scale(0.98);
  filter:brightness(0.88);
}
@media (prefers-reduced-motion: reduce){
  a.cg-chip{transition:none}
  a.cg-chip:active,
  a.cg-chip.is-pressed{transform:none}
  a.cg-chip:hover::after{right:12px}
}

/* r10: guide upgrade blocks (quick facts, local cards, itinerary, food, daily costs) */
.cg-updated{
  margin:.35rem 0 0;
  font-size:13px;
  font-weight:600;
  color:var(--muted,#3b4453);
}
.cg-panel-head .cg-updated{margin-top:.4rem}
.cg-qf,.cg-safety-peek,.cg-local-grid,.cg-itin-days,.cg-dishes,.cg-daily,.cg-useful,.cg-access{
  margin:0 0 1.25rem;
}
.cg-qf{
  background:#f6f7fb;
  border:1px solid #e5e8ef;
  border-radius:18px;
  padding:18px 18px 14px;
}
.cg-qf h2,.cg-safety-peek h2,.cg-local-head h2,.cg-itin-days h2,.cg-dishes h2,.cg-daily h2,.cg-useful h2,.cg-access h2{
  margin:0 0 .35rem;
  font-size:1.25rem;
  color:var(--navy,#0b1f3a);
}
.cg-qf-rate,.cg-fine{
  margin:.5rem 0 0;
  font-size:13px;
  color:var(--muted,#3b4453);
}
.cg-qf-list{
  list-style:none;
  margin:12px 0 0;
  padding:0;
  display:grid;
  gap:8px;
  grid-template-columns:1fr;
}
.cg-qf-list li{
  background:#fff;
  border-radius:14px;
  padding:12px 14px;
  min-height:44px;
  display:flex;
  flex-direction:column;
  gap:2px;
}
.cg-qf-list b{
  font-size:13px;
  font-weight:700;
  color:var(--navy,#0b1f3a);
}
.cg-qf-list span{
  font-size:15px;
  color:var(--ink,#0f172a);
}
@media (min-width:640px){
  .cg-qf-list{grid-template-columns:1fr 1fr}
}
.cg-safety-peek{
  background:#0b1f3a;
  color:#fff;
  border-radius:18px;
  padding:18px;
}
.cg-safety-peek h2{color:#fff}
.cg-safety-peek p{margin:0 0 .75rem;font-size:15px;color:#fff}
.cg-safety-peek a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:.45rem .9rem;
  border-radius:999px;
  background:#ffe08a;
  color:#0b1f3a;
  font-weight:700;
  text-decoration:none;
}
.cg-safety-peek a:hover{filter:brightness(1.05)}
.cg-safety-peek a:focus-visible{outline:3px solid #fff;outline-offset:3px}
.cg-rec-label,.cg-team-notes{
  font-size:13px;
  color:var(--muted,#3b4453);
  margin:0 0 .8rem;
}
.cg-team-notes{
  display:inline-block;
  background:#f6f7fb;
  border-left:3px solid #0a5f5e;
  padding:.4rem .7rem;
  border-radius:0 10px 10px 0;
  color:var(--ink,#0f172a);
}
.cg-local-grid,.cg-dishes{
  display:grid;
  gap:10px;
  grid-template-columns:1fr;
}
@media (min-width:640px){
  .cg-local-grid,.cg-dishes{grid-template-columns:1fr 1fr}
}
.cg-local-card,.cg-dish{
  background:#fff;
  border:1px solid #e5e8ef;
  border-radius:16px;
  padding:14px 16px;
}
.cg-local-card h3,.cg-dish h3{
  margin:0 0 .35rem;
  font-size:1.05rem;
  color:var(--navy,#0b1f3a);
}
.cg-local-card p,.cg-dish p{
  margin:0 0 .4rem;
  font-size:15px;
  color:var(--ink,#0f172a);
}
.cg-local-card .cg-safe,.cg-dish .cg-maps{
  margin:0;
  font-size:13px;
  color:var(--muted,#3b4453);
}
.cg-dish a{
  color:#0a4a8a;
  font-weight:600;
  text-decoration:underline;
  min-height:44px;
  display:inline-flex;
  align-items:center;
}
.cg-dish a:focus-visible{outline:3px solid #0a4a8a;outline-offset:2px}
.cg-itin-day{
  background:#fff;
  border:1px solid #e5e8ef;
  border-radius:16px;
  padding:16px;
  margin:0 0 10px;
}
.cg-itin-day h3{margin:0 0 .6rem;font-size:1.1rem;color:var(--navy,#0b1f3a)}
.cg-itin-day dl{margin:0;display:grid;gap:8px}
.cg-itin-day dt{
  font-size:13px;
  font-weight:800;
  color:#0a5f5e;
  text-transform:none;
}
.cg-itin-day dd{margin:0;font-size:15px;color:var(--ink,#0f172a)}
.cg-daily table{width:100%;border-collapse:collapse;font-size:15px}
.cg-daily th,.cg-daily td{text-align:left;padding:.55rem .5rem;border-bottom:1px solid #e5e8ef;color:var(--ink,#0f172a)}
.cg-daily th{font-size:13px;color:var(--muted,#3b4453)}
.cg-daily td.num{text-align:right;font-weight:700;white-space:nowrap}
.cg-useful-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.cg-useful-list li{
  background:#f6f7fb;
  border-radius:14px;
  padding:12px 14px;
  min-height:44px;
}
.cg-useful-list b{display:block;color:var(--navy,#0b1f3a);font-size:15px}
.cg-useful-list a,.cg-useful-list span{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  color:#0a4a8a;
  font-weight:700;
  text-decoration:none;
  font-size:15px;
}
.cg-useful-list a:hover{text-decoration:underline}
.cg-useful-list a:focus-visible{outline:3px solid #0a4a8a;outline-offset:2px}
.cg-useful-list .cg-muted{min-height:0;display:block;font-weight:400;color:var(--muted,#3b4453);margin-top:.15rem}
.cg-access{
  background:#f0fbfb;
  border-radius:16px;
  padding:16px 18px;
}
.cg-access p{margin:0 0 .6rem;font-size:15px;color:var(--ink,#0f172a)}
.cg-access p:last-child{margin:0}
.cg-pier{
  margin:16px 0;
  padding:16px 18px;
  border-radius:16px;
  background:#f6f7fb;
  border:1px solid #e5e8ef;
}
.cg-pier h3{margin:0 0 .45rem;font-size:1.1rem;color:var(--navy,#0b1f3a)}
.cg-pier p,.cg-pier li{font-size:15px;color:var(--ink,#0f172a)}
.cg-pier ul{margin:.4rem 0 0;padding:0 0 0 1.1rem}

/* Arriving by cruise ship: compact, mobile-first, AA contrast.
   Used above the Salvador tabs and in the Rio getting-there tab. */
.cg-cruise-arrive{
  margin: 16px 0;
  padding: 14px 14px 12px;
  border-radius: 16px;
  background: #fff8f0;
  border: 1px solid #d9b48c;
  color: #1a2330;
}
.cg-cruise-arrive > .cg-cruise-kicker{
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #0b1f3a;
  margin: 0 0 4px;
}
.cg-cruise-arrive > h2{
  margin: 0 0 6px;
  font-size: 1.2rem;
  line-height: 1.25;
  color: #0b1f3a;
}
.cg-cruise-arrive .cg-updated{margin: 0 0 8px}
.cg-cruise-arrive p,
.cg-cruise-arrive li{
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.45;
  color: #1a2330;
}
.cg-cruise-arrive p:last-child,
.cg-cruise-arrive li:last-child{margin-bottom: 0}
.cg-cruise-arrive h3{
  margin: 12px 0 8px;
  font-size: 1.05rem;
  line-height: 1.3;
  color: #0b1f3a;
}
.cg-cruise-facts{
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: grid;
  gap: 8px;
}
.cg-cruise-facts li{
  margin: 0;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #ead7c0;
  border-radius: 12px;
}
.cg-cruise-facts b{
  display: block;
  color: #0b1f3a;
  font-size: 15px;
  margin: 0 0 2px;
}
.cg-avoid{
  margin: 0 0 16px;
  padding: 14px 14px 12px;
  border-radius: 16px;
  background: #fff4f0;
  border: 1px solid #e8b4a8;
}
.cg-avoid h3{
  margin: 0 0 8px;
  font-size: 1.05rem;
  line-height: 1.3;
  color: #0b1f3a;
}
.cg-avoid ul{
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: grid;
  gap: 8px;
}
.cg-avoid li{
  margin: 0;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #f0d0c8;
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.45;
  color: #1a2330;
}
.cg-avoid li b{
  display: block;
  color: #0b1f3a;
  margin: 0 0 2px;
}
.cg-avoid .cg-muted{margin: 0}
@media (min-width: 641px){
  .cg-cruise-arrive,
  .cg-avoid{padding: 16px 18px}
}


/* r10e compact, collapsible quick-facts strip, above the tabs only.
   Collapsed: a 2x2 grid (safety, best months, airport, metro) plus a
   toggle. The heading is visually hidden so the collapsed block can
   stay around 150px tall at 390. Extra facts are hidden only by JS, so
   they stay visible if JavaScript is off. */
.cg-qf-strip{
  --cg-qf-gutter: 18px;
  margin: 18px 0 18px;
  padding: 0;
}
@media (min-width: 641px){
  .cg-qf-strip{ --cg-qf-gutter: clamp(22px, 5vw, 56px); }
}
.cg-qf-strip > h2{
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}
.cg-qf-strip .cg-qf-chips{
  list-style: none;
  margin: 0;
  padding: 0 var(--cg-qf-gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  overflow: visible;
}
/* Beat the guide's generic .cg li side/vertical margins, which were
   inflating the 2x2 grid rows above the 44px chip height. */
.cg-qf-strip .cg-qf-chips li,
.cg .cg-qf-chips li{
  margin: 0;
  min-width: 0;
  padding: 0;
  list-style: none;
}
.cg-qf-chips a,
.cg-qf-chips span{
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: .3rem .55rem;
  border-radius: 12px;
  background: #f6f7fb;
  border: 1px solid #e5e8ef;
  color: var(--navy, #0b1f3a);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.2;
  text-align: left;
  text-decoration: none;
  white-space: normal;
  box-sizing: border-box;
}
.cg-qf-chips a:hover{background: #eef1f7}
.cg-qf-chips a:focus-visible{
  outline: 3px solid #0a4a8a;
  outline-offset: 2px;
}
.cg-qf-chips a:active{background: #e4e8f0}
.cg-qf-chips a.cg-qf-safety{
  background: #0b1f3a;
  border-color: #0b1f3a;
  color: #fff;
}
.cg-qf-chips a.cg-qf-safety:hover{filter: brightness(1.12); background: #0b1f3a}
.cg-qf-chips a.cg-qf-safety:focus-visible{
  outline: 3px solid #0b1f3a;
  outline-offset: 3px;
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px #0b1f3a;
}
.cg-qf-extra{
  margin-top: 6px;
}
.cg-qf-extra .cg-qf-chips{
  padding: 0 var(--cg-qf-gutter);
}
.cg-qf-rate{
  margin: 6px 0 0;
  padding: 0 var(--cg-qf-gutter, 18px);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
  color: var(--navy, #0b1f3a);
  display: flex;
  align-items: flex-start;
  gap: .4rem;
}
.cg-qf-rate::before{
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: .15em;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18'/%3E%3Cpath d='M8 3v4M16 3v4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18'/%3E%3Cpath d='M8 3v4M16 3v4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.cg-qf-toggle{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 44px;
  margin: 6px var(--cg-qf-gutter, 18px) 0;
  padding: .4rem .8rem;
  width: calc(100% - (2 * var(--cg-qf-gutter, 18px)));
  border: 2px solid #0a3d73;
  border-radius: 12px;
  background: #fff;
  color: #0a3d73;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
}
.cg-qf-toggle:hover{background: #f3f6fb}
.cg-qf-toggle:active{background: #e8eef6}
.cg-qf-toggle:focus-visible{
  outline: 3px solid #0a3d73;
  outline-offset: 3px;
}
.cg-qf-toggle[hidden],
.cg-qf-extra[hidden]{
  display: none !important;
}

.cg-more{
  border: 1px solid #e5e8ef;
  border-radius: 16px;
  background: #fff;
  margin: 0 0 12px;
  padding: 0;
}
.cg-more > summary{
  cursor: pointer;
  min-height: 44px;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 15px;
  color: var(--navy, #0b1f3a);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cg-more > summary::-webkit-details-marker{display: none}
.cg-more > summary::after{
  content: "Show more";
  font-size: 13px;
  font-weight: 650;
  color: #0a4a8a;
  flex: none;
}
.cg-more[open] > summary::after{content: "Show less"}
.cg-more > summary:focus-visible{outline: 3px solid #0a4a8a; outline-offset: 2px; border-radius: 16px}
.cg-more .cg-more-body{padding: 0 16px 16px}
@media (prefers-reduced-motion: reduce){
  .cg-qf-chips a{transition: none}
}

/* Beat the guide's generic .cg summary::after "+" without changing those older details. */
.pc-guide details.cg-more > summary::after{
  content:"Show more" !important;
  float:none;
  font-weight:650;
  font-size:13px;
  color:#0a4a8a;
}
.pc-guide details.cg-more[open] > summary::after{
  content:"Show less" !important;
  color:#0a4a8a;
  font-weight:650;
  font-size:13px;
}

/* r10c: side gutter for the tab row and tab panel content.
   Matches the hero (.cg-hero-in) and the quick facts strip:
   18px on small screens, clamp(22px, 5vw, 56px) from 641px up.
   Additive only: no existing class names are changed. */
.pc-guide .cg-tabs{
  --cg-gutter: 18px;
}
@media (min-width: 641px){
  .pc-guide .cg-tabs{ --cg-gutter: clamp(22px, 5vw, 56px); }
}

/* Full-width sticky tab bar; chips line up with the 18px content gutter.
   Overrides the guide page's padding: 12px 6px; margin: 0 -6px 18px
   side values, which pulled the first chip past the screen edge.
   padding-right stays 0 and a trailing spacer keeps the last chip unclipped
   (flex containers often drop padding-inline-end while scrolling). */
.pc-body.pc-guide .cg-tablist{
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
  scroll-padding-inline: var(--cg-gutter, 18px);
}
.pc-body.pc-guide .cg-tablist::before,
.pc-body.pc-guide .cg-tablist::after{
  content: "";
  flex: none;
  width: var(--cg-gutter, 18px);
  height: 1px;
  pointer-events: none;
}

.pc-guide .cg-panel{
  padding-left: var(--cg-gutter, 18px);
  padding-right: var(--cg-gutter, 18px);
}

/* The safety map sits in the new panel gutter like other content.
   Cancel the old 4px side pull-out, which was compensating for flush
   panels, so the map card is not shifted relative to the text. */
@media (max-width: 640px){
  .pc-guide .cg-panel .cg-lmapwrap:not(.is-full){
    margin-left: 0;
    margin-right: 0;
  }

  /* Month strip: full-bleed scroller with the same 18px snap gutter,
     so cards can scroll into the side space and the last one is not clipped. */
  .pc-guide .cg-panel .cg-mstrip{
    margin-left: calc(var(--cg-gutter, 18px) * -1);
    margin-right: calc(var(--cg-gutter, 18px) * -1);
    padding-left: var(--cg-gutter, 18px);
    padding-right: 0;
    scroll-padding-inline: var(--cg-gutter, 18px);
  }
  .pc-guide .cg-panel .cg-mstrip::after{
    content: "";
    flex: none;
    width: var(--cg-gutter, 18px);
    height: 1px;
    pointer-events: none;
  }
}

/* Long source notes use .cg-tbc. Allow wrapping so they do not overflow at 390px. */
.pc-guide .cg-tbc{
  white-space: normal;
}


/* Replace the guide's details/summary en dash and minus markers
   with a CSS chevron, so no en or em dash is painted on the page.
   Leave .cg-more (Show more / Show less) and .cg-cons-box alone. */
.pc-guide .cg details:not(.cg-more):not(.cg-cons-box) > summary{
  display: flex;
  align-items: center;
  gap: 8px;
}
.pc-guide .cg details:not(.cg-more):not(.cg-cons-box) > summary::after{
  content: "" !important;
  float: none;
  display: inline-block;
  width: .45em;
  height: .45em;
  margin-left: auto;
  margin-top: .2em;
  border-right: 2px solid var(--teal, #0b7c7b);
  border-bottom: 2px solid var(--teal, #0b7c7b);
  transform: rotate(45deg);
  flex: none;
  font-size: 0;
  color: transparent;
}
.pc-guide .cg details:not(.cg-more):not(.cg-cons-box)[open] > summary::after{
  content: "" !important;
  margin-top: .45em;
  transform: rotate(225deg);
}
.pc-guide .cg details.cg-con > summary::after,
.pc-guide .cg details.cg-con[open] > summary::after{
  border-color: var(--sun, #e0a100);
}

/* Cost tables: let long price notes wrap on a phone instead of clipping. */
@media (max-width: 640px){
  #costs-week td.num,
  #costs-week .num,
  .cg #costs-week td.num{
    white-space: normal;
    overflow-wrap: anywhere;
  }
}
/* Homepage photo credits: keep long names tidy on a narrow screen. */
.pc-card-credit{
  overflow-wrap: anywhere;
}

/* When-to-go month table: stack each row on small screens so
   four columns are not clipped at 375 and 390. */
@media (max-width: 640px){
  #when-to-go .cg-tw:has(> table.cg-season),
  #when-to-go > .cg-tw{
    overflow-x: visible;
  }
  #when-to-go > .cg-tw > table,
  #when-to-go table.cg-season{
    display: block;
    width: 100%;
  }
  #when-to-go > .cg-tw > table thead,
  #when-to-go table.cg-season thead{
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
  }
  #when-to-go > .cg-tw > table tbody,
  #when-to-go table.cg-season tbody{
    display: block;
    width: 100%;
  }
  #when-to-go > .cg-tw > table tr,
  #when-to-go table.cg-season tr{
    display: block;
    padding: .85rem 1rem;
    border-bottom: 1px solid var(--line, #e5e8ef);
  }
  #when-to-go > .cg-tw > table tr:last-child,
  #when-to-go table.cg-season tr:last-child{
    border-bottom: 0;
  }
  #when-to-go > .cg-tw > table td,
  #when-to-go table.cg-season td{
    display: block;
    border: 0;
    padding: .15rem 0;
    text-align: left;
  }
  #when-to-go > .cg-tw > table td:nth-child(2)::before,
  #when-to-go table.cg-season td:nth-child(2)::before{
    content: "Daytime high";
    display: block;
    font-weight: 800;
    color: var(--navy, #0b1f3a);
    font-size: .82rem;
  }
  #when-to-go > .cg-tw > table td:nth-child(3)::before,
  #when-to-go table.cg-season td:nth-child(3)::before{
    content: "Rain";
    display: block;
    font-weight: 800;
    color: var(--navy, #0b1f3a);
    font-size: .82rem;
  }
  #when-to-go > .cg-tw > table td:nth-child(4)::before,
  #when-to-go table.cg-season td:nth-child(4)::before{
    content: "What it's like";
    display: block;
    font-weight: 800;
    color: var(--navy, #0b1f3a);
    font-size: .82rem;
  }
}

/* polish: small 390 layout only */
.pc-disclose a{white-space:nowrap}
span.cg-eyebrow{
  white-space:nowrap;
  max-width:100%;
  box-sizing:border-box;
}
@media (max-width:420px){
  span.cg-eyebrow{padding-left:.5rem;padding-right:.5rem;font-size:12px}
}
@media (max-width:370px){
  span.cg-eyebrow{font-size:11px;padding-left:.45rem;padding-right:.45rem}
}


/* Placeholder booking buttons until partner URLs are added. */
a.cg-btn-soon,
a.pc-btn.cg-btn-soon,
a.cg-plan-item.cg-btn-soon,
a.cg-tlink.cg-btn-soon{
  pointer-events: none;
  cursor: default;
  opacity: .82;
  text-decoration: none;
}
a.cg-btn-soon:hover,
a.pc-btn.cg-btn-soon:hover,
a.cg-plan-item.cg-btn-soon:hover,
a.cg-tlink.cg-btn-soon:hover{
  filter: none;
  transform: none;
  box-shadow: none;
}
