/*
Theme Name: Dog Facility Theme Complete
Description: A modern, responsive WordPress theme for dog facility directory websites
Version: 1.0
Author: Custom Theme
*/

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* Header Styles */
.site-header {
    background: linear-gradient(135deg, #5C95FF, #B9E6FF);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

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

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

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

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

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('assets/hero-section.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    text-align: center;
    padding: 200px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

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

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

/* Card Layouts */
.cards-grid {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
}

.cards-grid.cols-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.cards-grid.cols-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.cards-grid.cols-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.card {
    background: 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;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(92, 149, 255, 0.3);
    border-top: 3px solid #5C95FF;
}

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

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

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

.card-title a:hover {
    color: #F87575;
}

/* Sections */
.content-section {
    padding: 3rem 0;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #7E6C6C;
    font-weight: 600;
}

/* Dropdowns */
.dropdown-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.dropdown-container select {
    padding: 0.75rem 1rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    background: white;
    min-width: 200px;
}

.dropdown-container select:focus {
    outline: none;
    border-color: #5C95FF;
    box-shadow: 0 0 0 3px rgba(92, 149, 255, 0.2);
}

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

.stars {
    color: #ffc107;
}

/* Work Hours */
.work-hours {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 5px;
    margin: 1rem 0;
}

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

.day-hours {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
    border-bottom: 1px solid #eee;
}

/* Contact Info */
.contact-info {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 5px;
    margin: 1rem 0;
}

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

.contact-item i {
    color: #007cba;
    width: 20px;
}

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

.attributes-group {
    margin: 1rem 0;
}

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

.attribute-item {
    background: #B9E6FF;
    color: #5C95FF;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    display: inline-block;
    margin: 0.25rem 0.25rem 0.25rem 0;
    font-size: 0.9rem;
    font-weight: 500;
}

.unavailable-attribute {
    background: #FFA9A3;
    color: #F87575;
}

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

.topic-tag {
    background: #7E6C6C;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Navigation Links */
.nav-link {
    display: inline-block;
    background: #F87575;
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    margin: 1rem 0;
    transition: background 0.3s ease;
    font-weight: 500;
}

.nav-link:hover {
    background: #7E6C6C;
    color: white;
}

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

.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: #5C95FF;
    text-decoration: none;
    font-weight: 500;
}

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

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

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

.footer-logo img {
    max-height: 80px;
    margin-bottom: 1rem;
}

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

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

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-navigation ul {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .hero-section {
        background-attachment: scroll;
        padding: 150px 0;
        min-height: 80vh;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .dropdown-container {
        flex-direction: column;
        align-items: center;
    }
    
    .cards-grid.cols-3,
    .cards-grid.cols-4 {
        grid-template-columns: 1fr;
    }
    
    .day-hours {
        flex-direction: column;
        gap: 0.25rem;
    }
}

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

/* Enhanced Parallax Effects */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(92, 149, 255, 0.1), rgba(185, 230, 255, 0.1));
    animation: parallaxFloat 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes parallaxFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(1deg);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Additional mobile parallax optimization */
@media (max-width: 768px) {
    .hero-section::before {
        animation: none;
    }
}

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

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }

.font-weight-bold {
    font-weight: 600;
}

.text-muted {
    color: #666;
}

/* Category Facilities Page Styles */
.page-header {
    text-align: center;
    padding: 2rem 0;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 10px;
    margin: 2rem 0;
}

.page-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
    font-weight: 600;
}

.results-count {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
}

/* Filter Section */
.filter-section {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 2rem 0;
}

.filter-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-container label {
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
}

.filter-container select {
    padding: 0.75rem 1rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    background: white;
    min-width: 250px;
    transition: all 0.3s ease;
}

.filter-container select:focus {
    outline: none;
    border-color: #5C95FF;
    box-shadow: 0 0 0 3px rgba(92, 149, 255, 0.2);
}

/* Facility Card Enhancements */
.facility-card {
    position: relative;
}

.facility-category {
    background: #5C95FF;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.facility-address {
    color: #666;
    font-size: 0.9rem;
    margin: 0.5rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.facility-excerpt {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 1rem 0;
}

.card-actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #5C95FF;
    color: white;
}

.btn-primary:hover {
    background: #4a7ce8;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(92, 149, 255, 0.3);
}

/* Pagination Styles */
.pagination-nav {
    margin: 3rem 0;
    text-align: center;
}

.pagination {
    display: inline-flex;
    list-style: none;
    gap: 0.5rem;
    background: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.pagination li {
    margin: 0;
}

.pagination a,
.pagination span {
    display: block;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: #5C95FF;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 45px;
    text-align: center;
}

.pagination a:hover {
    background: #5C95FF;
    color: white;
    border-color: #5C95FF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(92, 149, 255, 0.3);
}

.pagination .current {
    background: #5C95FF;
    color: white;
    border-color: #5C95FF;
}

.pagination .prev,
.pagination .next {
    font-weight: 600;
}

/* No Results Styling */
.no-results {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 2rem 0;
}

.no-results h3 {
    color: #666;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.no-results p {
    color: #888;
    margin: 0.5rem 0;
}

.no-results a {
    color: #5C95FF;
    text-decoration: none;
    font-weight: 500;
}

.no-results a:hover {
    color: #F87575;
    text-decoration: underline;
}

/* Enhanced Dropdown Styling for Category Filter */
#category-filter,
#category-filter-page {
    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='currentColor' 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 1rem center;
    background-size: 1rem;
    padding-right: 3rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Responsive Design for New Elements */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .filter-container {
        flex-direction: column;
        text-align: center;
    }
    
    .filter-container select {
        min-width: 100%;
        max-width: 300px;
    }
    
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .pagination a,
    .pagination span {
        padding: 0.5rem 0.75rem;
        min-width: 40px;
    }
    
    .facility-address {
        flex-direction: column;
        gap: 0.25rem;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 1.5rem 1rem;
        margin: 1rem 0;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .results-count {
        font-size: 1rem;
    }
    
    .filter-section {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .pagination a,
    .pagination span {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #5C95FF;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Search Form Styling */
.search-form-container {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 2rem 0;
}

.facility-search-form {
    width: 100%;
}

.search-fields {
    display: flex;
    gap: 1rem;
    align-items: end;
    flex-wrap: wrap;
    justify-content: center;
}

.search-field {
    display: flex;
    flex-direction: column;
    min-width: 200px;
}

.search-field label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.search-field input[type="text"] {
    padding: 0.75rem 1rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.search-field input[type="text"]:focus {
    outline: none;
    border-color: #5C95FF;
    box-shadow: 0 0 0 3px rgba(92, 149, 255, 0.2);
}

.search-field select {
    padding: 0.75rem 1rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    background: white;
    transition: all 0.3s ease;
    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='currentColor' 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 1rem center;
    background-size: 1rem;
    padding-right: 3rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.search-field select:focus {
    outline: none;
    border-color: #5C95FF;
    box-shadow: 0 0 0 3px rgba(92, 149, 255, 0.2);
}

.search-button {
    background: #5C95FF;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 50px;
}

.search-button:hover {
    background: #4a7ce8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(92, 149, 255, 0.3);
}

.search-button:active {
    transform: translateY(0);
}

.clear-search {
    color: #666;
    text-decoration: none;
    padding: 0.75rem 1rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    min-height: 50px;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clear-search:hover {
    color: #F87575;
    border-color: #F87575;
    text-decoration: none;
}

/* Facility Card Enhancements for Search Results */
.facility-zipcode {
    color: #666;
    font-size: 0.9rem;
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Responsive Design for Search Form */
@media (max-width: 768px) {
    .search-fields {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-field {
        min-width: 100%;
    }
    
    .search-form-container {
        padding: 1.5rem;
        margin: 1rem 0;
    }
}

@media (max-width: 480px) {
    .search-form-container {
        padding: 1rem;
    }
    
    .search-button,
    .clear-search {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

/* Enhanced Search Results Styling */
.search-results-header {
    text-align: center;
    margin: 2rem 0;
}

.search-terms-display {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 5px;
    margin: 1rem 0;
    border-left: 4px solid #5C95FF;
}

.search-terms-display h4 {
    margin: 0 0 0.5rem 0;
    color: #333;
}

.search-terms-display p {
    margin: 0;
    color: #666;
}
