/* hero section */
.hero-banner{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-wrapper{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 0 160;
    padding: 80px 0;
}

.hero-wrapper h1{
    font-size: 60px;
    text-align: center;
}


.hero-banner img{
    width: 100%;
}
/* avp */

.avp-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin: 0 160px;
    padding: 80px 0;
}
.avp-wrapper{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 80px;
}

.avp-content{
    display: flex; 
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.avp-content h1{
    color: var(--color-primary-blue);
}

.avp-content p{
    width: 991px;
    font-size: var(--blurb-size);
    font-weight: 300;
    font-family: var(--font-henry);
    margin: 0 40px;
    text-align: center;
}


.avp-video-container {
    position: relative;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 24px;
    aspect-ratio: 16 / 7; /* Keeps consistent video ratio */
}

.avp-video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the video fills container nicely */
    border-radius: 24px;
    display: block;
}

/* Play/Pause Button */
.avp-playpause-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid white;
    background: transparent;
    transition: opacity 0.4s ease;
    opacity: 1;
}

/* Hide button when video is playing (until hover) */
.avp-video-container.playing .avp-playpause-btn {
    opacity: 0;
}

.avp-video-container.playing:hover .avp-playpause-btn {
    opacity: 1;
}

/* Inner icons */
.avp-playpause-btn span {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-blue, #002349);
    padding: 20px;
    border-radius: 50%;
    cursor: pointer;
}

/* Hide pause icon by default */
.avp-playpause-btn .pause {
    display: none;
}

/* Fade out button when playing */
.avp-video-container.playing .avp-playpause-btn {
    opacity: 0;
}

/* Reappear on hover */
.avp-video-container:hover .avp-playpause-btn {
    opacity: 1;
}

/* Small touch for hover feedback */
.avp-playpause-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}


/* featured property */
.featured-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin: 0 160px;
    padding: 80px 0;
}

.featured-wrapper{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 74px;
    width: 100%;
}

.featured-content{
    display: flex; 
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.featured-content h1{
    color: var(--color-primary-blue);
}

.featured-content p{
    max-width: 1200px;
    width: 100%;
    font-size: var(--blurb-size);
    font-weight: 300;
    font-family: var(--font-henry);
    text-align: center;
}

.card-wrapper {
  display: grid;
  grid-template-columns: repeat(3, minmax(300px, 1fr));
  gap: 40px;
  width: 100%;
  justify-items: center; /* Centers cards in each column */
  align-items: start;    /* Keeps card tops aligned */
}

.property-card {
  overflow: hidden;
  border-radius: 8px;
}


.property-link {
  text-decoration: none;
  color: inherit;
}

.property-image img {
  width: 100%;
  height: 506px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.property-info {
  padding: 1.2rem 0;
  color: var(--color-primary-blue);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.property-title {
  font-size: var(--h3-size);
  font-family: var(--font-montserrat);
  font-weight: var(--heading-weight);
  margin-bottom: 0.5rem;    
}

.property-location,
.property-status,
.property-price {
  font-size: 20px;
  color: #344054;
  margin: 0.3rem 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-henry);
}

.property-location svg,
.property-status svg,
.property-price svg{
    width: 20px;
}

/* news */

.news-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 68px;
    margin: 0 160px;
}

.news-header {
    text-align: left;
    margin-bottom: 3rem;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-header h1 {
    color: var(--color-primary-blue);
}

.news-header p {
    max-width: 1200px;
    width: 100%;
    font-size: var(--blurb-size);
    font-weight: 300;
    font-family: var(--font-henry);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.news-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-card img {
    max-width: 506px;
    width: 100%;
    border-radius: 8px;
}

.news-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.date {
    color: var(--color-primary-blue);
    font-size: 16px;
    font-family: var(--font-henry);
    font-weight: 300;
}

.subtitle-section {
    width: 100%;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    max-height: calc(1.4em * 2);
}

.read-more {
   margin-top: 29px;
}

.read-more:hover {
    text-decoration: underline;
}

/* spotify-section */

.music-section {
    width: 100%;
}

.music-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 160px;
    padding: 80px 0;
    gap: 80px;
}

.music-header {
    text-align: center;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.music-header h1 {
    margin-bottom: 1.5rem;
}

.music-header p {
    width: 100%;
    max-width: 1355px;
    font-size: var(--blurb-size);
    font-weight: 300;
    font-family: var(--font-henry);
    text-align: center;
    margin: 0 auto;
}

.music-btn{
    margin-top: 40px;
}

iframe[data-testid="embed-iframe"] {
    width: 100%;
    max-width: 1200px;
    height: 560px;
}


/* Tablets (≤ 1024px) */
@media (max-width: 1024px) {
  .hero-wrapeper,
  .avp-section,
  .featured-section,
  .news-wrapper,
  .music-wrapper {
    margin: 0 60px;
    padding: 60px 0;
  }

  .hero-wrapeper h1 {
    font-size: 48px;
  }

  .card-wrapper {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .avp-content p {
    width: 100%;
  }
}

/* Mobile (≤ 768px) */
@media (max-width: 768px) {
  .hero-wrapper,
  .avp-section,
  .featured-section,
  .music-wrapper {
    margin: 0 20px;
    padding: 40px 0;
  }

  .hero-wrapper h1 {
    font-size: 28px;
  }

  .card-wrapper {
    grid-template-columns: 1fr;
  }

  .property-image img {
    height: 360px;
  }

  .news-header{
    text-align: center;
    justify-content: center;
    align-items: center;
    gap:10px
  }

  .avp-content h1,
  .featured-content h1{
    text-align: center;
  }

  .avp-content h1{
    font-size: 28px;
  }

  .property-title{
    font-size: 24px;
  }

  .avp-content p,
  .featured-content p{
      font-size: 20px;
  }

  .news-header p{
    font-size: 20px;
  }

  .news-wrapper {
    flex-direction: column;
    gap: 40px;
    margin: 0 30px;
  }

  .music-header p {
    font-size: 20px;
  }

  iframe[data-testid="embed-iframe"] {
    height: 380px;
  }
}