/* ==========================================================================
   The 501 Apartments — Main Stylesheet
   Design tokens sourced from loveable/src/index.css + tailwind.config.ts
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties (Design Tokens)
   -------------------------------------------------------------------------- */
:root {
  --tf501-bg:         hsl(0, 0%, 100%);
  --tf501-fg:         hsl(0, 0%, 6.7%);
  --tf501-secondary:  hsl(0, 0%, 96.5%);
  --tf501-muted:      hsl(0, 0%, 96.5%);
  --tf501-muted-fg:   hsl(0, 0%, 45%);
  --tf501-accent:     hsl(174, 60%, 40%);
  --tf501-accent-rgb: 41, 163, 151;
  --tf501-accent-fg:  hsl(0, 0%, 100%);
  --tf501-border:     hsl(0, 0%, 90%);
  --tf501-card:       hsl(0, 0%, 100%);
  --tf501-radius:     0.375rem;
  --tf501-font-body:  'Inter', sans-serif;
  --tf501-font-head:  'Playfair Display', serif;
  --tf501-container:  1200px;
  --tf501-pad-x-sm:   20px;
  --tf501-pad-x-md:   32px;
  --tf501-section-py-sm: 80px;
  --tf501-section-py-md: 120px;
  --tf501-header-h:   80px;
  --tf501-promo-h:    40px;
  --tf501-shadow-sm:  0 1px 3px rgba(0,0,0,.08);
  --tf501-shadow-md:  0 4px 16px rgba(0,0,0,.10);
  --tf501-shadow-lg:  0 8px 32px rgba(0,0,0,.16);
}

/* --------------------------------------------------------------------------
   2. Reset & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--tf501-font-body);
  background-color: var(--tf501-bg);
  color: var(--tf501-fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; background: none; border: none; font: inherit; }
ul { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-family: var(--tf501-font-head); line-height: 1.2; }

/* --------------------------------------------------------------------------
   3. Layout Helpers
   -------------------------------------------------------------------------- */
.tf501-container {
  max-width: var(--tf501-container);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--tf501-pad-x-sm);
  padding-right: var(--tf501-pad-x-sm);
}
@media (min-width: 768px) {
  .tf501-container {
    padding-left: var(--tf501-pad-x-md);
    padding-right: var(--tf501-pad-x-md);
  }
}
.tf501-section {
  padding-top: var(--tf501-section-py-sm);
  padding-bottom: var(--tf501-section-py-sm);
}
@media (min-width: 768px) {
  .tf501-section {
    padding-top: var(--tf501-section-py-md);
    padding-bottom: var(--tf501-section-py-md);
  }
}
.tf501-section--pb-only { padding-top: 0; }
.tf501-section--bg-white       { background-color: var(--tf501-bg); }
.tf501-section--bg-secondary   { background-color: var(--tf501-secondary); }
.tf501-section--bg-muted       { background-color: hsl(0,0%,96.5%,.5); }
.tf501-section--bg-secondary-30{ background-color: hsla(0,0%,96.5%,.3); }
.tf501-page-padded { padding-top: var(--tf501-header-h); }

/* --------------------------------------------------------------------------
   4. Typography Helpers
   -------------------------------------------------------------------------- */
