.residence-block {
	width: 100%;
	max-width: 100%;
	color: #172023;
}

.residence-block__container,
.residence-block__filter-row,
.residence-block__filter-inner,
.residence-block__table-wrap,
.residence-block__details-inner,
.residence-block__actions,
.residence-block__action-group {
	width: 100%;
}

.residence-block__container {
	box-sizing: border-box;
	padding: 0 1rem;
}

.residence-block__filter-row {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 6rem;
}

.residence-block__filter-inner {
	display: flex;
	align-items: center;
	justify-content: center;
}

.residence-block__tabs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.residence-block__tab {
	margin: 0;
}

.residence-block__tab a {
	display: inline-flex;
	min-height: 44px;
	align-items: center;
	justify-content: center;
	padding: 0.7rem 1rem;
	border: 1px solid #c9c9c9;
	border-radius: 999px;
	color: #172023;
	text-decoration: none;
	transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.residence-block__tab a:hover,
.residence-block__tab a:focus-visible,
.residence-block__tab.is-active a {
	border-color: #172023;
	background: #172023;
	color: #fff;
}

.residence-block__tabs-content {
	width: 100%;
}

.residence-block__tab-panel {
	display: none;
}

.residence-block__tab-panel.is-active {
	display: block;
}

.residence-block__tab.is-active a,
.residence-block__tab a[aria-selected="true"] {
	background: #172023;
	color: #fff;
}

.residence-block__table-wrap {
	width: 100%;
}

.residence-block__grid {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem;
}

.residence-block__card {
	box-sizing: border-box;
	display: flex;
	flex: 0 0 calc((100% - 2.5rem) / 3);
	flex-direction: column;
	gap: 1rem;
	padding: 2rem;
	background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 0.5rem;
    transition: transform 180ms ease
}

.residence-block__card:hover {
    border: 1px solid var(--wp--preset--color--accent);
    transition: transform 180ms ease
}


.residence-block__card .cell-title {
	text-align: left;
}

.floorplan-card__image{
	align-items: center;
	display: flex;
	justify-content: center;
	width: 100%;
	min-height: 325px;
	margin: 0 auto 0.75rem;
	overflow: hidden;
}


.residence-block__thumbnail {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.residence-block__card .cell-title strong {
	display: block;
	font-weight: 700;
	font-size:1.5rem;
}

.residence-block__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 2rem;
}

.residence-block__facts > div {
	flex: 1 1 0;
	min-width: 0;
	text-align: left;
}

.residence-block__facts > div:first-child {
	flex-grow: 7;
}

.residence-block__facts > div:nth-child(2) {
	flex-grow: 3;
}

.residence-block__facts span,
.residence-block__facts strong {
	display: block;
}

.residence-block__facts span {
	font-size: 0.75rem;
	font-weight: 700;
}

.residence-block__card-action {
	margin-top: auto;
	text-align: center;
}

.residence-block__card button {
	display: inline-flex;
	min-height: 40px;
	align-items: center;
	justify-content: center;
	padding: 0.6rem 1rem;
	border: 1px solid var(--wp--preset--color--secondary);
	border-radius: 20px;
	background: var(--wp--preset--color--secondary);
	color: #fff;
	cursor: pointer;
	font: inherit;
	text-transform: capitalize;
}

.residence-block__card button:hover,
.residence-block__card button:focus-visible {
	border-color: #2a2d2f;
	background: #2a2d2f;
	color: #fff;
}

.residence-block__card[hidden] {
	display: none !important;
}

.residence-block__table {
	width: 100%;
	/* min-width: 760px; */
	border-collapse: collapse;
	border-spacing: 0;
    text-transform: uppercase;
}

.residence-block__table th,
.residence-block__table td {
	padding: 1rem;
	border-bottom: 1px solid #d9d9d9;
	text-align: left;
	vertical-align: middle;
    line-height: 1.3;
font-weight:400;
text-align:center;}

.residence-block__table thead {
    /* background-color:#F1F3F7; */
}

.residence-block__table th {
	/* background: #F1F3F7; */
	/* font-size: 0.8rem; */
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}
tbody tr[hidden] {
	display: none!important;
}
 
.residence-block__table.stack tbody tr:hover {
	background: var(--harmony-taupe);
    color:#ffffff;
}

/* Sets background color for even rows starting from the 2nd row (2, 4, 6, etc.) */
.residence-block__table tbody tr:nth-child(even),
table tbody tr:nth-child(even) {
  background-color: #F1F3F7;
}

/* Optional: Ensures odd rows retain a clean white or transparent background */
.residence-block__table tbody tr:nth-child(odd),
table tbody tr:nth-child(odd) {
  background-color: #FFFFFF;
}


.residence-block__table tbody tr:last-child td {
	border-bottom: 0;
}

.residence-block__table .cell-title strong{font-weight: 700;}

.residence-block__table button,
.residence-block__action-group .button {
	display: inline-flex;
	min-height: 40px;
	align-items: center;
	justify-content: center;
	padding: 0.6rem 1rem;
	border: 1px solid var(--wp--preset--color--secondary);
	border-radius: 20px;
	background: var(--wp--preset--color--secondary);
	color: #fff;
	cursor: pointer;
	font: inherit;
	text-decoration: none;
    text-transform: Capitalize!important;
}

.residence-block__table.stack tbody tr:hover button{
    background: var(--wp--preset--color--accent);  
    border: 1px solid var(--wp--preset--color--accent);
}

.residence-block__action-group .wp-block-button__link.wp-element-button:nth-child(even){background-color:var(--wp--preset--color--primary); color:#ffffff; }
.residence-block__action-group .wp-block-button__link.wp-element-button:nth-child(even):hover{background-color:var(--wp--preset--color--accent); color:#ffffff; }

.residence-block__table button:hover,
.residence-block__table button:focus-visible,
.residence-block__action-group a:hover,
.residence-block__action-group a:focus-visible,
.residence-block__action-group .button:hover,
.residence-block__action-group .button:focus-visible {
	background: #2a2d2f;
	color: #fff;
    border-color: #2a2d2f;
}

.residence-block__details {
	padding: 1.5rem 0;
}

.residence-block__details-inner {
	display: grid;
	grid-template-columns: minmax(0, 0.6fr) minmax(0, 1fr);
	gap: 3rem;
	align-items: start;
}

.residence-block__details-info{
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.residence-block__details-copy {
	min-width:0;
    padding: 2rem;
    background-color: var(--harmony-ink);
    color: #fff;
    height: 100%;
    align-items: stretch;
    /* justify-content: start; */
    display: flex;
}

.residence-block__details-copy .incentive {
    color: #ffffff;
    background-color: var(--harmony-champagne);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    margin-top:10px;
    padding:6px 20px;
    font-weight:500;
}

.residence-block__details-info h1,
.residence-block__details-info h3,
.residence-block__details-info h4 {
	margin-top: 0;
    color:#ffffff!important;
}

.residence-block__details-info h1{font-weight:500; margin-bottom:.25em;}
.residence-block__details-info ul {
	margin: 1rem 0 0;
	padding-left: .5rem;
    font-size: 1.5rem;
    text-transform: uppercase;
}

.residence-block__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.5rem;
}

.residence-block__action-group {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.residence-block__details-image {
	min-width: 0;
}

.residence-block__floorplan-image {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: contain;
	background: #ffffff;
    padding: 3rem;
}

.residence-block__modal {
	position: fixed;
	z-index: 99999;
	inset: 0;
	display: none;
	align-items: start;
	justify-content: center;
	padding: 0rem;
	overflow-y: auto;
	background: rgba(255, 255, 255, 1);
}

.residence-block__modal.is-open {
	display: flex;
}

.residence-block__modal .residence-block__details-inner {
	/* width: min(1440px, 100%); */
	max-height: calc(100vh - 0rem);
	padding: 0;
	overflow-y: auto;
	border-radius: 0;
	background: #fff;
	/* box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35); */
}

.residence-block__modal .close-button {
	position: fixed;
	top: 1.5rem;
	right: 1.5rem;
	z-index: 1;
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: #172023;
	cursor: pointer;
	font-size: 3rem;
	line-height: 1;
}

@media screen and (max-width: 63.9988em) {
	.residence-block__card {
		flex-basis: calc((100% - 1.25rem) / 2);
	}

    table.stack thead {
        display: none;
    }
        table.stack td {
        border-top: 0;
    }
    table.stack td, table.stack th, table.stack tr {
                display: flex;flex-direction: column;align-items: center;justify-content: center;
    }

    .residence-block__details-copy{height:inherit;}

}

@media (max-width: 767px) {
	.residence-block__card {
		flex-basis: 100%;
	}

    

	.residence-block__filter-row,
	.residence-block__filter-inner {
		align-items: center;
		justify-content: center;
	}

	.residence-block__tabs {
		align-items: stretch;
		flex-direction: row;
	}

	.residence-block__tab a {
		width: 100%;
	}

	.residence-block__details-inner {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.residence-block__details-image {
		order: 2;
	}

	.residence-block__action-group {
		flex-direction: row;
	}

	.residence-block__action-group a,
	.residence-block__action-group .button {
        height:auto;
	}
}
