.places-section {
  padding-block: clamp(1.5rem, 3vw, 2.5rem) clamp(1.75rem, 3vw, 2.5rem);
  background: #fff;
}

.places-heading {
  position: relative;
  display: flex;
  min-height: 3.8rem;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding-right: 0.1rem;
}

.places-heading h2 {
  position: relative;
  margin: 0;
  color: #153747;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.25;
  text-wrap: balance;
}

.places-heading-underline {
  position: absolute;
  top: calc(100% - 0.35rem);
  left: 0;
  width: min(17rem, 42vw);
  height: 0.55rem;
  overflow: hidden;
}

.places-heading-underline::before,
.places-heading-underline::after {
  position: absolute;
  left: 0;
  width: 100%;
  height: 0.45rem;
  border-top: 2px solid #389c70;
  border-radius: 50%;
  content: "";
  transform: rotate(-2.2deg);
}

.places-heading-underline::after {
  top: 0.22rem;
  left: 2.5rem;
  width: 58%;
  transform: rotate(-4deg);
}

.places-controls {
  display: flex;
  flex: 0 0 auto;
  gap: 0.75rem;
}

.places-control {
  display: grid;
  width: 2.9rem;
  height: 2.9rem;
  place-items: center;
  padding: 0;
  border: 1px solid #e0e5e3;
  border-radius: 50%;
  background: #fff;
  color: #31966c;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.places-control:hover {
  transform: translateY(-2px);
  border-color: #31966c;
  background: #31966c;
  color: #fff;
}

.places-control:focus-visible,
.place-card:focus-visible {
  outline: 3px solid rgb(49 150 108 / 42%);
  outline-offset: 3px;
}

.places-control svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.places-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 2.2fr);
  grid-template-rows: repeat(2, clamp(12rem, 19vw, 15rem));
  gap: clamp(0.75rem, 1.8vw, 1.25rem);
}

.place-card,
.place-card-pair {
  position: relative;
  display: block;
  min-width: 0;
  overflow: hidden;
  border-radius: 0.65rem;
  background: #e7eee8;
}

.place-card {
  isolation: isolate;
  color: #fff;
  text-decoration: none;
}