.tf501-heading-xl {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--tf501-fg);
}
.tf501-heading-lg {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--tf501-fg);
}
.tf501-heading-md {
  font-size: clamp(1.25rem, 2.5vw, 1.875rem);
  font-weight: 700;
  color: var(--tf501-fg);
}
.tf501-eyebrow {
  display: block;
  font-family: var(--tf501-font-body);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--tf501-accent);
  margin-bottom: 1rem;
}
.tf501-eyebrow--white { color: var(--tf501-accent-fg); opacity: .9; }
.tf501-body-text {
  color: var(--tf501-muted-fg);
  line-height: 1.75;
}
.tf501-section-header { margin-bottom: 4rem;text-align: center; }
.tf501-section-header--centered { text-align: center; }
.tf501-section-header__sub { margin-top: .75rem; }

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.tf501-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  height: 3rem;
  padding: 0 2rem;
  border-radius: var(--tf501-radius);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  transition: all .3s ease;
  white-space: nowrap;
}
.tf501-btn--accent {
  background-color: var(--tf501-accent);
  color: var(--tf501-accent-fg);
}
.tf501-btn--accent:hover { filter: brightness(1.1); box-shadow: var(--tf501-shadow-lg); }
.tf501-btn--outline-accent {
  border: 1px solid var(--tf501-accent);
  color: var(--tf501-accent);
  background: transparent;
}
.tf501-btn--outline-accent:hover { background-color: var(--tf501-accent); color: var(--tf501-accent-fg); }
.tf501-btn--ghost-white {
  border: 1px solid rgba(255,255,255,.6);
  background: rgba(255,255,255,.15);
  color: #fff;
}
.tf501-btn--ghost-white:hover { background: #fff; color: var(--tf501-fg); }
.tf501-btn--sm { height: 2.5rem; padding: 0 1.5rem; font-size: .75rem; }
.tf501-btn--full { width: 100%; }

/* --------------------------------------------------------------------------
   6. Promo Banner
   -------------------------------------------------------------------------- */
.tf501-promo-banner {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  background-color: var(--tf501-accent);
  color: var(--tf501-accent-fg);
  height: var(--tf501-promo-h);
  animation: tf501-fade-in .3s ease-out;
}
.tf501-promo-banner__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 3rem;
  position: relative;
}
.tf501-promo-banner__text {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  text-align: center;
}
@media (min-width: 640px) { .tf501-promo-banner__text { font-size: .875rem; } }
.tf501-promo-banner__close {
  position: absolute;
  right: .75rem;
  top: 50%;
  transform: translateY(-50%);
  padding: .25rem;
  border-radius: 50%;
  opacity: .8;
  color: inherit;
}
.tf501-promo-banner__close:hover { background: rgba(255,255,255,.2); opacity: 1; }
body.tf501-no-promo { --tf501-promo-h: 0px; }

/* --------------------------------------------------------------------------
   7. Header
   -------------------------------------------------------------------------- */
.tf501-header {
  position: fixed;
  top: var(--tf501-promo-h);
  left: 0; right: 0;
  z-index: 50;
  transition: background .5s, box-shadow .5s, top .3s;
}
.tf501-header.is-scrolled,
.tf501-header.is-inner {
  background-color: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--tf501-shadow-md);
}
.tf501-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--tf501-header-h);
  padding: 0 1.25rem;
}
@media (min-width: 1024px) { .tf501-header__inner { padding: 0 2rem; } }
.tf501-header__logo-img {
  height: 4.5rem;
  width: auto;
  transition: filter .3s;
}
.tf501-header:not(.is-scrolled):not(.is-inner) .tf501-header__logo-img { filter: brightness(0) invert(1); }
.tf501-header__nav {
  display: none;
  gap: 2rem;
}
@media (min-width: 1024px) { .tf501-header__nav { display: flex; align-items: center; } }
.tf501-header__nav-link {
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  transition: color .3s;
  color: var(--tf501-fg);
}
.tf501-header:not(.is-scrolled):not(.is-inner) .tf501-header__nav-link { color: rgba(255,255,255,.9); }
.tf501-header__nav-link:hover,
.tf501-header__nav-link.is-active { color: var(--tf501-accent); }
.tf501-header__cta { display: none; }
@media (min-width: 1024px) { .tf501-header__cta { display: flex; } }
.tf501-header__phone-btn svg { width: 1rem; height: 1rem; }
.tf501-header__mobile-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
}
@media (min-width: 1024px) { .tf501-header__mobile-actions { display: none; } }
.tf501-header__mobile-phone,
.tf501-header__hamburger {
  padding: .5rem;
  color: var(--tf501-fg);
  transition: color .3s;
}
.tf501-header:not(.is-scrolled):not(.is-inner) .tf501-header__mobile-phone,
.tf501-header:not(.is-scrolled):not(.is-inner) .tf501-header__hamburger { color: #fff; }
.tf501-mobile-menu {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--tf501-border);
  animation: tf501-fade-in .2s ease-out;
}
.tf501-mobile-menu__inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}
.tf501-mobile-menu__link {
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .5rem 0;
  color: var(--tf501-fg);
}
.tf501-mobile-menu__link:hover,
.tf501-mobile-menu__link.is-active { color: var(--tf501-accent); }
.tf501-mobile-menu__cta { margin-top: 1rem; }

/* --------------------------------------------------------------------------
   8. Hero Section
   -------------------------------------------------------------------------- */
