/* =====================================================================
   SPHARI PROPERTY — EDITORIAL SYSTEM V1

   Principles:
   - 16-column composition
   - huge media
   - asymmetric grids
   - generous whitespace
   - fewer visible borders
   - same Sphari colors
   - same approved images
   - no animation dependency
   ===================================================================== */


/* =====================================================================
   GLOBAL PROPERTY RHYTHM
   ===================================================================== */

:root {
  --sp-grid-gap: clamp(12px, 1vw, 18px);
  --sp-page-x: clamp(22px, 4vw, 64px);
  --sp-radius: clamp(14px, 1.3vw, 24px);
  --sp-black: #030303;
  --sp-ivory: #f2f0eb;
  --sp-white: #f4f3ef;
  --sp-red: #ef233c;
}


[class^="property-"],
[class*=" property-"] {
  box-sizing: border-box;
}


/*
 * Major section spacing.
 * More air, fewer boxed transitions.
 */

.property-personalized,
.property-request,
.property-audiences,
.property-connected,
.property-technology,
.property-management,
.property-types {

  padding-left: var(--sp-page-x) !important;
  padding-right: var(--sp-page-x) !important;
}


/* =====================================================================
   RESIDENT EXPERIENCE
   Keep the approved light section but make composition cleaner.
   ===================================================================== */

.property-editorial {

  display: grid !important;

  grid-template-columns:
    repeat(16, minmax(0,1fr)) !important;

  gap:
    var(--sp-grid-gap) !important;

  padding:
    clamp(110px, 13vh, 180px)
    var(--sp-page-x) !important;

  align-items:
    center !important;
}


.property-editorial-copy {

  grid-column:
    1 / span 6 !important;

  align-self:
    center;
}


.property-editorial-image {

  grid-column:
    8 / -1 !important;

  min-height:
    min(72vh, 820px) !important;

  border-radius:
    var(--sp-radius);

  overflow:
    hidden;
}


.property-editorial-copy h2 {

  max-width:
    760px;

  font-size:
    clamp(58px, 6.5vw, 108px) !important;

  line-height:
    .91 !important;

  letter-spacing:
    -.06em !important;
}


.property-editorial-copy > p {

  max-width:
    560px;
}


/* =====================================================================
   PERSONALIZATION
   Stop presenting this as a regular dashboard/card grid.
   ===================================================================== */

.property-personalized {

  padding-top:
    clamp(130px, 15vh, 210px) !important;

  padding-bottom:
    clamp(130px, 15vh, 210px) !important;
}


.property-personalized .property-wide-header {

  max-width:
    1180px !important;

  margin-bottom:
    clamp(70px, 8vw, 130px) !important;
}


.property-personalized .property-wide-header h2 {

  font-size:
    clamp(64px, 7.4vw, 122px) !important;
}


/*
 * New asymmetric editorial mosaic.
 */

.property-personalized .property-four-grid {

  display: grid !important;

  grid-template-columns:
    repeat(16, minmax(0,1fr)) !important;

  grid-template-rows:
    minmax(270px, auto)
    minmax(270px, auto)
    minmax(190px, auto) !important;

  gap:
    var(--sp-grid-gap) !important;

  border:
    0 !important;
}


.property-personalized .property-four-grid article {

  border:
    1px solid rgba(255,255,255,.08) !important;

  border-radius:
    var(--sp-radius);

  overflow:
    hidden;

  min-height:
    0 !important;
}


/* 01 arrival — huge media */

.property-personalized .property-four-grid article:nth-child(1) {

  grid-column:
    1 / span 11 !important;

  grid-row:
    1 / span 2 !important;

  min-height:
    clamp(560px, 68vw, 900px) !important;
}


/* 02 */

.property-personalized .property-four-grid article:nth-child(2) {

  grid-column:
    12 / -1 !important;

  grid-row:
    1 !important;

  min-height:
    320px !important;
}


/* 03 */

