:root {
  --elder-color: #0288D1;
  --sister-color: #7B1FA2;
  --couple-color: #558B2F;
}


/*
 * Property styles in unhighlighted state.
 */
.property {
  align-items: center;
  background-color: #FFFFFF;
  border-radius: 50%;
  color: #263238;
  display: flex;
  font-size: 14px;
  gap: 15px;
  height: 30px;
  justify-content: center;
  padding: 4px;
  position: relative;
  position: relative;
  transition: all 0.3s ease-out;
  width: 30px;
}

.property::after {
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 9px solid #FFFFFF;
  content: "";
  height: 0;
  left: 50%;
  position: absolute;
  top: 95%;
  transform: translate(-50%, 0);
  transition: all 0.3s ease-out;
  width: 0;
  z-index: 1;
}

.property .icon {
  align-items: center;
  display: flex;
  justify-content: center;
  color: #FFFFFF;
}

.property .icon svg, .property .icon img {
	height: 26px;
	width: auto;
}
.property:not(.highlight) img {
	border-radius: 50%;
}

.property .details {
  display: none;
  flex-direction: column;
  flex: 1;
}

/*
 * Property styles in highlighted state.
 */
.property.highlight {
  background-color: #FFFFFF;
  border-radius: 8px;
  box-shadow: 10px 10px 5px rgba(0, 0, 0, 0.2);
  height: 300px;
  padding: 8px 15px;
  width: auto;
}
.property.highlight::after {
  border-top: 9px solid #FFFFFF;
}

.property.highlight .icon img {
  width: auto;
  height: 180px;
}

.property.highlight .details {
  display: flex;
}

.property .title {
	color: #9E9E9E;
	font-size: 18px;
}
.property .full-name {
  color: #0a4a8b;
  font-size: 22px;
  margin-bottom: 10px;
  margin-top: 5px;
}

.property .features {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.property .features > div {
  align-items: center;
  background: #F5F5F5;
  border-radius: 5px;
  border: 1px solid #ccc;
  display: flex;
  font-size: 14px;
  gap: 10px;
  padding: 4px 5px;
}

.property .features > .scripture-div {
	max-width: 500px;
}

.property .mission {
  color: #FFA000;
}

.property .language {
  color: #03A9F4;
}

.property .dates {
  color: #388E3C;
}

.property .scripture-icon {
  color: #0a4a8b;
}
.property .scripture-text {
  font-size: 12px;
  margin: 5px;
  width: 100%;
}

/*
 * Elder icon colors.
 */
.property:not(.highlight):has(.elder) {
  background-color: var(--elder-color);
}
.property:not(.highlight):has(.elder)::after {
  border-top: 9px solid var(--elder-color);
}

/*
 * Sister icon colors.
 */
.property:not(.highlight):has(.sister) {
  background-color: var(--sister-color);
}
.property:not(.highlight):has(.sister)::after {
  border-top: 9px solid var(--sister-color);
}

/*
 * Couple icon colors.
 */
.property:not(.highlight):has(.senior-couple) {
  background-color: var(--couple-color);
}
.property:not(.highlight):has(.senior-couple)::after {
  border-top: 9px solid var(--couple-color);
}
