/*
Theme Name: Park4Travels
Theme URI: https://park4travels.co.uk
Author: Anomaly
Author URI: https://heatherharrietlove.com
Description: Complete airport parking aggregator theme with advanced booking, comparison, and affiliate tracking system
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: park4travels
Tags: airport-parking, aggregator, booking-system, travel
*/

/* ==========================================================================
   BASE STYLES
   ========================================================================== */

:root {
    --primary-color: #0066cc;
    --secondary-color: #00cc66;
    --accent-color: #ff6600;
    --text-dark: #333333;
    --text-light: #666666;
    --background-light: #f8f9fa;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --border-radius: 8px;
    --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #ffffff;
}

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

/* ==========================================================================
   HEADER
   ========================================================================== */

.site-header {
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.site-logo a {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-navigation a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

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

/* ==========================================================================
   SEARCH HERO
   ========================================================================== */

.search-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0052a3 100%);
    color: #ffffff;
    padding: 80px 20px;
    text-align: center;
}

.search-hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

.search-hero p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
}

/* ==========================================================================
   PARKING SEARCH FORM
   ========================================================================== */

.parking-search-form {
    background: #ffffff;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-width: 900px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-size: 14px;
}

.form-group input,
.form-group select {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.search-button {
    background: var(--accent-color);
    color: #ffffff;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

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

/* ==========================================================================
   RESULTS GRID
   ========================================================================== */

.results-section {
    padding: 60px 20px;
    background: var(--background-light);
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.results-header h2 {
    font-size: 32px;
    color: var(--text-dark);
}

.results-filter {
    display: flex;
    gap: 15px;
}

.filter-button {
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    background: #ffffff;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.filter-button.active,
.filter-button:hover {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

.parking-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.parking-card {
    background: #ffffff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

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

.parking-card-content {
    padding: 20px;
}

.parking-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
}

.parking-card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
}

.parking-card-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--accent-color);
    font-weight: 600;
}

.parking-card-features {
    list-style: none;
    margin: 15px 0;
}

.parking-card-features li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.feature-icon {
    color: var(--success-color);
}

.parking-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 2px solid var(--border-color);
}

.parking-price {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 12px;
    color: var(--text-light);
}

.price-amount {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
}

.book-button {
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.book-button:hover {
    background: #0052a3;
}

/* ==========================================================================
   COMPARISON TABLE
   ========================================================================== */

.comparison-section {
    padding: 60px 20px;
}

.comparison-table {
    background: #ffffff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

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

.comparison-table th,
.comparison-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    background: var(--primary-color);
    color: #ffffff;
    font-weight: 600;
}

.comparison-table tr:hover {
    background: var(--background-light);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
    background: var(--text-dark);
    color: #ffffff;
    padding: 60px 20px 30px;
}

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

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 18px;
}

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

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: #ffffff;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
    .search-hero h1 {
        font-size: 32px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .parking-grid {
        grid-template-columns: 1fr;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 15px;
    }
}
