/* Royal Palace of Madrid colours over the shared attraction layout.
   Only colour values change; sizes, spacing and structure stay exactly as on the Majorelle page.
   The tokens are set again on .theme-attraction because the shared token sheet declares them there too. */
body.apocv-place-royalpalacemadrid,
body.apocv-place-royalpalacemadrid .theme-attraction {
  --ivory: #faf6ef; --white: #fefcf8; --tint: #f1e9dc; --paper: #f5ecdd; --cream: #fff8ea;
  --line: #e2d6c3; --line-2: #e0d3be;
  --navy: #211316; --navy-2: #2e1a1e; --teal: #2f2a1c;
  --cobalt-a: #8f2433; --cobalt-b: #731c29; --cobalt: #8f2433;
  --gold: #a87a2e; --gold-deep: #86601f; --sun: #ecc066; --sand: #e6c88f; --pale-yellow: #f3dca6; --dot-green: #7c8a3a;
  --forest: #3c4a2c; --forest-deep: #2e3a22;
  --muted: #6a5d52; --muted-green: #5a5238;
  --header-bg: var(--navy); --header-blue: var(--navy);
  --button-bg: linear-gradient(115deg, var(--cobalt-a), var(--cobalt-b));
  --focus: 2px solid #8f2433;
  --shadow-button: 0 8px 20px rgba(115, 28, 41, 0.2);
}
body.apocv-place-royalpalacemadrid #mobile-menu.ac-mj-drawer { --sun: #ecc066; --sand: #e6c88f; --mmuted: #cdbbbd; --drawer: #211316; }
/* The phone menu: dark earth in place of Majorelle navy, terracotta in place of cobalt. */
html body.apocv-place-royalpalacemadrid #mobile-menu.ac-mj-drawer,
html body.apocv-place-royalpalacemadrid #mobile-menu.ac-mj-drawer .top { background: #211316; }
html body.apocv-place-royalpalacemadrid #mobile-menu.ac-mj-drawer .d-buy { background: #2f1b1f; }
html body.apocv-place-royalpalacemadrid #mobile-menu.ac-mj-drawer .d-opt.on { background: #3c2227; }
html body.apocv-place-royalpalacemadrid #mobile-menu.ac-mj-drawer .d-cta { background: linear-gradient(115deg, #8f2433, #731c29); border-color: #dc939d; }
html body.apocv-place-royalpalacemadrid #mobile-menu.ac-mj-drawer .top .cnt { background: #41292d; }
html body.apocv-place-royalpalacemadrid #mobile-menu.ac-mj-drawer .search { background: #2f1b1f; }

/* Ticket step: one experience fills the switch; the link colour follows the attraction accent. */
html body.apocv-place-royalpalacemadrid #main.apocv-booking .ticket-card .apocv-experience-switch:has(> a:only-child) { grid-template-columns: 1fr; }
html body.apocv-place-royalpalacemadrid .ticket-card-heading a { color: var(--cobalt); }

/* Plan your visit: the selected visitor-guide tab. */
html body.apocv-place-royalpalacemadrid .ep-visitor-tabs a[aria-selected="true"] { color: var(--cobalt); border-bottom-color: var(--cobalt); }

/* The header and its ticket button have the Majorelle colours written in, not taken from the tokens. */
html body.apocv-place-royalpalacemadrid header.site-header.vm-attraction-header { background: var(--navy); }
html body.apocv-place-royalpalacemadrid header.vm-attraction-header :is(.desktop-nav, .hdr-acts) > .button,
html body.apocv-place-royalpalacemadrid :is(main, header) .button:not(.outline-button) { background: linear-gradient(115deg, var(--cobalt-a), var(--cobalt-b)); }
/* "Your visit. Clearly arranged." has its own navy gradient; here it takes the attraction's dark tone. */
body.apocv-place-royalpalacemadrid #main #apollonaut-visit-arranged { background: linear-gradient(120deg, #3a2126, #211316 62%, #331d21); }
body.apocv-place-royalpalacemadrid #main #apollonaut-visit-arranged .visit-arranged__tabs button:not([aria-selected="true"]),
body.apocv-place-royalpalacemadrid #majorelle-guide .apo-guide__tabs button:not([aria-selected="true"]) { border-color: #9a8285; }
body.apocv-place-royalpalacemadrid #main.ac-mj .btn-primary:hover,
body.apocv-place-royalpalacemadrid #sbar.sbar .btn-primary:hover { background: linear-gradient(115deg, #ab3a48, var(--cobalt-b)); }
