/* ============================================================
   RESIDENCES CATALOG — MOBILE FIRST
   Shared shell (nav/menu/contact/footer) comes from globals-home.css
   ============================================================ */

/* html,
body.residences-catalog-page {
  background: var(--eggshell);
}

.residences-catalog-page {
  --rc-page-max: 375px;
  --rc-page-pad: 15px;
}

.residences-catalog-page .page-inner {
  width: min(100%, var(--rc-page-max));
  margin: 0 auto;
  padding: 0 var(--rc-page-pad);
} */

.residences-catalog-page .footer .page-inner {
  padding: 0;
}


/* 
.residences-catalog-page .nav-inner {
  max-width: calc(var(--rc-page-max) - (var(--rc-page-pad) * 2));
  margin: 0 auto;
}

.residences-catalog-page .menu-overlay-header {
  padding: 20px var(--rc-page-pad) 0;
}

.residences-catalog-page .menu-overlay-header .nav-inner {
  max-width: calc(var(--rc-page-max) - (var(--rc-page-pad) * 2));
  margin: 0 auto;
} */

.rc-main,
.rc-main * {
  min-width: 0;
}

.rc-main {
  display: block;
  overflow: clip;
}

/* ============================================================
   HERO
   ============================================================ */
.rc-hero {
  display: flex;
  flex-direction: column;
  min-height: 430px;
  padding: 82px 15px 40px 15px;
  gap: 40px;
}

.rc-hero-title {
  max-width: 215px;
  color: var(--merlot);
  font-family: "Komrile", "Georgia", serif;
  font-size: 45px;
  font-weight: 400;
  line-height: 0.95;
  font-feature-settings: "liga" 0;
}

.rc-hero-title em {
  font-style: italic;
}

.rc-hero-contact {
  position: relative;
  width: 240px;
  height: 240px;
  display: grid;
  place-items: center;
  text-decoration: none;
  align-self: center;
  transition: transform 0.3s ease;
}

