/*
Theme Name: General theme 1 sonnet 4
Description: A professional directory theme for Hot Tub USA
Version: 1.0
Author: Custom Theme
*/

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.site-logo img {
    max-height: 150px;
    width: auto;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-navigation a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-navigation a:hover {
    color: #007bff;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0,123,255,0.5), rgba(0,123,255,0.5)), url('http://hot-tub-usa.com/wp-content/uploads/2025/07/hero1.png');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 100px 0;
}

/* State Cards - Same style as City Cards with dark overlay */
.cards-grid .card.state-card {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 180px;
    position: relative;
    color: white;
    border: none;
    background-color: transparent;
    /* CHANGE THE URL BELOW TO YOUR MEDIA FOLDER IMAGE */
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('http://hot-tub-usa.com/wp-content/uploads/2025/07/city-card-background-2.png');
}

.cards-grid .card.state-card:hover {
    transform: translateY(-5px) scale(1.02);
}

.cards-grid .card.state-card .card-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem 1rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.cards-grid .card.state-card h4 {
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.cards-grid .card.state-card h4 a {
    color: white;
    text-decoration: none;
}

.cards-grid .card.state-card h4 a:hover {
    color: #ffd700;
    text-decoration: none;
}

.cards-grid .card.state-card p {
    color: #e0e0e0;
    font-size: 0.9rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    background: rgba(0,0,0,0.2);
    padding: 0.5rem;
    border-radius: 8px;
    margin: 0;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Card Styles */
.cards-grid {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
    justify-content: center;
    align-items: start;
}

.cards-grid.cols-2 {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    max-width: 800px;
    margin: 2rem auto;
}

.cards-grid.cols-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    max-width: 1000px;
    margin: 2rem auto;
    justify-content: center;
}

/* Better handling for different card counts */
.cards-grid.cols-3 .card:only-child {
    max-width: 400px;
    margin: 0 auto;
    grid-column: 1 / -1;
    justify-self: center;
}

.cards-grid.cols-3 .card:first-child:nth-last-child(2),
.cards-grid.cols-3 .card:first-child:nth-last-child(2) ~ .card {
    max-width: 400px;
    justify-self: center;
}

/* When there are exactly 2 cards, center them */
.cards-grid.cols-3:has(.card:first-child:nth-last-child(2)) {
    grid-template-columns: repeat(2, minmax(300px, 400px));
    justify-content: center;
    max-width: 900px;
}

.cards-grid.cols-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    max-width: 1200px;
    margin: 2rem auto;
}

/* Better centering for fewer cards in cols-4 */
.cards-grid.cols-4 .card:only-child {
    max-width: 350px;
    margin: 0 auto;
    grid-column: 1 / -1;
    justify-self: center;
}

.cards-grid.cols-4 .card:first-child:nth-last-child(2),
.cards-grid.cols-4 .card:first-child:nth-last-child(2) ~ .card {
    max-width: 350px;
    justify-self: center;
}

.cards-grid.cols-4 .card:first-child:nth-last-child(3),
.cards-grid.cols-4 .card:first-child:nth-last-child(3) ~ .card {
    max-width: 350px;
    justify-self: center;
}

/* When there are exactly 2 cards in cols-4, center them */
.cards-grid.cols-4:has(.card:first-child:nth-last-child(2)) {
    grid-template-columns: repeat(2, minmax(250px, 350px));
    justify-content: center;
    max-width: 800px;
}

/* When there are exactly 3 cards in cols-4, center them */
.cards-grid.cols-4:has(.card:first-child:nth-last-child(3)) {
    grid-template-columns: repeat(3, minmax(250px, 350px));
    justify-content: center;
    max-width: 1100px;
}

.card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.custom-ad-banner {
  text-align: center;
  margin: 20px 0;
}


/* City Cards with Background Images */
.city-card {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 200px;
    position: relative;
    color: white;
    border: none;
}

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

.city-card-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem 1rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.city-card .card-title {
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.city-card .card-title a {
    color: white;
    text-decoration: none;
}

.city-card .card-title a:hover {
    color: #ffd700;
    text-decoration: none;
}

.city-card .card-meta {
    color: #f0f0f0;
    font-size: 1rem;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    background: rgba(0,0,0,0.3);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    margin-bottom: 0.5rem;
}

.city-card p {
    color: #e0e0e0;
    font-size: 0.9rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    background: rgba(0,0,0,0.2);
    padding: 0.5rem;
    border-radius: 8px;
    margin: 0;
}

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

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.card-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-title a:hover {
    color: #007bff;
    text-decoration: none;
}

.card-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.card-address {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.card-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.rating-stars {
    color: #ffc107;
}

.work-hours {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.work-hours h4 {
    margin-bottom: 0.5rem;
    color: #333;
}

.hours-list {
    list-style: none;
    font-size: 0.9rem;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.2rem 0;
}

/* Section Styles */
.section {
    padding: 4rem 0;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #2c3e50;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.section h3 {
    font-family: 'Poppins', sans-serif;
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #2c3e50;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

/* Search Section */
.search-section {
    background: #fff;
    padding: 3rem 0;
    text-align: center;
}

.search-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.search-form select {
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    min-width: 200px;
    background: white;
}

.search-form select:focus {
    outline: none;
    border-color: #007bff;
}

/* Breadcrumbs */
.breadcrumbs {
    background: #f8f9fa;
    padding: 1rem 0;
    border-bottom: 1px solid #dee2e6;
}

.breadcrumbs ul {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.breadcrumbs li:not(:last-child)::after {
    content: '>';
    margin-left: 0.5rem;
    color: #666;
}

.breadcrumbs a {
    color: #007bff;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* Navigation Links */
.nav-link {
    display: inline-block;
    background: #007bff;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    margin: 1rem 0;
    transition: background 0.3s ease;
}

.nav-link:hover {
    background: #0056b3;
    color: white;
}

/* Single Post Styles */
.single-post {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin: 2rem 0;
}

.post-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.post-image {
    width: 100%;
    max-width: 600px;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin: 2rem 0;
}

.post-image-container.centered {
    text-align: center;
    margin: 2rem 0;
}

.post-image-container.centered .post-image {
    display: inline-block;
    margin: 0 auto;
}

/* Two Column Layout for Single Post */
.business-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 3rem 0;
}

.info-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-section {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid #007bff;
}

.info-section h3 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.3rem;
    text-align: left;
}

.contact-section {
    background: #fff;
    border: 2px solid #e9ecef;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.contact-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.contact-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-item strong {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 1rem;
}

.contact-item p {
    margin: 0;
    color: #666;
}

.contact-item a {
    color: #007bff;
    text-decoration: none;
}

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

/* Map Section */
.map-section {
    background: #fff;
    border: 2px solid #e9ecef;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.map-container {
    margin: 1rem 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ddd;
}

.map-link {
    text-align: center;
    margin-top: 1rem;
}

.map-link a {
    display: inline-block;
    background: #007bff;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.map-link a:hover {
    background: #0056b3;
    color: white;
}

.map-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    justify-content: center;
}

.map-link-btn {
    display: inline-block;
    background: #007bff;
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
}

.map-link-btn:hover {
    background: #0056b3;
    color: white !important;
    text-decoration: none;
}

.map-link-btn:nth-child(2) {
    background: #28a745;
}

.map-link-btn:nth-child(2):hover {
    background: #1e7e34;
}

.map-link-btn:nth-child(3) {
    background: #6c757d;
}

.map-link-btn:nth-child(3):hover {
    background: #545b62;
}

/* Map iframe styling */
.map-container iframe {
    border-radius: 8px;
    border: 1px solid #ddd;
}

/* Responsive adjustments for single post */
@media (max-width: 768px) {
    .business-info-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .info-section {
        padding: 1.5rem;
    }
    
    .post-image {
        max-width: 100%;
        height: 250px;
    }
}

@media (max-width: 480px) {
    .info-section {
        padding: 1rem;
    }
    
    .contact-item strong {
        font-size: 0.9rem;
    }
}

.post-meta {
    display: grid;
    gap: 1rem;
    margin: 2rem 0;
}

.meta-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
}

.meta-item h4 {
    margin-bottom: 0.5rem;
    color: #333;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.contact-item {
    background: #e9ecef;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
}

/* Banner Ad Styles */
.banner-ad-container {
    margin: 20px 0;
    text-align: center;
}

.banner-ad-wrapper {
    display: inline-block;
    max-width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.banner-ad-wrapper:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.banner-ad-image {
    max-width: 100%;
    height: auto;
    display: block;
    border: none;
}

.banner-ad-homepage .banner-ad-image {
    max-height: 200px;
    width: auto;
}

.banner-ad-single .banner-ad-image,
.banner-ad-states .banner-ad-image,
.banner-ad-city .banner-ad-image {
    max-height: 150px;
    width: auto;
}

/* Responsive banner ads */
@media (max-width: 768px) {
    .banner-ad-container {
        margin: 15px 0;
    }
    
    .banner-ad-homepage .banner-ad-image {
        max-height: 120px;
    }
    
    .banner-ad-single .banner-ad-image,
    .banner-ad-states .banner-ad-image,
    .banner-ad-city .banner-ad-image {
        max-height: 100px;
    }
}

/* Footer Styles */
.site-footer {
    background: #333;
    color: #fff;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #fff;
}

.footer-navigation ul {
    list-style: none;
}

.footer-navigation a {
    color: #ccc;
    text-decoration: none;
    line-height: 2;
}

.footer-navigation a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #555;
    color: #ccc;
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 4px;
    z-index: 1000;
}

.mobile-menu-toggle .hamburger-line {
    width: 25px;
    height: 3px;
    background-color: #333;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: white;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 999;
        padding: 2rem;
    }
    
    .main-navigation.active {
        right: 0;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 1rem;
        padding: 0;
        margin-top: 3rem;
    }
    
    .main-navigation li {
        width: 100%;
    }
    
    .main-navigation a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid #eee;
        color: #333;
        text-decoration: none;
        transition: background 0.3s ease;
    }
    
    .main-navigation a:hover {
        background: #f8f9fa;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .search-form {
        flex-direction: column;
        align-items: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* Mobile Card Grid Improvements */
    .cards-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
        margin: 1.5rem auto;
        max-width: 100% !important;
        padding: 0 10px;
    }
    
    .cards-grid.cols-2,
    .cards-grid.cols-3,
    .cards-grid.cols-4 {
        grid-template-columns: 1fr !important;
        max-width: 100% !important;
    }
    
    .card {
        max-width: 100% !important;
        margin: 0 !important;
        justify-self: stretch !important;
    }
    
    /* City cards mobile adjustments */
    .city-card {
        min-height: 180px;
    }
    
    .city-card-content {
        padding: 1.5rem 1rem;
    }
    
    .city-card .card-title {
        font-size: 1.2rem;
    }
    
    .city-card .card-meta {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
    
    /* Section padding adjustments */
    .section {
        padding: 2rem 0;
    }
    
    .container {
        padding: 0 15px;
    }
}

/* Additional mobile improvements for smaller screens */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .cards-grid {
        gap: 1rem;
        margin: 1rem auto;
    }
    
    .card-content {
        padding: 1rem;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .city-card {
        min-height: 160px;
    }
    
    .city-card-content {
        padding: 1rem;
    }
    
    .city-card .card-title {
        font-size: 1.1rem;
    }
    
    .city-card .card-meta {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
    
    .section h3 {
        font-size: 1.5rem;
    }
    
    .nav-link {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Tablet specific adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .cards-grid.cols-3 {
        grid-template-columns: repeat(2, minmax(300px, 1fr));
        max-width: 700px;
    }
    
    .cards-grid.cols-4 {
        grid-template-columns: repeat(3, minmax(250px, 1fr));
        max-width: 900px;
    }
    
    .container {
        padding: 0 30px;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

/* Icons */
.icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    margin-right: 0.5rem;
}

/* Status indicators */
.status-open {
    color: #28a745;
    font-weight: 600;
}

.status-closed {
    color: #dc3545;
    font-weight: 600;
}

/* Attributes styling */
.attributes-section {
    margin: 2rem 0;
}

.attributes-group {
    margin-bottom: 1.5rem;
}

.attributes-group h4 {
    color: #333;
    margin-bottom: 0.5rem;
    text-transform: capitalize;
}

.attributes-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.attribute-item {
    background: #e3f2fd;
    color: #1976d2;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.unavailable-attributes .attribute-item {
    background: #ffebee;
    color: #d32f2f;
}

/* Featured Badge */
.featured-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 10;
    animation: pulse 2s infinite;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.featured-card {
    position: relative;
    border: 2px solid #ff6b35;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.2);
}

.featured-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.3);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Featured Section Styles */
.featured-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 20px;
    margin: 3rem 0;
    padding: 3rem 0;
}

.featured-section h3 {
    color: #ff6b35;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    font-style: italic;
}

.featured-until {
    background: #fff3cd;
    color: #856404;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    text-align: center;
    border: 1px solid #ffeaa7;
}

/* Featured CTA Section */
.featured-cta {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    margin-top: 3rem;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.featured-cta h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.featured-cta p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.no-featured {
    background: #f8f9fa;
    padding: 3rem;
    border-radius: 15px;
    text-align: center;
    border: 2px dashed #dee2e6;
}

.no-featured h4 {
    color: #666;
    margin-bottom: 1rem;
}

.no-featured p {
    color: #888;
    margin-bottom: 2rem;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-featured {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-featured:hover {
    background: linear-gradient(135deg, #f7931e, #ff6b35);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    color: white;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3, #007bff);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
    color: white;
    text-decoration: none;
}

/* Pricing Plans Styles */
.pricing-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.pricing-plan {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pricing-plan:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.pricing-plan.featured-plan {
    border: 2px solid #ff6b35;
    transform: scale(1.05);
}

.pricing-plan.featured-plan::before {
    content: 'Most Popular';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    padding: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #333;
}

.plan-price {
    font-size: 3rem;
    font-weight: 700;
    color: #ff6b35;
    margin-bottom: 0.5rem;
}

.plan-price .currency {
    font-size: 1.5rem;
    vertical-align: top;
}

.plan-duration {
    color: #666;
    margin-bottom: 2rem;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.plan-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features li::before {
    content: '✓';
    color: #28a745;
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Payment Integration Styles */
.payment-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin: 2rem 0;
}

.payment-form h3 {
    color: #333;
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.payment-summary {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
}

.payment-summary h4 {
    margin-bottom: 1rem;
    color: #333;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

.summary-item:last-child {
    border-bottom: none;
    font-weight: 600;
    font-size: 1.1rem;
    color: #ff6b35;
}

/* Admin Dashboard Styles */
.featured-listings-dashboard {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Get Featured Section Styles */
.get-featured-section {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border: 1px solid #e9ecef;
    margin: 3rem 0;
    padding: 4rem 0;
}

.get-featured-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.featured-info-text h3 {
    color: #ff6b35;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.featured-description {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.featured-benefits {
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.featured-benefits h4 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

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

.benefits-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
    font-size: 1rem;
}

.benefits-list li:last-child {
    border-bottom: none;
}

.featured-cta-section {
    text-align: center;
}

.btn-large {
    padding: 1rem 3rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.cta-note {
    margin-top: 1rem;
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
}

/* Featured Preview Visual */
.featured-info-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.featured-preview {
    text-align: center;
}

.preview-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    overflow: hidden;
    max-width: 300px;
    margin: 0 auto 1rem;
    position: relative;
    border: 2px solid #ff6b35;
}

.preview-card .featured-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    animation: pulse 2s infinite;
}

.preview-image {
    height: 150px;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 0.9rem;
}

.preview-image::before {
    content: '🏢 Business Photo';
}

.preview-content {
    padding: 1.5rem;
}

.preview-content h5 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.preview-content p {
    color: #666;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.preview-rating {
    color: #ffc107;
    font-size: 0.9rem;
}

.preview-arrow {
    font-size: 2rem;
    margin: 1rem 0;
    animation: bounce 2s infinite;
}

.preview-text {
    color: #ff6b35;
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Responsive Featured Styles */
@media (max-width: 768px) {
    .featured-section {
        margin: 2rem 0;
        padding: 2rem 0;
    }
    
    .featured-cta {
        padding: 1.5rem;
        margin-top: 2rem;
    }
    
    .pricing-plans {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .pricing-plan.featured-plan {
        transform: none;
    }
    
    .plan-price {
        font-size: 2.5rem;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    /* Get Featured Section Mobile */
    .get-featured-section {
        padding: 2rem 0;
        margin: 2rem 0;
    }
    
    .get-featured-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .featured-info-text h3 {
        font-size: 2rem;
        text-align: center;
    }
    
    .featured-benefits {
        padding: 1.5rem;
    }
    
    .preview-card {
        max-width: 250px;
    }
    
    .preview-image {
        height: 120px;
    }
    
    .preview-content {
        padding: 1rem;
    }
}

/* Loading states */
.loading {
    cursor: wait;
}

.loading::after {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 9999;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #007bff;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: background 0.3s ease;
}

.back-to-top:hover {
    background: #0056b3;
}

/* Table responsive */
.table-responsive {
    overflow-x: auto;
    margin: 1rem 0;
}

.table-responsive table {
    min-width: 600px;
    width: 100%;
    border-collapse: collapse;
}

.table-responsive th,
.table-responsive td {
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    text-align: left;
}

.table-responsive th {
    background: #f8f9fa;
    font-weight: 600;
}

/* Focus states for accessibility */
.focused {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Error states */
.error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Ad section styling */
.ad-section {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    margin: 2rem 0;
    border: 1px solid #dee2e6;
}

/* Pagination styling */
.pagination {
    display: flex;
    justify-content: center;
    margin: 3rem 0;
}

.pagination .nav-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.pagination a,
.pagination span {
    padding: 0.75rem 1rem;
    border: 1px solid #dee2e6;
    color: #007bff;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.pagination .current {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

/* Mobile menu improvements */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
    }
    
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    .main-navigation.active {
        display: block;
    }
    
    .main-navigation ul {
        flex-direction: column;
        padding: 1rem;
    }
}

/* Print styles */
@media print {
    .site-header,
    .site-footer,
    .nav-link,
    .ad-section,
    .back-to-top {
        display: none !important;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    .card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* Blog Layout Styles */
.blog-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin: 2rem 0;
}

.blog-main {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.blog-post {
    padding: 0;
    margin-bottom: 3rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 12px;
    overflow: hidden;
}

.blog-post-header {
    padding: 2rem 2rem 1rem;
    background: #fff;
}

.blog-post-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.blog-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.blog-post-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.blog-post-meta .meta-icon {
    font-size: 1rem;
}

.blog-post-meta a {
    color: #007bff;
    text-decoration: none;
}

.blog-post-meta a:hover {
    text-decoration: underline;
}

.blog-post-image {
    margin: 0;
    text-align: center;
}

.blog-post-image .featured-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.blog-post-content {
    padding: 2rem;
    line-height: 1.8;
    font-size: 1.1rem;
}

.blog-post-content h1,
.blog-post-content h2,
.blog-post-content h3,
.blog-post-content h4,
.blog-post-content h5,
.blog-post-content h6 {
    margin: 2rem 0 1rem;
    color: #333;
}

.blog-post-content p {
    margin-bottom: 1.5rem;
}

.blog-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.blog-post-content blockquote {
    background: #f8f9fa;
    border-left: 4px solid #007bff;
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

.blog-post-content ul,
.blog-post-content ol {
    margin: 1rem 0 1rem 2rem;
}

.blog-post-content li {
    margin-bottom: 0.5rem;
}

.page-links {
    text-align: center;
    margin: 2rem 0;
}

.page-links .page-number {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
}

.blog-post-footer {
    padding: 2rem;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.post-tags {
    margin-bottom: 2rem;
}

.post-tags h4 {
    margin-bottom: 1rem;
    color: #333;
}

.tag-list a {
    display: inline-block;
    background: #e3f2fd;
    color: #1976d2;
    padding: 0.3rem 0.8rem;
    margin: 0.2rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.tag-list a:hover {
    background: #1976d2;
    color: white;
}

.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.nav-previous,
.nav-next {
    padding: 1.5rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.nav-previous:hover,
.nav-next:hover {
    transform: translateY(-2px);
}

.nav-previous a,
.nav-next a {
    text-decoration: none;
    color: #333;
    display: block;
}

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

.nav-title {
    display: block;
    font-weight: 600;
    color: #007bff;
}

.nav-next {
    text-align: right;
}

/* Blog Sidebar Styles */
.blog-sidebar {
    background: #fff;
    border-radius: 12px;
    padding: 0;
    height: fit-content;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.widget {
    padding: 2rem;
    border-bottom: 1px solid #e9ecef;
}

.widget:last-child {
    border-bottom: none;
}

.widget-title {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #007bff;
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget li {
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #f0f0f0;
}

.widget li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.widget a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.widget a:hover {
    color: #007bff;
}

.recent-posts-list .post-date {
    display: block;
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.3rem;
}

.categories-list .post-count {
    color: #666;
    font-size: 0.9rem;
}

/* Widget specific styles */
.widget_search .search-form {
    display: flex;
    gap: 0.5rem;
}

.widget_search input[type="search"] {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.widget_search input[type="submit"] {
    padding: 0.75rem 1rem;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.widget_calendar table {
    width: 100%;
    border-collapse: collapse;
}

.widget_calendar th,
.widget_calendar td {
    padding: 0.5rem;
    text-align: center;
    border: 1px solid #e9ecef;
}

.widget_calendar th {
    background: #f8f9fa;
    font-weight: 600;
}

/* Comments Styles */
.comments-area {
    background: #fff;
    padding: 2rem;
    margin-top: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.comments-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #333;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.comment-author {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.comment-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.comment-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.reply {
    margin-top: 1rem;
}

.comment-reply-link {
    background: #007bff;
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
}

.comment-reply-link:hover {
    background: #0056b3;
    color: white;
}

.comment-form {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.comment-form-comment textarea,
.comment-form-author input,
.comment-form-email input,
.comment-form-url input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.form-submit input {
    background: #007bff;
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.form-submit input:hover {
    background: #0056b3;
}

/* Responsive Blog Layout */
@media (max-width: 768px) {
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .blog-post-title {
        font-size: 2rem;
    }
    
    .blog-post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .blog-post-content {
        padding: 1.5rem;
        font-size: 1rem;
    }
    
    .post-navigation {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .nav-next {
        text-align: left;
    }
    
    .blog-post-image .featured-image {
        height: 250px;
    }
}

/* Sidebar Layout Styles */
.single-post-container {
    margin: 2rem 0;
}

.single-post-container .container {
    max-width: 1400px;
}

.single-post-container .row {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.single-post-container .content-area {
    flex: 1;
    min-width: 0;
}

.single-post-container .sidebar {
    width: 300px;
    flex-shrink: 0;
}

.single-post-container .sidebar-left {
    order: -1;
}

.single-post-container .sidebar-right {
    order: 1;
}

.single-post-container .has-left-sidebar .content-area {
    margin-left: 2rem;
}

.single-post-container .has-right-sidebar .content-area {
    margin-right: 2rem;
}

.single-post-container .has-left-sidebar .sidebar-left {
    margin-right: 2rem;
}

.single-post-container .has-right-sidebar .sidebar-right {
    margin-left: 2rem;
}

.single-post-container .full-width .content-area {
    margin: 0;
}

/* Sidebar Styles */
.sidebar {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.sidebar .widget {
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 0;
}

.sidebar .widget:last-child {
    border-bottom: none;
}

.sidebar .widget-title {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #007bff;
    font-weight: 600;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar li {
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sidebar a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sidebar a:hover {
    color: #007bff;
}

.sidebar .recent-posts-list .post-date {
    display: block;
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.3rem;
}

.sidebar .categories-list .post-count {
    color: #666;
    font-size: 0.9rem;
}

/* Single Post Content Styles */
.single-post-content {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
}

.post-header {
    padding: 2rem 2rem 1rem;
    background: #fff;
    border-bottom: 1px solid #e9ecef;
}

.post-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 700;
}

.location-subtitle {
    display: block;
    font-size: 1.2rem;
    color: #666;
    font-weight: 400;
    margin-top: 0.5rem;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.post-meta i {
    color: #007bff;
}

.post-thumbnail {
    margin: 0;
    text-align: center;
}

.post-thumbnail img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.post-thumbnail.placeholder {
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
}

.post-thumbnail.placeholder img {
    height: auto;
    max-height: 300px;
    width: auto;
}

.post-content-wrapper {
    padding: 2rem;
}

.post-content {
    line-height: 1.8;
    font-size: 1.1rem;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    margin: 2rem 0 1rem;
    color: #333;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.post-content blockquote {
    background: #f8f9fa;
    border-left: 4px solid #007bff;
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

.post-content ul,
.post-content ol {
    margin: 1rem 0 1rem 2rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

/* Post Navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.post-navigation .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.post-navigation .btn:hover {
    background: #0056b3;
}

/* Nearby Listings Section */
.nearby-listings {
    margin: 3rem 0;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.nearby-listings .section-title {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 2rem;
    text-align: center;
}

.nearby-listings .cards-grid {
    margin: 0;
}

/* Author Bio */
.author-bio {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 2rem 0;
}

.author-avatar img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
}

.author-info h4 {
    margin-bottom: 0.5rem;
    color: #333;
}

.author-info p {
    color: #666;
    margin: 0;
}

/* Comments Styles */
.comments-area {
    background: #fff;
    padding: 2rem;
    margin-top: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.comments-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #333;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.comment-author {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.comment-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.comment-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.reply {
    margin-top: 1rem;
}

.comment-reply-link {
    background: #007bff;
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
}

.comment-reply-link:hover {
    background: #0056b3;
    color: white;
}

.comment-form {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.comment-form-comment textarea,
.comment-form-author input,
.comment-form-email input,
.comment-form-url input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.form-submit input {
    background: #007bff;
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.form-submit input:hover {
    background: #0056b3;
}

/* Responsive Sidebar Layout */
@media (max-width: 992px) {
    .single-post-container .row {
        flex-direction: column;
    }
    
    .single-post-container .sidebar {
        width: 100%;
        position: static;
        margin-bottom: 2rem;
    }
    
    .single-post-container .has-left-sidebar .content-area,
    .single-post-container .has-right-sidebar .content-area {
        margin: 0;
    }
    
    .single-post-container .has-left-sidebar .sidebar-left,
    .single-post-container .has-right-sidebar .sidebar-right {
        margin: 0;
    }
}

@media (max-width: 768px) {
    .post-title {
        font-size: 2rem;
    }
    
    .post-header,
    .post-content-wrapper {
        padding: 1.5rem;
    }
    
    .post-thumbnail img {
        height: 250px;
    }
    
    .post-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .author-bio {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .post-title {
        font-size: 1.5rem;
    }
    
    .post-header,
    .post-content-wrapper {
        padding: 1rem;
    }
    
    .post-thumbnail img {
        height: 200px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid #000;
    }
    
    .nav-link {
        border: 2px solid #000;
    }
    
    .rating-stars {
        color: #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .card:hover {
        transform: none;
    }
    
    .featured-badge {
        animation: none;
    }
}

/* Hide only automatically generated Directorist Navigation Links */
/* Target specific Directorist-generated menu items by their classes */
.main-navigation li[class*="directorist"],
.main-navigation .menu-item-directorist,
#primary-menu li[class*="directorist"] {
    display: none !important;
}

/* Hide by specific menu item IDs that Directorist creates */
#menu-item-directorist-add-listing,
#menu-item-directorist-all-listings,
#menu-item-directorist-dashboard,
#menu-item-directorist-checkout,
#menu-item-directorist-pricing,
#menu-item-directorist-payment,
#menu-item-directorist-author-profile {
    display: none !important;
}

/* Hide Directorist navigation containers */
.main-navigation .directorist-nav-item,
.main-navigation .directorist-menu-item,
.header-content .directorist-nav,
.site-header .directorist-navigation,
.directorist-user-nav,
.directorist-header-nav {
    display: none !important;
}

/* Hide Directorist widgets in navigation area */
.main-navigation .widget_directorist,
.header-content .widget_directorist {
    display: none !important;
}

/* Banner Ad Styles */
.banner-ad-container {
    margin: 3rem 0;
    text-align: center;
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.banner-ad-wrapper {
    max-width: 100%;
    display: inline-block;
}

.banner-ad-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.banner-ad-container a:hover .banner-ad-image {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Specific banner ad locations */
.banner-ad-homepage {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border: 2px solid #007bff;
    margin: 2rem auto;
    max-width: 800px;
}

.banner-ad-single {
    background: linear-gradient(135deg, #fff3cd, #ffffff);
    border: 2px solid #ffc107;
    margin: 3rem auto;
    max-width: 600px;
}

.banner-ad-states,
.banner-ad-city {
    background: linear-gradient(135deg, #e8f5e8, #ffffff);
    border: 2px solid #28a745;
    margin: 2rem auto;
    max-width: 700px;
}

/* Responsive banner ads */
@media (max-width: 768px) {
    .banner-ad-container {
        margin: 2rem 0;
        padding: 1.5rem;
    }
    
    .banner-ad-homepage,
    .banner-ad-single,
    .banner-ad-states,
    .banner-ad-city {
        max-width: 100%;
        margin: 1.5rem auto;
    }
}

@media (max-width: 480px) {
    .banner-ad-container {
        margin: 1.5rem 0;
        padding: 1rem;
    }
    
    .banner-ad-image {
        border-radius: 6px;
    }
}
