﻿.rental-sort.active .rental-results__header::before {
	transform: rotate(180deg);
	transition: all 0.2s ease-in-out;
	top: 0;
}

.rental-sort .desc,
.rental-sort .asc {
	padding-left: 5px;
	text-decoration: none !important;
	color: #00788b;
	font-size: 1.0rem;
}

.rental-sort .desc::after,
.rental-sort .asc::after {
	font-family: var(--icon-font-family);
}

.rental-sort .desc::after {
	content: "\f160";
}

.rental-sort .asc::after {
	content: "\f885";
}

.rental-sort span,
.rental-sort a {
	font-size: .9rem;
	line-height: .9rem;
	color: var(--sub-text-color);
	cursor: pointer;
}

.rental-sort .sort-menu {
	position: absolute;
	width: 200px;
	top: 40px;
	background: var(--site-background);
	box-shadow: var(--shadow-far);
	z-index: 3;
	border-radius: 15px;
	visibility: hidden;
	opacity: 0;
	max-height: 1px;
	transition: all 0.2s ease-in-out;
}

.rental-sort.active .sort-menu {
	opacity: 1;
	visibility: visible;
	max-height: 200px;
}

.rental-sort .sort-menu a {
	padding: 10px;
	display: block;
	text-decoration: none;
	font-size: 0.9rem;
	line-height: 0.9rem;
	color: var(--light-text-color);
}

.rental-sort .sort-menu a:hover {
	background: rgba(0, 0, 0, 0.05);
}

.sort-menu a + a {
	border-top: 1px solid var(--border-color);
}

.rental-view-type .toggle::before {
	font-family: var(--icon-font-family);
	content: "";
	color: var(--text-color);
}

.rental-view-type .toggle.map {
	border-top-left-radius: 10px;
	border-bottom-left-radius: 10px;
}

.rental-view-type .toggle.map::before {
	content: "\f279";
}

.rental-view-type .toggle.split {
	border-radius: 0;
}

.rental-view-type .toggle.split::before {
	content: "\f0db";
}

.rental-view-type .toggle.list {
	border-top-right-radius: 10px;
	border-bottom-right-radius: 10px;
}

.rental-view-type .toggle.list::before {
	content: "\f00b";
}

.rental-map-container {

}

.results-list {
	--flow-spacer: 1em;
}

.rental-urgency {
	font-family: var(--sub-font-family);
	font-weight: 500;
	color: var(--light-text-color);
	background-color: var(--alternating-band-background);
	border-radius: .6rem;
	padding: .5rem 1rem;
	border-left: 4px solid var(--cta-color);
	box-shadow: var(--shadow);
}

.rental-results {
	--min-card-width: 340px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	transition: all ease-out 0.5s;
}

.rental-results__control {
	grid-column: 1/-1;
	display: flex;
	flex-direction: row;
	justify-content: space-between;
}

.rental-list-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(var(--min-card-width), 1fr));
	gap: 1rem;
}

.rental-list {
	position: relative;
	display: grid;
	grid-template-rows: 1fr max-content;
	box-shadow: var(--shadow);
	border-radius: 1rem;
	overflow: hidden;
	font-family: var(--sub-font-family);
}

.rental-list .photos {
	aspect-ratio: 4/3;
	position: relative;
}

.rental-list .photos img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rental-list .slider .arrow {
	padding: 10px;
	font-size: 0.9rem;
	line-height: 0.9rem;
	color: rgba(0, 0, 0, 0.6);
	background: rgba(255, 255, 255, 0.8);
	transition: all 0.2s;
	border-radius: 50%;
	width: 35px;
	height: 35px;
	opacity: 0;
}

.rental-list .slider .arrow.left {
	left: 10px;
}

.rental-list .slider .arrow.right {
	right: 10px;
}

.rental-list .photos .slider:hover .arrow {
	opacity: 1;
}

.details {
	display: flex;
	flex-direction: column;
	padding: 1rem;
}

.details__overview {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: row;
	gap: 1em;
	color: var(--light-text-color);
}

.details__heading {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1em;
	font-weight: 500;
}

.details__overview *::before {
	font-family: var(--icon-font-family);
	color: var(--text-color);
	margin: 0 5px;
}

