/* DevelopmentCard.tsx typography parity: homepage and development listing. */
.v5-grid > .v5-card.ml-development-card .v5-card-body h3 {
  font: 600 24px/32px "Titillium Web", sans-serif;
  color: #000;
}
.v5-grid > .v5-card.ml-development-card .v5-location {
  font: 400 16px/24px "Roboto", sans-serif;
  color: #333;
}
.v5-grid > .v5-card.ml-development-card .v5-spec small {
  font: 400 14px/20px "Titillium Web", sans-serif;
  color: #54595f;
}
.v5-grid > .v5-card.ml-development-card .v5-spec p {
  font: 400 16px/24px "Titillium Web", sans-serif;
  color: #333;
}
.v5-grid > .v5-card.ml-development-card .v5-features li {
  font: 400 18px/28px "Titillium Web", sans-serif;
  color: #333;
}
.v5-grid > .v5-card.ml-development-card .v5-status {
  font: 700 14px/20px "Titillium Web", sans-serif;
  color: #fff;
  text-transform: capitalize;
}

/* Shared card icons and explicit text styles override legacy span rules. */
.v5-grid > .ml-development-card .v5-location { display:flex; align-items:center; gap:4px; }
.v5-grid > .ml-development-card .v5-location svg { width:24px; height:24px; flex:none; }
.v5-grid > .ml-development-card .v5-location .ml-location-text { font:inherit; color:inherit; margin:0; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.v5-grid > .ml-development-card .v5-features li svg { width:16px; height:16px; flex:none; color:#08463c; }
.v5-grid > .ml-development-card .v5-features li .ml-feature-text { font:inherit; color:inherit; min-width:0; overflow-wrap:anywhere; }
.v5-grid > .ml-development-card .v5-arrow svg { width:24px; height:24px; }
.v5-grid > .ml-development-card[hidden] { display:none !important; }

/* =========================================
   CURRENT DEVELOPMENTS — RESPONSIVE LAYOUT
   Homepage + Developments listing
   ========================================= */

/* Shared grid container */

body.ml-homepage .v5-featured > .v5-grid,
main.ml-development-list
.v5-featured:not(.c6-past) > .v5-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: stretch;

    width: 100%;
    max-width: 1248px;
    margin-inline: auto;

    gap: 64px 24px;
    padding-bottom: 40px;
    box-sizing: border-box;
}

/* Desktop — 3 equal columns */

body.ml-homepage .v5-featured > .v5-grid > .ml-development-card,
main.ml-development-list
.v5-featured:not(.c6-past) > .v5-grid > .ml-development-card {
    flex: 0 0 calc((100% - 48px) / 3);
    width: calc((100% - 48px) / 3);
    max-width: 400px;
    min-width: 0;
    margin-inline: 0;
    box-sizing: border-box;
}

/* Desktop — centre only 1 or 2 cards */

@media (min-width: 1200px) {

    body.ml-homepage .v5-featured > .v5-grid:not(
        :has(> .ml-development-card ~ .ml-development-card ~ .ml-development-card)
    ),
    main.ml-development-list
    .v5-featured:not(.c6-past) > .v5-grid:not(
        :has(> .ml-development-card ~ .ml-development-card ~ .ml-development-card)
    ) {
        justify-content: center;
    }
}

/* Tablet — 2 equal columns */

@media (min-width: 768px) and (max-width: 1199px) {

    body.ml-homepage .v5-featured > .v5-grid,
    main.ml-development-list
    .v5-featured:not(.c6-past) > .v5-grid {
        max-width: 824px;
    }

    body.ml-homepage .v5-featured > .v5-grid > .ml-development-card,
    main.ml-development-list
    .v5-featured:not(.c6-past) > .v5-grid > .ml-development-card {
        flex-basis: calc((100% - 24px) / 2);
        width: calc((100% - 24px) / 2);
    }

    /* Centre only a single card */

    body.ml-homepage .v5-featured > .v5-grid:not(
        :has(> .ml-development-card ~ .ml-development-card)
    ),
    main.ml-development-list
    .v5-featured:not(.c6-past) > .v5-grid:not(
        :has(> .ml-development-card ~ .ml-development-card)
    ) {
        justify-content: center;
    }
}

/* Mobile — single column */

@media (max-width: 767px) {

    body.ml-homepage .v5-featured > .v5-grid,
    main.ml-development-list
    .v5-featured:not(.c6-past) > .v5-grid {
        max-width: 400px;
        justify-content: center;
    }

    body.ml-homepage .v5-featured > .v5-grid > .ml-development-card,
    main.ml-development-list
    .v5-featured:not(.c6-past) > .v5-grid > .ml-development-card {
        flex-basis: 100%;
        width: 100%;
        max-width: 400px;
    }
}

/* =========================================
   DEVELOPMENT CARD — IMAGE HOVER ZOOM
   ========================================= */

.v5-grid > .v5-card .v5-card-image {
    overflow: hidden;
}

.v5-grid > .v5-card .v5-card-image > img {
    transform: scale(1);
    transition: transform .65s ease;
}

/* Desktop hover animation */

@media (hover: hover) and (pointer: fine) {

    .v5-grid > .v5-card .v5-card-image:hover > img {
        transform: scale(1.05);
    }

}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {

    .v5-grid > .v5-card .v5-card-image > img {
        transition: none;
        transform: none !important;
    }

}