.property-personalized .property-four-grid article:nth-child(3) {

  grid-column:
    12 / -1 !important;

  grid-row:
    2 !important;

  min-height:
    320px !important;
}


/* 04 full width */

.property-personalized .property-four-grid article:nth-child(4) {

  grid-column:
    1 / -1 !important;

  grid-row:
    3 !important;

  min-height:
    210px !important;

  border-radius:
    var(--sp-radius);
}


/* =====================================================================
   REAL REQUEST
   Huge statement + simplified workflow.
   ===================================================================== */

.property-request {

  min-height:
    auto !important;

  padding-top:
    clamp(140px, 17vh, 230px) !important;

  padding-bottom:
    clamp(140px, 17vh, 230px) !important;

  display:
    grid !important;

  grid-template-columns:
    repeat(16, minmax(0,1fr)) !important;

  gap:
    var(--sp-grid-gap) !important;
}


.property-request > .property-section-number {

  grid-column:
    1 / span 2;
}


.property-request-content {

  grid-column:
    3 / -1;
}


.property-request-content blockquote {

  max-width:
    1320px !important;

  font-size:
    clamp(58px, 7.4vw, 120px) !important;

  line-height:
    .92 !important;

  letter-spacing:
    -.055em;
}


/*
 * Workflow is no longer 4 identical boxes.
 * 6 / 4 / 3 / 3 hierarchy.
 */

.property-request-actions {

  display:
    grid !important;

  grid-template-columns:
    repeat(16, minmax(0,1fr)) !important;

  gap:
    var(--sp-grid-gap) !important;

  margin-top:
    clamp(70px, 8vw, 125px) !important;

  border:
    0 !important;
}


.property-request-actions article {

  min-height:
    230px !important;

  padding:
    28px !important;

  border:
    1px solid rgba(255,255,255,.09) !important;

  border-radius:
    var(--sp-radius);
}


.property-request-actions article:nth-child(1) {
  grid-column: span 6;
}


.property-request-actions article:nth-child(2) {
  grid-column: span 4;
}


.property-request-actions article:nth-child(3) {
  grid-column: span 3;
}


.property-request-actions article:nth-child(4) {
  grid-column: span 3;
}


/* =====================================================================
   OPERATIONS
   Cinematic media followed by asymmetric feature mosaic.
   ===================================================================== */

.property-operations {

  min-height:
    94svh !important;
}


.property-operations-content {

  width:
    min(790px, 48vw) !important;

  margin-left:
    var(--sp-page-x) !important;
}


.property-operation-grid {

  display:
    grid !important;

  grid-template-columns:
    repeat(16, minmax(0,1fr)) !important;

  gap:
    var(--sp-grid-gap) !important;

  padding:
    var(--sp-grid-gap)
    var(--sp-page-x)
    clamp(130px, 15vh, 200px);

  border:
    0 !important;
}


.property-operation-grid article {

  min-height:
    290px !important;

  border:
    1px solid rgba(255,255,255,.08) !important;

  border-radius:
    var(--sp-radius);

  padding:
    30px !important;
}


.property-operation-grid article:nth-child(8n+1),
.property-operation-grid article:nth-child(8n+4) {

  grid-column:
    span 6;
}


.property-operation-grid article:nth-child(8n+2),
.property-operation-grid article:nth-child(8n+3),
.property-operation-grid article:nth-child(8n+5),
.property-operation-grid article:nth-child(8n+6),
.property-operation-grid article:nth-child(8n+7),
.property-operation-grid article:nth-child(8n+8) {

  grid-column:
    span 5;
}


/*
 * Correct each row if final spans overflow.
 */

.property-operation-grid article:nth-child(4n+1) {
  grid-column: span 6;
}

.property-operation-grid article:nth-child(4n+2) {
  grid-column: span 5;
}

.property-operation-grid article:nth-child(4n+3) {
  grid-column: span 5;
}

.property-operation-grid article:nth-child(4n+4) {
  grid-column: span 16;
  min-height: 220px !important;
}


