/*
Theme Name: The Independent Chair (GeneratePress Child)
Theme URI: https://salonmonster.com/blog
Description: Child theme for The Independent Chair blog with HivePress customizations. Requires GeneratePress parent theme.
Author: SalonMonster
Author URI: https://salonmonster.com
Template: generatepress
Version: 1.0.6
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: independent-chair-child
*/

/**
 * HivePress Directory Customizations
 * 
 * This child theme adds custom styling and functionality
 * specifically for HivePress directories.
 * 
 * Table of Contents:
 * 1. Directory Archive Intros
 * 2. Listing Grid Cards
 * 3. Single Listing Pages
 * 4. Filters & Search
 * 5. Pagination
 * 6. Responsive Design
 */


/* ============================================
   1. DIRECTORY ARCHIVE INTROS
   ============================================ */

.directory-intro {
	max-width: 800px;
	margin: 0 auto 3rem;
	padding: 2rem;
	background: #f9f9f9;
	border-left: 4px solid #000;
}

.directory-intro h1 {
	font-size: 2rem;
	margin-bottom: 1rem;
	line-height: 1.2;
	color: #000;
}

.directory-intro p {
	font-size: 1.1rem;
	line-height: 1.6;
	margin-bottom: 1rem;
	color: #333;
}

.directory-intro p:last-child {
	margin-bottom: 0;
}

.directory-intro strong {
	font-weight: 600;
	color: #000;
}

@media (max-width: 768px) {
	.directory-intro {
		padding: 1.5rem;
		margin-bottom: 2rem;
	}
	
	.directory-intro h1 {
		font-size: 1.5rem;
	}
	
	.directory-intro p {
		font-size: 1rem;
	}
}


/* ============================================
   2. LISTING GRID CARDS
   ============================================ */

/* Hide filter sidebar - multiple selectors for specificity */
.hp-page__sidebar,
.hp-listings__sidebar,
.page-sidebar,
aside.hp-page__sidebar,
aside.hp-col-sm-4.hp-page__sidebar,
.hp-widget--listing-filter,
.hp-form--listing-filter {
	display: none !important;
	visibility: hidden !important;
	opacity: 0 !important;
	width: 0 !important;
	height: 0 !important;
	overflow: hidden !important;
	position: absolute !important;
	left: -9999px !important;
}

/* Make listings full width when sidebar is hidden */
.hp-listings--view-grid,
.hp-page__content,
.hp-listings,
.hp-row .hp-col-lg-8,
.hp-row .hp-col-sm-8 {
	width: 100% !important;
	max-width: 100% !important;
	flex: 0 0 100% !important;
}

/* Ensure the main content area takes full width */
.hp-listings__container,
.hp-page--listings .hp-row {
	width: 100% !important;
}

/* Hide useless metadata */
.hp-listing__created-date,
.hp-listing__date,
.hp-listing .hp-listing__created-date {
	display: none !important;
}

/* Improve card hover states */
.hp-listings--view-grid .hp-listing {
	border: 1px solid #ddd;
	padding: 1.5rem;
	transition: all 0.2s ease;
	background: #fff;
}

.hp-listings--view-grid .hp-listing:hover {
	border-color: #000;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
}

/* Card images */
.hp-listing__image {
	margin-bottom: 1rem;
}

.hp-listing__image img {
	border: 1px solid #ddd;
	transition: border-color 0.2s;
	width: 100%;
	height: auto;
}

.hp-listing:hover .hp-listing__image img {
	border-color: #000;
}

/* Card titles */
.hp-listing__title {
	font-size: 1.25rem;
	font-weight: 600;
	margin-bottom: 0.5rem;
}

.hp-listing__title a {
	color: #000;
	text-decoration: none;
}

/* Custom tagline field */
.hp-listing__tagline {
	font-size: 0.95rem;
	color: #666;
	font-style: italic;
	margin-bottom: 1rem;
	line-height: 1.4;
}

/* Meta tags (specialization, format, etc.) */
.hp-listing__meta-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 1rem;
}

