/*
Theme Name: Horse Riding Sonnet 4
Description: A modern, responsive directory theme for horse riding businesses in the United Kingdom
Version: 1.0
Author: Custom Theme
*/

/* CSS Variables for Color Palette */
:root {
    --primary-color: #6f1d1b;
    --secondary-color: #bb9457;
    --tertiary-color: #432818;
    --accent-color: #99582a;
    --light-color: #ffe6a7;
    --white: #ffffff;
    --black: #000000;
    --gray-light: #f8f9fa;
    --gray-medium: #6c757d;
    --gray-dark: #343a40;
}

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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--gray-dark);
    background-color: var(--white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

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

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

/* Container and Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    padding: 0 15px;
}

/* Grid System */
.col-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
.col-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
.col-9 { flex: 0 0 75%; max-width: 75%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

/* Header Styles */
.site-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1rem 0;
}

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

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

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

.main-navigation li {
    margin-left: 2rem;
}

.main-navigation a {
    color: var(--gray-dark);
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.main-navigation a:hover {
    color: var(--primary-color);
    border-bottom-color: var(--secondary-color);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(111, 29, 27, 0.2), rgba(67, 40, 24, 0.2)), url('https://horseridinguk.co.uk/wp-content/uploads/2025/08/hero2-scaled.png');
    background-size: cover;
    background-position: center;
    background-attachment: ;
    min-height: 400px;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
}

.hero-content h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Card Styles */
.card {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 2rem;
    text-align: center;
}

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

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

.card-content {
    padding: 1.5rem;
}

.card-title {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.card-text {
    color: var(--gray-medium);
    margin-bottom: 1rem;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--tertiary-color);
    color: var(--white);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--accent-color);
    color: var(--white);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--gray-dark);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--gray-light);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
}

select.form-control {
    background-color: var(--white);
    cursor: pointer;
}

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

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

/* Rating Styles */
.rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.rating-stars {
    color: #ffc107;
}

.rating-text {
    color: var(--gray-medium);
    font-size: 0.9rem;
}

/* Work Time Styles */
.work-time {
    background: var(--gray-light);
    padding: 1rem;
    border-radius: 5px;
    margin: 1rem 0;
}

.work-time-day {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
    border-bottom: 1px solid var(--gray-medium);
}

.work-time-day:last-child {
    border-bottom: none;
}

/* Contact Info Styles */
.contact-info {
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1rem 0;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.contact-item i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

/* Place Topics Styles */
.place-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.topic-tag {
    background: var(--secondary-color);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

/* Breadcrumbs */
.breadcrumbs {
    background: var(--gray-light);
    padding: 1rem 0;
    margin-bottom: 2rem;
}

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

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
    content: '>';
    margin: 0 0.5rem;
    color: var(--gray-medium);
}

.breadcrumb-link {
    color: var(--secondary-color);
}

.breadcrumb-link:hover {
    color: var(--primary-color);
}

/* Footer Styles */
.site-footer {
    background-color: var(--tertiary-color);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.footer-logo img {
    max-height: 50px;
    width: auto;
}

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

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

.footer-menu a {
    color: var(--light-color);
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--accent-color);
    color: var(--light-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .col-3, .col-4, .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-navigation ul {
        flex-direction: column;
        text-align: center;
    }
    
    .main-navigation li {
        margin: 0.5rem 0;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .card-content {
        padding: 1rem;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

/* Single Service Page Styles */
.single-service-header {
    text-align: center;
    margin-bottom: 3rem;
}

.single-service-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.service-info-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.info-column {
    background: var(--gray-light);
    padding: 2rem;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .service-info-columns {
        grid-template-columns: 1fr;
    }
}

/* Featured Services Styles */
.featured-services-section {
    background: var(--gray-light);
}

.featured-card {
    position: relative;
    border: 2px solid var(--secondary-color);
}

.featured-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.featured-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(111, 29, 27, 0.2);
}

/* Ad Styles */
.horse-riding-ad {
    margin: 2rem 0;
    padding: 1rem;
    background: var(--gray-light);
    border-radius: 5px;
    text-align: center;
}

.horse-riding-ad-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    margin: 0 -1rem;
    margin-top: -1rem;
    padding: 1rem;
    border-radius: 5px 5px 0 0;
}

.horse-riding-ad-footer {
    background: var(--tertiary-color);
    color: var(--white);
    margin: 1rem -1rem -1rem;
    padding: 1rem;
    border-radius: 0 0 5px 5px;
}

.horse-riding-ad-single_service {
    background: var(--light-color);
    border: 1px solid var(--secondary-color);
    margin: 2rem 0;
}

.horse-riding-ad-sidebar {
    background: var(--white);
    border: 1px solid var(--gray-medium);
    margin: 1rem 0;
    padding: 1.5rem;
}

/* Featured Listing Promotion Styles */
.featured-listing-promotion {
    background: linear-gradient(135deg, var(--primary-color), var(--tertiary-color));
    color: var(--white);
    padding: 4rem 0;
    margin: 4rem 0;
}

.promotion-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 3rem;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.promotion-card h3 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.promotion-card p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.promotion-benefits {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.promotion-benefits li {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 10px;
    font-size: 1.1rem;
}

.promotion-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.promotion-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--light-color);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.2rem;
    border-radius: 50px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Widget Styles */
.widget {
    background: var(--white);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.widget-title {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary-color);
}

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

.widget li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-light);
}

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

.widget a {
    color: var(--gray-dark);
    transition: color 0.3s ease;
}

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

/* Admin Styles */
.horse-riding-admin-notice {
    background: var(--light-color);
    border-left: 4px solid var(--secondary-color);
    padding: 1rem;
    margin: 1rem 0;
}

/* Entry Meta Styles */
.entry-meta {
    color: var(--gray-medium);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-light);
}

