/* 
 * Custom Styles for Craft Store CA Directory
 */

/* Reset and base styles */
.site-main {
    width: 100%;
    max-width: 100%;
}

/* Full-width override for front page */
.full-width-front-page .site-content {
    max-width: 100% !important;
    padding: 0 !important;
}

.full-width-front-page .container.grid-container {
    max-width: 100% !important;
    padding: 0 !important;
}

/* Centering container */
.grid-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: #fff;
    padding: 100px 0;
    text-align: center;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: visible; /* Changed from hidden to visible to allow search dropdown to show */
    z-index: 1; /* Establish a stacking context without hiding overflow */
}

/* Use a background image div instead of pseudo-elements to avoid z-index conflicts */
.hero-section-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/hero_op.avif') center/cover;
    z-index: 0;
    border-radius: 15px;
}

.hero-section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
    border-radius: 15px;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

/* Enhanced hero text styling for shine effect and better visibility */
.hero-title {
    text-shadow: 
        0 0 5px rgba(255, 255, 255, 0.5),
        0 0 10px rgba(255, 255, 255, 0.3),
        0 0 15px rgba(255, 255, 255, 0.2);
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
    text-align: center;
}

.hero-tagline {
    text-shadow: 
        0 0 5px rgba(255, 255, 255, 0.3),
        0 0 10px rgba(255, 255, 255, 0.2);
    font-weight: 500;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #ffffff;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-tagline {
    font-family: 'Lato', sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Search Bar */
.search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 999999 !important; /* Highest possible z-index to ensure search results appear above all other elements */
}

.search-form {
    display: flex;
    background: #fff;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.search-input {
    flex: 1;
    border: none;
    padding: 20px 30px;
    font-size: 1.1rem;
    font-family: 'Lato', sans-serif;
    outline: none;
}

.search-button {
    background: #ff6b6b;
    border: none;
    color: #fff;
    padding: 0 30px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    transition: background 0.3s ease;
}

.search-button:hover {
    background: #ff5252;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: linear-gradient(135deg, #d46e3a 0%, #f08a5d 100%); /* Warm toned gradient extracted from hero image */
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
    z-index: 999999 !important; /* Same high z-index as container to ensure it appears above all other elements */
    max-height: 300px;
    overflow-y: auto;
    display: none;
}

.search-result-item {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: background 0.2s ease;
    position: relative;
    z-index: 1;
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.15);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 1.1rem;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); /* Add text shadow for better readability */
}

.search-result-city {
    font-family: 'Lato', sans-serif;
    color: #ddd;
    font-size: 1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); /* Add text shadow for better readability */
}

/* Section Styling */
.section {
    padding: 80px 0;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.section-subtitle {
    font-family: 'Lato', sans-serif;
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 60px;
    color: #666;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Store Cards Grid */
.stores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.store-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.store-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.store-image {
    height: 200px;
    overflow: hidden;
}

.store-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.store-card:hover .store-image img {
    transform: scale(1.05);
}

.store-info {
    padding: 25px;
}

.store-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
}

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

.store-title a:hover {
    color: #2575fc;
}

.store-city {
    font-family: 'Lato', sans-serif;
    color: #666;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.store-city::before {
    content: "\f3c5";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 8px;
    color: #2575fc;
}

.store-rating {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.rating-stars {
    color: #ffc107;
    margin-right: 10px;
}

.rating-value {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    margin-right: 5px;
}

.rating-count {
    font-family: 'Lato', sans-serif;
    color: #666;
    font-size: 0.9rem;
}

.store-specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.specialty-tag {
    background: #f0f7ff;
    color: #2575fc;
    padding: 5px 12px;
    border-radius: 20px;
    font-family: 'Lato', sans-serif;
    font-size: 0.85rem;
}

/* City Cards Grid */
.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.city-card {
    position: relative;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.city-card:hover {
    transform: translateY(-5px);
}

.city-card a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
}

.city-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.city-card:hover .city-card-bg {
    transform: scale(1.05);
}

.city-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.1) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    color: #fff;
}

