/*
Theme Name: Directory Listings Theme
Theme URI: https://example.com/directory-theme
Author: Your Name
Author URI: https://example.com
Description: A flexible directory listings theme for any type of business or location directory
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: busstopsau-theme
Tags: responsive, directory, listings, business-directory, location-directory
*/

:root {
    --primary-color: #0077B6;
    --secondary-color: #90E0EF;
    --light-color: #CAF0F8;
    --dark-color: #03045E;
    --accent-color: #00B4D8;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --gray: #6c757d;
    --dark-gray: #343a40;
    --black: #000000;
}

/* Global Styles */
body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--light-gray);
    margin: 0;
    padding: 0;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.site-header {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 1rem 0;
    position: relative;
    z-index: 100;
}

/* Logo Styling */
.site-branding {
    display: flex;
    align-items: center;
}

.logo-link {
    display: block;
    margin-right: 1rem;
}

.site-logo {
    max-height: 60px;
    width: auto;
    display: block;
}

.site-title {
    font-size: 1.5rem;
    margin: 0;
}

.site-description {
    margin: 0;
    font-size: 0.9rem;
    color: var(--gray);
}

/* Navigation */
.main-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu li {
    margin-left: 1.5rem;
}

.menu a {
    color: var(--dark-gray);
    font-weight: 600;
}

.menu a:hover {
    color: var(--primary-color);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-gray);
}

/* Breadcrumbs */
.breadcrumbs {
    background-color: var(--light-color);
    padding: 0.5rem 0;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.breadcrumbs ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.breadcrumbs li {
    margin-right: 0.5rem;
}

.breadcrumbs li:after {
    content: "›";
    margin-left: 0.5rem;
}

.breadcrumbs li:last-child:after {
    content: "";
}

/* Cards */
.card {
    background-color: var(--white);
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    margin-top: 0;
    font-size: 1.25rem;
}

.card-meta {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Rating Stars */
.rating {
    color: #ffc107;
    margin-bottom: 0.5rem;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 80vh;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
    background-color: rgba(0,0,0,0.5);
    border-radius: 5px;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* Search Section */
.search-section {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
}

.search-form {
    max-width: 600px;
    margin: 0 auto;
}

.search-row {
    display: flex;
    margin-bottom: 1rem;
}

.search-col {
    flex: 1;
    padding: 0 0.5rem;
}

.search-select {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
}

.search-button {
    background-color: var(--dark-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-button:hover {
    background-color: var(--accent-color);
}

/* Browse Section */
.browse-section {
    padding: 3rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* Popular Section */
.popular-section {
    background-color: var(--light-color);
    padding: 3rem 0;
}

/* Single Post */
.single-post {
    background-color: var(--white);
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

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

.post-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.post-meta {
    color: var(--gray);
    font-size: 0.9rem;
}

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

.post-image {
    margin-bottom: 2rem;
    border-radius: 5px;
    overflow: hidden;
}

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

.detail-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--light-gray);
}

.detail-label {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

/* Nearby Section */
.nearby-section {
    margin-top: 3rem;
}

/* Footer */
.site-footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 3rem 0;
}

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

.footer-widget-title {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

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

.footer-menu li {
    margin-bottom: 0.5rem;
}

.footer-menu a {
    color: var(--light-color);
}

/* Cities menu styling */
.cities-menu li {
    margin-bottom: 0.75rem;
}

.cities-menu a {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.cities-menu .city-state {
    font-size: 0.8rem;
    opacity: 0.8;
    color: var(--secondary-color);
    font-style: italic;
}

/* Social icons styling */
.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
    color: var(--white);
    text-decoration: none;
}

.social-icons i {
    font-size: 1.2rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        z-index: 100;
    }
    
    /* Responsive footer adjustments */
    .footer-widgets {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .social-icons {
        gap: 0.8rem;
    }
    
    .social-icons a {
        width: 32px;
        height: 32px;
    }
    
    .menu.active {
        display: flex;
    }
    
    .menu li {
        margin: 0;
        padding: 1rem;
        border-bottom: 1px solid var(--light-gray);
    }
    
    .menu-toggle {
        display: block;
    }
    
    .search-row {
        flex-direction: column;
    }
    
    .search-col {
        margin-bottom: 1rem;
    }
    
    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .hero-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    /* Mobile footer adjustments */
    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .social-icons {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 0.75rem;
        margin-top: 1rem;
    }
    
    .social-icons a {
        width: 40px;
        height: 40px;
    }
    
    .social-icons i {
        font-size: 1.1rem;
    }
}
