:root {
    --bg-color: #0d1117;
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --accent-color: #58a6ff;
    --card-bg: rgba(22, 27, 34, 0.7);
    --border-color: rgba(48, 54, 61, 0.8);
    --hover-bg: rgba(56, 139, 253, 0.1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

.background-mesh {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(88, 166, 255, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(200, 100, 255, 0.05) 0%, transparent 40%);
    z-index: -1;
    pointer-events: none;
}

header {
    text-align: center;
    padding: 4rem 2rem 2rem;
}

.logo h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 600;
    background: linear-gradient(135deg, #e6edf3 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.logo p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    letter-spacing: 1px;
}

nav {
    margin-top: 2rem;
}

#state-filters {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

#state-filters li {
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

#state-filters li:hover,
#state-filters li.active {
    background: var(--hover-bg);
    border-color: var(--accent-color);
    color: var(--accent-color);
    box-shadow: 0 0 15px rgba(88, 166, 255, 0.2);
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.place-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, opacity 0.4s ease;
    opacity: 1;
}

.place-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(88, 166, 255, 0.1);
    border-color: rgba(88, 166, 255, 0.3);
}

.card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.place-card:hover .card-image img {
    transform: scale(1.08);
}

.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-state-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    z-index: 2;
}

.card-title {
    font-size: 1.5rem;
    font-family: 'Playfair Display', serif;
    margin-bottom: 0.8rem;
    color: #fff;
}

.card-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.card-note {
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid #ffcc00;
    padding: 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #ffd700;
    margin-bottom: 1.5rem;
    font-style: italic;
    line-height: 1.4;
}

.card-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
}

.btn-google {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #ea4335;
    color: #fff;
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn-google:hover {
    background: #d33828;
    transform: scale(1.05);
}

.btn-google svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

footer {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Styles for Sub-Pages / Hero */
.btn-back {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: var(--hover-bg);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.place-hero {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 3rem;
    display: flex;
    gap: 2rem;
    align-items: center;
    backdrop-filter: blur(10px);
}

.place-hero img {
    width: 400px;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
}

.hero-content {
    flex-grow: 1;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #fff;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.section-title {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .place-hero {
        flex-direction: column;
    }
    .place-hero img {
        width: 100%;
        height: auto;
    }
}
