/**
 * PluginCafe Locations — Frontend Styles
 */

/* ------------------------------------------------------------------ */
/*  Wrapper                                                            */
/* ------------------------------------------------------------------ */

.plugincafe-wrap {
	width: 100%;
	max-width: 100%;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
		Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
}

/* ------------------------------------------------------------------ */
/*  Map row: sidebar + map side by side                                */
/* ------------------------------------------------------------------ */

.plugincafe-map-row {
	display: flex;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

/* ------------------------------------------------------------------ */
/*  Sidebar (left column — county list)                                */
/* ------------------------------------------------------------------ */

.plugincafe-sidebar {
	flex-shrink: 0;
	width: 220px;
	background: #000;
	padding: 20px 16px;
	overflow-y: auto;
	max-height: 520px;
}

.plugincafe-sidebar-title {
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: rgba(255, 255, 255, 0.5);
	margin-bottom: 12px;
	padding-left: 2px;
}

.plugincafe-filters {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.plugincafe-filter-btn {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 9px 14px;
	border: none;
	border-radius: 6px;
	background: transparent;
	color: rgba(255, 255, 255, 0.7);
	font-size: 14px;
	text-align: left;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
	gap: 8px;
}

.plugincafe-filter-label {
	flex: 1;
	min-width: 0;
}

/* Octagon count badge */
.plugincafe-filter-count {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	font-size: 11px;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.5);
	background: rgba(255, 255, 255, 0.1);
	clip-path: polygon(
		30% 0%, 70% 0%, 100% 30%, 100% 70%,
		70% 100%, 30% 100%, 0% 70%, 0% 30%
	);
	transition: background 0.2s, color 0.2s;
}

.plugincafe-filter-btn:hover {
	background: rgba(26, 110, 225, 0.15);
	color: #fff;
}

.plugincafe-filter-btn:hover .plugincafe-filter-count {
	color: #fff;
	background: rgba(255, 255, 255, 0.15);
}

.plugincafe-filter-btn.active {
	background: #1a6ee1;
	color: #fff;
}

.plugincafe-filter-btn.active .plugincafe-filter-count {
	color: #fff;
	background: rgba(255, 255, 255, 0.25);
}

/* Sidebar scrollbar styling */
.plugincafe-sidebar::-webkit-scrollbar {
	width: 5px;
}

.plugincafe-sidebar::-webkit-scrollbar-track {
	background: transparent;
}

.plugincafe-sidebar::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.2);
	border-radius: 3px;
}

/* ------------------------------------------------------------------ */
/*  Map                                                                */
/* ------------------------------------------------------------------ */

.plugincafe-map {
	flex: 1;
	min-height: 520px;
}

/* ------------------------------------------------------------------ */
/*  InfoWindow                                                         */
/* ------------------------------------------------------------------ */

.plugincafe-info {
	font-size: 14px;
	line-height: 1.5;
}

.plugincafe-info-social {
	display: flex;
	gap: 10px;
	margin-top: 6px;
}

/* ------------------------------------------------------------------ */
/*  Location cards grid                                                */
/* ------------------------------------------------------------------ */

.plugincafe-cards {
	margin-top: 32px;
}

.plugincafe-cards-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

/* ------------------------------------------------------------------ */
/*  Single card                                                        */
/* ------------------------------------------------------------------ */

.plugincafe-card {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 18px;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	background: #fff;
	transition: box-shadow 0.2s, transform 0.2s;
}

.plugincafe-card:hover {
	box-shadow: 0 4px 16px rgba(26, 110, 225, 0.1);
	transform: translateY(-2px);
}

/* Icon (left column) */
.plugincafe-card-icon {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f0f5ff;
	border-radius: 10px;
}

.plugincafe-card-icon img {
	display: block;
	width: 28px;
	height: 28px;
}

/* Details (right column) */
.plugincafe-card-details {
	flex: 1;
	min-width: 0;
}

.plugincafe-card-title {
	font-weight: 600;
	font-size: 15px;
	color: #111;
	margin-bottom: 4px;
	line-height: 1.3;
}

.plugincafe-card-type {
	display: inline-block;
	font-size: 12px;
	font-weight: 500;
	color: #1a6ee1;
	background: #eef4ff;
	padding: 2px 8px;
	border-radius: 4px;
	margin-bottom: 6px;
}

.plugincafe-card-address {
	font-size: 13px;
	color: #6b7280;
	line-height: 1.4;
	margin-bottom: 8px;
}

/* ------------------------------------------------------------------ */
/*  Social media links (flat icons, no circle bg)                      */
/* ------------------------------------------------------------------ */

.plugincafe-card-social {
	display: flex;
	gap: 12px;
	margin-top: 10px;
}

.plugincafe-social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #9ca3af;
	transition: color 0.2s;
	text-decoration: none;
}

.plugincafe-social-link:hover {
	color: #1a6ee1;
}

.plugincafe-social-fb:hover {
	color: #1877F2;
}

.plugincafe-social-ig:hover {
	color: #E4405F;
}

.plugincafe-social-tt:hover {
	color: #000;
}

.plugincafe-social-link svg {
	width: 18px;
	height: 18px;
}

/* ------------------------------------------------------------------ */
/*  Navigate button (cards)                                            */
/* ------------------------------------------------------------------ */

.plugincafe-nav-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 10px;
	padding: 7px 14px;
	font-size: 13px;
	font-weight: 600;
	color: #fff;
	background: #1a6ee1;
	border: none;
	border-radius: 6px;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s;
}

.plugincafe-nav-btn:hover {
	background: #1559b8;
	color: #fff;
	text-decoration: none;
}

.plugincafe-nav-btn svg {
	flex-shrink: 0;
}

/* Navigate link inside InfoWindow */
.plugincafe-nav-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-top: 6px;
	font-size: 13px;
	font-weight: 600;
	color: #1a6ee1;
	text-decoration: none;
}

.plugincafe-nav-link:hover {
	color: #1559b8;
	text-decoration: underline;
}

/* ------------------------------------------------------------------ */
/*  Pagination                                                         */
/* ------------------------------------------------------------------ */

.plugincafe-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 6px;
	margin-top: 28px;
	flex-wrap: wrap;
}

.plugincafe-page-btn {
	padding: 8px 14px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	background: #fff;
	color: #374151;
	font-size: 14px;
	cursor: pointer;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.plugincafe-page-btn:hover:not(:disabled) {
	background: #eef4ff;
	border-color: #1a6ee1;
	color: #1a6ee1;
}

.plugincafe-page-btn.active {
	background: #1a6ee1;
	color: #fff;
	border-color: #1a6ee1;
	cursor: default;
}

.plugincafe-page-btn:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

/* ------------------------------------------------------------------ */
/*  Responsive                                                         */
/* ------------------------------------------------------------------ */

@media (max-width: 960px) {
	.plugincafe-cards-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.plugincafe-map-row {
		flex-direction: column;
	}

	.plugincafe-sidebar {
		width: 100%;
		max-height: none;
		padding: 16px;
	}

	.plugincafe-filters {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 6px;
	}

	.plugincafe-filter-btn {
		width: auto;
		padding: 7px 14px;
		font-size: 13px;
		display: inline-flex;
	}

	.plugincafe-map {
		min-height: 350px;
	}

	.plugincafe-cards-grid {
		grid-template-columns: 1fr;
	}
}