.tf501-site-wrap { min-height: 100vh; }
.tf501-hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.tf501-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.tf501-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.5), rgba(0,0,0,.4), rgba(0,0,0,.6));
}
.tf501-hero__content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 1.25rem;
  max-width: 768px;
  margin: 0rem auto 0;
}
.tf501-hero__heading {
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.tf501-hero__sub {
  font-family: var(--tf501-font-head);
  font-size: 1.125rem;
  color: rgba(255,255,255,.9);
  margin-bottom: .75rem;
  font-weight: 500;
}
@media (min-width: 768px) { .tf501-hero__sub { font-size: 1.25rem; } }
.tf501-hero__body {
  color: rgba(255,255,255,.75);
  font-size: 1rem;
  margin-bottom: 2.5rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 768px) { .tf501-hero__body { font-size: 1.125rem; } }
.tf501-hero__actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}
@media (min-width: 640px) { .tf501-hero__actions { flex-direction: row; } }
.tf501-hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  color: rgba(255,255,255,.6);
  transition: color .3s;
}
.tf501-hero__scroll:hover { color: #fff; }
.tf501-hero__scroll-label { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; }
.tf501-hero__scroll-icon { animation: tf501-bounce-gentle 2s ease-in-out infinite; }

/* --------------------------------------------------------------------------
   9. Highlights Bar
   -------------------------------------------------------------------------- */
.tf501-highlights-bar {
  background-color: var(--tf501-secondary);
  padding: 2.5rem 0;
}
@media (min-width: 768px) { .tf501-highlights-bar { padding: 3.5rem 0; } }
.tf501-highlights-bar__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
@media (min-width: 768px) { .tf501-highlights-bar__grid { grid-template-columns: repeat(4, 1fr); } }
.tf501-highlights-bar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .75rem;
  transition: opacity .3s;
}
.tf501-highlights-bar__item:hover { opacity: .8; }
.tf501-highlights-bar__icon-wrap {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: rgba(var(--tf501-accent-rgb), .1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tf501-accent);
}
.tf501-highlights-bar__label {
  font-size: .75rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--tf501-muted-fg);
  margin-bottom: .25rem;
}
.tf501-highlights-bar__value {
  font-size: .875rem;
  font-weight: 600;
  color: var(--tf501-fg);
}
.tf501-highlights-bar__sub { font-size: .75rem; color: var(--tf501-muted-fg); }

/* --------------------------------------------------------------------------
   10. Welcome Section
   -------------------------------------------------------------------------- */
.tf501-welcome {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 768px) { .tf501-welcome { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.tf501-welcome__image-wrap { position: relative; }
.tf501-welcome__img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--tf501-radius);
  transition: transform .7s ease;
}
@media (min-width: 768px) { .tf501-welcome__img { height: 500px; } }
.tf501-welcome__img:hover { transform: scale(1.05); }
.tf501-img-frame { overflow: hidden; border-radius: var(--tf501-radius); }
.tf501-corner {
  position: absolute;
  width: 5rem;
  height: 5rem;
  z-index: 10;
}
.tf501-corner--tl { top: -1rem; left: -1rem; border-top: 2px solid var(--tf501-accent); border-left: 2px solid var(--tf501-accent); }
.tf501-corner--br { bottom: -1rem; right: -1rem; border-bottom: 2px solid var(--tf501-accent); border-right: 2px solid var(--tf501-accent); }
.tf501-welcome__heading { margin-top: 1rem; margin-bottom: 1.5rem; }
.tf501-welcome__body { margin-bottom: 2rem; }

/* --------------------------------------------------------------------------
   11. Floor Plans Section
   -------------------------------------------------------------------------- */
.tf501-fp-group { margin-bottom: 3rem; }
.tf501-fp-group__label {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--tf501-fg);
  margin-bottom: 1.5rem;
}
.tf501-fp-grid { display: grid; gap: 1.5rem; }
.tf501-fp-grid--2col { grid-template-columns: 1fr; }
@media (min-width: 640px) { .tf501-fp-grid--2col { grid-template-columns: repeat(2, 1fr); } }
.tf501-fp-grid--3col { grid-template-columns: 1fr; }
@media (min-width: 640px) { .tf501-fp-grid--3col { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tf501-fp-grid--3col { grid-template-columns: repeat(3, 1fr); } }
.tf501-fp-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--tf501-radius);
  border: 1px solid var(--tf501-border);
  background: var(--tf501-card);
  box-shadow: var(--tf501-shadow-sm);
  overflow: hidden;
  transition: transform .5s, box-shadow .5s;
}
.tf501-fp-card:hover { transform: translateY(-4px); box-shadow: var(--tf501-shadow-lg); }
.tf501-fp-card__image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tf501-bg);
  padding: 1.5rem;
  height: 18rem;
}
@media (min-width: 768px) { .tf501-fp-card__image-wrap { height: 25rem; } }
.tf501-fp-card__image { max-width: 100%; max-height: 100%; object-fit: contain; }
.tf501-fp-card__no-image { color: var(--tf501-muted-fg); font-size: .875rem; }
.tf501-fp-card__meta {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}
.tf501-fp-card__specs {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: .875rem;
  color: var(--tf501-muted-fg);
  flex-wrap: wrap;
  justify-content: center;
}
.tf501-fp-card__specs span { display: flex; align-items: center; gap: .25rem; }
.tf501-fp-card__cta { max-width: 280px; }
.tf501-fp-view-all { margin-top: 3rem; display: flex; justify-content: center; }

