/**
 * Warren Cat Company Plugin - Public Styles
 *
 * @package Warren_Cat_Company_Plugin
 */

/* ===== RESET AND BASE STYLES ===== */
.warren-cat-locations-directory *,
.warren-cat-representatives-search *,
.warren-cat-generic-page * {
	box-sizing: border-box;
}

/* ===== BREADCRUMBS ===== */
.warren-cat-breadcrumbs {
	margin-bottom: 20px;
	padding: 10px 0;
	border-bottom: 1px solid #e0e0e0;
}

.breadcrumb-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}

.breadcrumb-item {
	margin-right: 10px;
	font-size: 14px;
	color: #666;
}

.breadcrumb-item:not(:last-child)::after {
	content: "›";
	margin-left: 10px;
	color: #999;
}

.breadcrumb-item a {
	color: #0073aa;
	text-decoration: none;
}

.breadcrumb-item a:hover {
	text-decoration: underline;
}

/* ===== PAGE HEADERS ===== */
.warren-cat-page-header {
	margin-bottom: 30px;
	text-align: center;
	padding: 20px 0;
}

.warren-cat-page-header .page-title {
	font-size: 2.5em;
	margin-bottom: 10px;
	color: #333;
}

.warren-cat-page-header .page-description {
	font-size: 1.1em;
	color: #666;
	max-width: 600px;
	margin: 0 auto;
}

/* ===== BUTTONS ===== */
.warren-cat-btn {
	display: inline-block;
	padding: 10px 20px;
	border: none;
	border-radius: 4px;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	text-align: center;
}

.warren-cat-btn-primary {
	background-color: #ffcc02;
	color: #000;
}

.warren-cat-btn-primary:hover {
	background-color: #e6b800;
	color: #000;
	text-decoration: none;
}

.warren-cat-btn-secondary {
	background-color: #666;
	color: #fff;
}

.warren-cat-btn-secondary:hover {
	background-color: #555;
	color: #fff;
	text-decoration: none;
}

/* ===== FILTERS (LOCATIONS PAGE) ===== */
.warren-cat-filters {
	background: #f9f9f9;
	padding: 20px;
	border-radius: 8px;
	margin-bottom: 30px;
}

.warren-cat-filters .filters-title {
	margin-top: 0;
	margin-bottom: 15px;
	font-size: 1.2em;
	color: #333;
}

.warren-cat-filter-form .filter-row {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	align-items: end;
}

.filter-group {
	display: flex;
	flex-direction: column;
	min-width: 200px;
}

.filter-group label {
	margin-bottom: 5px;
	font-weight: 600;
	color: #333;
}

.filter-group select {
	padding: 8px 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
}

.filter-actions {
	display: flex;
	gap: 10px;
	align-items: center;
}

/* ===== SEARCH FORM (REPRESENTATIVES PAGE) ===== */
.warren-cat-search-form {
	background: #f9f9f9;
	padding: 25px;
	border-radius: 8px;
	margin-bottom: 30px;
}

.search-input-group {
	margin-bottom: 15px;
}

.search-label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	color: #333;
	font-size: 16px;
}

.search-input-wrapper {
	display: flex;
	gap: 10px;
	max-width: 600px;
}

.search-input {
	flex: 1;
	padding: 12px 15px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 16px;
}

.search-submit {
	white-space: nowrap;
}

.search-help {
	margin-top: 10px;
}

.search-help p {
	margin: 0;
	font-size: 14px;
	color: #666;
}



/* ===== LOCATION CARDS ===== */
.warren-cat-locations-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
	gap: 25px;
	margin-bottom: 30px;
}

.warren-cat-location-card {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	overflow: hidden;
	transition: box-shadow 0.3s ease;
}

.warren-cat-location-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.location-image img {
	width: 100%;
	height: 200px;
	object-fit: cover;
}

.location-content {
	padding: 20px;
}

.location-header {
	margin-bottom: 15px;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 10px;
}

.location-title {
	margin: 0;
	font-size: 1.2em;
}

.location-title a {
	color: #333;
	text-decoration: none;
}

.location-title a:hover {
	color: #0073aa;
}

.location-type-badge {
	background: #ffcc02;
	color: #000;
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
}

.location-address {
	margin-bottom: 15px;
}

.location-address address {
	font-style: normal;
	color: #666;
	line-height: 1.4;
}

.location-phones {
	margin-bottom: 15px;
}

.location-phone {
	margin-bottom: 5px;
	font-size: 14px;
}

.phone-label {
	font-weight: 600;
	margin-right: 5px;
}

.location-phone a {
	color: #0073aa;
	text-decoration: none;
}

.location-services {
	margin-bottom: 20px;
}

.services-label {
	font-weight: 600;
	display: block;
	margin-bottom: 5px;
}

.services-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}