.details__overview .bedrooms::before {
	content: "\f236";
}

.details__overview .bathrooms::before {
	content: "\f2cd";
}

.details__overview .guests::before {
	content: "\f0c0";
}

.details__overview .dogs::before {
	content: "\f1b0";
}

.details__rate {
	display: flex;
	gap: 2rem;
	justify-content: space-between;
	flex-direction: row-reverse;
	align-items: center;
}

.details__rate .h4 span {
	font-weight: 500;
}

.details__detail-button {
	display: block;
	color: var(--cta-color);
	padding: .2em 1.2em;
	border: 1px solid var(--cta-color);
	border-radius: .5rem;
	cursor: pointer;
}

.details__detail-button::after {
	content: "Price Details";
}

.details__detail-button.loading {
	cursor: wait;
	background: rgba(0, 0, 0, 0.05) !important;
}

.details__detail-button.loading::before {
	display: inline-block;
	font-family: var(--icon-font-family);
	content: "\f3f4";
	margin-right: 4px;
	animation: spin 1s infinite linear;
}

.details__detail-button.loading::after {
	content: "Retrieving";
}

.details__charge-modal {
	background: var(--site-background);
	border: 1px solid var(--border-color);
	box-shadow: var(--shadow);
	position: absolute;
	inset: 20px;
	z-index: 2;
	border-radius: 1rem;
	padding: 1rem 1.5rem;
	visibility: hidden;
	opacity: 0;
	transition: all ease-in-out 0.2s;
}

.details__charge-modal.active {
	visibility: visible;
	opacity: 1;
}

.charge-modal__close {
	font-size: var(--font-step-0);
	color: var(--accent-text-color);
	background: var(--accent-color);
	width: 40px;
	height: 40px;
	display: flex;
	position: absolute;
	top: -15px;
	right: -15px;
	justify-content: space-around;
	font-family: var(--icon-font-family);
	text-decoration: none;
	cursor: pointer;
	border-radius: 50%;
}

.charge-modal__close::before {
	content: "\f00d";
	display: flex;
	justify-content: center;
	align-items: center;
}

.charge-modal__charges {
	display: flex;
	flex-direction: column;
	height: 100%;
	justify-content: space-between;
}

.charge-modal__charges table {
	width: 100%;
}

.charge-modal__charges td {
	padding: 8px 0;
	font-size: 0.75rem;
	line-height: 0.75rem;
}

.charge-modal__charges tr + tr td {
	border-block-start: 1px solid var(--very-light-text-color);
}

.charge-modal__charges td + td {
	text-align: right;
}

.charge-modal__charges .button {
	padding: .5rem 1rem;
}

.details__footer {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	gap: 1em;
	border-top: 1px solid var(--border-color);
	padding-block-start: 1em
}

.details__footer .share,
.details__footer .save {
	color: var(--cta-color);
	cursor: pointer;
}

.details__footer .share {
	margin-inline-start: auto;
}

.details__footer .save::before {
	font-family: var(--icon-font-family);
	font-weight: 300;
	content: "\f004";
}

.details__footer .save.saving {
	animation: emphasize 0.3s ease-in-out;
}

.details__footer .save.saved::before,
.details__footer .save.saving::before {
	font-weight: 700;
	color: var(--cta-color);
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.details__footer .share::before {
	font-family: var(--icon-font-family);
	font-weight: 300;
	content: "\f14d";
}

.rental-results.no-map {
	--min-card-width: 360px;
	grid-template-columns: 1fr;
}

/*Map Stuff*/

.rental-list-map {
	position: sticky;
	top: 120px;
	height: 100vh;
	border-radius: 1rem;
	overflow: hidden;
}

.map-icon {
	display: flex;
	justify-content: center;
	border-radius: 50%;
	padding: 0.5rem;
	box-shadow: var(--shadow-far);
	background-color: var(--base-background-light);
}

.map-icon__rental {
	filter: invert(46%) sepia(0%) saturate(0%) hue-rotate(174deg) brightness(93%) contrast(86%);
}

.map-icon__rental--highlighted {
	filter: invert(63%) sepia(5%) saturate(4894%) hue-rotate(325deg) brightness(111%) contrast(93%);
}