.rc-hero-contact__ring {
  position: absolute;
  inset: 0;
  border: 1px solid #c5c2b9;
  border-radius: 150px;
  background: transparent;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.rc-hero-contact__circle {
  position: absolute;
  inset: 9px;
  display: grid;
  place-items: center;
  border-radius: 150px;
  background: #fcfbf4;
  backdrop-filter: blur(7.45px);
  -webkit-backdrop-filter: blur(7.45px);
  padding: 16px 11px;
}

.rc-hero-contact__text {
  color: #3f090d;
  font-family: "PP Neue Montreal", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
  .rc-hero-contact:hover .rc-hero-contact__ring {
    background: #fefefe;
  }
  
  .rc-hero-contact:hover .rc-hero-contact__circle {
    background: #fefefe;
  }
}

.rc-hero-contact:focus-visible {
  outline: none;
}

.rc-hero-contact:focus-visible .rc-hero-contact__ring {
  background: #fefefe;
}

.rc-hero-contact:focus-visible .rc-hero-contact__circle {
  background: #fefefe;
}

/* ============================================================
   GALLERIES
   ============================================================ */
.rc-galleries {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin: 0 0 90px;
  padding: 0 15px;
}

.rc-gallery {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.rc-gallery__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.rc-gallery__title {
  color: var(--merlot);
  font-family: "Komrile", "Georgia", serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 0.95;
  font-feature-settings: "liga" 0;
}

.rc-gallery__nav {
  display: flex;
  gap: 10px;
}


 .rc-custom-block {
      display: flex;
    flex-direction: column-reverse;
    order: 2;
}

.rc-nav-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--eggshell);
  color: var(--merlot);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.rc-nav-btn:hover {
  opacity: 0.7;
}

.rc-nav-icon {
  width: 12px;
  height: 12px;
}

.rc-nav-icon--prev {
  transform: scaleX(-1);
}

.rc-gallery__stage {
  position: relative;
  height: 225px;
  overflow: hidden;
  touch-action: pan-y;
}

.rc-gallery__row {
  position: relative;
  width: 100%;
  height: 100%;
}

.rc-gallery__pane {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.rc-gallery__pane--side {
  display: none;
}

.rc-tablet-only {
  display: none;
}

.rc-gallery__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

.rc-gallery__slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.rc-gallery__slide .img-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-abs {
  position: absolute;
  inset: 0;
}

.rc-desktop-only {
  display: none;
}

/* ============================================================
   CUSTOMIZATION
   ============================================================ */
.rc-custom {
  margin: 0 0 90px;
  padding: 0 15px;
}

.rc-custom__inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rc-custom__header {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.rc-custom__details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rc-custom__title {
  color: var(--merlot);
  font-family: "Komrile", "Georgia", serif;
  font-size: 45px;
  font-weight: 400;
  line-height: 0.95;
  font-feature-settings: "liga" 0;
}

.rc-custom__title em {
  font-style: italic;
}

.rc-custom__desc {
  color: var(--merlot);
  font-family: "PP Neue Montreal", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
}

.rc-custom__image {
  position: relative;
  width: 100%;
  height: 395px;
  overflow: hidden;
  order:0;

}

.rc-custom__image .img-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rc-custom-tablet-mobile {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.rc-custom-tablet-mobile .img-cover {
  position: absolute;
  inset: 0;
}

.rc-custom-desktop-only {
  display: none;
}

.rc-custom__list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  order: 1;
  margin-bottom: 35px;
}

.rc-custom__details .section-divider {
  width: 100%;
  height: 1px;
  margin: 0;
  background: var(--border);
  flex-shrink: 0;
}

.rc-custom-item {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.rc-custom-item__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rc-custom-item__title {
  color: var(--merlot);
  font-family: "PP Neue Montreal", sans-serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;

}
.rc-custom__list>article:first-child>div:last-child{
  width: min(100%, 85%);
}
.rc-custom-item__text {
  color: var(--merlot);
  font-family: "PP Neue Montreal", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
}

.rc-custom__note {
  color: rgba(63, 9, 13, 0.4);
  font-family: "PP Neue Montreal", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
}

/* ============================================================
   SHELL SPACING
   ============================================================ */
.residences-catalog-page .contact.request-info {
  margin-top: 0;
}

@media (max-width: 359px) {
  .rc-hero-contact {
    width: 184px;
    height: 184px;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .residences-catalog-page {
    --rc-page-max: 1024px;
    --rc-page-pad: 25px;
  }

  .residences-catalog-page .page-inner {
    width: min(100%, var(--rc-page-max));
  }



  .rc-hero {
    min-height: 282px;
    margin-bottom: 80px;
    padding: 107px 25px 0 25px;
    flex-direction: row;
    justify-content: space-between;
  }

  .rc-hero-title {
    max-width: 327px;
    font-size: 70px;
  }

  .rc-hero-contact {
    /* top: 107px;
    right: 25px; */
    transform: none;
    width: 202px;
    height: 202px;
  }

  .rc-galleries {
    gap: 60px;
    margin: 0 0 140px;
    padding-left: 25px;
  }

  .rc-gallery__title {
    font-size: 40px;
  }

  .rc-gallery__stage {
    height: 508.5px;
  }

  .rc-gallery__row {
    display: flex;
    gap: 15px;
    width: 181.3%;
  }

  .rc-gallery__pane {
    flex: 0 0 calc((100% - 15px) / 2);
  }

  .rc-gallery__pane--side {
    display: block;
  }

  .rc-gallery__pane--main > .img-abs {
    display: block;
  }

  .rc-tablet-only {
    display: block;
  }

  .rc-desktop-only {
    display: none;
  }

  .rc-custom {
    margin: 0 0 140px;
    padding: 0 25px;
  }

  .rc-custom__inner {
    gap: 0;
    padding: 0;
  }

  .rc-custom__header {
    width: min(100%, 520px);
    gap: 30px;
  }

  .rc-custom__title {
    font-size: 70px;
  }

  .rc-custom__desc {
    width: 420px;
    max-width: 420px;
  }

  .rc-custom__details {
    width: 684px;
    margin-left: auto;
    margin-top: 80px;
    gap: 20px;
  }

  .rc-custom__list {
    gap: 15px;
    order: 0;
    margin-bottom: 40px;
  }
  .rc-custom-block{
    order: 1;
  }

  .rc-custom-item:nth-child(1) .rc-custom-item__title {
    letter-spacing: -0.004em;
  }

  .rc-custom-item:nth-child(3) .rc-custom-item__body {
    letter-spacing: -0.003em;
    font-weight: 400;
  }

  .rc-custom-item:nth-child(3) .rc-custom-item__text {
    letter-spacing: -0.001em;
  }

  .rc-custom-item__text {
    width: min(100%, 85%);
  }

  .rc-custom-item__title {
    font-size: 25px;
  }

  .rc-custom-item {
    will-change: transform, opacity;
  }

  .rc-custom__note {
    width: 100%;
    max-width: 684px;
    letter-spacing: -0.002em;
  }

  .rc-custom__image {
    width: 100%;
    max-width: 684px;
    height: auto;
    aspect-ratio: 684 / 560;
    margin: 0 0 0 0;
    order: 2;
  }

  .rc-custom__image .img-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .rc-custom-desktop-only {
    display: none;
  }
  .rc-gallery__head{
    padding-right: 25px;
  }
}

@media (min-width: 1200px) {

  .residences-catalog-page {
    --rc-page-max: 1600px;
  }

  .residences-catalog-page .page-inner {
    width: min(100%, var(--rc-page-max));
  }




  .rc-hero {
    min-height: 551px;
    margin: 0px 0 0;
    padding: 133px 40px 0 40px;
    flex-direction: row;
    justify-content: space-between;
  }

  .rc-hero-title {
    max-width: 566px;
    font-size: 100px;
  }

  .rc-hero-contact {
    /* top: 133px;
    right: 40px; */
    width: 258px;
    height: 258px;
      transform: none;
      align-self: baseline;
  }

  .rc-hero-contact__circle {
    inset: 9px;
  }

  .rc-galleries {
    gap: 100px;
    margin: 0 0 190px;
    padding: 0 0 0 40px;
  }

  .rc-gallery {
    gap: 15px;
  }

  .rc-gallery__head.page-inner {
    padding-right: 40px;
  }

  .rc-gallery__title {
    font-size: 55px;
  }

  .rc-nav-btn {
    width: 50px;
    height: 50px;
  }

  .rc-nav-icon {
    width: 14px;
    height: 14px;
  }

  .rc-gallery__stage {
    height: 720px;
  }

  .rc-gallery__row {
    display: flex;
    gap: 15px;
    width: 119.87%;
  }

  .rc-gallery__pane {
    flex: 0 0 calc((100% - 15px) * 1345 / 1807);
  }

  .rc-gallery__pane--side {
    display: block;
    flex-basis: calc((100% - 15px) * 427 / 1807);
  }

  .rc-gallery__pane--main > .img-abs {
    display: block;
  }

  .rc-tablet-only {
    display: none;
  }

  .rc-desktop-only {
    display: block;
  }

  .rc-custom {
    margin: 0 0 200px;
    padding: 0 40px;
  }

  .rc-custom__inner {
    gap: 0;
  }

  .rc-custom__header {
    width: min(100%, 50%);
    gap: 49px;
  }

  .rc-custom__title {
    max-width: 907px;
    font-size: 100px;
    margin-top: 6px;
  }

  .rc-custom__desc {
    width: 463px;
    max-width: 463px;
    font-size: 16px;
  }

  .rc-custom__details {
    width: 1008px;
    margin-top: 111px;
    margin-left: auto;
    gap: 139px;
  }

  .rc-custom__details > div:nth-child(2) {
    display: flex;
    gap: 23px;
    flex-direction: column;
  }

  .rc-custom__list {
    gap: 23px;
    margin-bottom: 0;
  }

  .rc-custom-item {
    gap: 27px;
  }

  .rc-custom-item__body {
    gap: 13px;
  }

  .rc-custom-item__title {
    font-size: 40px;
  }

  .rc-custom-item__text {
    letter-spacing: -0.002em;
  font-size: 16px;
  }

  .rc-custom__note {
    width: 657px;
    max-width: 657px;
    font-size: 16px;
    color: rgba(63, 9, 13, 0.4);
    display: block;
  }

  .rc-custom__image {
    width: 1008px;
    height: 700px;
  }

  .rc-custom-tablet-mobile {
    display: none;
  }

  .rc-custom-desktop-only {
    display: block;
  }
}
