/* --- CSS Variables & Reset --- */
:root {
    --primary: #ff5533;
    --primary-hover: #e04b2c;
    --text-main: #111827;
    --text-muted: #6b7280;
    --text-light: #9ca3af;
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --bg-dark: #111827;
    --border-light: #f3f4f6;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-xl: 0.75rem;
    --radius-full: 9999px;
    --font-sans: 'Inter', sans-serif;
}

/* Inter Font - Local */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/Inter-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/Inter-Bold.woff2') format('woff2');
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* --- Layout --- */
.min-h-screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.relative {
    position: relative;
}

.hidden {
    display: none;
}

/* --- Hero Section --- */
.hero {
    background-color: var(--bg-dark);
    color: white;
    padding: 5rem 1rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    opacity: 0.4;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 42rem;
    /* max-w-2xl */
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.025em;
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 3.75rem;
    }
}

.text-primary {
    color: var(--primary);
}

.hero p {
    font-size: 1.25rem;
    color: #d1d5db;
    /* gray-300 */
    margin-bottom: 2.5rem;
}

/* --- Search Input --- */
.search-wrapper {
    position: relative;
    margin-bottom: 2rem;
}

.search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    /* pl-12 */
    border-radius: var(--radius-xl);
    border: none;
    font-size: 1.125rem;
    color: var(--text-main);
    box-shadow: var(--shadow-lg);
    outline: none;
}

.search-input:focus {
    box-shadow: 0 0 0 4px rgba(255, 85, 51, 0.3);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    pointer-events: none;
}

/* --- Category Buttons --- */
.categories {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    padding-bottom: 1rem;
}

.btn-category {
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(4px);
}

.btn-category:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.btn-category.active {
    background-color: var(--primary);
    color: white;
    box-shadow: var(--shadow-lg);
    transform: scale(1.05);
}

/* --- Main Content --- */
.main-content {
    margin-top: -2.5rem;
    position: relative;
    z-index: 20;
    padding-bottom: 3rem;
}

/* --- Grid --- */
.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- Activity Card --- */
.card {
    background-color: var(--bg-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.card-image {
    position: relative;
    height: 12rem;
    overflow: hidden;
    background-color: #f3f4f6;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.card:hover .card-image img {
    transform: scale(1.1);
}

.badge {
    position: absolute;
    top: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(4px);
}

.badge-category {
    left: 0.75rem;
    background-color: rgba(255, 255, 255, 0.9);
    color: #374151;
}

.badge-provider {
    right: 0.75rem;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary);
}

.card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.rating {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.stars {
    color: #facc15;
    /* yellow-400 */
}

.stars-empty {
    color: #d1d5db;
}

.reviews {
    color: var(--text-muted);
    margin-left: 0.5rem;
    font-size: 0.75rem;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    line-height: 1.25;
    /* line-clamp-2 equivalent */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    margin-top: auto;
    padding-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border-light);
}

.price-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
}

.price-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
}

.btn-view {
    background-color: black;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s;
}

.btn-view:hover {
    background-color: #1f2937;
}

/* --- Loading & Empty States --- */
.loading-spinner {
    width: 3rem;
    height: 3rem;
    border: 2px solid var(--border-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.state-container {
    text-align: center;
    padding: 5rem 0;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

.btn-clear {
    margin-top: 1rem;
    color: var(--primary);
    background: none;
    border: none;
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
}

footer {
    background-color: white;
    border-top: 1px solid var(--border-light);
    padding: 2.5rem 0 1.5rem;
    margin-top: auto;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* --- Footer Legal Links (index2.html specific) --- */
.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.footer-legal-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-legal-links a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.footer-copy {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* --- Cookie Banner --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #1f2937;
    color: white;
    padding: 1.5rem;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    display: none;
}

.cookie-banner.show {
    display: block;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

@media (min-width: 768px) {
    .cookie-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

.cookie-text {
    flex: 1;
    font-size: 0.875rem;
    line-height: 1.5;
}

.cookie-text a {
    color: var(--primary);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.625rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.cookie-btn-accept {
    background-color: var(--primary);
    color: white;
}

.cookie-btn-accept:hover {
    background-color: var(--primary-hover);
}

.cookie-btn-reject {
    background-color: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn-reject:hover {
    background-color: rgba(255, 255, 255, 0.1);
}