.place-card::after {
  position: absolute;
  z-index: 0;
  inset: 36% 0 0;
  background: linear-gradient(180deg, transparent 0%, rgb(10 31 48 / 77%) 72%, #10283b 100%);
  content: "";
  pointer-events: none;
}

.place-card--prem {
  grid-column: 1;
  grid-row: 1;
}

.place-card--pagal {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.place-card--yamuna {
  grid-column: 3;
  grid-row: 1;
}

.place-card--iskcon {
  grid-column: 1;
  grid-row: 2;
}

.place-card-pair {
  display: grid;
  grid-column: 3;
  grid-row: 2;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
  gap: clamp(0.65rem, 1.5vw, 1.1rem);
  overflow: visible;
  background: transparent;
}

.place-image {
  position: absolute;
  z-index: -1;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms cubic-bezier(0.2, 0.65, 0.3, 1), opacity 180ms ease;
}

.place-card[data-place-slider] .place-image {
  z-index: -2;
  opacity: 0;
  transform: none;
  transition: none;
}

.place-card[data-place-slider] .place-image.is-active {
  z-index: -1;
  opacity: 1;
}

.place-card--post .place-image.is-entering {
  animation: place-post-in 850ms cubic-bezier(0.2, 0.65, 0.3, 1) both;
}

.place-card--post .place-image.is-exiting {
  animation: place-post-out 850ms cubic-bezier(0.2, 0.65, 0.3, 1) both;
}

.place-card--story .place-image.is-entering {
  animation: place-story-in 1400ms cubic-bezier(0.2, 0.65, 0.3, 1) both;
}

.place-card--story .place-image.is-exiting {
  animation: place-story-out 1400ms cubic-bezier(0.2, 0.65, 0.3, 1) both;
}

@keyframes place-post-in {
  from { opacity: 0; transform: scale(1.035); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes place-post-out {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(0.985); }
}

@keyframes place-story-in {
  from { opacity: 0.35; transform: translateY(100%); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes place-story-out {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0.25; transform: translateY(-100%); }
}

.place-format {
  position: absolute;
  z-index: 1;
  top: 0.8rem;
  right: 0.8rem;
  max-width: calc(100% - 1.6rem);
  padding: 0.22rem 0.5rem;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 62%);
  border-radius: 99px;
  background: rgb(255 255 255 / 93%);
  color: #40564c;
  font-size: 0.56rem;
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.place-card:hover .place-image,
.place-card:focus-visible .place-image {
  transform: scale(1.045);
}

.place-type {
  position: absolute;
  z-index: 1;
  top: 0.8rem;
  left: 0.8rem;
  display: inline-flex;
  align-items: center;
  min-height: 1.4rem;
  max-width: calc(100% - 1.6rem);
  padding: 0.22rem 0.55rem;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 62%);
  border-radius: 99px;
  background: rgb(255 255 255 / 93%);
  color: #40564c;
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.place-card-copy {
  position: absolute;
  z-index: 1;
  right: 0.9rem;
  bottom: 0.85rem;
  left: 0.9rem;
  display: grid;
  gap: 0.45rem;
  min-width: 0;
}

.place-card-copy strong {
  overflow: hidden;
  color: #fff;
  font-size: clamp(0.95rem, 1.45vw, 1.15rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.place-card-copy > span {
  display: block;
  padding-top: 0.45rem;
  border-top: 1px solid rgb(255 255 255 / 55%);
  color: rgb(255 255 255 / 94%);
  font-size: 0.67rem;
  font-weight: 500;
  line-height: 1.3;
}

.place-card-pair .place-card-copy {
  right: 0.7rem;
  bottom: 0.7rem;
  left: 0.7rem;
  gap: 0.35rem;
}

.place-card-pair .place-card-copy strong {
  font-size: clamp(0.78rem, 1.1vw, 0.98rem);
}

.place-card-pair .place-card-copy > span {
  font-size: 0.62rem;
}

.place-card.is-selected {
  outline: 3px solid #36a276;
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .places-grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 2.2fr);
    grid-template-rows: repeat(2, clamp(10rem, 22vw, 13rem));
  }

  .place-format {
    top: 2.35rem;
    right: auto;
    left: 0.55rem;
    max-width: calc(100% - 1.1rem);
    font-size: 0.48rem;
  }

  .place-card--pagal {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .place-card-pair {
    grid-column: 3;
    grid-row: 2;
  }
}

@media (max-width: 600px) {
  .places-section {
    padding-block: 1.25rem 1.5rem;
  }

  .places-heading {
    min-height: 3rem;
    gap: 0.65rem;
    margin-bottom: 1.15rem;
  }

  .places-heading h2 {
    max-width: 18rem;
    font-size: clamp(1.4rem, 6vw, 1.8rem);
  }

  .places-heading-underline {
    top: calc(100% - 0.25rem);
  }

  .places-controls {
    gap: 0.35rem;
  }

  .places-control {
    width: 2.3rem;
    height: 2.3rem;
  }

  .places-grid {
    grid-template-columns: minmax(0, 16fr) minmax(0, 9fr);
    grid-template-rows: calc((100vw - 2rem) * 0.64) clamp(9.5rem, 46vw, 12rem) clamp(9.5rem, 46vw, 12rem);
    gap: 0.7rem;
  }

  .place-card--prem {
    grid-column: 1;
    grid-row: 1;
  }

  .place-card--pagal {
    grid-column: 2;
    grid-row: 1;
  }

  .place-card--yamuna {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .place-card--iskcon {
    grid-column: 1;
    grid-row: 3;
  }

  .place-card-pair {
    grid-column: 2;
    grid-row: 3;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
  }

  .place-format {
    top: auto;
    right: 0.55rem;
    bottom: 3.2rem;
    left: 0.55rem;
    width: fit-content;
    max-width: calc(100% - 1.1rem);
    font-size: 0.48rem;
  }

  .place-card-copy {
    right: 0.65rem;
    bottom: 0.65rem;
    left: 0.65rem;
    gap: 0.3rem;
  }

  .place-card-copy strong,
  .place-card-pair .place-card-copy strong {
    font-size: clamp(0.74rem, 3.4vw, 0.92rem);
  }

  .place-card-copy > span,
  .place-card-pair .place-card-copy > span {
    padding-top: 0.3rem;
    font-size: 0.57rem;
  }

  .place-type {
    top: 0.55rem;
    left: 0.55rem;
    min-height: 1.25rem;
    max-width: calc(100% - 1.1rem);
    padding-inline: 0.4rem;
    font-size: 0.5rem;
  }
}

@media (max-width: 360px) {
  .places-heading {
    gap: 0.4rem;
  }

  .places-heading h2 {
    font-size: 1.25rem;
  }

  .places-grid {
    grid-template-rows: calc((100vw - 2rem) * 0.64) 9.5rem 9.5rem;
    gap: 0.55rem;
  }

  .place-card-pair {
    gap: 0.55rem;
  }

  .places-controls {
    gap: 0.25rem;
  }

  .places-control {
    width: 2rem;
    height: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .places-control,
  .place-image {
    transition: none;
  }

  .place-image.is-entering,
  .place-image.is-exiting {
    animation: none !important;
  }
}
