.unit-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.unit-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 45px rgba(0,0,0,0.12);
}

.unit-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: #16a34a;
  margin: 6px 0 12px;
}

.unit-badge {
  display: inline-block;
  background: #16a34a;
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  margin: 12px 0 8px;
}
/* Unit card buttons: make them full-width on mobile */
@media (max-width: 768px) {
  .unit-card .wp-block-buttons {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }

  .unit-card .wp-block-button {
    width: 100% !important;
  }

  .unit-card .wp-block-button__link {
    width: 100% !important;
    text-align: center !important;
    white-space: nowrap !important;
    padding: 14px 18px !important;
  }
}

/* SECTION 3 ONLY: stack unit cards on small phones */
@media (max-width: 700px) {
  .available-units .wp-block-columns {
    flex-wrap: wrap !important;
  }
  .available-units .wp-block-columns > .wp-block-column {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  /* prevent ugly mid-word breaks inside unit cards */
  .available-units .unit-card * {
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
  }
}
@media (max-width: 600px) {
  .unit-card img {
    max-height: 280px;
    object-fit: cover;
  }

}

.info-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

@media (max-width: 768px) {
  .info-card {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Center Amenities & Location section container */
..amenities-location.wp-block-group {
  max-width: 1200px;
  margin-left: auto !important;
  margin-right: auto !important;
}

.cta-strip {
  border-radius: 18px;
}

@media (max-width: 768px) {
  .cta-strip .wp-block-buttons {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }
  .cta-strip .wp-block-button__link {
    width: 100% !important;
    text-align: center !important;
  }
}

.cta-strip .wp-block-button__link:hover {
  background: rgba(255,255,255,0.1);
}

.trust-strip {
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}

/* Contact cards only: wrap long emails */
.contact-cards a,
.contact-cards p {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Contact page: force form/layout to stack + fill width on mobile */
@media (max-width: 768px) {
  .contact-section .wp-block-columns {
    flex-direction: column !important;
  }

  .contact-section .wp-block-columns > .wp-block-column {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .contact-section .wp-block-group,
  .contact-section .info-card {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

@media (max-width: 768px) {
  .contact-section form,
  .contact-section .wpforms-container,
  .contact-section .fluentform,
  .contact-section .wpcf7 {
    max-width: 100% !important;
    width: 100% !important;
  }
}

/* Make the Message box shorter (Contact page only) */
@media (max-width: 768px) {
  .contact-section textarea,
  .contact-section form textarea,
  .contact-section .wpforms-container textarea,
  .contact-section .wpforms-form textarea,
  .contact-section .fluentform textarea,
  .contact-section .ff-el-form-control textarea,
  .contact-section .wpcf7 textarea,
  .contact-section .wpcf7-form-control.wpcf7-textarea {
    min-height: 120px !important;
    height: 120px !important;
    padding: 12px 14px !important;
    line-height: 1.4 !important;
    margin-bottom: 12px !important;
  }
}
/* Simple modal override for Estatik images */
#es-simple-modal {
  display: none;
  position: fixed;
  z-index: 999999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  align-items: center;
  justify-content: center;
}

#es-simple-modal img {
  max-width: 90%;
  max-height: 90%;
}

#es-simple-modal .es-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
}

/* Lightbox always on top (desktop + mobile) */
body > .fancybox__container,
body > .fancybox-container,
body > .pswp,
body > .mfp-wrap,
body > .mfp-bg {
  z-index: 999999 !important;
  position: fixed !important;
  inset: 0 !important;          /* ensures full-screen coverage on mobile */
}

/* Mobile: prevent weird scroll/behind-click issues */
html.fancybox-active,
body.fancybox-active,
body.pswp-open,
body.mfp-zoom-out-cur,
body.mfp-ready {
  overflow: hidden !important;
  height: 100% !important;
  touch-action: none !important;
}

/* Mobile: keep close button clickable above everything */
.fancybox__button--close,
.fancybox-button--close,
.pswp__button--close,
.mfp-close {
  z-index: 1000000 !important;
}
@media (max-width: 768px) {
  .site-header,
  header,
  .sticky,
  .sticky-header {
    z-index: 1 !important;
  }
}
/* Features Page Icons */
.feature-icon {
    color: #4f674f;
    font-size: 34px;
    line-height: 1;
    font-weight: 500;
    text-align: center;
    margin-bottom: 12px;
}

@media (max-width: 768px) {
    .feature-icon {
        font-size: 30px;
        margin-bottom: 9px;
    }
}
/* ==================================================
   THE WILLOWS — FEATURES PAGE
   ================================================== */


/* =========================
   SECTION 1 — HERO
   ========================= */

.features-hero {
    min-height: 520px;
    padding: 60px 48px;
}

.features-hero-title {
    font-size: 48px !important;
    font-weight: 600 !important;
    line-height: 1.08 !important;
    letter-spacing: 1px !important;
    margin-bottom: 24px !important;
}

.features-hero-text {
    max-width: 540px;
    font-size: 17px !important;
    line-height: 1.7 !important;
}

.features-hero-text p {
    margin-bottom: 16px;
}

.features-hero-closing {
    font-size: 17px !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
    margin-top: 20px !important;
}


/* =========================
   ALL SECTION HEADINGS
   ========================= */

.features-heading {
    color: #4f674f !important;
    font-size: 30px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase;
    text-align: center;
    margin-top: 0 !important;
    margin-bottom: 36px !important;
}


/* =========================
   SECTION 2 — COMMUNITY
   ========================= */

.community-section {
    background: #ffffff;
    padding: 70px 24px;
}

.amenity-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.amenity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12);
}

.amenity-card img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.amenity-card h3,
.amenity-card p {
    color: #1f2937 !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    text-align: center;
    margin: 0 !important;
    padding: 18px 12px 20px;
}


/* =========================
   SECTION 3 — APARTMENT FEATURES
   ========================= */

.apartment-features-section {
    background: #f7f8f6;
    padding: 70px 24px;
}

.feature-item {
    text-align: center;
    padding: 24px 12px;
    border-radius: 12px;
    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.feature-item:hover {
    background: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

/* Symbols / icons */
.feature-icon {
    color: #4f674f !important;
    font-size: 36px !important;
    line-height: 1 !important;
    font-weight: 500;
    text-align: center;
    margin: 0 0 12px !important;
}

/* Feature labels */
.feature-item p {
    color: #374151 !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    text-align: center;
    margin: 0 !important;
}


/* =========================
   SECTION 4 — PET POLICY
   ========================= */

.pet-section {
    background: #ffffff;
    padding: 70px 24px;
}

.pet-policy-card {
    background: #f7f8f6;
    border-radius: 18px;
    padding: 36px;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.05);
}

.pet-policy-card img {
    width: 100%;
    display: block;
    border-radius: 16px;
    object-fit: cover;
}

.pet-heading {
    color: #4f674f !important;
    font-size: 28px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase;
    margin-top: 0 !important;
    margin-bottom: 20px !important;
}

.pet-text {
    color: #374151;
    font-size: 16px !important;
    line-height: 1.7 !important;
}

.pet-text p {
    margin-bottom: 14px;
}


/* Pet Policy Button */

.pet-button .wp-block-button__link,
.wp-block-button.pet-button .wp-block-button__link {
    background: #16a34a !important;
    color: #ffffff !important;
    border: 2px solid #16a34a !important;
    border-radius: 8px !important;
    padding: 13px 24px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.pet-button .wp-block-button__link:hover,
.wp-block-button.pet-button .wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}


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

@media (max-width: 1024px) {

    .features-hero {
        min-height: 460px;
        padding: 50px 32px;
    }

    .features-hero-title {
        font-size: 40px !important;
    }

    .features-heading {
        font-size: 28px !important;
        letter-spacing: 1.5px !important;
    }
}


/* ==================================================
   MOBILE
   ================================================== */

@media (max-width: 768px) {

    /* Hero */
    .features-hero {
        min-height: 420px;
        padding: 40px 24px;
    }

    .features-hero-title {
        font-size: 32px !important;
        line-height: 1.1 !important;
        letter-spacing: 0.5px !important;
        margin-bottom: 18px !important;
    }

    .features-hero-text {
        max-width: 100%;
        font-size: 16px !important;
        line-height: 1.6 !important;
    }

    .features-hero-closing {
        font-size: 16px !important;
    }


    /* Section spacing */
    .community-section,
    .apartment-features-section,
    .pet-section {
        padding: 50px 20px;
    }


    /* Headings */
    .features-heading {
        font-size: 24px !important;
        line-height: 1.25 !important;
        letter-spacing: 1.2px !important;
        margin-bottom: 28px !important;
    }


    /* Community cards */
    .amenity-card {
        margin-bottom: 18px;
    }

    .amenity-card h3,
    .amenity-card p {
        font-size: 16px !important;
        padding: 16px 10px 18px;
    }


    /* Apartment feature items */
    .feature-item {
        padding: 20px 8px;
    }

    .feature-icon {
        font-size: 30px !important;
        margin-bottom: 9px !important;
    }

    .feature-item p {
        font-size: 14px !important;
    }


    /* Pet section */
    .pet-policy-card {
        padding: 24px;
    }

    .pet-heading {
        font-size: 24px !important;
        letter-spacing: 1.2px !important;
        margin-top: 20px !important;
    }

    .pet-text {
        font-size: 15px !important;
    }

    .pet-button,
    .pet-button .wp-block-button__link {
        width: 100%;
        text-align: center;
    }
}


/* ==================================================
   SMALL PHONES
   ================================================== */

@media (max-width: 480px) {

    .features-hero {
        padding-left: 20px;
        padding-right: 20px;
    }

    .features-hero-title {
        font-size: 30px !important;
    }

    .features-heading {
        font-size: 22px !important;
        letter-spacing: 1px !important;
    }

    .feature-icon {
        font-size: 28px !important;
    }

    .pet-policy-card {
        padding: 20px;
    }
}
/* COMMUNITY AMENITIES — CENTER EVERYTHING ON MOBILE */
@media (max-width: 768px) {

    /* Center the entire community section */
    .community-section {
        text-align: center !important;
    }

    /* Center the columns */
    .community-section .wp-block-columns {
        width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        justify-content: center !important;
        align-items: center !important;
    }

    /* Center each column */
    .community-section .wp-block-column {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
    }

    /* Center each amenity card */
    .community-section .amenity-card {
        width: 100% !important;
        max-width: 320px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Center images */
    .community-section .amenity-card img {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Center icon */
    .community-section .feature-icon {
        text-align: center !important;
        width: 100% !important;
    }
}

/* PET POLICY — CENTER EVERYTHING ON MOBILE */
@media (max-width: 768px) {

    /* Center entire section */
    .pet-section {
        text-align: center !important;
    }

    /* Center the pet policy card */
    .pet-policy-card {
        width: 100% !important;
        max-width: 500px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: center !important;
    }

    /* Stack the two columns */
    .pet-policy-card .wp-block-columns {
        flex-direction: column !important;
        width: 100% !important;
        align-items: center !important;
    }

    /* Center both columns */
    .pet-policy-card .wp-block-column {
        width: 100% !important;
        flex-basis: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    /* Center pet image */
    .pet-policy-card img {
        width: 100% !important;
        max-width: 350px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Center heading */
    .pet-heading {
        text-align: center !important;
        width: 100% !important;
    }

    /* Center description */
    .pet-text,
    .pet-text p {
        text-align: center !important;
        width: 100% !important;
    }

    /* Center button container */
    .pet-button {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
    }

    /* Button itself */
    .pet-button .wp-block-button__link {
        width: auto !important;
        min-width: 200px !important;
        text-align: center !important;
    }
}

/* =========================
   FEATURES HERO — CLEAN VERSION
   ========================= */

.features-hero {
    min-height: 450px;
    padding: 50px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Main hero heading */
.features-hero-title {
    color: #ffffff !important;
    font-size: 46px !important;
    font-weight: 700 !important;
    line-height: 1.08 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase;
    text-align: center !important;
    margin: 0 0 18px !important;
}

/* Short hero description */
.features-hero-subtitle {
    color: #ffffff !important;
    max-width: 650px;
    margin: 0 auto 26px !important;
    font-size: 18px !important;
    line-height: 1.6 !important;
    font-weight: 400 !important;
    text-align: center !important;
}

/* Hero CTA */
.features-hero-button {
    display: flex !important;
    justify-content: center !important;
}

.features-hero-button .wp-block-button__link {
    background: #16a34a !important;
    color: #ffffff !important;
    border: 2px solid #16a34a !important;
    border-radius: 8px !important;
    padding: 13px 24px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.features-hero-button .wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}

/* Mobile */
@media (max-width: 768px) {
    .features-hero {
        min-height: 420px;
        padding: 40px 22px;
    }

    .features-hero-title {
        font-size: 31px !important;
        line-height: 1.1 !important;
        letter-spacing: 0.7px !important;
    }

    .features-hero-subtitle {
        max-width: 340px;
        font-size: 16px !important;
        line-height: 1.55 !important;
        margin-bottom: 24px !important;
    }

    .features-hero-button .wp-block-button__link {
        min-width: 190px;
    }
}
/* FEATURES HERO — FINAL POLISH */

.features-hero-title {
    font-size: 38px !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    letter-spacing: 1.5px !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

.features-hero-subtitle {
    max-width: 560px !important;
    font-size: 17px !important;
    line-height: 1.55 !important;
    text-shadow: 0 1px 5px rgba(0,0,0,0.45);
}

.features-hero-button .wp-block-button__link {
    padding: 14px 28px !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
}

/* MOBILE */
@media (max-width: 768px) {

    .features-hero {
        min-height: 550px !important;
        padding: 35px 22px !important;
    }

    .features-hero-title {
        font-size: 27px !important;
        line-height: 1.15 !important;
        letter-spacing: 1px !important;
        margin-bottom: 20px !important;
    }

    .features-hero-subtitle {
        max-width: 330px !important;
        font-size: 16px !important;
        line-height: 1.5 !important;
        margin-bottom: 24px !important;
    }

    .features-hero-button .wp-block-button__link {
        padding: 13px 24px !important;
        min-width: 190px;
    }
}
/* HOMEPAGE — AMENITIES & LOCATION
   Center entire section on mobile */

@media (max-width: 768px) {

    .amenities-location {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Center the columns container */
    .amenities-location .wp-block-columns {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        align-items: center !important;
    }

    /* Stack + center each column */
    .amenities-location .wp-block-column {
        width: 100% !important;
        max-width: 500px !important;
        flex-basis: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Center groups/cards inside each column */
    .amenities-location .wp-block-column > .wp-block-group {
        width: 100% !important;
        max-width: 500px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}
