/*
 * Catalani — Black & Gold redesign layer
 * Applies on top of dark mode when the "Redesign" setting is on.
 * Typography, shapes, spacing and finish only. Your hero video, page content and
 * navbar layout are untouched (no position/margin/flex changes in the header,
 * nothing in the min-width:992px block).
 */
html[data-cata-theme="dark"][data-cata-redesign]{
  --rd-serif:"Cormorant Garamond",Georgia,serif;
  --rd-sans:"Plus Jakarta Sans","DM Sans",system-ui,sans-serif;
  --rd-r-card:18px;--rd-r-ctl:12px;
  --rd-gold:var(--cd-gold,#c9a55a);--rd-gold2:var(--cd-gold2,#e3c98d);
  --rd-line:rgba(201,165,90,.18);--rd-line2:rgba(201,165,90,.38);
}
html[data-cata-theme="dark"][data-cata-redesign] body{font-family:var(--rd-sans);letter-spacing:.1px}

/* ── Headings: editorial serif ─────────────────────────────── */
html[data-cata-theme="dark"][data-cata-redesign] :is(.content-title,.hp-page__title,.entry-title,.wp-block-heading.has-large-font-size,h1.hp-listing__title,.hp-vendor__name h1){
  font-family:var(--rd-serif)!important;font-weight:500!important;letter-spacing:.3px;color:#fff!important}
html[data-cata-theme="dark"][data-cata-redesign] .content-title{font-size:clamp(34px,4vw,50px)!important;line-height:1.05}
/* Small gold kicker rule above section titles */
html[data-cata-theme="dark"][data-cata-redesign] h2.content-title::before{
  content:"";display:block;width:44px;height:1px;background:var(--rd-gold);margin:0 auto 18px;opacity:.9}

/* ── Hero (video kept) ─────────────────────────────────────── */
html[data-cata-theme="dark"][data-cata-redesign] .catalani-hero-text h1{font-weight:500!important;letter-spacing:.5px;text-shadow:0 2px 30px rgba(0,0,0,.55)}
html[data-cata-theme="dark"][data-cata-redesign] .catalani-hero-wrap::after{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(180deg,rgba(10,10,8,.35) 0%,rgba(10,10,8,0) 30%,rgba(10,10,8,0) 65%,rgba(10,10,8,.85) 100%)}

/* ── Search bar ────────────────────────────────────────────── */
html[data-cata-theme="dark"][data-cata-redesign] .hp-form--primary{
  border-radius:18px!important;border:1px solid var(--rd-line2)!important;
  box-shadow:0 30px 60px rgba(0,0,0,.55),inset 0 1px 0 rgba(255,255,255,.03)!important}
html[data-cata-theme="dark"][data-cata-redesign] .hp-form--primary :is(input,.select2-selection){border-radius:var(--rd-r-ctl)!important;font-family:var(--rd-sans)!important}
html[data-cata-theme="dark"][data-cata-redesign] .hp-form--primary :is(.hp-field__description,.hp-form__field small,.cas__label,.ccs__label){color:var(--rd-gold)!important;letter-spacing:.6px}
html[data-cata-theme="dark"][data-cata-redesign] .hp-form--primary .hp-form__button{border-radius:var(--rd-r-ctl)!important;font-weight:700!important;letter-spacing:.3px}

/* ── Buttons: pill, gold ───────────────────────────────────── */
html[data-cata-theme="dark"][data-cata-redesign] :is(.button-primary,.button--primary,.hp-menu__item--listing-submit,input[type=submit],.wp-block-button__link){
  border-radius:999px!important;font-weight:700!important;letter-spacing:.3px}
html[data-cata-theme="dark"][data-cata-redesign] :is(.button-primary,.button--primary,input[type=submit]):hover{box-shadow:0 8px 24px rgba(201,165,90,.25)}
html[data-cata-theme="dark"][data-cata-redesign] .button:not(.button-primary):not(.button--primary):not(.hp-menu__item--listing-submit){
  border-radius:999px;border:1px solid var(--rd-line2)!important;background:transparent!important;color:var(--rd-gold)!important}

/* ── Category cards ────────────────────────────────────────── */
html[data-cata-theme="dark"][data-cata-redesign] .ccb-card{border:1px solid var(--rd-line)!important;transition:border-color .25s,transform .25s}
html[data-cata-theme="dark"][data-cata-redesign] .ccb-card:hover{border-color:var(--rd-line2)!important;transform:translateY(-3px)}
html[data-cata-theme="dark"][data-cata-redesign] .hp-listing-category__name{font-family:var(--rd-serif)!important;font-size:26px!important;font-weight:600!important;letter-spacing:.3px}
/* Theme sets the font on the inner link, so pass the serif through */
html[data-cata-theme="dark"][data-cata-redesign] :is(.hp-listing__title,.hp-listing-category__name,.content-title) :is(a,span){font-family:inherit!important;font-weight:inherit!important}

/* ── Listing cards ─────────────────────────────────────────── */
html[data-cata-theme="dark"][data-cata-redesign] .hp-listing--view-block{
  border-radius:var(--rd-r-card)!important;overflow:hidden;border:1px solid var(--rd-line)!important;
  background:#0e0e0c!important;transition:border-color .25s,transform .25s,box-shadow .25s}
html[data-cata-theme="dark"][data-cata-redesign] .hp-listing--view-block:hover{border-color:var(--rd-line2)!important;transform:translateY(-3px);box-shadow:0 20px 40px rgba(0,0,0,.45)}
html[data-cata-theme="dark"][data-cata-redesign] .hp-listing--view-block .hp-listing__title{font-family:var(--rd-serif)!important;font-size:23px!important;font-weight:600!important;line-height:1.15!important;letter-spacing:.2px}
html[data-cata-theme="dark"][data-cata-redesign] .hp-listing--view-block .hp-listing__footer{border-top:1px solid rgba(255,255,255,.06)!important;background:transparent!important}
html[data-cata-theme="dark"][data-cata-redesign] .hp-listing__attribute--price{border-radius:999px!important;font-weight:700}
html[data-cata-theme="dark"][data-cata-redesign] :is(.hp-listing__featured-badge){border-radius:999px!important;letter-spacing:1.2px;font-weight:700}

/* ── Listing page ──────────────────────────────────────────── */
html[data-cata-theme="dark"][data-cata-redesign] .hp-listing--view-page .hp-listing__title,
html[data-cata-theme="dark"][data-cata-redesign] .hp-page__content h1{font-family:var(--rd-serif)!important;font-weight:500!important;font-size:clamp(34px,4vw,54px)!important;line-height:1.05!important;color:#fff!important}
html[data-cata-theme="dark"][data-cata-redesign] :is(.hp-page__sidebar .hp-widget,.hp-page__sidebar .widget,.hp-listing--view-page .hp-form--booking-make){
  border-radius:20px!important;border:1px solid var(--rd-line)!important;background:#0e0e0c!important}
html[data-cata-theme="dark"][data-cata-redesign] .hp-page__sidebar .hp-widget:first-child{border-color:var(--rd-line2)!important;box-shadow:0 30px 60px rgba(0,0,0,.45)}
html[data-cata-theme="dark"][data-cata-redesign] .hp-page__content :is(h2,h3,.hp-section__title){font-family:var(--rd-serif)!important;font-weight:500!important;color:#fff!important}
html[data-cata-theme="dark"][data-cata-redesign] .hp-listing__images img{border-radius:14px}

/* ── Forms everywhere ──────────────────────────────────────── */
html[data-cata-theme="dark"][data-cata-redesign] :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=submit]):not([type=button]),select,textarea,.select2-selection){border-radius:var(--rd-r-ctl)!important}
html[data-cata-theme="dark"][data-cata-redesign] :is(input,select,textarea):focus{box-shadow:0 0 0 3px rgba(201,165,90,.18)!important}
html[data-cata-theme="dark"][data-cata-redesign] :is(.hp-form__field label,.hp-field__label){font-size:11px!important;letter-spacing:2px!important;text-transform:uppercase;color:var(--rd-gold)!important}
html[data-cata-theme="dark"][data-cata-redesign] :is(.hp-modal,.fancybox-content){border-radius:22px!important;border:1px solid var(--rd-line2)!important}
html[data-cata-theme="dark"][data-cata-redesign] .hp-modal :is(h3,.hp-modal__title){font-family:var(--rd-serif)!important;font-weight:500!important;font-size:34px!important}

/* ── Pagination & filters ──────────────────────────────────── */
html[data-cata-theme="dark"][data-cata-redesign] :is(.pagination,.nav-links) .page-numbers{border-radius:10px!important}
html[data-cata-theme="dark"][data-cata-redesign] .hp-form--listing-filter{border-radius:var(--rd-r-card)!important;border:1px solid var(--rd-line)!important}

/* ── Footer ────────────────────────────────────────────────── */
html[data-cata-theme="dark"][data-cata-redesign] .site-footer{border-top:1px solid var(--rd-line)!important}
html[data-cata-theme="dark"][data-cata-redesign] .site-footer .widget__title{
  font-family:var(--rd-sans)!important;font-size:11px!important;font-weight:600!important;letter-spacing:2.5px!important;text-transform:uppercase}
html[data-cata-theme="dark"][data-cata-redesign] .site-footer .widget__title::before{height:1px!important}
html[data-cata-theme="dark"][data-cata-redesign] .site-footer .widget a{font-size:14px;color:rgba(242,237,228,.72)!important}
html[data-cata-theme="dark"][data-cata-redesign] .site-footer .widget a:hover{color:var(--rd-gold)!important}
html[data-cata-theme="dark"][data-cata-redesign] .footer-navbar{font-size:12px;color:rgba(242,237,228,.5)}

@media (prefers-reduced-motion:reduce){
  html[data-cata-theme="dark"][data-cata-redesign] :is(.ccb-card,.hp-listing--view-block){transition:none}
  html[data-cata-theme="dark"][data-cata-redesign] :is(.ccb-card,.hp-listing--view-block):hover{transform:none}
}