/* =====================================================================
   BIG STATEMENTS
   More whitespace, less decoration.
   ===================================================================== */

.property-centered-statement,
.property-opening-statement,
.property-system-statement {

  padding:
    clamp(150px, 19vh, 260px)
    var(--sp-page-x) !important;
}


.property-centered-statement p,
.property-opening-statement p,
.property-system-statement p {

  max-width:
    1400px;

  margin-left:
    auto !important;

  margin-right:
    auto !important;

  font-size:
    clamp(62px, 7.6vw, 126px) !important;
}


/* =====================================================================
   AUDIENCES
   3 cards → editorial 8/8 + full-width third.
   ===================================================================== */

.property-audiences {

  padding-top:
    clamp(130px, 15vh, 200px) !important;

  padding-bottom:
    clamp(130px, 15vh, 200px) !important;

  border-top:
    0 !important;
}


.property-audience-grid {

  display:
    grid !important;

  grid-template-columns:
    repeat(16, minmax(0,1fr)) !important;

  gap:
    var(--sp-grid-gap) !important;

  border:
    0 !important;
}


.property-audience-grid article {

  min-height:
    clamp(440px, 48vw, 690px) !important;

  border:
    1px solid rgba(255,255,255,.08) !important;

  border-radius:
    var(--sp-radius);

  padding:
    clamp(30px, 3vw, 48px) !important;
}


.property-audience-grid article:nth-child(1) {
  grid-column: 1 / span 8;
}


.property-audience-grid article:nth-child(2) {
  grid-column: 9 / -1;
}


.property-audience-grid article:nth-child(3) {

  grid-column:
    1 / -1;

  min-height:
    360px !important;
}


/* =====================================================================
   PRE-OPENING
   Keep cinematic image. Simplify card treatment.
   ===================================================================== */

.property-preopening {

  min-height:
    94svh !important;
}


.property-preopening-grid {

  display:
    grid !important;

  grid-template-columns:
    repeat(16,minmax(0,1fr)) !important;

  gap:
    var(--sp-grid-gap) !important;

  padding:
    var(--sp-grid-gap)
    var(--sp-page-x)
    clamp(130px,15vh,200px);

  border:
    0 !important;
}


.property-preopening-grid article {

  border:
    1px solid rgba(255,255,255,.08) !important;

  border-radius:
    var(--sp-radius);

  min-height:
    260px !important;
}


.property-preopening-grid article:nth-child(1),
.property-preopening-grid article:nth-child(4) {

  grid-column:
    span 6;
}


.property-preopening-grid article:nth-child(2),
.property-preopening-grid article:nth-child(3) {

  grid-column:
    span 5;
}


/* =====================================================================
   CONNECTED PROPERTY
   16-column instead of 18% / 1fr / .8fr.
   ===================================================================== */

.property-connected {

  display:
    grid !important;

  grid-template-columns:
    repeat(16,minmax(0,1fr)) !important;

  gap:
    var(--sp-grid-gap) !important;

  min-height:
    auto !important;

  padding-top:
    clamp(130px,15vh,210px) !important;

  padding-bottom:
    clamp(130px,15vh,210px) !important;
}


.property-connected > .property-section-number {

  grid-column:
    1 / span 2;
}


.property-connected-copy {

  grid-column:
    3 / span 8;
}


.property-system-grid {

  grid-column:
    12 / -1;

  align-self:
    end;

  display:
    grid !important;

  grid-template-columns:
    1fr !important;

  border:
    0 !important;
}


.property-system-grid span {

  min-height:
    72px !important;

  padding:
    18px 0 !important;

  border-right:
    0 !important;

  border-bottom:
    1px solid rgba(255,255,255,.10) !important;
}


/* =====================================================================
   TECHNOLOGY
   Stop eight/six features looking identical.
   ===================================================================== */

.property-technology {

  padding-top:
    clamp(130px,15vh,210px) !important;

  padding-bottom:
    clamp(130px,15vh,210px) !important;

  border-top:
    0 !important;
}