.entry-meta span {
    margin-right: 1rem;
}

.entry-meta a {
    color: var(--secondary-color);
}

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

/* Post Navigation */
.post-navigation {
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid var(--gray-light);
    border-bottom: 1px solid var(--gray-light);
}

.nav-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-previous,
.nav-next {
    flex: 1;
    max-width: 45%;
}

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

.nav-subtitle {
    display: block;
    font-size: 0.9rem;
    color: var(--gray-medium);
    margin-bottom: 0.5rem;
}

.nav-title {
    display: block;
    font-weight: 600;
    color: var(--primary-color);
}

/* Comments Styles */
.comments-area {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-light);
}

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

.comment {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--gray-light);
    border-radius: 10px;
}

.comment-author {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

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

/* Responsive Adjustments for New Components */
@media (max-width: 768px) {
    .promotion-cta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .promotion-price {
        font-size: 1.5rem;
    }
    
    .promotion-benefits {
        grid-template-columns: 1fr;
    }
    
    .promotion-card {
        padding: 2rem 1rem;
    }
    
    .promotion-card h3 {
        font-size: 2rem;
    }
    
    .featured-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .horse-riding-ad {
        margin: 1rem 0;
        padding: 0.75rem;
    }
    
    .widget {
        padding: 1rem;
    }
    
    .promotion-card h3 {
        font-size: 1.75rem;
    }
    
    .btn-large {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* Animation for Featured Cards */
@keyframes featuredPulse {
    0% { box-shadow: 0 4px 15px rgba(111, 29, 27, 0.1); }
    50% { box-shadow: 0 8px 25px rgba(111, 29, 27, 0.3); }
    100% { box-shadow: 0 4px 15px rgba(111, 29, 27, 0.1); }
}

.featured-card {
    animation: featuredPulse 3s ease-in-out infinite;
}

.featured-card:hover {
    animation: none;
}

/* Search Section Styles */
.search-section {
    background: var(--gray-light);
    padding: 3rem 0;
}

.search-form-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.search-form-container {
    display: flex;
    gap: 1.5rem;
    align-items: end;
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--secondary-color);
    max-width: 600px;
    width: 100%;
}

.search-dropdown {
    flex: 1;
    min-width: 0;
}

.search-dropdown .form-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: block;
    text-align: center;
}

.search-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-light);
    border-radius: 8px;
    font-size: 0.95rem;
    background-color: var(--white);
    color: var(--gray-dark);
    transition: all 0.3s ease;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23bb9457' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

.search-select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(187, 148, 87, 0.1);
}

.search-select:disabled {
    background-color: var(--gray-light);
    color: var(--gray-medium);
    cursor: not-allowed;
    opacity: 0.7;
}

.search-select option {
    padding: 0.5rem;
    color: var(--gray-dark);
}

/* Search Section Mobile Responsiveness */
@media (max-width: 768px) {
    .search-form-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .search-dropdown {
        width: 100%;
    }
    
    .search-select {
        font-size: 1rem;
        padding: 1rem;
    }
    
    .search-section {
        padding: 2rem 0;
    }
}

@media (max-width: 480px) {
    .search-form-container {
        margin: 0 0.5rem;
        padding: 1rem;
    }
    
    .search-dropdown .form-label {
        font-size: 0.85rem;
        text-align: left;
    }
    
    .search-select {
        padding: 0.875rem;
        font-size: 0.95rem;
    }
}

/* Enhanced Search Form Hover Effects */
.search-form-container:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.search-select:hover:not(:disabled) {
    border-color: var(--accent-color);
}

/* Loading State for Second Dropdown */
.search-select.loading {
    opacity: 0.7;
    cursor: wait;
}

/* Search Form Accessibility */
.search-dropdown .form-label {
    cursor: pointer;
}

.search-select:focus-visible {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Search Results Indication */
.search-form-container.has-selection {
    border-color: var(--primary-color);
    background: linear-gradient(145deg, var(--white), var(--light-color));
}
