/* Only desktop home. Original phone and CTAs remain in place in the DOM. */
@media screen and (min-width:768px) {
  body.thais-page-home section.th-home-hero.thais-madrid-desktop-ready {
    --madrid-gold: #c9a16a;
    --madrid-ink: #eaf2f6;
    box-sizing: border-box !important;
    isolation: isolate;
    position: relative !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
    grid-template-rows: minmax(min-content, 1fr) auto auto;
    align-items: center !important;
    column-gap: clamp(24px, 3vw, 58px) !important;
    row-gap: 10px !important;
    min-height: calc(100vh - var(--thais-madrid-offset, 104px)) !important;
    min-height: calc(100svh - var(--thais-madrid-offset, 104px)) !important;
    height: auto !important;
    padding: calc(var(--thais-madrid-overlap, 0px) + clamp(24px, 4vh, 60px)) max(6.5vw, calc((100% - 1320px) / 2)) clamp(30px, 5vh, 65px) !important;
    overflow: hidden !important;
    background-image: linear-gradient(112deg, transparent 57%, rgba(119,170,196,.075) 57.15%, transparent 57.35%), linear-gradient(90deg, rgba(5,22,34,.5), rgba(7,28,43,.08) 65%), url('madrid-metropolis.webp'), linear-gradient(112deg,#061b29 10%,#0b2638 58%,#133b55 100%) !important;
    background-size: 100% 100%, 100% 100%, auto 91%, cover !important;
    background-position: center, center, right center, center !important;
    background-repeat: no-repeat !important;
  }
  body.thais-page-home section.th-home-hero.thais-madrid-desktop-ready > .th-cityscape {
    position: absolute !important; inset:0 !important; pointer-events:none !important;
    z-index:-1 !important; opacity:.30 !important;
  }
  body.thais-page-home section.th-home-hero.thais-madrid-desktop-ready > .th-home-hero-inner {
    box-sizing:border-box !important;
    grid-column:1; grid-row:1;
    display:flex !important; align-items:center !important;
    width:100% !important; max-width:none !important; min-width:0 !important;
    min-height:0 !important; height:auto !important;
    margin:0 !important; padding:0 !important;
    position:relative !important; z-index:1;
  }
  body.thais-page-home section.th-home-hero.thais-madrid-desktop-ready .th-home-copy {
    display:flex !important; flex-direction:column !important; align-items:flex-start !important;
    width:100% !important; max-width:none !important; min-width:0 !important;
    min-height:0 !important; padding:0 !important; margin:0 !important;
    gap:clamp(18px, 3vh, 36px) !important;
  }
  body.thais-page-home section.th-home-hero.thais-madrid-desktop-ready .th-home-copy > .th-kicker {
    font-size:clamp(10px, .82vw, 13px) !important; letter-spacing:.16em !important;
    line-height:1.5 !important; margin:0 !important;
  }
  body.thais-page-home section.th-home-hero.thais-madrid-desktop-ready .th-home-copy > h1 {
    font-size:clamp(43px, min(5.1vw, 10.1vh), 85px) !important;
    line-height:1.04 !important; letter-spacing:-.03em !important;
    width:100% !important; max-width:100% !important; margin:0 !important;
  }
  body.thais-page-home section.th-home-hero.thais-madrid-desktop-ready .th-home-copy > h1 em { color:#c4d9e3 !important; }
  body.thais-page-home section.th-home-hero.thais-madrid-desktop-ready .th-home-copy > .th-hero-desc {
    font-size:clamp(16px,1.3vw,21px) !important; line-height:1.55 !important;
    max-width:61ch !important; margin:0 !important; color:var(--madrid-ink) !important;
  }
  body.thais-page-home section.th-home-hero.thais-madrid-desktop-ready .th-home-copy > .th-actions {
    display:flex !important; flex-wrap:wrap !important; align-items:center !important;
    gap:clamp(10px,1.3vw,20px) !important; margin:0 !important;
  }
  body.thais-page-home section.th-home-hero.thais-madrid-desktop-ready .th-actions > a.th-button {
    display:inline-flex !important; align-items:center !important; justify-content:center !important;
    min-height:50px !important; padding:12px clamp(14px,1.5vw,25px) !important;
    font-size:clamp(13px,1.05vw,16px) !important; white-space:normal !important;
  }
  body.thais-page-home section.th-home-hero.thais-madrid-desktop-ready .th-hero-mobile-call { display:none !important; }
  /* Existing desktop telephone is a real tel link; no new listeners or destinations. */
  body.thais-page-home section.th-home-hero.thais-madrid-desktop-ready > .th-hero-facts { display:contents !important; }
  body.thais-page-home section.th-home-hero.thais-madrid-desktop-ready > .th-hero-facts > a[href^="tel:"] {
    grid-column:2; grid-row:1; align-self:center; justify-self:stretch;
    box-sizing:border-box !important; display:flex !important; flex-direction:column !important;
    align-items:center !important; justify-content:center !important; gap:18px !important;
    position:relative !important; z-index:2; text-align:center !important;
    color:#fff !important; font-family:Georgia,'Times New Roman',serif !important;
    font-weight:400 !important; font-size:clamp(34px,3.55vw,59px) !important;
    line-height:1.2 !important; font-variant-numeric:lining-nums tabular-nums;
    white-space:nowrap !important; text-decoration:none !important;
    width:100% !important; max-width:none !important; margin:0 !important;
    padding:clamp(24px,4vh,52px) 0 !important; border:0 !important;
    border-inline-start:1px solid var(--madrid-gold) !important;
    background:transparent !important;
    text-shadow:0 2px 12px #061b29 !important;
  }
  body.thais-page-home section.th-home-hero.thais-madrid-desktop-ready > .th-hero-facts > a[href^="tel:"]::before {
    content:''; display:block; width:54px; height:54px;
    background: url('phone.svg') center / contain no-repeat;
  }
  body.thais-page-home section.th-home-hero.thais-madrid-desktop-ready > .th-hero-facts > a[href^="tel:"]::after {
    content:''; display:block; width:76px; height:1px; background:var(--madrid-gold);
  }
  body.thais-page-home section.th-home-hero.thais-madrid-desktop-ready > .th-hero-facts > a[href^="tel:"]:hover { color:#f1d4a9 !important; }
  body.thais-page-home section.th-home-hero.thais-madrid-desktop-ready > .th-hero-facts > a[href^="tel:"]:focus-visible { outline:2px solid #fff; outline-offset:5px; }
  body.thais-page-home section.th-home-hero.thais-madrid-desktop-ready > .th-hero-facts > span {
    grid-column:1 / -1; display:block !important; position:relative !important;
    z-index:1; justify-self:center; max-width:100% !important;
    text-align:center !important; margin:0 !important; padding:0 !important; color:var(--madrid-ink) !important;
    text-shadow:0 1px 5px #061b29;
  }
  body.thais-page-home section.th-home-hero.thais-madrid-desktop-ready > .th-hero-facts > span:nth-of-type(1) {
    grid-row:2; font-family:Georgia,'Times New Roman',serif !important; font-style:italic !important;
    font-size:clamp(19px,1.8vw,28px) !important; line-height:1.35 !important;
  }
  body.thais-page-home section.th-home-hero.thais-madrid-desktop-ready > .th-hero-facts > span:nth-of-type(1)::before,
  body.thais-page-home section.th-home-hero.thais-madrid-desktop-ready > .th-hero-facts > span:nth-of-type(1)::after {
    content:''; display:inline-block; vertical-align:middle; width:clamp(22px,4vw,70px); height:1px;
    margin-inline:clamp(12px,2vw,28px); background:var(--madrid-gold);
  }
  body.thais-page-home section.th-home-hero.thais-madrid-desktop-ready > .th-hero-facts > span:nth-of-type(2) {
    grid-row:3; font-size:clamp(15px,1.2vw,19px) !important; line-height:1.4 !important;
  }
}
@media screen and (min-width:768px) and (max-height:760px) {
  body.thais-page-home section.th-home-hero.thais-madrid-desktop-ready { padding-top:calc(var(--thais-madrid-overlap,0px) + 22px) !important; padding-bottom:25px !important; }
  body.thais-page-home section.th-home-hero.thais-madrid-desktop-ready .th-home-copy { gap:18px !important; }
  body.thais-page-home section.th-home-hero.thais-madrid-desktop-ready .th-home-copy > h1 { font-size:clamp(43px,min(4.85vw,9.5vh),72px) !important; }
  body.thais-page-home section.th-home-hero.thais-madrid-desktop-ready .th-actions > a.th-button { min-height:46px !important; }
}

@media screen and (min-width:768px) {
  html[dir="rtl"] body.thais-page-home section.th-home-hero.thais-madrid-desktop-ready { background-position:center,center,left center,center !important; }
}

@media (min-width:768px) and (max-width:1399px){body.thais-page-home section.th-home-hero.thais-madrid-desktop-ready{grid-template-columns:minmax(0,1.52fr) minmax(0,1fr);padding-inline:6%!important;background-size:100% 100%,100% 100%,auto 86%,cover!important}body.thais-page-home section.th-home-hero.thais-madrid-desktop-ready .th-home-copy > h1{font-size:clamp(42px,5.25vw,68px)!important}body.thais-page-home section.th-home-hero.thais-madrid-desktop-ready > .th-hero-facts > a[href^="tel:"]{font-size:clamp(31px,3.8vw,47px)!important;text-shadow:0 2px 12px #061b29,0 0 30px #061b29!important}body.thais-page-home section.th-home-hero.thais-madrid-desktop-ready > .th-hero-facts > span:nth-of-type(2){font-size:15px!important}body.thais-page-home section.th-home-hero.thais-madrid-desktop-ready > .th-hero-facts > span{max-width:calc(100% - 65px)!important}}@media (min-width:768px) and (orientation:portrait){body.thais-page-home section.th-home-hero.thais-madrid-desktop-ready{grid-template-columns:1fr;grid-template-rows:minmax(min-content,1fr) auto auto auto;align-content:center;row-gap:20px!important;padding:calc(var(--thais-madrid-overlap,0px) + 46px) 7% 36px!important;background-image:linear-gradient(90deg,rgba(5,22,34,.70),rgba(7,28,43,.23) 85%),url('madrid-tablet.webp'),linear-gradient(112deg,#061b29 10%,#0b2638 58%,#133b55 100%)!important;background-size:100% 100%,auto 68%,cover!important;background-position:center,right 85%,center!important}body.thais-page-home section.th-home-hero.thais-madrid-desktop-ready > .th-home-hero-inner{grid-column:1;grid-row:1;align-self:center}body.thais-page-home section.th-home-hero.thais-madrid-desktop-ready .th-home-copy{width:74%!important;gap:28px!important}body.thais-page-home section.th-home-hero.thais-madrid-desktop-ready .th-home-copy > h1{font-size:clamp(48px,7vw,72px)!important}body.thais-page-home section.th-home-hero.thais-madrid-desktop-ready .th-home-copy > .th-hero-desc{font-size:18px!important;max-width:41ch!important}body.thais-page-home section.th-home-hero.thais-madrid-desktop-ready > .th-hero-facts > a[href^="tel:"]{grid-column:1;grid-row:2;justify-self:start;align-self:center;width:fit-content!important;flex-direction:row!important;gap:15px!important;padding:15px 20px!important;font-size:40px!important;margin-bottom:12px!important}body.thais-page-home section.th-home-hero.thais-madrid-desktop-ready > .th-hero-facts > a[href^="tel:"]::before{width:38px;height:38px}body.thais-page-home section.th-home-hero.thais-madrid-desktop-ready > .th-hero-facts > a[href^="tel:"]::after{display:none}body.thais-page-home section.th-home-hero.thais-madrid-desktop-ready > .th-hero-facts > span:nth-of-type(1){grid-row:3;font-size:23px!important}body.thais-page-home section.th-home-hero.thais-madrid-desktop-ready > .th-hero-facts > span:nth-of-type(2){grid-row:4;font-size:15px!important}body.thais-page-home section.th-home-hero.thais-madrid-desktop-ready > .th-hero-facts > span:nth-of-type(1)::before,body.thais-page-home section.th-home-hero.thais-madrid-desktop-ready > .th-hero-facts > span:nth-of-type(1)::after{width:20px;margin-inline:10px}}@media (min-width:768px) and (max-width:1399px) and (orientation:landscape), (min-width:768px) and (orientation:landscape) and (pointer:coarse){body.thais-page-home section.th-home-hero.thais-madrid-desktop-ready .th-home-copy > h1 em{max-width:12ch}body.thais-page-home section.th-home-hero.thais-madrid-desktop-ready{background-size:100% 100%,100% 100%,auto 76%,cover!important}body.thais-page-home section.th-home-hero.thais-madrid-desktop-ready > .th-hero-facts > a[href^="tel:"]{padding-right:36px!important}}@media (min-width:768px) and (orientation:portrait){body.thais-page-home section.th-home-hero.thais-madrid-desktop-ready{grid-template-rows:auto auto auto auto;align-content:space-evenly;row-gap:12px!important}body.thais-page-home section.th-home-hero.thais-madrid-desktop-ready .th-home-copy > h1 em{max-width:12ch}body.thais-page-home section.th-home-hero.thais-madrid-desktop-ready > .th-hero-facts > span:nth-of-type(1){align-self:end}body.thais-page-home section.th-home-hero.thais-madrid-desktop-ready > .th-hero-facts > span:nth-of-type(2){align-self:start}}
@media (min-width:768px) and (max-width:1099px) and (orientation:landscape), (min-width:768px) and (pointer:coarse) and (orientation:landscape) {
body.thais-page-home section.th-home-hero.thais-madrid-desktop-ready {background-image:linear-gradient(112deg,transparent 57%,rgba(119,170,196,.075) 57.15%,transparent 57.35%),linear-gradient(90deg,rgba(5,22,34,.5),rgba(7,28,43,.12) 65%),url('madrid-tablet.webp'),linear-gradient(112deg,#061b29 10%,#0b2638 58%,#133b55 100%)!important;}
}
@media (min-width:768px) and (orientation:portrait) {body.thais-page-home section.th-home-hero.thais-madrid-desktop-ready {background-image:linear-gradient(90deg,rgba(5,22,34,.72),rgba(7,28,43,.24) 85%),url('madrid-tablet.webp'),linear-gradient(112deg,#061b29 10%,#0b2638 58%,#133b55 100%)!important;}}
@media (min-width:768px) and (max-width:1399px) and (max-height:760px) {body.thais-page-home section.th-home-hero.thais-madrid-desktop-ready .th-home-copy > h1 {font-size:clamp(38px,min(5.25vw,9.5vh),68px)!important;}}
@media (min-width:768px) and (max-width:900px) and (orientation:landscape) {body.thais-page-home section.th-home-hero.thais-madrid-desktop-ready > .th-hero-facts > a[href^="tel:"] {padding-inline:6px!important;font-size:clamp(25px,3.8vw,33px)!important;}}
@media (min-width:768px) {body.thais-page-home section.th-home-hero.thais-madrid-desktop-ready .th-home-copy {justify-content:center!important;flex:0 1 auto!important;}body.thais-page-home section.th-home-hero.thais-madrid-desktop-ready > .th-hero-facts > span {max-width:calc(100% - 70px)!important;} body.thais-page-home section.th-home-hero.thais-madrid-desktop-ready > .th-hero-facts > span:nth-of-type(2) {line-height:1.5!important;}}
@media (min-width:768px) and (orientation:portrait) {html[dir="rtl"] body.thais-page-home section.th-home-hero.thais-madrid-desktop-ready {background-position:center,left 85%,center!important;}}

/* Keep tablet text aligned with contact and group the two supporting lines. */
@media (min-width:768px) and (orientation:portrait) {
 body.thais-page-home section.th-home-hero.thais-madrid-desktop-ready {grid-template-rows:minmax(min-content,1fr) auto auto auto;align-content:stretch;row-gap:14px!important;}
 body.thais-page-home section.th-home-hero.thais-madrid-desktop-ready > .th-home-hero-inner {flex-direction:row!important;justify-content:flex-start!important;align-self:center;}
 body.thais-page-home section.th-home-hero.thais-madrid-desktop-ready > .th-hero-facts > a[href^="tel:"] {margin-bottom:clamp(22px,5vh,52px)!important;}
}