/* --------------------------------------------------------------------------
   12. Amenities Section
   -------------------------------------------------------------------------- */
.tf501-amenities {
  display: grid;
  gap: 3rem;
  align-items: flex-start;
}
@media (min-width: 768px) { .tf501-amenities { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.tf501-amenities__heading { margin-bottom: 2.5rem; }
.tf501-amenities__list-label { margin-bottom: 1rem; }
.tf501-amenities__list { display: flex; flex-direction: column; gap: .5rem; }
.tf501-amenities__list-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  color: var(--tf501-muted-fg);
}
.tf501-amenities__dot {
  width: .375rem;
  height: .375rem;
  border-radius: 50%;
  background-color: var(--tf501-accent);
  flex-shrink: 0;
}
.tf501-amenities__cta { margin-top: 2.5rem; }
.tf501-amenities__slider { position: relative; }
.tf501-amenities__slides { border-radius: var(--tf501-radius); overflow: hidden; position: relative; }
.tf501-amenities__slide {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: none;
  transition: opacity .2s;
}
@media (min-width: 768px) { .tf501-amenities__slide { height: 550px; } }
.tf501-amenities__slide.is-active { display: block; }
.tf501-amenities__controls {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  gap: .5rem;
  z-index: 20;
}
.tf501-amenities__arrow {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tf501-fg);
  transition: background .2s;
}
.tf501-amenities__arrow:hover { background: #fff; }

/* --------------------------------------------------------------------------
   13. Parallax Banner
   -------------------------------------------------------------------------- */
.tf501-parallax {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}
.tf501-parallax__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.5);
}
.tf501-parallax__content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 1.25rem;
}
.tf501-parallax__heading {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 2rem;
}

/* --------------------------------------------------------------------------
   14. Gallery Section
   -------------------------------------------------------------------------- */
.tf501-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 768px) { .tf501-gallery { grid-template-columns: repeat(4, 1fr); } }
.tf501-gallery__item {
  overflow: hidden;
  border-radius: var(--tf501-radius);
  cursor: pointer;
}
.tf501-gallery__item--large {
  grid-column: span 1;
  grid-row: span 1;
}
@media (min-width: 768px) {
  .tf501-gallery__item--large { grid-column: span 2; grid-row: span 2; }
}
.tf501-gallery__img {
  width: 100%;
  height: 10rem;
  object-fit: cover;
  transition: transform .7s ease;
}
@media (min-width: 768px) { .tf501-gallery__img { height: 100%; } }
.tf501-gallery__item--large .tf501-gallery__img { height: 16rem; }
@media (min-width: 768px) { .tf501-gallery__item--large .tf501-gallery__img { height: 100%; } }
.tf501-gallery__item:hover .tf501-gallery__img { transform: scale(1.1); }
.tf501-gallery__cta { text-align: center; margin-top: 3rem; }

/* Lightbox */
.tf501-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,.92);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tf501-lightbox[hidden] { display: none; }
.tf501-lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: #fff;
  background: rgba(0,0,0,.5);
  border-radius: 50%;
  padding: .25rem;
  transition: background .2s;
}
.tf501-lightbox__close:hover { background: rgba(0,0,0,.8); }
.tf501-lightbox__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  background: rgba(0,0,0,.5);
  border-radius: 50%;
  padding: .5rem;
  transition: background .2s;
}
.tf501-lightbox__arrow:hover { background: rgba(0,0,0,.8); }
.tf501-lightbox__arrow--prev { left: .5rem; }
.tf501-lightbox__arrow--next { right: .5rem; }
.tf501-lightbox__img-wrap { display: flex; align-items: center; justify-content: center; }
.tf501-lightbox__img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: var(--tf501-radius); }

/* --------------------------------------------------------------------------
   15. Neighborhood Section
   -------------------------------------------------------------------------- */
