.tg-studio-page{font-family:Inter,Arial,sans-serif;background:#f6f6f4;color:#111}
.tg-studio-hero{min-height:380px;background:#151515;color:#fff;display:flex;align-items:end;position:relative;overflow:hidden}
.tg-studio-hero::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.86),rgba(0,0,0,.38))}
.tg-studio-hero-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.tg-studio-hero-inner{position:relative;z-index:1;width:min(1180px,calc(100% - 48px));margin:0 auto;padding:72px 0}
.tg-studio-hero-copy{max-width:720px}
.tg-studio-hero h1{font-size:clamp(38px,6vw,68px);line-height:.95;margin:0 0 14px;font-weight:800}
.tg-rating{display:flex;gap:9px;align-items:center;margin:14px 0}.stars{color:#b87900;letter-spacing:1px}
.tg-studio-hero .stars{color:#ffb000}
.tg-badges{display:flex;gap:10px;margin:20px 0;flex-wrap:wrap}.tg-badges span{border:1px solid rgba(255,255,255,.44);border-radius:8px;padding:8px 12px;background:rgba(0,0,0,.28)}
.tg-primary,.tg-booking-card button{border:0;background:#5620d8;color:#fff;border-radius:8px;padding:14px 22px;font-weight:800;cursor:pointer}
.tg-primary:hover,.tg-booking-card button:hover{background:#4214b3}
.tg-studio-main{width:min(1180px,calc(100% - 48px));margin:34px auto 80px}
.tg-gallery-layout{display:grid;gap:34px;margin-bottom:8px}
.tg-gallery-group{padding-top:6px}
.tg-gallery-group+ .tg-gallery-group{border-top:1px solid #deded9;padding-top:28px}
.tg-gallery-group h3{font-size:18px;line-height:1.2;margin:0 0 14px;font-weight:900;letter-spacing:-.01em}
.tg-slot-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.tg-slot-grid-top{grid-template-columns:1.4fr 1fr 1fr;grid-auto-flow:dense}
.tg-slot-card{background:white;border:1px solid #d4d4d4;border-radius:10px;overflow:hidden;box-shadow:0 10px 26px rgba(0,0,0,.035)}

.tg-slot-card img{width:100%;aspect-ratio:16/9;object-fit:cover;background:#e9e9e5;display:block}

.tg-slot-card span{display:block;padding:10px 12px;font-weight:800;font-size:13px}
.tg-gallery-group-access{margin-top:8px}
.tg-gallery-group-rooms{margin-top:12px}
.tg-gallery-group-tech{margin-top:18px}
.tg-gallery-group-tech h3,.tg-gallery-group-rooms h3{margin-bottom:16px}

.tg-studio-columns{display:grid;grid-template-columns:1.1fr .9fr 1fr;gap:16px;margin-top:24px}.tg-studio-columns.bottom{grid-template-columns:1fr 1fr 1fr}
.tg-card{background:#fff;border:1px solid #d4d4d4;border-radius:10px;padding:22px}.tg-card h3{margin-top:0}.tg-card h4{margin-bottom:8px}.tg-card ul{columns:2;padding-left:18px}.tg-card li{break-inside:avoid;margin-bottom:5px}
.tg-feature-group{border-top:1px solid #eee;padding-top:14px;margin-top:14px}.tg-feature-group:first-of-type{border-top:0;padding-top:0}
.tg-note,.tg-muted{color:#555}.tg-two{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.tg-info-list{display:grid;gap:10px;margin:12px 0}.tg-info-list div{display:grid;grid-template-columns:92px 1fr;gap:12px;border-bottom:1px solid #eee;padding-bottom:9px}.tg-info-list dt{font-weight:800;color:#333}.tg-info-list dd{margin:0;color:#111;overflow-wrap:anywhere}.tg-info-list a{color:#4214b3}
.tg-availability-list{columns:1!important}
.tg-card label,.tg-modal label{display:block;font-weight:800;font-size:13px;color:#222}.tg-card input,.tg-card textarea,.tg-card select,.tg-modal input,.tg-modal textarea{box-sizing:border-box;width:100%;border:1px solid #cfcfcf;border-radius:7px;padding:12px;margin:6px 0 10px;background:#fff;color:#111}.tg-card textarea,.tg-modal textarea{min-height:100px}
.tg-review{border-top:1px solid #eee;padding-top:14px;margin-top:14px}.tg-review p{margin:.4rem 0}.tg-review-form{border-top:1px solid #eee;margin-top:16px;padding-top:16px}.tg-review-form button{border:0;background:#111;color:#fff;border-radius:8px;padding:12px 16px;font-weight:800}
.tg-modal{position:fixed;inset:0;background:rgba(0,0,0,.62);z-index:50;display:grid;place-items:center}.tg-modal-box{width:min(520px,calc(100% - 30px));background:#fff;border-radius:14px;padding:24px;position:relative}.tg-modal-close{position:absolute;right:14px;top:10px;border:0;background:transparent;font-size:30px;cursor:pointer;color:#111}
@media(max-width:900px){.tg-slot-grid,.tg-slot-grid-main{grid-template-columns:repeat(2,1fr)}.tg-slot-card.is-large{grid-column:span 2;grid-row:auto}.tg-slot-card.is-large img{min-height:260px}.tg-studio-columns,.tg-studio-columns.bottom{grid-template-columns:1fr}.tg-studio-hero{min-height:340px}}
@media(max-width:560px){.tg-slot-grid,.tg-slot-grid-main{grid-template-columns:1fr}.tg-slot-card.is-large{grid-column:auto}.tg-slot-card.is-large img{min-height:0;aspect-ratio:16/9}.tg-studio-main,.tg-studio-hero-inner{width:calc(100% - 28px)}.tg-info-list div{grid-template-columns:1fr}.tg-two{grid-template-columns:1fr}.tg-card ul{columns:1}}


/* v2.3 cosmetic refinement */
.tg-hero-actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center}
.tg-secondary,.tg-small-action{border:1px solid #d7d7d7;background:#fff;color:#111;border-radius:8px;padding:12px 16px;font-weight:800;cursor:pointer}
.tg-studio-hero .tg-secondary{background:rgba(255,255,255,.94);border-color:rgba(255,255,255,.7)}
.tg-small-action{margin-top:16px;background:#111;color:#fff;border-color:#111}
.tg-card{box-shadow:0 14px 34px rgba(0,0,0,.045)}
.tg-card h3{font-size:22px;line-height:1.15;margin:0 0 18px;font-weight:900;letter-spacing:-.02em}
.tg-card h4{font-size:15px;line-height:1.2;margin:22px 0 10px;font-weight:900;color:#111;text-transform:uppercase;letter-spacing:.055em}
.tg-feature-group h4{margin-top:0}
.tg-note{display:block;margin:14px 0 24px;padding:10px 12px;border-radius:8px;background:#f1f1ee;color:#333;font-size:13px;line-height:1.45}
.tg-opening{margin-top:10px;padding:12px;border:1px solid #eee;border-radius:8px;background:#fafafa;color:#222;line-height:1.55}
.tg-info-list div{background:#fafafa;border:1px solid #eee;border-radius:8px;padding:10px 12px}
.tg-info-list{gap:8px}
.tg-price-block{display:grid;gap:8px}
.tg-muted{color:#444}
.tg-booking-card h3{margin-bottom:16px}
.tg-booking-card form{display:grid;gap:4px}
.tg-review-form{border-top:0;margin-top:0;padding-top:0}
.tg-review-form button{width:100%;margin-top:8px}
@media(max-width:560px){.tg-hero-actions{align-items:stretch}.tg-hero-actions button{width:100%}}

.tg-gallery-group-access{
  margin-top:32px;
}

/* v2.7 gallery emphasis */
.tg-slot-grid-top{
  grid-template-columns:repeat(4,minmax(0,1fr));
  grid-auto-flow:dense;
}
.tg-slot-grid-top .tg-slot-card.is-large{
  grid-column:span 2;
}
.tg-slot-grid-top .tg-slot-card.is-large img{
  min-height:260px;
}
@media(max-width:900px){
  .tg-slot-grid-top{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .tg-slot-grid-top .tg-slot-card.is-large{
    grid-column:span 2;
  }
}
@media(max-width:560px){
  .tg-slot-grid-top{
    grid-template-columns:1fr;
  }
  .tg-slot-grid-top .tg-slot-card.is-large{
    grid-column:auto;
  }
  .tg-slot-grid-top .tg-slot-card.is-large img{
    min-height:0;
  }
}


/* v2.8 hero readability + Chrome gallery grid fix */
.tg-studio-hero::after{
  background:linear-gradient(90deg,rgba(0,0,0,.92) 0%,rgba(0,0,0,.74) 30%,rgba(0,0,0,.30) 62%,rgba(0,0,0,0) 100%);
  pointer-events:none;
}
.tg-studio-hero-copy{
  text-shadow:0 2px 18px rgba(0,0,0,.48);
}

/* First studio image spans 2x2. Four following images sit as 2x2 beside it. */
.tg-slot-grid-top{
  grid-template-columns:repeat(4,minmax(0,1fr));
  grid-auto-rows:auto;
  align-items:start;
}
.tg-slot-grid-top .tg-slot-card{
  display:flex;
  flex-direction:column;
  min-height:0;
}
.tg-slot-grid-top .tg-slot-card.is-large{
  grid-column:span 2;
  grid-row:span 2;
}
.tg-slot-grid-top .tg-slot-card img{
  aspect-ratio:16/9;
  height:auto;
  min-height:0;
}
.tg-slot-grid-top .tg-slot-card.is-large img{
  aspect-ratio:16/9;
  min-height:0;
}
.tg-slot-grid-top .tg-slot-card span{
  flex:0 0 auto;
  min-height:0;
  line-height:1.25;
}

/* Override older min-height rules from previous versions. */
.tg-slot-card.is-large img{
  min-height:0!important;
  height:auto!important;
  aspect-ratio:16/9!important;
}

@media(max-width:900px){
  .tg-slot-grid-top{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .tg-slot-grid-top .tg-slot-card.is-large{
    grid-column:span 2;
    grid-row:auto;
  }
}
@media(max-width:560px){
  .tg-slot-grid-top{
    grid-template-columns:1fr;
  }
  .tg-slot-grid-top .tg-slot-card.is-large{
    grid-column:auto;
    grid-row:auto;
  }
}


/* v2.9 desktop: large studio image aligns with bottom of second small row */
@media(min-width:901px){
  .tg-slot-grid-top{
    align-items:stretch;
  }

  .tg-slot-grid-top .tg-slot-card.is-large{
    grid-column:span 2;
    grid-row:span 2;
    height:100%;
    display:flex;
    flex-direction:column;
  }

  .tg-slot-grid-top .tg-slot-card.is-large img{
    flex:1 1 auto;
    height:100%!important;
    min-height:0!important;
    aspect-ratio:auto!important;
    object-fit:cover;
  }

  .tg-slot-grid-top .tg-slot-card.is-large span{
    flex:0 0 auto;
  }
}


/* v3.0 remove white caption strip, replace with dark overlay label */
.tg-slot-card{
  position:relative;
}

.tg-slot-card span{
  position:absolute;
  left:0;
  bottom:0;
  width:100%;
  padding:10px 14px;
  font-weight:600;
  font-size:14px;
  color:#fff;
  background:rgba(0,0,0,.70);
  backdrop-filter:blur(2px);
}

/* ensure images never stretch */
.tg-slot-card img{
  width:100%;
  height:auto !important;
  object-fit:contain !important;
}


/* v3.1 gallery image filling: small cards cover, large card natural without distortion */
.tg-slot-card img{
  width:100%;
  height:100%!important;
  object-fit:cover!important;
  aspect-ratio:16/9;
}
.tg-slot-card.is-large img{
  height:100%!important;
  object-fit:cover!important;
  aspect-ratio:auto!important;
}
.tg-slot-card span{
  box-sizing:border-box;
}
.tg-instant-booking-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
}
.tg-card-booking-url{
  display:block;
  margin:0 0 24px;
  padding:12px 14px;
  border-radius:8px;
  background:#111;
  color:#fff;
  text-decoration:none;
  font-weight:900;
  text-align:center;
}
@media(max-width:560px){
  .tg-slot-card.is-large img{
    aspect-ratio:16/9!important;
  }
}


/* v3.2 real average rating stars with half-step support */
.tg-star-meter{
  position:relative;
  display:inline-block;
  width:92px;
  height:20px;
  line-height:20px;
  font-size:18px;
  letter-spacing:1px;
  color:#8b8b8b;
  overflow:hidden;
  vertical-align:middle;
}
.tg-star-meter::before{
  content:"★★★★★";
}
.tg-star-meter > span{
  position:absolute;
  left:0;
  top:0;
  height:100%;
  overflow:hidden;
  white-space:nowrap;
  color:#ffb000;
}
.tg-star-meter.small{
  width:82px;
  height:18px;
  line-height:18px;
  font-size:16px;
}
.tg-network-list{
  display:grid;
  gap:10px;
}
.tg-network-member{
  display:flex;
  gap:12px;
  align-items:center;
  padding:10px;
  border:1px solid #eee;
  border-radius:10px;
  background:#fafafa;
}
.tg-network-avatar{
  width:38px;
  height:38px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background:#111;
  color:#fff;
  font-weight:900;
}
.tg-network-member strong{
  display:block;
}
.tg-network-member small{
  color:#555;
}


/* v3.3 network cards: primary image, account label, status ring, rating */
.tg-network-member{
  align-items:center;
}
.tg-network-avatar{
  position:relative;
  overflow:hidden;
  border:3px solid #777;
  flex:0 0 auto;
}
.tg-network-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.tg-network-avatar.ring-top{
  border-color:#ffb000;
  box-shadow:0 0 0 3px rgba(255,176,0,.18);
}
.tg-network-avatar.ring-good{
  border-color:#38a169;
  box-shadow:0 0 0 3px rgba(56,161,105,.15);
}
.tg-network-avatar.ring-basic{
  border-color:#718096;
}
.tg-network-avatar.ring-new{
  border-color:#2d3748;
}
.tg-network-meta{
  min-width:0;
}
.tg-network-meta strong{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.tg-network-meta small{
  display:block;
  font-weight:800;
  color:#333;
  margin-top:2px;
}
.tg-network-rating{
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:5px;
}
.tg-network-rating em{
  font-style:normal;
  color:#555;
  font-size:12px;
  font-weight:800;
}


/* v3.4 use the same plan ring classes as user profiles */
.tg-network-avatar{
  border:3px solid transparent;
}
.tg-network-avatar.ring-free-plus{
  border-color:#94a3b8;
  box-shadow:0 0 0 3px rgba(148,163,184,.22);
}
.tg-network-avatar.ring-silver{
  border-color:#c0c0c0;
  box-shadow:0 0 0 3px rgba(192,192,192,.28);
}
.tg-network-avatar.ring-gold{
  border-color:#e8bf5a;
  box-shadow:0 0 0 3px rgba(232,191,90,.28);
}
.tg-network-avatar.ring-platin{
  border-color:#d7e7ff;
  box-shadow:0 0 0 3px rgba(215,231,255,.32),0 0 18px rgba(215,231,255,.38);
}


/* v3.5 bigger booking modal */
.tg-modal-box{
  max-height:calc(100vh - 40px);
  overflow:auto;
}
.tg-modal-box .tg-two{
  margin:0;
}


/* v3.6 booking modal forced complete */
.tg-booking-modal-box{
  width:min(680px,calc(100% - 30px));
  max-height:calc(100vh - 36px);
  overflow:auto;
}
.tg-booking-modal-box form{
  display:grid;
  gap:6px;
}


/* v3.9 clickable studio network members */
a.tg-network-member{
  color:inherit;
  text-decoration:none;
}
a.tg-network-member:hover{
  transform:translateY(-1px);
  border-color:#cfcfcf;
  box-shadow:0 10px 22px rgba(0,0,0,.06);
}
a.tg-network-member:focus-visible{
  outline:3px solid rgba(86,32,216,.35);
  outline-offset:3px;
}

/* v3.11 studio frontend without image banner */
.tg-studio-hero-plain{
  min-height:auto;
  background:linear-gradient(135deg,#111 0%,#29242f 55%,#5620d8 100%);
}
.tg-studio-hero-plain .tg-studio-hero-inner{
  min-height:auto;
  padding-top:72px;
  padding-bottom:72px;
}
@media(max-width:760px){
  .tg-studio-hero-plain .tg-studio-hero-inner{
    padding:42px 18px;
  }
  .tg-studio-hero-plain h1{
    font-size:clamp(34px,11vw,56px);
    line-height:1;
    overflow-wrap:anywhere;
  }
  .tg-hero-actions{
    display:grid;
    grid-template-columns:1fr;
  }
}

/* v3.15 mobile LCP hero image: visible only on mobile, heavily blurred behind dark overlay */
.tg-studio-hero-mobile-banner .tg-studio-mobile-lcp-img{display:none}
.tg-studio-hero-mobile-banner.has-mobile-lcp-image::after{background:linear-gradient(135deg,rgba(5,5,8,.92) 0%,rgba(5,5,8,.80) 42%,rgba(86,32,216,.58) 100%)}
@media(max-width:760px){
  .tg-studio-hero-mobile-banner.has-mobile-lcp-image{min-height:360px;background:#111}
  .tg-studio-hero-mobile-banner .tg-studio-mobile-lcp-img{display:block;transform:scale(1.16);filter:blur(34px) saturate(.85) brightness(.62);opacity:.9;will-change:transform}
  .tg-studio-hero-mobile-banner.has-mobile-lcp-image::before{content:"";position:absolute;inset:0;z-index:1;background:radial-gradient(circle at 50% 10%,rgba(255,255,255,.12),transparent 34%),linear-gradient(180deg,rgba(0,0,0,.18) 0%,rgba(0,0,0,.64) 58%,rgba(0,0,0,.92) 100%);pointer-events:none}
  .tg-studio-hero-mobile-banner.has-mobile-lcp-image::after{z-index:2;background:linear-gradient(180deg,rgba(0,0,0,.30) 0%,rgba(0,0,0,.72) 54%,rgba(0,0,0,.94) 100%)}
  .tg-studio-hero-mobile-banner .tg-studio-hero-inner{position:relative;z-index:3;padding-top:76px;padding-bottom:46px}
}

/* v3.16 banner restored: desktop visible, mobile blurred LCP background */
.tg-studio-hero-with-banner{min-height:420px;background:#111;color:#fff;display:flex;align-items:end;position:relative;overflow:hidden}
.tg-studio-hero-with-banner .tg-studio-lcp-img{display:block !important;position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:none;transform:none;opacity:1}
.tg-studio-hero-with-banner::after{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(90deg,rgba(0,0,0,.88) 0%,rgba(0,0,0,.52) 48%,rgba(0,0,0,.22) 100%);pointer-events:none}
.tg-studio-hero-with-banner .tg-studio-hero-inner{position:relative;z-index:2;width:min(1180px,calc(100% - 48px));margin:0 auto;padding:86px 0 74px}
@media(max-width:760px){.tg-studio-hero-with-banner{min-height:380px}.tg-studio-hero-with-banner .tg-studio-lcp-img{transform:scale(1.18);filter:blur(36px) saturate(.82) brightness(.58);opacity:.94}.tg-studio-hero-with-banner::before{content:"";position:absolute;inset:0;z-index:1;background:radial-gradient(circle at 50% 8%,rgba(255,255,255,.13),transparent 34%),linear-gradient(180deg,rgba(0,0,0,.18) 0%,rgba(0,0,0,.68) 58%,rgba(0,0,0,.94) 100%);pointer-events:none}.tg-studio-hero-with-banner::after{z-index:2;background:linear-gradient(180deg,rgba(0,0,0,.36) 0%,rgba(0,0,0,.76) 55%,rgba(0,0,0,.96) 100%)}.tg-studio-hero-with-banner .tg-studio-hero-inner{z-index:3;width:calc(100% - 28px);padding:76px 0 46px}.tg-studio-hero-with-banner h1{font-size:clamp(34px,11vw,56px);line-height:1;overflow-wrap:anywhere}}