.property-technology-grid {

  display:
    grid !important;

  grid-template-columns:
    repeat(16,minmax(0,1fr)) !important;

  gap:
    var(--sp-grid-gap) !important;

  border:
    0 !important;
}


.property-technology-grid article {

  border:
    1px solid rgba(255,255,255,.08) !important;

  border-radius:
    var(--sp-radius);

  min-height:
    280px !important;
}


.property-technology-grid article:nth-child(4n+1) {
  grid-column: span 6;
}


.property-technology-grid article:nth-child(4n+2) {
  grid-column: span 5;
}


.property-technology-grid article:nth-child(4n+3) {
  grid-column: span 5;
}


.property-technology-grid article:nth-child(4n+4) {

  grid-column:
    span 16;

  min-height:
    210px !important;
}


/* =====================================================================
   STAFF — retain ivory identity, modernize geometry.
   ===================================================================== */

.property-staff {

  display:
    grid !important;

  grid-template-columns:
    repeat(16,minmax(0,1fr)) !important;

  gap:
    var(--sp-grid-gap) !important;

  padding:
    clamp(130px,15vh,210px)
    var(--sp-page-x) !important;
}


.property-staff > .property-section-number {

  grid-column:
    1 / span 2;
}


.property-staff-main {

  grid-column:
    3 / -1;
}


.property-staff-main h2 {

  max-width:
    1200px;

  font-size:
    clamp(66px,7.8vw,126px) !important;
}


.property-staff-examples {

  max-width:
    1160px;
}


/* =====================================================================
   MANAGEMENT
   Cleaner feature blocks.
   ===================================================================== */

.property-management {

  padding-top:
    clamp(130px,15vh,210px) !important;

  padding-bottom:
    clamp(130px,15vh,210px) !important;
}


.property-management-grid {

  display:
    grid !important;

  grid-template-columns:
    repeat(16,minmax(0,1fr)) !important;

  gap:
    var(--sp-grid-gap) !important;

  border:
    0 !important;
}


.property-management-grid article {

  border:
    1px solid rgba(255,255,255,.08) !important;

  border-radius:
    var(--sp-radius);

  min-height:
    180px !important;
}


.property-management-grid article:nth-child(1) {
  grid-column: span 6;
}

.property-management-grid article:nth-child(2) {
  grid-column: span 5;
}

.property-management-grid article:nth-child(3) {
  grid-column: span 5;
}

.property-management-grid article:nth-child(n+4) {
  grid-column: span 4;
}


/* =====================================================================
   HUMAN SERVICE
   Leave cinematic photograph dominant.
   ===================================================================== */

.property-human {

  min-height:
    96svh !important;
}


.property-human-content {

  width:
    min(760px,47vw) !important;

  margin-left:
    var(--sp-page-x) !important;
}


/* =====================================================================
   PROPERTY TYPES
   Large editorial cards instead of 4 skinny boxes.
   ===================================================================== */

.property-types {

  padding-top:
    clamp(130px,15vh,210px) !important;

  padding-bottom:
    clamp(130px,15vh,210px) !important;
}


.property-type-grid {

  display:
    grid !important;

  grid-template-columns:
    repeat(16,minmax(0,1fr)) !important;

  gap:
    var(--sp-grid-gap) !important;

  border:
    0 !important;
}


.property-type-grid article {

  min-height:
    420px !important;

  border:
    1px solid rgba(255,255,255,.08) !important;

  border-radius:
    var(--sp-radius);
}


.property-type-grid article:nth-child(1),
.property-type-grid article:nth-child(4) {

  grid-column:
    span 9;
}


.property-type-grid article:nth-child(2),
.property-type-grid article:nth-child(3) {

  grid-column:
    span 7;
}


/* =====================================================================
   FINAL
   Huge media / minimal copy.
   ===================================================================== */

.property-final {

  min-height:
    100svh !important;
}