.city-name {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.store-count {
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Blog Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.post-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.post-image {
    height: 180px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-info {
    padding: 25px;
}

.post-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

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

.post-title a:hover {
    color: #2575fc;
}

.post-excerpt {
    font-family: 'Lato', sans-serif;
    color: #666;
    margin-bottom: 15px;
}

.post-meta {
    font-family: 'Lato', sans-serif;
    color: #999;
    font-size: 0.9rem;
}

/* Complete Override for Single Store Pages */
.custom-single-store .site-content {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.custom-single-store .container,
.custom-single-store .content-area,
.custom-single-store .site-main {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.custom-single-store .type-craft-store,
.custom-single-store .inside-article {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Hide GeneratePress default content */
.custom-single-store .site-main > .container,
.custom-single-store .site-main > .inside-article {
    display: none !important;
}

/* Our Custom Layout */
.custom-single-store-wrapper {
    width: 100%;
    background: #fff;
    display: block !important;
    position: relative;
    z-index: 10;
}

.custom-store-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 50px 40px;
    width: 100%;
}

.custom-store-article {
    width: 100%;
}

/* Enhanced Store Header Section */
.store-header-section {
    margin-bottom: 50px;
}

.store-title-rating {
    text-align: center;
    margin-bottom: 30px;
}

.store-title {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #333;
    line-height: 1.2;
}

.store-rating-large {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.rating-stars-large {
    font-size: 1.8rem;
    color: #ffc107;
    margin-right: 15px;
}

.rating-value-large {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-right: 10px;
}

.rating-count-large {
    font-family: 'Lato', sans-serif;
    color: #666;
    font-size: 1.1rem;
}

/* Critical Info Box */
.critical-info-box {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 50px;
}

.info-content-grid-three {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* 3 equal columns */
    gap: 30px;
}

.store-contact-info-section,
.store-opening-hours-section,
.store-location-section {
    min-height: 400px; /* Same height for all three sections */
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 30px;
}

.critical-info-title,
.opening-hours-title,
.location-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 25px 0;
    color: #333;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

/* Store Information section */
.store-contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1; /* Take remaining space */
}

.critical-info-item {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    border-radius: 8px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
    flex: 1; /* Ensure consistent sizing */
}

.critical-info-item:hover {
    background-color: #fff;
}

.critical-info-icon {
    margin-right: 15px;
    color: #2575fc;
    font-size: 1.3rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.critical-info-content {
    flex: 1;
}

.critical-info-label {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    margin-bottom: 5px;
    color: #555;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.critical-info-value {
    font-family: 'Lato', sans-serif;
    color: #333;
    font-size: 1rem;
    line-height: 1.5;
}

.critical-info-value a {
    color: #2575fc;
    text-decoration: none;
}

.critical-info-value a:hover {
    text-decoration: underline;
}

/* Opening Hours section */
.opening-hours-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.store-opening-hours-section .hours-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1; /* Take remaining space */
}

.store-opening-hours-section .hours-list li {
    background: #f8f9fa;
    padding: 12px 15px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    border: 1px solid #e9ecef;
}

.store-opening-hours-section .hours-list .day {
    font-weight: 500;
    color: #333;
}

.store-opening-hours-section .hours-list .time {
    font-weight: 400;
    color: #555;
}

.store-opening-hours-section .hours-list li.is-today {
    background: #e8f4ff;
    border-color: #b3d7ff;
}

/* Location section styling */
.store-location-content {
    flex: 1; /* Take remaining space */
    display: flex;
    flex-direction: column;
}

.store-location-content iframe {
    width: 100%;
    flex: 1; /* Take up all remaining space */
    min-height: 200px; /* Minimum height */
    border: none;
    display: block;
    border-radius: 8px;
}

.store-location-content .no-location-message {
    padding: 20px;
    text-align: center;
    color: #666;
    font-style: italic;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
}

@media (max-width: 992px) {
    .info-content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .store-opening-hours .hours-list {
        grid-template-columns: 1fr;
    }
}

.critical-info-item {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    border-radius: 8px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
    flex: 1; /* Ensure consistent sizing */
}

.critical-info-item:hover {
    background-color: #fff;
}

.critical-info-icon {
    margin-right: 15px;
    color: #2575fc;
    font-size: 1.3rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.critical-info-content {
    flex: 1;
}

.critical-info-label {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    margin-bottom: 5px;
    color: #555;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.critical-info-value {
    font-family: 'Lato', sans-serif;
    color: #333;
    font-size: 1rem;
    line-height: 1.5;
}

.critical-info-value a {
    color: #2575fc;
    text-decoration: none;
}

.critical-info-value a:hover {
    text-decoration: underline;
}

/* Store Content Area */
.store-content-area {
    width: 100%;
}

/* Store Layout Grid */
.store-layout-grid {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.store-main-column {
    flex: 1;
}

.store-sidebar {
    flex-basis: 100%;
}

@media (min-width: 769px) {
    .store-layout-grid {
        flex-direction: row;
    }
    
    .store-sidebar {
        flex-basis: 400px;
        flex-shrink: 0;
    }
}

/* Store Featured Image */
.store-featured-image-container {
    margin-bottom: 40px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    padding-top: 56.25%;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
}

.store-featured-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Store About Section */
.store-about {
    background: #fff;
    border-radius: 15px;
    padding: 45px;
    margin-bottom: 40px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

/* Store Section Headings */
.store-about h2,
.store-attributes-section h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: #333;
}

/* Featured image and About section side by side */
.store-featured-about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.store-featured-image-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

.store-featured-image-container img {
    width: 100%;
    height: auto;
    display: block;
}

.store-about {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.store-about h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0 0 25px 0;
    color: #333;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.store-about p {
    font-family: 'Lato', sans-serif;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.store-about p:last-child {
    margin-bottom: 0;
}

.store-about p {
    font-family: 'Lato', sans-serif;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.store-about p:last-child {
    margin-bottom: 0;
}

/* Store Attributes Section */
.store-attributes-section {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
}

.store-attributes-section h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0 0 25px 0;
    color: #333;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.attributes-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.attributes-list li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-family: 'Lato', sans-serif;
    color: #555;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 1.1rem;
}

.attributes-list li:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.attributes-list li.attribute-category {
    font-weight: 700;
    color: #2575fc;
    margin-top: 25px;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.attributes-list li.attribute-category:first-child {
    margin-top: 0;
}

.attributes-list li i {
    margin-right: 15px;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.attributes-list li i.fa-check-circle {
    color: #28a745;
}

.attributes-list li i.fa-times-circle {
    color: #dc3545;
}





/* Nearby Stores Section - Final Override */
.nearby-stores-final {
    background: #f8f9fa;
    padding: 80px 0;
    width: 100%;
    margin: 0 !important;
    clear: both;
    position: relative;
    z-index: 5;
    display: block !important;
}

.nearby-stores-container-final {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

.nearby-stores {
    text-align: center;
}

.nearby-stores h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 50px;
    color: #333;
}

.stores-grid-small {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 cards per row */
    gap: 35px;
}

.store-card-small {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.store-card-small:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.store-image-small {
    height: 180px;
    overflow: hidden;
}

.store-image-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.store-card-small:hover .store-image-small img {
    transform: scale(1.05);
}

.store-info-small {
    padding: 30px;
}

.store-info-small h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.store-info-small h4 a {
    color: #333;
    text-decoration: none;
}

.store-info-small h4 a:hover {
    color: #2575fc;
}

.store-.city-small {
    font-family: 'Lato', sans-serif;
    color: #666;
    font-size: 1rem;
    margin-bottom: 15px;
}

.store-rating-small {
    display: flex;
    align-items: center;
}

.rating-stars-small {
    color: #ffc107;
    margin-right: 10px;
    font-size: 1.1rem;
}

.rating-value-small {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    margin-right: 8px;
}

.rating-count-small {
    font-family: 'Lato', sans-serif;
    color: #666;
    font-size: 0.9rem;
}

/* Taxonomy Location Page */
.location-header {
    text-align: center;
    margin-bottom: 50px;
}

.taxonomy-location .location-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

/* Pagination for Location Page */
.taxonomy-location .pagination-wrapper {
    text-align: center !important;
    margin: 40px 0 !important;
}

.taxonomy-location .pagination-wrapper .nav-links {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 8px !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
}

.taxonomy-location .pagination-wrapper .nav-links li {
    display: inline-block !important;
    margin: 0 !important;
}

.taxonomy-location .pagination-wrapper .nav-links a,
.taxonomy-location .pagination-wrapper .nav-links span {
    display: inline-block !important;
    padding: 12px 18px !important;
    text-decoration: none !important;
    border-radius: 8px !important;
    font-family: 'Lato', sans-serif !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    border: 1px solid #e9ecef !important;
    color: #333 !important;
    line-height: normal !important;
    text-align: center !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    min-width: auto !important;
    font-size: 1rem !important;
}

/* Current page styling */
.taxonomy-location .pagination-wrapper .page-numbers.current,
.taxonomy-location .pagination-wrapper span.current {
    background: #0073aa !important;
    color: white !important;
    border-color: #0073aa !important;
}

/* Hover effects */
.taxonomy-location .pagination-wrapper a.page-numbers:hover {
    background: #0073aa !important;
    color: white !important;
    border-color: #0073aa !important;
}

/* Prev and Next buttons - forcing same styling as other buttons */
.taxonomy-location .pagination-wrapper a.prev,
.taxonomy-location .pagination-wrapper a.next {
    background: #f8f9fa !important;
    color: #333 !important;
    border-color: #e9ecef !important;
    padding: 12px 18px !important;
    display: inline-block !important;
    font-size: 1rem !important;
    min-width: auto !important;
    line-height: normal !important;
    text-decoration: none !important;
    text-align: center !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    font-family: 'Lato', sans-serif !important;
    font-weight: 500 !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    flex: 0 0 auto !important;
}

.pagination-wrapper .page-numbers .prev:hover,
.pagination-wrapper .page-numbers .next:hover {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
}

.location-description {
    font-family: 'Lato', sans-serif;
    font-size: 1.2rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.location-stores-count {
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    color: #2575fc;
    margin-top: 10px;
}

/* Responsive Design - Updated */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-tagline {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .stores-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
    }
    
    .cities-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .custom-store-container,
    .nearby-stores-container-final {
        max-width: 100%;
        padding: 30px 20px;
    }
    
    .store-title {
        font-size: 2.5rem;
    }
    
    .critical-info-box {
        padding: 30px 25px;
    }
    
    .critical-info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stores-grid-small {
        grid-template-columns: repeat(2, 1fr); /* 2 cards per row on smaller screens */
        gap: 25px;
    }
    
    .store-about,
    .store-attributes {
        padding: 30px 25px;
    }
    
    .store-map h2,
    .opening-hours h2 {
        padding: 20px 25px;
        font-size: 1.5rem;
    }
    
    .opening-hours h3 {
        padding: 20px 25px;
        font-size: 1.5rem;
    }
    
    .hours-list li {
        padding: 15px 25px;
    }
}
/* Related Posts Section */
.related-posts {
    margin: 50px 0;
    padding: 30px 0;
    border-top: 2px solid var(--border-color);
    border-bottom: 2px solid var(--border-color);
}

.related-posts h2 {
    margin-bottom: 25px;
    text-align: center;
}

.related-posts .posts-grid {
    margin-top: 20px;
}

/* Browse Section */
.browse-section {
    margin-top: 50px;
}

.browse-section h2 {
    margin-bottom: 25px;
    text-align: center;
}

.browse-section h3 {
    margin: 30px 0 15px;
    text-align: center;
    font-size: 1.3rem;
}
.nearby-stores-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 50px;
    color: #333;
}

.no-nearby-stores {
    text-align: center;
    color: #666;
    font-style: italic;
    margin: 20px 0;
    grid-column: 1 / -1;
}

/* Hide post author, date, and categories in GeneratePress free theme */
.entry-meta,
.entry-meta .byline,
.entry-meta .posted-on,
.entry-meta .cat-links,
.cat-links,
.posted-on,
.byline {
    display: none !important;
}

/* Optional: clean up extra spacing where meta info used to be */
.entry-header {
    margin-bottom: 0 !important;
}
.post-meta {
  display: none !important;
}

