/*
 * LINK Listings — neutral defaults; themes are expected to override.
 *
 * Mobile-first: base rules target small screens, min-width queries enhance up.
 * Tap targets are kept at 44px minimum; inputs use 16px type so iOS Safari
 * does not zoom the page on focus.
 */

/* Quick links */
.ll-quick-links {
	display: flex;
	gap: 8px;
	margin: 0 0 12px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	padding-bottom: 4px;
}

.ll-quick-links::-webkit-scrollbar {
	display: none;
}

.ll-chip {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 6px 16px;
	border: 1px solid #ccc;
	border-radius: 999px;
	background: #fff;
	color: #444;
	font-size: 14px;
	text-decoration: none;
	white-space: nowrap;
}

.ll-chip.is-active {
	background: #1d3557;
	border-color: #1d3557;
	color: #fff;
}

/* Filters */
.ll-filters {
	margin: 0 0 16px;
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	background: #fafafa;
}

.ll-filters-toggle {
	display: block;
	padding: 12px 16px;
	min-height: 44px;
	box-sizing: border-box;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}

.ll-filters-toggle::-webkit-details-marker {
	display: none;
}

.ll-filters-toggle::after {
	content: "▾";
	float: right;
	transition: transform 0.15s;
}

.ll-filters[open] > .ll-filters-toggle::after {
	transform: rotate(180deg);
}

.ll-search {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
	padding: 4px 16px 16px;
}

.ll-field {
	display: block;
	min-width: 0;
}

.ll-field-label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #555;
	margin: 0 0 4px;
}

.ll-search select,
.ll-search input {
	width: 100%;
	min-height: 44px;
	padding: 8px 10px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 16px;
	box-sizing: border-box;
	background: #fff;
}

.ll-price-inputs {
	display: flex;
	align-items: center;
	gap: 8px;
}

.ll-price-dash {
	color: #999;
}

.ll-search-actions {
	display: flex;
	align-items: center;
	gap: 16px;
}

.ll-search button {
	flex: 1;
	min-height: 44px;
	padding: 8px 20px;
	border: 0;
	border-radius: 6px;
	background: #1d3557;
	color: #fff;
	font-size: 16px;
	cursor: pointer;
}

.ll-reset {
	font-size: 14px;
	color: #666;
	padding: 10px 4px;
}

@media (min-width: 640px) {
	.ll-search {
		grid-template-columns: repeat(2, 1fr);
	}

	.ll-search-actions {
		grid-column: 1 / -1;
		justify-content: flex-start;
	}

	.ll-search button {
		flex: 0 0 auto;
	}
}

@media (min-width: 900px) {
	.ll-search {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* Results toolbar */
.ll-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
	margin: 0 0 16px;
}

.ll-count {
	margin: 0;
	font-size: 14px;
	color: #555;
}

.ll-toolbar-controls {
	display: flex;
	align-items: center;
	gap: 8px;
}

.ll-sort {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
}

.ll-sort select {
	min-height: 44px;
	padding: 6px 8px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 16px;
	background: #fff;
}

.ll-sort-apply {
	min-height: 44px;
	padding: 6px 14px;
	border: 1px solid #ccc;
	border-radius: 6px;
	background: #fff;
	font-size: 14px;
	cursor: pointer;
}

/* Hidden once JS takes over submit-on-change. */
.ll-sort.is-auto .ll-sort-apply {
	display: none;
}

.ll-view-toggle {
	display: flex;
	border: 1px solid #ccc;
	border-radius: 6px;
	overflow: hidden;
}

.ll-view-toggle a {
	display: flex;
	align-items: center;
	min-height: 42px;
	padding: 6px 16px;
	font-size: 14px;
	text-decoration: none;
	color: #444;
	background: #fff;
}

.ll-view-toggle a + a {
	border-left: 1px solid #ccc;
}

.ll-view-toggle a.is-active {
	background: #1d3557;
	color: #fff;
}

/* Grid */
.ll-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
}

@media (min-width: 640px) {
	.ll-grid {
		grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
		gap: 24px;
	}
}