.services-list li {
	background: #f0f0f0;
	padding: 3px 8px;
	border-radius: 3px;
	font-size: 12px;
	color: #666;
}

.location-actions {
	text-align: center;
}

/* ===== REPRESENTATIVE CARDS ===== */
.warren-cat-representatives-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 25px;
	margin-bottom: 30px;
}

.warren-cat-representative-card {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	overflow: hidden;
	transition: box-shadow 0.3s ease;
}

.warren-cat-representative-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.representative-image img {
	width: 100%;
	height: 200px;
	object-fit: cover;
}

.representative-content {
	padding: 20px;
}

.representative-header {
	margin-bottom: 15px;
}

.representative-name {
	margin: 0;
	font-size: 1.2em;
}

.representative-name a {
	color: #333;
	text-decoration: none;
}

.representative-name a:hover {
	color: #0073aa;
}

.representative-contact {
	margin-bottom: 15px;
}

.contact-item {
	margin-bottom: 5px;
	font-size: 14px;
}

.contact-label {
	font-weight: 600;
	margin-right: 5px;
}

.contact-link {
	color: #0073aa;
	text-decoration: none;
}

.representative-counties {
	margin-bottom: 15px;
}

.counties-label {
	font-weight: 600;
	display: block;
	margin-bottom: 5px;
}

.counties-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}

.county-item {
	background: #e8f4fd;
	color: #0073aa;
	padding: 3px 8px;
	border-radius: 3px;
	font-size: 12px;
	font-weight: 600;
}

.representative-services {
	margin-bottom: 20px;
}

.representative-actions {
	display: flex;
	gap: 10px;
	justify-content: center;
}

/* ===== PAGINATION ===== */
.warren-cat-pagination {
	text-align: center;
	margin-top: 30px;
}

.warren-cat-pagination .page-numbers {
	display: inline-block;
	padding: 8px 12px;
	margin: 0 2px;
	border: 1px solid #ddd;
	border-radius: 4px;
	text-decoration: none;
	color: #333;
}

.warren-cat-pagination .page-numbers:hover,
.warren-cat-pagination .page-numbers.current {
	background: #ffcc02;
	border-color: #ffcc02;
	color: #000;
}

/* ===== NO RESULTS / WELCOME MESSAGES ===== */
.warren-cat-no-results,
.warren-cat-welcome {
	text-align: center;
	padding: 40px 20px;
	background: #f9f9f9;
	border-radius: 8px;
}

.warren-cat-no-results h2,
.warren-cat-welcome h2 {
	margin-top: 0;
	color: #333;
}

.search-suggestions,
.search-tips {
	text-align: left;
	max-width: 500px;
	margin: 20px auto 0;
}

.search-suggestions h3,
.search-tips h3 {
	margin-bottom: 10px;
	color: #333;
}

.search-suggestions ul,
.search-tips ul {
	margin: 0;
	padding-left: 20px;
}

