@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #ff5a5f;
    /* Coral Red */
    --secondary-color: #50E3C2;
    /* Teal */
    --text-color: #484848;
    --light-gray: #767676;
    --border-color: #e4e4e4;
    --bg-light: #f7f7f7;
    --white: #ffffff;
    --success: #66cc33;
    --danger: #ff5a5f;
}

body.que-como-hoy-page {
    font-family: 'Quicksand', sans-serif;
    color: var(--text-color);
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
}

/* Custom Header */
.st-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.st-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.st-logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.st-logo img {
    height: 40px;
    margin-right: 10px;
}

.st-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.st-nav a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    transition: color 0.3s;
}

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

.st-user-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.st-user-info {
    text-align: right;
    line-height: 1.2;
}

.st-welcome {
    font-size: 12px;
    color: #999;
    display: block;
}

.st-login-link {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    text-decoration: none;
}

.st-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #eee;
    color: #aaa;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Section */
.hero-banner {
    background-image: url('https://images.unsplash.com/photo-1504674900247-0877df9cc836?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    height: 200px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    margin-bottom: 20px;
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.4);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    z-index: 1;
    /* Space for the floating card */
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 18px;
    font-weight: 500;
}

/* Location Selector Card */
.location-selector {
    background: #fff;
    margin-bottom: 30px;
    margin-top: 30px;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

.section-title {
    text-align: center;
    color: #333;
    font-size: 24px;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--secondary-color);
    margin: 10px auto 0;
}

.location-options {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.location-btn,
.address-input-container {
    background: #f9f9f9;
    border: 1px solid #eee;
    padding: 12px 15px;
    border-radius: 5px;
    display: flex;
    font-weight: normal;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.location-btn:hover,
.address-input-container:focus-within {
    border-color: var(--secondary-color);
    background: #fff;
}

.location-btn i,
.address-input-container i {
    margin-right: 10px;
    color: #000;
}

.address-input {
    border: none;
    background: transparent;
    width: 100%;
    outline: none;
    font-family: inherit;
    font-size: 14px;
}

/* Slider */
.search-radius {
    margin: 15px 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}


.radius-slider {
    width: 100%;
    max-width: 300px;
    -webkit-appearance: none;
    height: 8px;
    background: #e4e4e4;
    border-radius: 5px;
    outline: none;
    margin:
}

.radius-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Gradient Button */
.search-restaurants-btn {
    width: 100%;
    /* Or fixed width if preferred */
    max-width: 300px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    border: none;
    color: #fff;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: block;
    /* margin: 0 auto; NOT CENTERED IN DESIGN, LEFT ALIGNED UNDER SLIDER? No, design shows button below slider on left side.. actually let's re-examine design. */
    /* Wait, the design has button on bottom left? No it spans 1/3? width. Let's make it look like the image. */
}

/* Layout Grid */
.search-results-container {
    max-width: 1200px;
    margin: 0 auto 60px;
    display: flex;
    gap: 30px;
    aside{
        form{
            margin-top: 0%;
            & .form-type-checkbox {
                .option {
                    font-size: 0.9rem;
                    color: #6c757d;
                    font-weight: 400;
                }
            }
        }        
    }
}
/* Sidebar Filters */
.filters-sidebar {
    width: 250px;
    height: fit-content;
    flex-shrink: 0;
    background: #fff;
    margin-bottom: 30px;
    border-radius: 10px;
    position: relative;
    z-index: 10;
}

.filters-sidebar h3 {
    font-size: 18px;
    margin-bottom: 20px;
}

.filter-h3 {
    font-size: 20px;
    font-weight: bold;
}
#list-view{
    background: #f7f9fc;
}
.filter-group {
    margin-bottom: 25px;
}
.filters-sidebar{
    fieldset{        
        span{
            margin-bottom: 10px;
            font-size: 1rem;
            color: #000000a1;
            font-weight: 600;
        }
    }
    label{
        margin-bottom: 10px;
        font-size: 1rem;
        color: #000000a1;
        font-weight: 600;
    }
    legend{
        margin-bottom: 5px;
    }
}
.filter-group h4 {
    font-size: 14px;
    color: #333;
    margin-bottom: 15px;
}

.filter-option {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
}

.filter-label {
    margin-left: 10px;
}
.form-type-checkbox{
    padding: 0px !important;
}
/* Custom Checkbox handled in HTML inline styles or here. Let's do here for cleanliness if I can override the HTML styles */
input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--primary-color);
}

.apply-filters-btn {
    width: 100%;
    background: linear-gradient(90deg, #81e6d9, #fb9a9c);
    /* Lighter gradient */
    border: none;
    color: #fff;
    padding: 12px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
}

/* Results Area */
.results-content {
    flex-grow: 1;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e1e4e8;
}

.results-count {
    color: #777;
    font-size: 14px;
}

.view-toggle {
    display: flex;
    gap: 10px;
}

.view-btn {
    border: 1px solid #eee;
    background: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    color: #555;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.view-btn.active {
    color: #fff;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
}

.sort-select {
    border: 1px solid #eee;
    padding: 8px 15px;
    border-radius: 5px;
    color: #555;
    outline: none;
}

/* Restaurant Grid */
.restaurants-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 Columns as per image */
    gap: 30px;
}

.restaurant-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

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

.restaurant-image {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
    img{
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        max-width: none !important;
    }
}

.status-badge {
    position: absolute;
    bottom: -20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    border: 2px solid #fff;
}

.status-open {
    background-color: var(--success);
}

.status-closed {
    background-color: var(--danger);
    /* or lighter red */
}

.restaurant-info-mini {
    padding: 25px 20px 20px;
}

.restaurant-name {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.restaurant-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #888;
    margin-bottom: 15px;
}

.rating {
    color: #ffb400;
    font-weight: 700;
}

.restaurant-delivery-info {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #555;
    margin-bottom: 15px;
    justify-content: space-between;
}

.restaurant-tags {
    display: flex;
    gap: 8px;
}

.tag {
    background: #f0f0f0;
    color: #666;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
}

/* Footer Specifics */
.st-footer {
    background: #f4f4f4;
    padding: 40px 0;
    text-align: center;
    color: #888;
    font-size: 14px;
}

.st-footer-links {
    margin-bottom: 20px;
}

.st-footer-links a {
    color: #666;
    text-decoration: none;
    margin: 0 15px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .st-header .container {
        flex-direction: column;
        gap: 15px;
    }

    .st-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .location-options {
        grid-template-columns: 1fr;
    }

    .search-results-container {
        flex-direction: column;
    }

    .restaurants-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================= */
/* Views Mini Pager Styling */
/* ============================= */

.js-pager__items {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    margin: 30px 0 0;
}

/* Page number (current page text) */
.js-pager__items li {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
}

/* Next / Previous links */
.js-pager__items li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid var(--border-color);
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

/* Hover effect */
.js-pager__items li a:hover {
    background: linear-gradient(
        90deg,
        var(--secondary-color),
        var(--primary-color)
    );
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Arrow styling */
.js-pager__items li a span[aria-hidden="true"] {
    font-size: 18px;
    line-height: 1;
}

/* Disabled / no-link state */
.js-pager__items li:not(:has(a)) {
    padding: 8px 14px;
    border-radius: 6px;
    background: var(--bg-light);
    color: #777;
}

/* Mobile alignment */
@media (max-width: 768px) {
    .js-pager__items {
        justify-content: center;
        flex-wrap: wrap;
    }
}
#saved-locations-list {
  display: none;
}
#edit-submit-restaurant-find-food--2{
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    background: linear-gradient(90deg, #4ecdc4, #fb8585);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}