.ll-card {
	position: relative;
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
}

/* Print-only branding header (shown by the print stylesheet). */
.ll-print-header {
	display: none;
}

/* Share / print buttons */
.ll-print-btn,
.ll-share {
	border: 1px solid #ccc;
	border-radius: 999px;
	background: #fff;
	color: #444;
	font-size: 13px;
	padding: 6px 14px;
	min-height: 36px;
	cursor: pointer;
}

.ll-share.is-copied {
	background: #2a9d8f;
	border-color: #2a9d8f;
	color: #fff;
}

.ll-card-share {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 1;
	background: rgba(255, 255, 255, 0.92);
}

.ll-card-photo {
	display: block;
	position: relative;
	aspect-ratio: 3 / 2;
	background: #f2f2f2;
}

.ll-card-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ll-card-nophoto {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	color: #999;
}

.ll-badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.ll-badge-new {
	background: #2a9d8f;
	color: #fff;
}

.ll-card-photo .ll-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 1;
}

.ll-card-body {
	padding: 12px 16px 16px;
}

.ll-card-price {
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 4px;
}

.ll-card-title {
	font-size: 16px;
	margin: 0 0 6px;
	line-height: 1.3;
}

.ll-card-title a {
	text-decoration: none;
	color: inherit;
}

.ll-card-meta {
	font-size: 14px;
	color: #444;
	margin: 0 0 4px;
}

.ll-card-footer {
	font-size: 12px;
	color: #888;
	margin: 0;
}

.ll-pagination {
	margin: 24px 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: center;
}

.ll-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 4px 8px;
	box-sizing: border-box;
}

/* Results map view */
.ll-results-map {
	width: 100%;
	height: 70vh;
	min-height: 320px;
	border-radius: 8px;
	background: #f2f2f2;
}

.ll-map-popup {
	text-align: center;
	font-size: 13px;
}

.ll-map-popup img {
	width: 100%;
	max-width: 200px;
	border-radius: 4px;
	display: block;
	margin: 0 auto 6px;
}

.ll-map-popup .ll-map-popup-price {
	font-weight: 700;
}

/* Single listing */
.ll-single {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 16px;
}

/* Leave room for the sticky contact bar when present (small screens only). */
.ll-single:has(.ll-contact-bar) {
	padding-bottom: calc(64px + env(safe-area-inset-bottom));
}

.ll-single-header-side {
	display: flex;
	align-items: center;
	gap: 12px;
}

.ll-single-header {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0 0 12px;
}

.ll-single-header h1 {
	margin: 0;
	font-size: 24px;
	line-height: 1.25;
}

.ll-single-header .ll-badge {
	vertical-align: middle;
	margin-left: 8px;
}

.ll-price {
	font-size: 24px;
	font-weight: 700;
	margin: 0;
}

@media (min-width: 640px) {
	.ll-single-header {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: baseline;
		justify-content: space-between;
		gap: 8px;
	}

	.ll-single-header h1 {
		font-size: 28px;
	}
}