.property-final-content {

  width:
    min(860px,53vw) !important;

  margin-left:
    var(--sp-page-x) !important;
}


.property-final-content h2 {

  font-size:
    clamp(72px,8.5vw,138px) !important;
}


/* =====================================================================
   TABLET
   ===================================================================== */

@media (max-width: 1000px) {

  .property-editorial {

    grid-template-columns:
      repeat(8,minmax(0,1fr)) !important;
  }


  .property-editorial-copy {

    grid-column:
      1 / -1 !important;
  }


  .property-editorial-image {

    grid-column:
      1 / -1 !important;

    min-height:
      620px !important;

    margin-top:
      46px;
  }


  .property-personalized .property-four-grid {

    grid-template-columns:
      repeat(8,minmax(0,1fr)) !important;

    grid-template-rows:
      auto !important;
  }


  .property-personalized
  .property-four-grid
  article:nth-child(1) {

    grid-column:
      1 / -1 !important;

    grid-row:
      auto !important;

    min-height:
      620px !important;
  }


  .property-personalized
  .property-four-grid
  article:nth-child(2),

  .property-personalized
  .property-four-grid
  article:nth-child(3) {

    grid-column:
      span 4 !important;

    grid-row:
      auto !important;
  }


  .property-personalized
  .property-four-grid
  article:nth-child(4) {

    grid-column:
      1 / -1 !important;

    grid-row:
      auto !important;
  }


  .property-request,
  .property-connected,
  .property-staff {

    grid-template-columns:
      repeat(8,minmax(0,1fr)) !important;
  }


  .property-request > .property-section-number,
  .property-connected > .property-section-number,
  .property-staff > .property-section-number {

    grid-column:
      1 / -1 !important;
  }


  .property-request-content,
  .property-connected-copy,
  .property-system-grid,
  .property-staff-main {

    grid-column:
      1 / -1 !important;
  }


  .property-audience-grid article {

    grid-column:
      1 / -1 !important;
  }

}


/* =====================================================================
   PHONE
   ===================================================================== */

@media (max-width: 700px) {

  :root {
    --sp-page-x: 22px;
    --sp-grid-gap: 12px;
    --sp-radius: 14px;
  }


  .property-editorial {

    display:
      block !important;

    padding:
      96px var(--sp-page-x) !important;
  }


  .property-editorial-copy h2 {

    font-size:
      47px !important;
  }


  .property-editorial-image {

    min-height:
      470px !important;
  }


  .property-personalized .property-four-grid,
  .property-request-actions,
  .property-operation-grid,
  .property-audience-grid,
  .property-preopening-grid,
  .property-technology-grid,
  .property-management-grid,
  .property-type-grid {

    display:
      flex !important;

    flex-direction:
      column !important;

    gap:
      12px !important;
  }


  .property-personalized .property-four-grid article,
  .property-request-actions article,
  .property-operation-grid article,
  .property-audience-grid article,
  .property-preopening-grid article,
  .property-technology-grid article,
  .property-management-grid article,
  .property-type-grid article {

    width:
      100% !important;

    min-height:
      260px !important;
  }


  .property-personalized
  .property-four-grid
  article:nth-child(1) {

    min-height:
      570px !important;
  }


  .property-request {

    display:
      block !important;
  }


  .property-request-content blockquote {

    font-size:
      49px !important;
  }


  .property-connected,
  .property-staff {

    display:
      block !important;
  }


  .property-system-grid {

    margin-top:
      48px;
  }


  .property-operations-content,
  .property-preopening-content,
  .property-human-content,
  .property-final-content {

    width:
      auto !important;

    margin:
      0 22px !important;
  }


  .property-final-content h2 {

    font-size:
      52px !important;
  }

}

/* PROPERTY_EDITORIAL_IMAGE_FOCUS_V1_START */

/*
 * Fix only the main intelligent-arrival image crop.
 * Keep same image and same layout.
 * Show more of the right-side architecture / entrance.
 */
