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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Debug Info */
.debug-info {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    padding: 0.5rem;
    z-index: 9999;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.debug-info span {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .debug-info {
        font-size: 0.7rem;
        padding: 0.3rem;
        gap: 0.5rem;
        flex-direction: column;
        text-align: center;
    }
}

/* Header adjustment for debug info */
.debug-info + header {
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .debug-info + header {
        margin-top: 4rem;
    }
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


header p {
    font-size: 1.1rem;
    color: #666;
}

.location-enable-btn {
    margin-top: 1rem;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.location-enable-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Search Section */
.search-section {
    margin-bottom: 2rem;
}

.search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

#searchInput {
    width: 100%;
    padding: 1rem 3rem 1rem 1rem;
    font-size: 1.1rem;
    border: none;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    outline: none;
}

#searchInput:focus {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 1);
}

.search-icon-left {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: #666;
    pointer-events: none;
}

.search-clear-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #666;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.search-clear-btn.visible {
    opacity: 1;
    visibility: visible;
}

.search-stats {
    text-align: center;
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* Filter Section */
.filter-section {
    margin-bottom: 2rem;
}

.filter-toggle {
    display: none;
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-weight: 400;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 auto 1rem auto;
    backdrop-filter: blur(10px);
}

.filter-toggle:hover {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.toggle-icon {
    margin-left: 0.4rem;
    font-size: 0.8rem;
    opacity: 0.7;
    transition: transform 0.3s ease;
}

.filter-toggle.expanded .toggle-icon {
    transform: rotate(180deg);
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-weight: 600;
}

.filter-btn .count {
    font-size: 0.85em;
    opacity: 0.8;
    margin-left: 0.25rem;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .filter-toggle {
        display: block;
        text-align: center;
    }

    .filter-buttons {
        display: none;
        margin-top: 0.5rem;
    }

    .filter-buttons.show {
        display: flex;
    }

    .filter-section {
        text-align: center;
    }
}

/* Results Section */
.results-section {
    margin-bottom: 2rem;
}

.pavilion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.pavilion-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.category-badge {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.verified-badge {
    background: linear-gradient(45deg, #51cf66, #69db7c);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: help;
    transition: all 0.3s ease;
    position: relative;
}

.verified-badge:hover {
    background: linear-gradient(45deg, #40c057, #51cf66);
    transform: scale(1.05);
}

.verified-badge[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 1000;
    opacity: 1;
    pointer-events: none;
    margin-bottom: 0.5rem;
}

.verified-badge[data-tooltip]:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    margin-bottom: -5px;
}

.pavilion-name {
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
    color: #333;
    font-weight: 700;
}

.distance-info {
    font-size: 0.9rem;
    color: #667eea;
    font-weight: 500;
    background: rgba(102, 126, 234, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    margin-left: 0.5rem;
    position: relative;
    top: -3px;
}


.pavilion-country {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.dining-content {
    margin-bottom: 1rem;
}

.dining-content h4 {
    color: #444;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}


.description-content {
    margin-bottom: 1rem;
}

.description-content h4 {
    color: #444;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.description-content p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

.description-content.human p {
    color: #2c3e50;
    line-height: 1.6;
    font-weight: 400;
    margin-bottom: 1.2rem;
}

.shop-concept {
    color: #555;
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 0.5rem;
    margin-top: 0.3rem;
}

.link-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
    justify-content: center;
    padding-top: 1rem;
}

.link-btn {
    display: inline-block;
    padding: 0.6rem 1rem;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.link-btn:hover {
    transform: translateY(-2px);
}


.x-search-btn {
    background: linear-gradient(45deg, #2c3e50, #34495e);
    box-shadow: 0 3px 10px rgba(44, 62, 80, 0.3);
}

.x-search-btn:hover {
    box-shadow: 0 5px 15px rgba(44, 62, 80, 0.4);
    background: linear-gradient(45deg, #1a252f, #2c3e50);
}

.gourmet-search-btn {
    background: linear-gradient(45deg, #f39c12, #e67e22);
    box-shadow: 0 3px 10px rgba(243, 156, 18, 0.3);
}

.gourmet-search-btn:hover {
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.4);
    background: linear-gradient(45deg, #e67e22, #d35400);
}

.dining-details {
    margin-bottom: 1rem;
}

.dining-details p {
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
    color: #555;
}

.dining-details strong {
    color: #333;
}

.reservation-info {
    margin-top: 0.5rem;
}

.reservation-required {
    background: #ff6b6b;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.reservation-not-required {
    background: #51cf66;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}


.no-dining {
    background: #f1f3f4;
    padding: 0.8rem;
    border-radius: 8px;
    color: #666;
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 1rem;
}

.pavilion-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.info-label {
    font-size: 0.8rem;
    color: #888;
}

.info-value {
    font-size: 0.9rem;
    color: #333;
    font-weight: 600;
}

.price-range {
    background: #4ecdc4;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    background: #e9ecef;
    color: #495057;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Official Link Button */
.official-link {
    margin-top: 1rem;
    text-align: center;
}

.official-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
}

.official-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    background: linear-gradient(45deg, #5a6fd8, #6a42a0);
}

.no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.no-results p {
    font-size: 1rem;
    opacity: 0.8;
}


/* Footer */
footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    margin-top: 2rem;
    padding: 2rem 0;
}

.credits {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    text-align: center;
}

.credits p {
    color: #666;
    margin: 0;
}

.credits a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.credits a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Pavilion Image Styles */
.pavilion-image {
    margin: 0 0 1rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.pavilion-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.pavilion-image:hover img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .pavilion-image img {
        height: 150px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

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

    .filter-buttons {
        justify-content: center;
    }

    .filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .pavilion-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .tips ul {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    main {
        padding: 1rem 0.5rem;
    }

    header {
        padding: 1.5rem 0;
    }

    header h1 {
        font-size: 1.8rem;
    }

    .pavilion-card {
        padding: 1rem;
    }

    #searchInput {
        padding: 0.8rem 2.5rem 0.8rem 0.8rem;
        font-size: 1rem;
    }
}