/* Key stats strip */
.ll-stats {
	display: flex;
	gap: 8px;
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.ll-stats li {
	flex: 1 0 auto;
	min-width: 72px;
	padding: 10px 14px;
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	background: #fafafa;
	text-align: center;
}

.ll-stat-value {
	display: block;
	font-size: 18px;
	font-weight: 700;
}

.ll-stat-label {
	display: block;
	font-size: 12px;
	color: #666;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

/* Gallery */
.ll-gallery {
	margin: 0;
}

.ll-gallery-frame {
	position: relative;
}

.ll-gallery-main {
	width: 100%;
	aspect-ratio: 3 / 2;
	max-height: 560px;
	object-fit: cover;
	border-radius: 8px;
	display: block;
	background: #f2f2f2;
}

.ll-gallery-count {
	position: absolute;
	right: 10px;
	bottom: 10px;
	padding: 4px 10px;
	border-radius: 4px;
	background: rgba(0, 0, 0, 0.65);
	color: #fff;
	font-size: 13px;
}

.ll-gallery-thumbs {
	display: flex;
	gap: 6px;
	margin-top: 8px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scroll-snap-type: x proximity;
	padding-bottom: 4px;
}

.ll-thumb {
	flex: 0 0 auto;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	scroll-snap-align: start;
	border-radius: 4px;
}

.ll-thumb img {
	width: 96px;
	height: 72px;
	object-fit: cover;
	border-radius: 4px;
	display: block;
	opacity: 0.85;
}

.ll-thumb:hover img,
.ll-thumb.is-active img {
	opacity: 1;
	outline: 2px solid #1d3557;
}

/* Single body */
.ll-single-body {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
	margin-top: 24px;
}

@media (min-width: 900px) {
	.ll-single-body {
		grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
		gap: 32px;
	}
}

/* Floor-by-floor / feature description sections */
.ll-sections {
	margin: 24px 0 0;
}

.ll-section {
	padding: 12px 0;
	border-top: 1px solid #eee;
}

.ll-section-label {
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #555;
	margin: 0 0 4px;
}

.ll-section-text {
	margin: 0;
	line-height: 1.55;
}

.ll-facts-group {
	margin: 0 0 20px;
}

.ll-facts-heading {
	margin: 0 0 6px;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #555;
}

.ll-facts {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.ll-facts th,
.ll-facts td {
	text-align: left;
	padding: 6px 8px;
	border-bottom: 1px solid #eee;
	vertical-align: top;
}

.ll-facts th {
	color: #555;
	font-weight: 600;
	white-space: nowrap;
}

.ll-map {
	width: 100%;
	height: 300px;
	border: 0;
	margin-top: 16px;
	border-radius: 8px;
}

.ll-attribution {
	margin: 32px 0;
	font-size: 12px;
	color: #888;
	border-top: 1px solid #eee;
	padding-top: 12px;
}

.ll-none {
	color: #666;
}

/* Inquiry form */
.ll-inquiry {
	margin-top: 24px;
	padding: 16px;
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	background: #fafafa;
}

.ll-inquiry-heading {
	margin: 0 0 12px;
	font-size: 16px;
}

.ll-inquiry-form {
	display: grid;
	gap: 12px;
}

.ll-inquiry-form input,
.ll-inquiry-form textarea {
	width: 100%;
	min-height: 44px;
	padding: 8px 10px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 16px;
	box-sizing: border-box;
	background: #fff;
}

.ll-inquiry-form textarea {
	resize: vertical;
}

.ll-inquiry-form button {
	min-height: 44px;
	padding: 8px 20px;
	border: 0;
	border-radius: 6px;
	background: #1d3557;
	color: #fff;
	font-size: 16px;
	cursor: pointer;
}

.ll-inquiry-notice {
	padding: 10px 12px;
	border-radius: 6px;
	font-size: 14px;
}

.ll-inquiry-notice.is-success {
	background: #e7f5f2;
	color: #17635a;
}

.ll-inquiry-notice.is-error {
	background: #fdecea;
	color: #93312a;
}

/* Honeypot: visually removed, still submittable by bots. */
.ll-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Contact bar: compact, small screens only; JS hides it while the
   inquiry form is on screen. */
.ll-contact-bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 100;
	display: flex;
	gap: 8px;
	padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
	background: rgba(255, 255, 255, 0.96);
	border-top: 1px solid #e2e2e2;
	transition: transform 0.2s, opacity 0.2s;
}

.ll-contact-bar.is-hidden {
	transform: translateY(110%);
	opacity: 0;
	pointer-events: none;
}

.ll-contact-bar a {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
}

.ll-contact-call {
	background: #1d3557;
	color: #fff;
}

.ll-contact-inquire {
	border: 2px solid #1d3557;
	color: #1d3557;
	background: #fff;
}

@media (min-width: 900px) {
	.ll-contact-bar {
		display: none;
	}

	.ll-single:has(.ll-contact-bar) {
		padding-bottom: 0;
	}
}