.search-suggestions li,
.search-tips li {
	margin-bottom: 5px;
	line-height: 1.4;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
	.warren-cat-page-header .page-title {
		font-size: 2em;
	}

	.warren-cat-filter-form .filter-row {
		flex-direction: column;
		align-items: stretch;
	}

	.filter-group {
		min-width: auto;
	}

	.filter-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.search-input-wrapper {
		flex-direction: column;
		max-width: none;
	}

	.search-input {
		margin-bottom: 10px;
	}

	.warren-cat-locations-grid,
	.warren-cat-representatives-grid {
		grid-template-columns: 1fr;
	}

	.location-header {
		flex-direction: column;
		align-items: flex-start;
	}

	.representative-actions {
		flex-direction: column;
	}

	.services-list,
	.counties-list {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (max-width: 480px) {
	.warren-cat-page-header {
		padding: 15px 0;
	}

	.warren-cat-page-header .page-title {
		font-size: 1.8em;
	}

	.warren-cat-filters,
	.warren-cat-search-form {
		padding: 15px;
	}

	.location-content,
	.representative-content {
		padding: 15px;
	}
}

/* ===== SINGLE LOCATION STYLES ===== */
.warren-cat-single-location * {
	box-sizing: border-box;
}

.warren-cat-location-detail {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
}

/* Location Header */
.location-header {
	margin-bottom: 30px;
	text-align: center;
}

.location-title {
	font-size: 2.5rem;
	margin-bottom: 15px;
	color: #333;
	font-weight: bold;
}

.location-types {
	margin-bottom: 20px;
}

.location-type-badge {
	display: inline-block;
	background: #f0c419;
	color: #333;
	padding: 5px 15px;
	border-radius: 20px;
	font-size: 0.9rem;
	font-weight: 600;
	margin: 0 5px;
}

.location-featured-image {
	margin-bottom: 20px;
}

.location-featured-image img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Location Content Layout */
.location-content {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 40px;
	margin-bottom: 30px;
}

.location-main-content h2 {
	color: #333;
	border-bottom: 2px solid #f0c419;
	padding-bottom: 10px;
	margin-bottom: 20px;
}

.location-description {
	margin-bottom: 30px;
	line-height: 1.6;
}

/* Service Offerings */
.service-offerings-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 20px;
	margin-bottom: 30px;
}

.service-offering-item {
	background: #f9f9f9;
	padding: 20px;
	border-radius: 8px;
	border-left: 4px solid #f0c419;
}

.service-offering-item h3 {
	margin-top: 0;
	margin-bottom: 10px;
	color: #333;
}

/* Location Map */
.location-map-section {
	margin-bottom: 30px;
}

.warren-cat-single-map-container {
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Location Sidebar */
.location-sidebar {
	background: #f9f9f9;
	padding: 30px;
	border-radius: 8px;
	height: fit-content;
}

.location-sidebar h2,
.location-sidebar h3 {
	color: #333;
	margin-top: 0;
}

.location-sidebar h2 {
	border-bottom: 2px solid #f0c419;
	padding-bottom: 10px;
	margin-bottom: 20px;
}

/* Contact Information */
.location-contact-info > div {
	margin-bottom: 25px;
}

.location-address-details {
	font-style: normal;
	line-height: 1.5;
}

.address-line-1,
.address-line-2,
.address-city-state-zip {
	margin-bottom: 5px;
}

/* Phone Numbers */
.phone-numbers-list {
	space-y: 15px;
}

.phone-number-item {
	padding: 15px;
	background: white;
	border-radius: 6px;
	border-left: 3px solid #ddd;
}

.phone-number-item.primary-phone {
	border-left-color: #f0c419;
	background: #fffbf0;
}

.phone-label {
	font-weight: 600;
	color: #333;
	margin-bottom: 5px;
}

.phone-number a {
	color: #0073aa;
	text-decoration: none;
	font-weight: 600;
	font-size: 1.1rem;
}

.phone-number a:hover {
	text-decoration: underline;
}

.phone-services {
	font-size: 0.9rem;
	color: #666;
	margin-top: 5px;
}

/* Operating Hours */
.hours-group {
	margin-bottom: 20px;
	padding: 15px;
	background: white;
	border-radius: 6px;
	border-left: 3px solid #ddd;
}

.hours-group.primary-hours {
	border-left-color: #f0c419;
	background: #fffbf0;
}

.hours-label {
	font-weight: 600;
	color: #333;
	margin-bottom: 10px;
}

.hours-schedule {
	line-height: 1.4;
}

.day-hours {
	display: flex;
	justify-content: space-between;
	margin-bottom: 5px;
}

.day-name {
	font-weight: 500;
	min-width: 80px;
}

.day-time {
	color: #666;
}

.hours-services {
	font-size: 0.9rem;
	color: #666;
	margin-top: 10px;
}

/* Quick Actions */
.location-quick-actions {
	margin-top: 30px;
}

.action-buttons {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.action-button {
	display: inline-block;
	padding: 12px 20px;
	text-align: center;
	text-decoration: none;
	border-radius: 6px;
	font-weight: 600;
	transition: all 0.3s ease;
}

.directions-button {
	background: #0073aa;
	color: white;
}

.directions-button:hover {
	background: #005a87;
	color: white;
}

.call-button {
	background: #28a745;
	color: white;
}

.call-button:hover {
	background: #1e7e34;
	color: white;
}

.back-button {
	background: #6c757d;
	color: white;
}

.back-button:hover {
	background: #545b62;
	color: white;
}

/* Location Footer */
.location-footer {
	margin-top: 40px;
	padding-top: 30px;
	border-top: 1px solid #e0e0e0;
}

.post-navigation {
	display: flex;
	justify-content: space-between;
	gap: 20px;
}

.nav-subtitle {
	display: block;
	font-size: 0.9rem;
	color: #666;
	margin-bottom: 5px;
}

.nav-title {
	font-weight: 600;
	color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
	.warren-cat-single-location .warren-cat-location-detail {
		padding: 15px;
	}
	
	.warren-cat-single-location .location-title {
		font-size: 2rem;
	}
	
	.warren-cat-single-location .location-content {
		grid-template-columns: 1fr;
		gap: 30px;
	}
	
	.warren-cat-single-location .service-offerings-grid {
		grid-template-columns: 1fr;
	}
	
	.warren-cat-single-location .location-sidebar {
		padding: 20px;
	}
	
	.warren-cat-single-location .post-navigation {
		flex-direction: column;
	}
	
	.warren-cat-single-location .day-hours {
		flex-direction: column;
		gap: 5px;
	}
	
	.warren-cat-single-location .day-name {
		min-width: auto;
		font-weight: 600;
	}
} 