/* Custom CSS - Can override or supplement Tailwind */
body {
	font-family: 'Inter', sans-serif;
}

/* --- CARD STYLES --- */
.apartment-card {
	background-color: #fff;
	border: 1px solid #e5e7eb; /* gray-200 */
	border-radius: 0.5rem; /* rounded-lg */
	padding: 1rem; /* p-4 */
	box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); /* shadow-md */
	transition: box-shadow 0.3s ease-in-out;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	height: 100%;
	position: relative;
	overflow: hidden;
}
.apartment-card:hover {
	 box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); /* shadow-lg */
}
.apartment-card h3 { margin-bottom: 0.5rem; }
.apartment-card p, .apartment-card ul { margin-bottom: 0.5rem; }
.apartment-card a { margin-top: auto; align-self: flex-start; }

/* DELETED Card Style */
.deleted-apartment-card {
    background-color: #f9fafb; /* gray-50 */
    border-color: #e5e7eb; /* gray-200 */
    opacity: 0.75;
}
.deleted-apartment-card h3 { color: #6b7280; /* gray-500 */ }
.deleted-apartment-card .text-gray-700 { color: #9ca3af; /* gray-400 */ }
.deleted-apartment-card .text-gray-600 { color: #9ca3af; /* gray-400 */ }
.deleted-apartment-card a { color: #6b7280; /* gray-500 */ pointer-events: none; text-decoration: line-through; }

/* Updated Badge on Cards */
.updated-badge {
	position: absolute; top: 8px; right: 8px; background-color: #fbbf24; /* amber-400 */
	color: #78350f; /* amber-900 */ font-size: 0.65rem; line-height: 1; font-weight: 600;
	padding: 3px 6px; border-radius: 9999px; box-shadow: 0 1px 2px rgba(0,0,0,0.1); z-index: 5;
}

/* --- FILTER & FORM STYLES --- */
select:not([multiple]) {
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
	background-position: right 0.5rem center; background-repeat: no-repeat; background-size: 1.5em 1.5em;
	padding-right: 2.5rem; -webkit-appearance: none; -moz-appearance: none; appearance: none;
}
select[multiple] { min-height: 100px; background-image: none; padding: 0.5rem; overflow-y: auto; }
select[multiple] option:checked { background-color: #dbeafe; /* Tailwind blue-100 */ color: #1e40af; /* Tailwind blue-800 */ font-weight: 500; }
button:disabled { opacity: 0.6; cursor: not-allowed; }

/* --- DELETED SECTION TOGGLE --- */
#deleted-apartments-toggle.open svg {
    transform: rotate(180deg);
}

/* --- MAP DISPLAY STYLES --- */
#map-display-container {
	position: relative; width: 100%; max-width: 800px; margin-left: auto;
	margin-right: auto; background-color: #f9fafb; min-height: 200px;
	border: 1px solid #d1d5db; border-radius: 0.375rem; overflow: hidden;
}
#map-display-container img { display: block; width: 100%; height: auto; }

.location-point {
	position: absolute; width: 12px; height: 12px; background-color: #ef4444;
	border: 2px solid #fee2e2; border-radius: 50%; transform: translate(-50%, -50%);
	box-shadow: 0 0 6px rgba(239, 68, 68, 0.7); z-index: 10; cursor: pointer; pointer-events: auto;
}
.location-point:hover { background-color: #dc2626; }

/* DELETED Map Point Style */
.location-point-deleted {
    background-color: #6b7280; /* gray-500 */
    border-color: #d1d5db;   /* gray-300 */
    box-shadow: none;
    opacity: 0.6;
    z-index: 5; /* Behind active points */
}
.location-point-deleted:hover { background-color: #4b5563; /* gray-600 */ }
.location-point-pinned { border-width: 3px; border-color: #3b82f6; /* blue-500 */ }


/* --- Map Point Popover Styles --- */
.map-point-popover {
	position: absolute; background-color: white; border: 1px solid #d1d5db;
	border-radius: 0.375rem; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
	padding: 0.75rem; z-index: 100; min-width: 200px; max-width: 280px;
	pointer-events: auto; display: none; font-size: 0.875rem; margin-left: 10px; margin-right: 10px;
}
.map-point-popover::before {
	content: ""; position: absolute; top: 50%; width: 0; height: 0;
	border-style: solid; transform: translateY(-50%); display: none;
}
.map-point-popover.popover-right::before {
	display: block; right: 100%; border-width: 8px 8px 8px 0;
	border-color: transparent #fff transparent transparent; filter: drop-shadow(-1px 0px 0px rgba(0, 0, 0, 0.05));
}
.map-point-popover.popover-left::before {
	display: block; left: 100%; border-width: 8px 0 8px 8px;
	border-color: transparent transparent transparent #fff; filter: drop-shadow(1px 0px 0px rgba(0, 0, 0, 0.05));
}
.map-point-popover .popover-title { font-weight: 600; margin-bottom: 0.5rem; font-size: 1rem; }
.map-point-popover .popover-detail { color: #4b5563; margin-bottom: 0.25rem; }
.map-point-popover .popover-detail span { font-weight: 500; color: #111827; }
.map-point-popover .popover-link { display: block; margin-top: 0.5rem; color: #3b82f6; text-decoration: none; font-weight: 500; }
.map-point-popover .popover-link:hover { text-decoration: underline; }

/* ADDED BACK: The missing style for the popover's updated badge */
.map-point-popover .popover-updated-badge {
	position: absolute;
	top: 8px;
	right: 7px;
	background-color: #fbbf24; /* amber-400 */
	color: #78350f; /* amber-900 */
	font-size: 0.6rem; /* Smaller than card badge */
	line-height: 1;
	font-weight: 600;
	padding: 2px 5px;
	border-radius: 9999px;
	box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
