/* Maptacstick — frontend styles */

.maptacstick-wrap {
	position: relative;
	margin: 1.5em 0;
}

.maptacstick-map {
	border-radius: 4px;
	overflow: hidden;
}

/* Popup */
.mt-popup {
	font-family: inherit;
	min-width: 200px;
}

.mt-popup-thumb {
	width: 100%;
	height: 140px;
	object-fit: cover;
	display: block;
	border-radius: 3px 3px 0 0;
	margin-bottom: 8px;
}

.mt-popup-body {
	padding: 0 2px;
}

.mt-popup-title {
	display: block;
	font-size: 1em;
	margin-bottom: 4px;
	line-height: 1.3;
}

.mt-popup-date,
.mt-popup-loc {
	display: block;
	font-size: 0.8em;
	color: #666;
	margin-bottom: 2px;
}

.mt-popup-excerpt {
	font-size: 0.85em;
	margin: 6px 0;
	color: #444;
}

.mt-popup-link {
	display: inline-block;
	margin-top: 4px;
	font-size: 0.85em;
	font-weight: 600;
}

/* Add sighting button */
.mt-add-btn {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 999;
}

/* Modal overlay */
.mt-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.mt-modal {
	background: #fff;
	border-radius: 6px;
	width: 100%;
	max-width: 500px;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.mt-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px 12px;
	border-bottom: 1px solid #e5e5e5;
}

.mt-modal-header h2 {
	margin: 0;
	font-size: 1.1em;
}

.mt-modal-close {
	background: none;
	border: none;
	font-size: 1.5em;
	line-height: 1;
	cursor: pointer;
	color: #666;
	padding: 0 4px;
}

.mt-modal-close:hover {
	color: #000;
}

.mt-modal-body {
	padding: 16px 20px 20px;
}

.mt-modal-body p {
	margin: 0 0 10px;
}

.mt-modal-body label {
	font-size: 0.9em;
	font-weight: 600;
}

.mt-modal-body input[type="text"],
.mt-modal-body input[type="date"],
.mt-modal-body textarea {
	margin-top: 4px;
	font-size: 0.9em;
}

/* Single sighting page */
.mt-sighting-map {
	margin: 1.5em 0;
}

.mt-sighting-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 24px;
	margin: 1em 0;
	font-size: 0.9em;
	color: #555;
}

.mt-sighting-meta span {
	display: flex;
	align-items: center;
	gap: 4px;
}

.mt-sighting-meta strong {
	color: #333;
}

.mt-sighting-gallery {
	margin: 1.5em 0;
}

.mt-sighting-gallery img {
	max-width: 100%;
	height: auto;
	border-radius: 4px;
}

/* Archive / sightings list */
.mt-sightings-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 20px;
	margin: 1.5em 0;
}

.mt-sighting-card {
	border: 1px solid #e5e5e5;
	border-radius: 6px;
	overflow: hidden;
	transition: box-shadow 0.15s;
}

.mt-sighting-card:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.mt-sighting-card a.mt-card-link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.mt-card-thumb {
	width: 100%;
	height: 160px;
	object-fit: cover;
	display: block;
}

.mt-card-thumb-placeholder {
	width: 100%;
	height: 160px;
	background: #f0f0f0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #bbb;
	font-size: 2em;
}

.mt-card-body {
	padding: 12px 14px;
}

.mt-card-title {
	font-size: 1em;
	font-weight: 600;
	margin: 0 0 4px;
	line-height: 1.3;
}

.mt-card-meta {
	font-size: 0.8em;
	color: #888;
	margin: 0 0 6px;
}

.mt-card-excerpt {
	font-size: 0.85em;
	color: #555;
	margin: 0;
}
