/* Compatibility sheet for pre-component work. Do not add new styles here:
   new component rules live in assets/css/components/ and load afterwards. */
@media (max-width: 1023px) {
  html, body { overflow-x: hidden; }
  body.tsf-menu-open { overflow: hidden; }
  .tsf-header, body:has(.tsf-balcony-landing) .tsf-header { padding-left: clamp(22px, 4vw, 42px); padding-right: clamp(22px, 4vw, 42px); }
  .tsf-header .tsf-mainbar { min-height: 80px; position: relative; z-index: 1; }
  .tsf-header .tsf-brand, .tsf-header .tsf-menu-button { position: relative; z-index: 2; }
  .tsf-header .tsf-menu-button { align-items: center; background: transparent; border: 0; color: var(--ink, #161514); cursor: pointer; display: inline-flex !important; height: 48px; justify-content: center; padding: 0; position: relative; width: 48px; }
  .tsf-header .tsf-menu-button span { background: currentColor !important; height: 2px; left: 12px; margin: 0; position: absolute; top: 18px; transform-origin: center; transition: top .22s ease, transform .22s ease; width: 24px; }
  .tsf-header .tsf-menu-button span:last-child { top: 28px; }
  .tsf-header .tsf-menu-button[aria-expanded="true"] span:first-child { top: 23px; transform: rotate(45deg); }
  .tsf-header .tsf-menu-button[aria-expanded="true"] span:last-child { top: 23px; transform: rotate(-45deg); }
  .tsf-header .tsf-menu-button:focus-visible { outline: 2px solid var(--red, #c6192e); outline-offset: 4px; }
  .tsf-header .tsf-nav { align-items: stretch; background: #fff !important; border: 0; border-top: 3px solid var(--red, #c6192e); bottom: 0; box-shadow: none !important; color: var(--ink, #161514); display: flex !important; flex-direction: column; gap: 0; height: calc(100dvh - 84px); left: 0; max-height: none; min-height: 0 !important; opacity: 0; overflow-x: hidden; overflow-y: auto; padding: 20px clamp(22px, 4vw, 42px) max(28px, env(safe-area-inset-bottom)); pointer-events: none; position: fixed; right: 0; scrollbar-gutter: stable; text-shadow: none; top: 84px; transform: translateY(-8px); transition: opacity .2s ease, transform .24s ease, visibility .2s ease; visibility: hidden; width: auto; z-index: 1; }
  .tsf-header .tsf-nav.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); visibility: visible; }
  .tsf-header .tsf-nav > .tsf-nav-home, .tsf-header .tsf-nav > .tsf-nav-dropdown, .tsf-header .tsf-nav > a:not(.tsf-nav-cta) { border-top: 1px solid rgba(18, 18, 18, .16); }
  .tsf-header .tsf-nav > .tsf-nav-home, .tsf-header .tsf-nav > .tsf-nav-dropdown > .tsf-nav-dropdown-trigger > a, .tsf-header .tsf-nav > a:not(.tsf-nav-cta), .tsf-header .tsf-nav-dropdown--menu-only > .tsf-nav-dropdown-trigger > .tsf-nav-dropdown-primary { color: var(--ink, #161514); font-family: var(--font-display, Georgia, serif); font-size: clamp(26px, 4vw, 34px); font-weight: 500; letter-spacing: -1.45px; line-height: 1; padding: 16px 0 17px; white-space: normal; }
  .tsf-header .tsf-nav > .tsf-nav-home { align-items: center; display: flex; justify-content: space-between; }
  .tsf-header .tsf-nav > .tsf-nav-home::after { color: var(--red, #c6192e); content: "→"; font-family: var(--font-ui, sans-serif); font-size: 17px; }
  .tsf-header .tsf-nav > .tsf-nav-dropdown { width: 100%; }
  .tsf-header .tsf-nav > .tsf-nav-dropdown > .tsf-nav-dropdown-trigger { align-items: center; display: flex; justify-content: space-between; }
  .tsf-header .tsf-nav-dropdown-trigger button, .tsf-header .tsf-nav-dropdown--menu-only .tsf-nav-dropdown-icon { color: var(--red, #c6192e); height: 54px; margin: 0; width: 48px; }
  .tsf-header .tsf-nav-dropdown-trigger button span { height: 11px; width: 11px; }
  .tsf-header .tsf-nav-submenu { background: transparent; border: 0; box-shadow: none; display: grid; left: auto; max-height: 0; min-width: 0; opacity: 1; overflow: hidden; padding: 0 0 0 12px; pointer-events: none; position: static; transform: none; transition: max-height .3s ease, padding .25s ease; visibility: visible; }
  .tsf-header .tsf-nav-dropdown.is-open .tsf-nav-submenu { max-height: 560px; padding: 0 0 14px 12px; pointer-events: auto; }
  .tsf-header .tsf-nav-submenu a { border-bottom: 1px solid rgba(18, 18, 18, .11); color: #625a52; font-size: 14px; padding: 11px 2px; }
  .tsf-header .tsf-nav .tsf-nav-cta { align-items: center; justify-content: center; margin: 22px 0 0; min-height: 50px; padding: 14px 18px; }
  .admin-bar .tsf-header .tsf-nav { height: calc(100dvh - 116px); top: 116px; }
}
@media (max-width: 782px) { .admin-bar .tsf-header .tsf-nav { height: calc(100dvh - 130px); top: 130px; } }
@media (max-width: 767px) { .tsf-header .tsf-nav > .tsf-nav-home, .tsf-header .tsf-nav > .tsf-nav-dropdown > .tsf-nav-dropdown-trigger > a, .tsf-header .tsf-nav > a:not(.tsf-nav-cta), .tsf-header .tsf-nav-dropdown--menu-only > .tsf-nav-dropdown-trigger > .tsf-nav-dropdown-primary { font-size: clamp(25px, 7.2vw, 30px); } }
@media (min-width: 1024px) { .tsf-header .tsf-menu-button { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .tsf-header .tsf-menu-button span, .tsf-header .tsf-nav, .tsf-header .tsf-nav-submenu { transition: none; } }

/* Existing carousels retain their own dots where present. Simpler horizontal
   rails now share a clear cue whenever additional content is available. */
@media (max-width: 1023px) {
  .tsf-scrollable { box-shadow: inset -24px 0 18px -22px rgba(18, 18, 18, .9); scroll-padding-inline-end: 12vw; }
  .tsf-scrollable[data-scroll-position="end"] { box-shadow: none; }
  .tsf-scrollable[data-scroll-hint="true"]::after { color: var(--red, #c6192e); content: "→"; display: inline-block; font-family: var(--font-ui, sans-serif); font-size: 17px; line-height: 1; padding: 8px 4px 1px; }
}

/* The language popover is closed by default and opens directly below its
   trigger, independently of the primary-navigation layout. */
.tsf-language-switcher__menu {
  display: none !important;
  left: auto !important;
  right: 0 !important;
  top: calc(100% + 9px) !important;
}
.tsf-language-switcher[open] > .tsf-language-switcher__menu { display: grid !important; }
@media (max-width: 767px) {
  .tsf-language-switcher__menu { left: 0 !important; right: auto !important; }
}

/* Language selector: one compact, editorial popover.  This file loads after
   legacy header styles, so these rules deliberately reset the old variants. */
.tsf-header .tsf-language-switcher {
  isolation: isolate;
  overflow: visible;
  position: relative;
  z-index: 1200;
}

.tsf-header .tsf-language-switcher > .tsf-language-switcher__toggle {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-family: var(--font-ui, Inter, sans-serif);
  font-size: 10px;
  font-weight: 700;
  gap: 7px;
  letter-spacing: .08em;
  line-height: 1;
  min-height: 28px;
  padding: 0 2px 0 11px;
  text-transform: uppercase;
}

.tsf-header .tsf-language-switcher > .tsf-language-switcher__toggle::-webkit-details-marker {
  display: none;
}

.tsf-header .tsf-language-switcher__chevron {
  border-bottom: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  display: block;
  font-size: 0;
  height: 6px;
  line-height: 0;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .18s ease;
  width: 6px;
}

.tsf-header .tsf-language-switcher > .tsf-language-switcher__toggle:hover,
.tsf-header .tsf-language-switcher > .tsf-language-switcher__toggle:focus-visible {
  background: transparent;
  box-shadow: none;
  color: rgba(255,255,255,.78);
  outline: 0;
}

.tsf-header .tsf-language-switcher[open] > .tsf-language-switcher__toggle {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: #fff;
}

.tsf-header .tsf-language-switcher[open] .tsf-language-switcher__chevron {
  transform: rotate(225deg) translateY(-1px);
}

.tsf-header .tsf-language-switcher > .tsf-language-switcher__menu {
  background: #fffdf9;
  border: 1px solid rgba(81, 37, 30, .18);
  border-radius: 6px;
  box-shadow: 0 12px 30px rgba(47, 19, 20, .2);
  box-sizing: border-box;
  gap: 1px;
  margin: 0;
  min-width: 154px;
  padding: 5px;
  position: absolute;
  right: -7px !important;
  top: calc(100% + 8px) !important;
}

.tsf-header .tsf-language-switcher > .tsf-language-switcher__menu::before {
  content: none;
}

.tsf-header .tsf-language-switcher > .tsf-language-switcher__menu a {
  align-items: center;
  background: transparent;
  border-radius: 3px;
  color: #241d1a !important;
  display: flex;
  font-family: var(--font-ui, Inter, sans-serif);
  font-size: 11px;
  font-weight: 600;
  justify-content: space-between;
  letter-spacing: .045em;
  line-height: 1;
  min-height: 37px;
  padding: 0 10px;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color .16s ease, color .16s ease;
}

.tsf-header .tsf-language-switcher > .tsf-language-switcher__menu a[aria-current="true"] {
  background: rgba(198, 25, 46, .08);
  color: var(--red, #c6192e) !important;
  font-weight: 700;
}

.tsf-header .tsf-language-switcher > .tsf-language-switcher__menu a[aria-current="true"]::after {
  background: var(--red, #c6192e);
  border-radius: 50%;
  content: "";
  height: 5px;
  margin-left: 10px;
  width: 5px;
}

.tsf-header .tsf-language-switcher > .tsf-language-switcher__menu a:hover,
.tsf-header .tsf-language-switcher > .tsf-language-switcher__menu a:focus-visible {
  background: #f7ece6;
  color: var(--red, #c6192e) !important;
  outline: 0;
}

@media (max-width: 767px) {
  .tsf-header .tsf-language-switcher > .tsf-language-switcher__menu {
    left: -6px !important;
    right: auto !important;
  }
}

/* The bow-tie print belongs to the enquiry card only.  Earlier exploratory
   styles attached decorative pseudo-elements to its column and consultation
   section; reset those layers here and paint-contain the card so the textile
   can never escape its green rectangle. */
.tsf-balcony-landing .tsf-balcony-consultation::before,
.tsf-balcony-landing .tsf-balcony-consultation::after,
.tsf-balcony-landing .tsf-balcony-consultation__grid::before,
.tsf-balcony-landing .tsf-balcony-consultation__grid::after,
.tsf-balcony-landing .tsf-balcony-story::before,
.tsf-balcony-landing .tsf-balcony-story::after,
.tsf-balcony-landing .tsf-balcony-form-stage,
.tsf-balcony-landing .tsf-balcony-form-stage::before,
.tsf-balcony-landing .tsf-balcony-form-stage::after {
  background-image: none !important;
}

.tsf-balcony-landing .tsf-balcony-consultation::before,
.tsf-balcony-landing .tsf-balcony-consultation::after,
.tsf-balcony-landing .tsf-balcony-consultation__grid::before,
.tsf-balcony-landing .tsf-balcony-consultation__grid::after,
.tsf-balcony-landing .tsf-balcony-story::before,
.tsf-balcony-landing .tsf-balcony-story::after,
.tsf-balcony-landing .tsf-balcony-form-stage::before,
.tsf-balcony-landing .tsf-balcony-form-stage::after {
  content: none !important;
}

.tsf-balcony-landing .tsf-contact-form.tsf-balcony-form {
  contain: paint;
  isolation: isolate;
  overflow: hidden !important;
  position: relative;
}

.tsf-balcony-landing .tsf-contact-form.tsf-balcony-form::before {
  background-image: url("../images/san-fermin-bow-form-pattern.svg?v=20260911") !important;
  content: "" !important;
  inset: 0 !important;
}

/* The supplied Venice mark is high-resolution.  Let it use a generous,
   balanced footprint instead of the old 98 × 74 px fallback. */
.tsf-other-projects-logos a:last-child img {
  height: auto !important;
  max-height: 150px !important;
  max-width: min(100%, 195px) !important;
  width: 195px !important;
}

@media (max-width: 767px) {
  .tsf-other-projects-logos a:last-child img {
    max-height: 128px !important;
    width: 172px !important;
  }
}

/* Footer section names need to work as actual headings, not micro-labels. */
.tsf-footer .tsf-footer-nav h2 {
  font-family: var(--font-ui, Inter, sans-serif);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .105em;
  line-height: 1.25;
  margin-bottom: 18px;
}

@media (max-width: 767px) {
  .tsf-footer .tsf-footer-nav h2 {
    font-size: 13px;
    margin-bottom: 15px;
  }
}

/* Home category cards return to their original one-sided editorial treatment:
   photography, gradient and title on the image.  There is no reverse face. */
@media (hover: hover) and (pointer: fine) {
  .home .tsf-interest-card {
    aspect-ratio: 1.5;
    background: var(--ink, #171513);
    border: 1px solid transparent;
    min-height: 0;
    overflow: hidden;
    perspective: none;
    transform: none !important;
  }

  .home .tsf-interest-card:hover,
  .home .tsf-interest-card:focus-visible {
    border-color: var(--red, #c6192e);
    box-shadow: 0 15px 28px rgba(79, 49, 39, .16);
    transform: translateY(-4px) !important;
  }

  .home .tsf-interest-image {
    backface-visibility: visible;
    transform: none !important;
  }

  .home .tsf-interest-image img {
    transform: scale(1.001);
    transition: transform .7s cubic-bezier(.22, .61, .2, 1);
  }

  .home .tsf-interest-card:hover .tsf-interest-image img,
  .home .tsf-interest-card:focus-visible .tsf-interest-image img {
    transform: scale(1.045);
  }

  .home .tsf-interest-copy {
    backface-visibility: hidden;
    transform: rotateY(180deg) !important;
  }

  /* Restore the original front-card details: concise subtitle and the small
     circular plus, without reintroducing the old card reverse. */
  .home .tsf-interest-copy {
    background: transparent;
    color: #fff;
    display: block;
    inset: 0;
    padding: 0;
    transform: none !important;
  }

  .home .tsf-interest-copy strong,
  .home .tsf-interest-card:hover .tsf-interest-copy strong,
  .home .tsf-interest-card:focus-visible .tsf-interest-copy strong {
    display: none !important;
  }

  .home .tsf-interest-front-label {
    left: 25px !important;
    position: absolute !important;
    top: auto !important;
    bottom: 51px;
  }

  .home .tsf-interest-copy small {
    bottom: 22px;
    color: rgba(255, 255, 255, .9);
    display: block;
    font-family: var(--font-ui, Inter, sans-serif);
    font-size: 11px;
    left: 25px;
    letter-spacing: 0;
    line-height: 1.35;
    margin: 0;
    max-height: none;
    max-width: calc(100% - 52px);
    opacity: 1;
    overflow: visible;
    position: absolute;
    text-shadow: 0 1px 7px rgba(0, 0, 0, .72);
    text-transform: none;
    transform: none;
  }

  .home .tsf-interest-card:hover .tsf-interest-copy small,
  .home .tsf-interest-card:focus-visible .tsf-interest-copy small {
    margin-top: 0;
    max-height: none;
    opacity: 1;
    transform: none;
  }

  .home .tsf-interest-action,
  .home .tsf-interest-card:hover .tsf-interest-action,
  .home .tsf-interest-card:focus-visible .tsf-interest-action {
    display: none !important;
  }

  .home .tsf-interest-copy b {
    align-items: center;
    background: #171513;
    border: 1px solid #171513;
    border-radius: 50%;
    color: var(--red, #c6192e);
    display: flex;
    font-family: var(--font-ui, Inter, sans-serif);
    font-size: 18px;
    font-weight: 400;
    height: 28px;
    justify-content: center;
    line-height: 1;
    position: absolute;
    right: 18px;
    text-shadow: none;
    top: 18px;
    transform: none;
    transition: background-color .22s ease, border-color .22s ease, transform .22s ease;
    width: 28px;
  }

  .home .tsf-interest-card:hover .tsf-interest-copy b,
  .home .tsf-interest-card:focus-visible .tsf-interest-copy b {
    background: var(--red, #c6192e);
    border-color: var(--red, #c6192e);
    color: #171513;
    transform: none;
  }
}

/* About us — final editorial chapter.  The copy and photograph share the
   same outer container, with a wider reading column so the text ends nearer
   to the image instead of becoming an unnecessarily tall narrow block. */
@media (min-width: 761px) {
  .tsf-about-aman__future {
    align-items: start;
    box-sizing: border-box;
    column-gap: clamp(56px, 5vw, 96px);
    grid-template-columns: minmax(0, 1.24fr) minmax(420px, .76fr);
    max-width: 1760px;
    padding: 0 clamp(52px, 4.2vw, 80px) clamp(92px, 8vw, 132px);
    width: 100%;
  }

  .tsf-about-aman__future .tsf-about-aman__copy {
    align-self: start;
    margin: 0;
    max-width: none;
  }

  .tsf-about-aman__future .tsf-about-aman__copy h2 {
    font-size: clamp(48px, 3.45vw, 64px);
    line-height: .94;
    margin: 16px 0 26px;
    max-width: 23ch;
  }

  .tsf-about-aman__future .tsf-about-aman__copy p {
    font-size: clamp(18px, 1.18vw, 22px);
    line-height: 1.5;
    margin-bottom: 19px;
    max-width: none;
  }

  .tsf-about-aman__future figure {
    align-self: start;
    height: clamp(420px, 32vw, 580px);
    justify-self: stretch;
    margin: 0;
    max-width: none;
    width: 100%;
  }
}

@media (max-width: 760px) {
  .tsf-about-aman__desktop-break {
    display: none;
  }
}

@media (min-width: 761px) {
  .tsf-about-aman__future .tsf-about-aman__note {
    font-size: clamp(32px, 2.65vw, 46px);
    margin-left: clamp(28px, 3.2vw, 58px);
    max-width: none;
  }
}

/* About services — the same tall, image-led proposal card used by the service
   rails. Every card is a direct route to a consultable service landing. */
.tsf-about-aman__services-track a {
  color: #fff;
  overflow: hidden;
  position: relative;
}

.tsf-about-aman__services-track a::after {
  background: linear-gradient(180deg, rgba(6, 5, 4, .04) 22%, rgba(6, 5, 4, .88) 100%);
  content: '';
  display: block;
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.tsf-about-aman__services-track img {
  aspect-ratio: auto;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.tsf-about-aman__services-track span {
  bottom: 0;
  left: 0;
  padding: clamp(20px, 2vw, 30px);
  position: absolute;
  right: 0;
  z-index: 1;
}

.tsf-about-aman__services-track small {
  color: #fff;
  font-weight: 700;
  letter-spacing: .09em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.tsf-about-aman__services-track strong {
  color: #fff;
  font-size: clamp(30px, 2.55vw, 44px);
  line-height: .95;
}

.tsf-about-aman__services-track b {
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, .5);
  color: #fff;
  display: flex;
  font-family: var(--font-ui, Inter, sans-serif);
  font-size: 10px;
  font-weight: 700;
  justify-content: space-between;
  letter-spacing: .09em;
  margin-top: 18px;
  padding-top: 14px;
  text-transform: uppercase;
}

.tsf-about-aman__services-track b i {
  font-size: 23px;
  font-style: normal;
  font-weight: 400;
  line-height: .5;
}

@media (min-width: 761px) {
  .tsf-about-aman__services-track {
    gap: 32px;
  }

  .tsf-about-aman__services-track a {
    aspect-ratio: .84;
    flex-basis: calc((100vw - 5.3vw - 64px) / 3);
  }
}

@media (max-width: 760px) {
  .tsf-about-aman__services-track a {
    aspect-ratio: .84;
    min-height: 0;
  }
}

/* Gallery credits — a closing credit, not a full-height destination section. */
.tsf-gallery-credit {
  padding: clamp(52px, 5vw, 76px) 0;
}

.tsf-gallery-credit__inner {
  gap: clamp(24px, 2.4vw, 36px);
}

.tsf-gallery-credit h2 {
  margin-top: 14px;
}

.tsf-gallery-credit__panel {
  padding: clamp(24px, 2.5vw, 34px);
}

.tsf-gallery-credit__eyebrow {
  margin-bottom: 12px;
}

.tsf-gallery-credit h3 {
  margin-bottom: 12px;
}

.tsf-gallery-credit dl {
  margin-top: 20px;
  padding-top: 15px;
}

@media (max-width: 600px) {
  .tsf-gallery-credit {
    padding: 44px 0;
  }

  .tsf-gallery-credit__inner {
    gap: 23px;
  }
}

/* Accommodation uses the same compact, three-step enquiry card as the other
   service landings. Its contact row is deliberately kept to email + phone. */
@media (min-width: 681px) {
  .tsf-service-landing--alojamiento .tsf-balcony-form.tsf-service-multistep {
    min-height: 0;
    padding: clamp(24px, 2.35vw, 34px);
  }

  .tsf-service-landing--alojamiento .tsf-service-multistep__progress {
    margin: 17px 0 14px;
  }

  .tsf-service-landing--alojamiento .tsf-service-multistep__step .tsf-form-grid {
    gap: 14px 20px;
    margin-top: 12px;
    padding: 9px 0 7px;
  }

  .tsf-service-landing--alojamiento .tsf-service-multistep__step[data-service-step="1"] .tsf-form-grid > p:nth-child(3),
  .tsf-service-landing--alojamiento .tsf-service-multistep__step[data-service-step="1"] .tsf-form-grid > p:nth-child(4) {
    align-self: end;
  }
}