.tf501-neighborhood {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 768px) { .tf501-neighborhood { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.tf501-neighborhood__map-wrap { position: relative; }
.tf501-neighborhood__map {
  border-radius: var(--tf501-radius);
  overflow: hidden;
  height: 400px;
}
.tf501-neighborhood__map iframe { width: 100%; height: 100%; }
.tf501-neighborhood__heading { margin-bottom: 1.5rem; }
.tf501-neighborhood__body { margin-bottom: 2rem; }
.tf501-neighborhood__list { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2.5rem; }
.tf501-neighborhood__list-item { display: flex; align-items: center; gap: 1rem; }
.tf501-icon-circle {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(var(--tf501-accent-rgb), .1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tf501-accent);
  flex-shrink: 0;
}
.tf501-neighborhood__list-label { font-size: .875rem; font-weight: 500; color: var(--tf501-fg); }

/* --------------------------------------------------------------------------
   16. Testimonials Section
   -------------------------------------------------------------------------- */
.tf501-testimonials { text-align: center; max-width: 42rem; margin: 0 auto; }
.tf501-testimonials__heading { margin-bottom: 3rem; }
.tf501-testimonials__slider { position: relative; min-height: 10rem; }
.tf501-testimonials__slide { display: none; }
.tf501-testimonials__slide.is-active { display: block; }
.tf501-testimonials__stars {
  display: flex;
  justify-content: center;
  gap: .25rem;
  margin-bottom: 1.5rem;
}
.tf501-star svg { width: 1.25rem; height: 1.25rem; }
.tf501-star--filled { color: var(--tf501-accent); fill: var(--tf501-accent); }
.tf501-testimonials__quote {
  font-family: var(--tf501-font-head);
  font-size: 1.125rem;
  color: var(--tf501-muted-fg);
  font-style: italic;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) { .tf501-testimonials__quote { font-size: 1.25rem; } }
.tf501-testimonials__name {
  font-size: .875rem;
  font-weight: 600;
  color: var(--tf501-fg);
  letter-spacing: .05em;
}
.tf501-testimonials__controls {
  display: flex;
  justify-content: center;
  gap: .75rem;
  margin-top: 2.5rem;
}
.tf501-testimonials__arrow {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--tf501-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tf501-fg);
  transition: border-color .2s, color .2s;
}
.tf501-testimonials__arrow:hover { border-color: var(--tf501-accent); color: var(--tf501-accent); }

/* --------------------------------------------------------------------------
   17. Final CTA Section
   -------------------------------------------------------------------------- */
.tf501-final-cta {
  position: relative;
  padding: 5rem 0;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
@media (min-width: 768px) { .tf501-final-cta { padding: 7rem 0; } }
.tf501-final-cta__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.6); }
.tf501-final-cta__content { position: relative; z-index: 10; text-align: center; }
.tf501-final-cta__heading {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.5rem;
}
.tf501-final-cta__body {
  color: rgba(255,255,255,.7);
  max-width: 36rem;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}
.tf501-final-cta__actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}
@media (min-width: 640px) { .tf501-final-cta__actions { flex-direction: row; } }

/* --------------------------------------------------------------------------
   18. Utilities Section
   -------------------------------------------------------------------------- */
.tf501-utilities { display: flex; justify-content: center; }
.tf501-utilities__card {
  background: var(--tf501-bg);
  border-radius: var(--tf501-radius);
  border: 1px solid var(--tf501-border);
  padding: 2rem;
  max-width: 28rem;
  width: 100%;
}
.tf501-utilities__card-label {
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--tf501-accent);
  margin-bottom: 1.5rem;
}
.tf501-utilities__list { display: flex; flex-direction: column; gap: 1rem; }
.tf501-utilities__item {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .875rem;
  color: var(--tf501-fg);
}
.tf501-utilities__item svg { color: var(--tf501-accent); flex-shrink: 0; }

/* --------------------------------------------------------------------------
   19. Nearby Highlights Grid
   -------------------------------------------------------------------------- */
.tf501-nearby-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 64rem;
  margin: 0 auto;
}
@media (min-width: 768px) { .tf501-nearby-grid { grid-template-columns: repeat(2, 1fr); } }
.tf501-nearby-card {
  background: var(--tf501-card);
  border-radius: var(--tf501-radius);
  border: 1px solid var(--tf501-border);
  padding: 1.5rem;
  transition: box-shadow .2s;
}
.tf501-nearby-card:hover { box-shadow: var(--tf501-shadow-md); }
.tf501-nearby-card__header {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
  color: var(--tf501-accent);
}
.tf501-nearby-card__title {
  font-family: var(--tf501-font-head);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--tf501-fg);
}
.tf501-nearby-card__list { display: flex; flex-direction: column; gap: .75rem; }
.tf501-nearby-card__place-name { font-size: .875rem; font-weight: 500; color: var(--tf501-fg); }
.tf501-nearby-card__place-desc { font-size: .875rem; color: var(--tf501-muted-fg); line-height: 1.6; }