.hp-listing__meta-tag {
	font-size: 0.85rem;
	padding: 0.25rem 0.75rem;
	background: #f0f0f0;
	border-radius: 3px;
	color: #333;
}


/* ============================================
   3. SINGLE LISTING PAGES
   ============================================ */

/* Improve single listing layout */
.hp-listing--view-page {
	max-width: 1200px;
	margin: 0 auto;
}

/* Sidebar quick facts */
.hp-listing__sidebar {
	position: sticky;
	top: 2rem;
	height: fit-content;
}

.hp-listing__sidebar img {
	width: 100%;
	height: auto;
	margin-bottom: 1.5rem;
	border: 1px solid #ddd;
}

/* Style listing links */
.hp-listing__links {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-bottom: 2rem;
}

.hp-listing__links a {
	display: block;
	padding: 0.75rem 1.5rem;
	background: #000;
	color: #fff !important;
	text-align: center;
	text-decoration: none;
	font-weight: 600;
	transition: background 0.2s;
}

.hp-listing__links a:hover {
	background: #333;
}

/* Listing attributes in sidebar */
.hp-listing__attributes {
	font-size: 0.9rem;
	line-height: 1.8;
	background: #f9f9f9;
	padding: 1.5rem;
	border-radius: 4px;
}

.hp-listing__attribute {
	margin-bottom: 1rem;
}

.hp-listing__attribute:last-child {
	margin-bottom: 0;
}

.hp-listing__attribute strong {
	display: block;
	margin-bottom: 0.25rem;
	color: #000;
}

/* Main content area */
.hp-listing__description {
	font-size: 1.1rem;
	line-height: 1.7;
	color: #333;
}

.hp-listing__description p {
	margin-bottom: 1.5rem;
}

.hp-listing__description h2,
.hp-listing__description h3 {
	margin-top: 2rem;
	margin-bottom: 1rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid #000;
}


/* ============================================
   4. FILTERS & SEARCH
   ============================================ */

/* Improve filter styling */
.hp-form--listing-filter {
	background: #f9f9f9;
	padding: 1.5rem;
	border: 1px solid #ddd;
	margin-bottom: 2rem;
}

.hp-form--listing-filter .hp-form__fields {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1rem;
}

/* Style filter buttons */
.hp-form--listing-filter button[type="submit"] {
	background: #000;
	color: #fff;
	border: none;
	padding: 0.75rem 1.5rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s;
}

.hp-form--listing-filter button[type="submit"]:hover {
	background: #333;
}

/* Search input styling */
.hp-form--listing-search input[type="text"],
.hp-form--listing-filter input[type="text"],
.hp-form--listing-filter select {
	width: 100%;
	padding: 0.75rem;
	border: 1px solid #ddd;
	background: #fff;
	font-size: 1rem;
	transition: border-color 0.2s;
}

.hp-form--listing-search input[type="text"]:focus,
.hp-form--listing-filter input[type="text"]:focus,
.hp-form--listing-filter select:focus {
	outline: none;
	border-color: #000;
}


/* ============================================
   5. PAGINATION
   ============================================ */

.hp-pagination {
	margin: 3rem 0;
	text-align: center;
}

.hp-pagination a,
.hp-pagination span {
	display: inline-block;
	padding: 0.5rem 1rem;
	margin: 0 0.25rem;
	background: #f0f0f0;
	color: #333;
	text-decoration: none;
	transition: all 0.2s;
	border-radius: 3px;
}

.hp-pagination a:hover {
	background: #000;
	color: #fff;
}

.hp-pagination .current {
	background: #000;
	color: #fff;
	font-weight: 600;
}


/* ============================================
   6. RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
	.hp-listings--view-grid .hp-listing {
		padding: 1rem;
	}
	
	.hp-form--listing-filter .hp-form__fields {
		grid-template-columns: 1fr;
	}
	
	.hp-listing__links a {
		margin: 0.5rem 0;
	}
	
	.hp-listing__meta-tags {
		gap: 0.25rem;
	}
	
	.hp-listing__meta-tag {
		font-size: 0.8rem;
		padding: 0.2rem 0.6rem;
	}
}