img[src*="PropertyArrivalIntelligenceHero"] {
  object-fit: cover !important;
  object-position: 74% center !important;
}

/* If this media is wrapped in picture/source, keep the same focus */
picture img[src*="PropertyArrivalIntelligenceHero"] {
  object-fit: cover !important;
  object-position: 74% center !important;
}

/* PROPERTY_EDITORIAL_IMAGE_FOCUS_V1_END */

/* PROPERTY_ARRIVAL_SCREEN_FOCUS_V2_START */

/*
 * Approved arrival-intelligence image:
 * keep same image, same section, same design language
 * but force the crop to reveal the RIGHT SIDE display/screen.
 */

img[src*="PropertyArrivalIntelligenceHero"],
img[src*="PropertyArrivalIntelligenceHero.webp"],
picture img[src*="PropertyArrivalIntelligenceHero"],
picture img[src*="PropertyArrivalIntelligenceHero.webp"] {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: 100% 50% !important;
}

/* desktop */
@media (min-width: 1281px) {
  img[src*="PropertyArrivalIntelligenceHero"],
  img[src*="PropertyArrivalIntelligenceHero.webp"],
  picture img[src*="PropertyArrivalIntelligenceHero"],
  picture img[src*="PropertyArrivalIntelligenceHero.webp"] {
    object-position: 100% 50% !important;
  }
}

/* tablet / smaller desktop */
@media (max-width: 1280px) {
  img[src*="PropertyArrivalIntelligenceHero"],
  img[src*="PropertyArrivalIntelligenceHero.webp"],
  picture img[src*="PropertyArrivalIntelligenceHero"],
  picture img[src*="PropertyArrivalIntelligenceHero.webp"] {
    object-position: 96% 50% !important;
  }
}

/* phone */
@media (max-width: 768px) {
  img[src*="PropertyArrivalIntelligenceHero"],
  img[src*="PropertyArrivalIntelligenceHero.webp"],
  picture img[src*="PropertyArrivalIntelligenceHero"],
  picture img[src*="PropertyArrivalIntelligenceHero.webp"] {
    object-position: 92% 50% !important;
  }
}

/* PROPERTY_ARRIVAL_SCREEN_FOCUS_V2_END */

/* PROPERTY_ARRIVAL_FULL_IMAGE_V3_START */
/*
 * INTELLIGENT ARRIVAL
 *
 * Preserve complete source image.
 * Do NOT use cover on the actual photo layer.
 */

.property-personalized
.property-four-grid
article:nth-child(1) {

  background-color:
    #050709 !important;

  /*
   * Layer 1 = vertical gradient
   * Layer 2 = horizontal gradient
   * Layer 3 = PropertyArrivalIntelligenceHero.webp
   *
   * Only the real image layer is constrained to full width.
   */
  background-size:
    100% 100%,
    100% 100%,
    100% auto !important;

  background-position:
    center center,
    center center,
    center top !important;

  background-repeat:
    no-repeat,
    no-repeat,
    no-repeat !important;
}


/*
 * Desktop
 */
@media (min-width: 1001px) {

  .property-personalized
  .property-four-grid
  article:nth-child(1) {

    background-size:
      100% 100%,
      100% 100%,
      100% auto !important;

    background-position:
      center center,
      center center,
      center top !important;
  }

}


/*
 * Tablet
 */
@media (min-width: 701px) and (max-width: 1000px) {

  .property-personalized
  .property-four-grid
  article:nth-child(1) {

    background-size:
      100% 100%,
      100% 100%,
      contain !important;

    background-position:
      center center,
      center center,
      center top !important;
  }

}


/*
 * Phone
 */
@media (max-width: 700px) {

  .property-personalized
  .property-four-grid
  article:nth-child(1) {

    background-size:
      100% 100%,
      100% 100%,
      contain !important;

    background-position:
      center center,
      center center,
      center top !important;
  }

}
/* PROPERTY_ARRIVAL_FULL_IMAGE_V3_END */