/* --------------------------------------------------------------------------
   20. Nearby Places Accordion
   -------------------------------------------------------------------------- */
.tf501-nearby-places,
.tf501-nearby-places2{ max-width: 48rem; margin: 0 auto; }
.tf501-nearby-places__group,
.tf501-nearby-places2__group{ border-bottom: 1px solid var(--tf501-border); }
.tf501-nearby-places__toggle,
.tf501-nearby-places2__toggle{
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1rem;
  text-align: left;
  color: var(--tf501-fg);
  transition: background .2s;
  border-radius: var(--tf501-radius);
}
.tf501-nearby-places__toggle:hover,
.tf501-nearby-places2__toggle:hover{ background: var(--tf501-secondary); }
.tf501-nearby-places__toggle svg,
.tf501-nearby-places2__toggle svg{ color: var(--tf501-accent); flex-shrink: 0; }
.tf501-nearby-places__toggle-label,
.tf501-nearby-places2__toggle-label{
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.tf501-nearby-places__content { padding: 0 1rem 1rem 3.25rem; }
.tf501-nearby-places__place { font-size: .875rem; color: var(--tf501-muted-fg); padding: .25rem 0; }

/* --------------------------------------------------------------------------
   21. YouTube Section
   -------------------------------------------------------------------------- */
.tf501-videos {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 768px) { .tf501-videos { grid-template-columns: repeat(3, 1fr); } }
.tf501-video {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: var(--tf501-radius);
  overflow: hidden;
  box-shadow: var(--tf501-shadow-md);
}
.tf501-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* --------------------------------------------------------------------------
   22. Instagram Section
   -------------------------------------------------------------------------- */
.tf501-instagram__handle {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.125rem;
  color: var(--tf501-fg);
  transition: opacity .2s;
  margin-top: .75rem;
}
.tf501-instagram__handle:hover { opacity: .7; }
.tf501-instagram__grid {
  display: grid;
  gap: 1.5rem;
  max-width: 56rem;
  margin: 0 auto;
}
@media (min-width: 768px) { .tf501-instagram__grid { grid-template-columns: repeat(2, 1fr); } }
.tf501-instagram__embed { display: flex; justify-content: center; }

/* --------------------------------------------------------------------------
   23. Listings Embed
   -------------------------------------------------------------------------- */
.tf501-listings-embed { max-width: var(--tf501-container); margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 768px) { .tf501-listings-embed { padding: 0 2rem; } }
.tf501-listings-embed__iframe {
  display: block;
  width: 100%;
  height: 900px;
  border: 0;
  border-radius: var(--tf501-radius);
  box-shadow: var(--tf501-shadow-sm);
}
@media (min-width: 768px)  { .tf501-listings-embed__iframe { height: 1100px; } }
@media (min-width: 1024px) { .tf501-listings-embed__iframe { height: 1300px; } }
.tf501-listings-header { padding-bottom: 2rem; padding-top: 3rem; }

/* Compact section used around listings embed — removes the full 80/120px vertical padding */
.tf501-section--compact {
  padding-top: 2rem;
  padding-bottom: 2.5rem;
}

/* --------------------------------------------------------------------------
   24. Contact Page
   -------------------------------------------------------------------------- */
.tf501-inner-hero {
  position: relative;
  padding-top: 8rem;
  padding-bottom: 5rem;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
@media (min-width: 768px) { .tf501-inner-hero { padding-top: 10rem; padding-bottom: 7rem; } }
.tf501-inner-hero__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.6); }
.tf501-inner-hero__content { position: relative; z-index: 10; text-align: center; }
.tf501-inner-hero__heading {
  font-size: clamp(1.75rem, 4vw, 3.5rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.5rem;
  margin-top: 1rem;
}
.tf501-inner-hero__sub { color: #fff; max-width: 36rem; margin: 0 auto; }

.tf501-contact-grid {
  display: grid;
  gap: 3rem;
}
@media (min-width: 1024px) { .tf501-contact-grid { grid-template-columns: 3fr 2fr; gap: 4rem; } }
.tf501-contact-form__sub { margin-bottom: 2rem; }

.tf501-contact-info__card {
  background: hsl(0,0%,96.5%,.5);
  border-radius: var(--tf501-radius);
  padding: 2rem;
}
.tf501-contact-info__heading {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--tf501-fg);
  margin-bottom: 2rem;
}
.tf501-contact-info__item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.tf501-contact-info__icon { color: var(--tf501-accent); flex-shrink: 0; margin-top: .125rem; }
.tf501-contact-info__label { font-weight: 500; color: var(--tf501-fg); margin-bottom: .25rem; font-size: .875rem; }
.tf501-contact-info__value { color: var(--tf501-muted-fg); font-size: .875rem; line-height: 1.6; }
a.tf501-contact-info__value:hover { color: var(--tf501-fg); }
.tf501-contact-map {
  margin-top: 2rem;
  border-radius: var(--tf501-radius);
  overflow: hidden;
  border: 1px solid var(--tf501-border);
}

/* --------------------------------------------------------------------------
   25. FAQ
   -------------------------------------------------------------------------- */
.tf501-faq { max-width: 48rem; margin: 0 auto; }
.tf501-faq__item {
  background: var(--tf501-bg);
  border-radius: var(--tf501-radius);
  border: 1px solid var(--tf501-border);
  margin-bottom: .75rem;
  overflow: hidden;
}
.tf501-faq__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--tf501-fg);
  cursor: pointer;font-family: "Playfair Display", serif;
}
.tf501-nearby {align-items: unset;}
.edunewlist ul {list-style: none;margin: 0;padding: 0;}
.edunewlist ul li {display: flex;align-items: baseline;justify-content: space-between;gap: 1rem;padding-left: 1rem;padding-right: 1rem;padding-top: 1rem;padding-bottom: 1rem;border-bottom: 1px solid #e6e6e6;}
.edunewlist ul li h4 {font-family: var(--tf501-font-body);font-size: 1rem;line-height: 1.5rem;font-weight: normal;}
.edunewlist ul li span {font-size: .875rem;line-height: 1.25rem;color: #29a397;letter-spacing: .025em;font-weight: 600;}
.newnearbycont {padding: 0;}
.tf501-faq__icon { color: var(--tf501-muted-fg); flex-shrink: 0; transition: transform .2s; }
.tf501-faq__item.is-open .tf501-faq__icon { transform: rotate(180deg); }
.tf501-faq__content {
  padding: 0 1.5rem 1rem;
  color: var(--tf501-muted-fg);
  line-height: 1.75;
  font-size: .9375rem;
}
.tf501-faq__content ul { list-style: disc; padding-left: 1.25rem; margin: .5rem 0; }
.tf501-faq__content li { margin-bottom: .25rem; }

/* --------------------------------------------------------------------------
   26. Gravity Forms Placeholder
   -------------------------------------------------------------------------- */
.tf501-form-placeholder {
  padding: 2rem;
  border: 2px dashed var(--tf501-border);
  border-radius: var(--tf501-radius);
  text-align: center;
  color: var(--tf501-muted-fg);
}
.tf501-form-placeholder__title { font-weight: 600; margin-bottom: .5rem; }
.tf501-form-placeholder__note { font-size: .875rem; }

/* --------------------------------------------------------------------------
   27. Footer
   -------------------------------------------------------------------------- */
.studenthead {font-size: 2.25rem;line-height: 2.5rem;color: #111111;font-weight: 700;margin-bottom: 1.5rem;margin-top:24px;}
.studentparagra p {font-size: 1.125rem;line-height: 1.75rem;color: #737373;margin-bottom: 24px;}
.tf501-footer { background-color: var(--tf501-fg); }
.tf501-footer__grid {
  display: grid;
  gap: 2.5rem;
  padding-top: 4rem;
  padding-bottom: 4rem;
}
@media (min-width: 640px) { .tf501-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tf501-footer__grid { grid-template-columns: repeat(4, 1fr); } }
.tf501-footer__logo {
  height: 5rem;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 1rem;
  display: block;
}
.tf501-footer__address {
  color: rgba(255,255,255,.7);
  font-size: .875rem;
  line-height: 1.75;
  display: block;
  transition: color .2s;
}
.tf501-footer__address:hover { color: #fff; }
.tf501-footer__heading {
  font-family: var(--tf501-font-head);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1rem;
}
.tf501-footer__list { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.5rem; }
.tf501-footer__link {
  font-size: .875rem;
  color: rgba(255,255,255,.7);
  transition: color .2s;
}
.tf501-footer__link:hover { color: #fff; }
.tf501-footer__locations-group { border: none; }
.tf501-footer__locations-toggle {
  font-size: .875rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: .1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  cursor: pointer;
  list-style: none;
  margin-bottom: .75rem;
}
.tf501-footer__locations-toggle::-webkit-details-marker { display: none; }
.tf501-footer__locations-arrow {
  color: rgba(255,255,255,.6);
  transition: transform .2s;
  font-style: normal;
}
details[open] .tf501-footer__locations-arrow { transform: rotate(180deg); }
.tf501-footer__locations-list {
  padding-left: .5rem;
  border-left: 1px solid rgba(255,255,255,.2);
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-top: .75rem;
}
.tf501-footer__contact-info {
  font-size: .875rem;
  color: rgba(255,255,255,.7);
  line-height: 1.75;
  margin-bottom: 1rem;
}
.tf501-footer__cta-btn {
  display: inline-flex;
  margin-top: .5rem;
}
.tf501-footer__social {
  display: flex;
  gap: .75rem;
}
.tf501-footer__social-link {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  transition: border-color .2s, color .2s;
}
.tf501-footer__social-link:hover { border-color: #fff; color: #fff; }
.tf501-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.5rem 0;
}
.tf501-footer__copyright {
  text-align: center;
  font-size: .75rem;
  color: rgba(255,255,255,.5);
}

/* --------------------------------------------------------------------------
   28. Listings Page
   -------------------------------------------------------------------------- */
.tf501-listings-hero {
  position: relative;
  height: 50vh;
  min-height: 495px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.tf501-listings-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tf501-listings-hero__overlay { position: absolute; inset: 0; background: rgba(17,17,17,.6); }
.tf501-listings-hero__content { position: relative; z-index: 10; text-align: center; }
.tf501-listings-hero__logo {
  height: 6rem;
  width: auto;
  filter: brightness(0) invert(1);
  margin: 0 auto 1.5rem;
  display: block;
}
.tf501-listings-hero__tagline {
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: .05em;
  color: rgba(255,255,255,.8);
}
@media (min-width: 768px) { .tf501-listings-hero__tagline { font-size: 1.25rem; } }
.tf501-listings-feature {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 768px) { .tf501-listings-feature { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.tf501-listings-feature__img-wrap { border-radius: var(--tf501-radius); overflow: hidden; }
.tf501-listings-feature__img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform .7s;
}
.tf501-listings-feature__img:hover { transform: scale(1.05); }
.tf501-listings-feature__text .tf501-heading-xl { margin: 1rem 0 1.5rem; }
.tf501-listings-feature__text .tf501-body-text { margin-bottom: 1rem; }
.tf501-listings-feature__text .tf501-btn { margin-top: 1rem; }

/* --------------------------------------------------------------------------
   29. Location Hero
   -------------------------------------------------------------------------- */
.tf501-location-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 560px;
  /* top clears promo banner + header, then adds visual breathing room to match original py-32 */
  /* matches original py-32 (8rem) — header+promo clear + ~0.5rem gap */
  padding-top: calc(var(--tf501-promo-h) + var(--tf501-header-h) + 0.5rem);
  padding-bottom: 8rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  background-size: cover;
  background-position: center;
}
@media (min-width: 768px) {
  .tf501-location-hero {
    min-height: 680px;
    /* matches original md:py-44 (11rem) visual space above + header clearance */
    /* matches original md:py-44 (11rem) — header+promo clear + 3.5rem gap */
    padding-top: calc(var(--tf501-promo-h) + var(--tf501-header-h) + 3.5rem);
    padding-bottom: 11rem;
  }
}
.tf501-location-hero__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.tf501-location-hero__content { position: relative; z-index: 10; }
.tf501-location-hero__heading {
  font-size: clamp(1.75rem, 4vw, 3.75rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}
.tf501-location-hero__desc {
  color: rgba(255,255,255,.8);
  max-width: 50rem;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.75;
}
@media (min-width: 768px) { .tf501-location-hero__desc { font-size: 1.125rem; } }

/* --------------------------------------------------------------------------
   30. 404 Page
   -------------------------------------------------------------------------- */
.tf501-404 { text-align: center; padding: 4rem 0; }
.tf501-404__code {
  font-size: 8rem;
  font-weight: 800;
  color: var(--tf501-accent);
  line-height: 1;
  margin-bottom: 1rem;
}
.tf501-404__heading { margin-bottom: 1rem; }
.tf501-404__body { max-width: 32rem; margin: 0 auto 2.5rem; }
.tf501-404__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   31. Scroll Reveal
   -------------------------------------------------------------------------- */
.js-scroll-reveal {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity .7s ease, transform .7s ease;
}
.js-scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.tf501-contact-info--delay { transition-delay: .2s; }

/* --------------------------------------------------------------------------
   32. Current Openings
   -------------------------------------------------------------------------- */
.tf501-current-openings__heading { margin-bottom: .25rem; }
.tf501-current-openings__sub { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   33. Animations
   -------------------------------------------------------------------------- */
@keyframes tf501-fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes tf501-bounce-gentle {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}
