/* ============================================
   GRAVEBATHROOMS.COM — "Neon Necropolis" Theme
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Creepster&family=Crimson+Text:ital,wght@0,400;0,600;0,700;1,400&family=Cinzel:wght@400;700&display=swap');

:root {
    /* Core palette */
    --bg-deep: #07060b;
    --bg-surface: #0f0e17;
    --bg-card: rgba(28, 25, 50, 0.92);
    --bg-card-solid: #1c1932;

    /* Neon accents */
    --neon-green: #39ff14;
    --neon-pink: #ff006e;
    --neon-blue: #00e5ff;
    --neon-purple: #bf5af2;
    --gold: #ffd700;

    /* Text */
    --text-primary: #e8e6e3;
    --text-muted: #8a8898;
    --text-dim: #55536a;

    /* Fonts */
    --font-display: 'Creepster', cursive;
    --font-heading: 'Cinzel', serif;
    --font-body: 'Crimson Text', serif;

    /* Glow intensities */
    --glow-sm: 0 0 7px;
    --glow-md: 0 0 15px;
    --glow-lg: 0 0 30px;
    --glow-xl: 0 0 60px;
}

/* ---- Reset & Base ---- */

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    background: var(--bg-deep);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1.05rem;
    margin: 0;
    padding: 0;
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ---- Atmospheric Background ---- */

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 80%, rgba(57, 255, 20, 0.04) 0%, transparent 70%),
        radial-gradient(ellipse 60% 40% at 80% 20%, rgba(255, 0, 110, 0.035) 0%, transparent 70%),
        radial-gradient(ellipse 50% 60% at 50% 50%, rgba(0, 229, 255, 0.02) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Noise grain overlay */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    pointer-events: none;
    z-index: 1;
}

/* Fog drift animation — applied via body::before so it works on ALL pages */
@keyframes fogDrift {
    0%   { transform: translateX(-10%) translateY(0); opacity: 0.4; }
    50%  { transform: translateX(10%) translateY(-5%); opacity: 0.6; }
    100% { transform: translateX(-10%) translateY(0); opacity: 0.4; }
}

body::before {
    animation: fogDrift 25s ease-in-out infinite;
}

.fog-layer {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 120% 30% at 30% 90%, rgba(57, 255, 20, 0.04), transparent),
        radial-gradient(ellipse 100% 20% at 70% 95%, rgba(191, 90, 242, 0.03), transparent);
    animation: fogDrift 25s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

/* ---- Typography ---- */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 {
    font-family: var(--font-display);
    text-transform: none;
    letter-spacing: 4px;
}

h2 {
    font-size: 1.6rem;
    color: var(--neon-green);
    text-shadow:
        var(--glow-sm) rgba(57, 255, 20, 0.5),
        var(--glow-md) rgba(57, 255, 20, 0.25);
}

h3 {
    font-size: 1.25rem;
    color: var(--neon-blue);
}

p {
    margin-bottom: 1rem;
}

strong {
    color: var(--text-primary);
    font-weight: 700;
}

/* ---- Links ---- */

a {
    color: var(--neon-green);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

a:hover {
    color: #fff;
    text-shadow: var(--glow-sm) rgba(57, 255, 20, 0.6);
    text-decoration: none;
}

/* ---- Layout ---- */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

/* ---- Header ---- */

header {
    text-align: center;
    padding: 5rem 0 4rem;
    position: relative;
    border-bottom: 1px solid rgba(57, 255, 20, 0.15);
    margin-bottom: 3rem;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        var(--neon-green),
        var(--neon-pink),
        var(--neon-green),
        transparent);
    opacity: 0.6;
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 80px;
    background: radial-gradient(ellipse at bottom, rgba(57, 255, 20, 0.08), transparent 70%);
    pointer-events: none;
}

header h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin: 0 0 0.5rem;
    color: var(--neon-green);
    text-shadow:
        var(--glow-sm) rgba(57, 255, 20, 0.7),
        var(--glow-md) rgba(57, 255, 20, 0.4),
        var(--glow-lg) rgba(57, 255, 20, 0.2),
        var(--glow-xl) rgba(57, 255, 20, 0.1);
    animation: neonFlicker 4s ease-in-out infinite;
}

@keyframes neonFlicker {
    0%, 100% { opacity: 1; }
    92%      { opacity: 1; }
    93%      { opacity: 0.8; }
    94%      { opacity: 1; }
    96%      { opacity: 0.9; }
    97%      { opacity: 1; }
}

header p {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 1.25rem;
    color: var(--neon-pink);
    letter-spacing: 1px;
    text-shadow: var(--glow-sm) rgba(255, 0, 110, 0.3);
    opacity: 0.85;
}

/* ---- Floating Emoji ---- */

.header-emoji {
    font-size: 4rem;
    display: inline-block;
    animation: ghostFloat 6s ease-in-out infinite;
    margin-right: 0.5rem;
    vertical-align: middle;
    filter: drop-shadow(0 0 12px rgba(57, 255, 20, 0.4));
}

@keyframes ghostFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25%      { transform: translateY(-8px) rotate(-2deg); }
    75%      { transform: translateY(4px) rotate(1deg); }
}

/* ---- Search Bar ---- */

.search-bar {
    display: flex;
    gap: 0;
    max-width: 600px;
    margin: 2rem auto 0;
    position: relative;
}

input[type="text"],
header input[type="text"] {
    padding: 1rem 1.5rem;
    width: 100%;
    border: 1px solid rgba(57, 255, 20, 0.25);
    border-right: none;
    background: rgba(15, 14, 23, 0.9);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    border-radius: 12px 0 0 12px;
    outline: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

input[type="text"]:focus {
    border-color: var(--neon-green);
    box-shadow:
        inset 0 0 15px rgba(57, 255, 20, 0.05),
        0 0 20px rgba(57, 255, 20, 0.15);
}

input[type="text"] {
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.05);
}

input[type="text"]::placeholder {
    color: var(--text-dim);
    font-style: italic;
}

/* ---- Buttons ---- */

.btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 1px solid var(--neon-green);
    background: transparent;
    color: var(--neon-green);
    cursor: pointer;
    border-radius: 0 12px 12px 0;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--neon-green), var(--neon-blue));
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: -1;
}

.btn:hover {
    color: var(--bg-deep);
    border-color: var(--neon-green);
    text-shadow: none;
    box-shadow:
        var(--glow-sm) rgba(57, 255, 20, 0.4),
        var(--glow-md) rgba(57, 255, 20, 0.2);
    transform: translateY(-2px);
    text-decoration: none;
}

.btn:hover::before {
    opacity: 1;
}

/* Standalone button (not in search bar) */
a.btn,
.bathroom-card .btn,
.educational-section .btn {
    border-radius: 12px;
    margin-top: 1rem;
}

/* ---- Cards Grid ---- */

.bathroom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

/* ---- Cards ---- */

.bathroom-card {
    background: linear-gradient(145deg, #1e1b3a, #171430);
    border: 1px solid rgba(57, 255, 20, 0.3);
    padding: 1.75rem;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    box-shadow:
        0 4px 30px rgba(0, 0, 0, 0.6),
        0 0 25px rgba(57, 255, 20, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.bathroom-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(
        135deg,
        rgba(57, 255, 20, 0.2),
        transparent 40%,
        transparent 60%,
        rgba(255, 0, 110, 0.15)
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    transition: all 0.4s ease;
}

.bathroom-card:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: rgba(57, 255, 20, 0.3);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(57, 255, 20, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.bathroom-card:hover::before {
    background: linear-gradient(
        135deg,
        rgba(57, 255, 20, 0.5),
        rgba(0, 229, 255, 0.2) 40%,
        transparent 60%,
        rgba(255, 0, 110, 0.35)
    );
}

.bathroom-card h3 {
    margin-top: 0;
    font-size: 1.4rem;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.bathroom-card:hover h3 {
    color: var(--neon-green);
    text-shadow: var(--glow-sm) rgba(57, 255, 20, 0.3);
}

.bathroom-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1);
    margin-bottom: 1rem;
    border-radius: 10px;
    transition: filter 0.4s ease;
}

.bathroom-card:hover img {
    filter: grayscale(60%) contrast(1.1);
}

/* Image placeholder styling */
.bathroom-card > div:first-child,
.image-placeholder {
    border-radius: 10px;
    border: 1px solid rgba(57, 255, 20, 0.08);
    position: relative;
    overflow: hidden;
}

.bathroom-card > div:first-child::after,
.image-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(57, 255, 20, 0.03),
        transparent 50%,
        rgba(255, 0, 110, 0.02)
    );
    pointer-events: none;
}

/* ---- Ratings ---- */

.rating {
    color: var(--gold);
    font-size: 1.2rem;
    text-shadow: var(--glow-sm) rgba(255, 215, 0, 0.4);
    letter-spacing: 2px;
}

/* ---- Educational Section (detail pages) ---- */

.educational-section {
    background: linear-gradient(135deg, rgba(18, 16, 30, 0.9), rgba(25, 20, 40, 0.8));
    padding: 2.5rem;
    border-radius: 16px;
    margin-top: 3rem;
    border: 1px solid rgba(255, 0, 110, 0.15);
    position: relative;
    backdrop-filter: blur(10px);
}

.educational-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        var(--neon-pink),
        var(--neon-purple),
        var(--neon-blue));
    border-radius: 16px 16px 0 0;
}

.educational-section h3 {
    color: var(--neon-pink);
    text-shadow: var(--glow-sm) rgba(255, 0, 110, 0.3);
    border-bottom: 1px solid rgba(255, 0, 110, 0.15);
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
}

/* ---- Facility Details Card (detail pages) ---- */

.bathroom-card p {
    margin-bottom: 0.6rem;
}

/* ---- Disclaimer ---- */

.disclaimer-content {
    background: var(--bg-card);
    padding: 3rem;
    border: 1px solid rgba(255, 0, 110, 0.2);
    max-width: 800px;
    margin: 4rem auto;
    text-align: center;
    border-radius: 16px;
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    position: relative;
}

.disclaimer-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        var(--neon-pink),
        var(--gold),
        var(--neon-pink));
    border-radius: 16px 16px 0 0;
}

/* ---- Footer ---- */

footer {
    text-align: center;
    padding: 3rem 2rem;
    margin-top: 5rem;
    border-top: 1px solid rgba(57, 255, 20, 0.1);
    font-size: 0.9rem;
    color: var(--text-dim);
    position: relative;
    z-index: 2;
}

footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(57, 255, 20, 0.3),
        rgba(255, 0, 110, 0.2),
        transparent);
}

footer a {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--neon-green);
}

footer p {
    margin: 0.3rem 0;
}

/* ---- Scrollbar ---- */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
    background: rgba(57, 255, 20, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(57, 255, 20, 0.4);
}

/* ---- Selection ---- */

::selection {
    background: rgba(57, 255, 20, 0.25);
    color: #fff;
}

/* ---- Responsive ---- */

@media (max-width: 768px) {
    header {
        padding: 3rem 0 2.5rem;
    }

    header h1 {
        font-size: 2.2rem;
    }

    .container {
        padding: 1.25rem;
    }

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

    .header-emoji {
        font-size: 2.5rem;
    }

    input[type="text"],
    header input[type="text"] {
        font-size: 0.9rem;
        padding: 0.8rem 1rem;
    }

    .educational-section {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }

    .bathroom-card {
        padding: 1.25rem;
    }
}

/* ---- Page load stagger animation ---- */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

header {
    animation: fadeInUp 0.6s ease-out;
}

.bathroom-grid .bathroom-card:nth-child(1) { animation: fadeInUp 0.5s ease-out 0.1s both; }
.bathroom-grid .bathroom-card:nth-child(2) { animation: fadeInUp 0.5s ease-out 0.2s both; }
.bathroom-grid .bathroom-card:nth-child(3) { animation: fadeInUp 0.5s ease-out 0.3s both; }
.bathroom-grid .bathroom-card:nth-child(4) { animation: fadeInUp 0.5s ease-out 0.4s both; }
.bathroom-grid .bathroom-card:nth-child(5) { animation: fadeInUp 0.5s ease-out 0.5s both; }
.bathroom-grid .bathroom-card:nth-child(6) { animation: fadeInUp 0.5s ease-out 0.6s both; }

.educational-section {
    animation: fadeInUp 0.5s ease-out 0.3s both;
}

/* ---- Emoji icon (detail pages) ---- */

.emoji-icon {
    font-size: 1.4rem;
    vertical-align: middle;
    margin-right: 0.4rem;
    filter: drop-shadow(0 0 4px rgba(57, 255, 20, 0.3));
}

/* ---- Category tags ---- */

.category-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 20px;
    border: 1px solid;
    margin-bottom: 0.75rem;
}

.category-tag.serial-killer {
    color: var(--neon-pink);
    border-color: rgba(255, 0, 110, 0.3);
    background: rgba(255, 0, 110, 0.08);
}

.category-tag.dictator {
    color: #ff4444;
    border-color: rgba(255, 68, 68, 0.3);
    background: rgba(255, 68, 68, 0.08);
}

.category-tag.organized-crime {
    color: var(--gold);
    border-color: rgba(255, 215, 0, 0.3);
    background: rgba(255, 215, 0, 0.08);
}

.category-tag.war-criminal {
    color: #ff6b35;
    border-color: rgba(255, 107, 53, 0.3);
    background: rgba(255, 107, 53, 0.08);
}

.category-tag.cult-leader {
    color: var(--neon-purple);
    border-color: rgba(191, 90, 242, 0.3);
    background: rgba(191, 90, 242, 0.08);
}

.category-tag.mass-murderer {
    color: var(--neon-blue);
    border-color: rgba(0, 229, 255, 0.3);
    background: rgba(0, 229, 255, 0.08);
}

.category-tag.robber-baron {
    color: #50fa7b;
    border-color: rgba(80, 250, 123, 0.3);
    background: rgba(80, 250, 123, 0.08);
}

.category-tag.sex-offender {
    color: #ff9500;
    border-color: rgba(255, 149, 0, 0.3);
    background: rgba(255, 149, 0, 0.08);
}

.category-tag.notorious-abuser {
    color: #ff375f;
    border-color: rgba(255, 55, 95, 0.3);
    background: rgba(255, 55, 95, 0.08);
}

.category-tag.historical-tyrant {
    color: #ac8e68;
    border-color: rgba(172, 142, 104, 0.3);
    background: rgba(172, 142, 104, 0.08);
}

/* ---- Titlebar (sticky nav) ---- */

.titlebar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(7, 6, 11, 0.92);
    border-bottom: 1px solid rgba(57, 255, 20, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.titlebar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.6rem 2rem;
}

.titlebar-logo {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--neon-green);
    text-shadow: var(--glow-sm) rgba(57, 255, 20, 0.5);
    white-space: nowrap;
    text-decoration: none;
    flex-shrink: 0;
}

.titlebar-logo:hover {
    color: #fff;
    text-shadow: var(--glow-md) rgba(57, 255, 20, 0.6);
}

.titlebar-search {
    flex: 1;
    max-width: 400px;
    margin: 0 auto;
}

.titlebar-search input[type="text"] {
    width: 100%;
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
    border-radius: 20px;
    border: 1px solid rgba(57, 255, 20, 0.2);
    background: rgba(15, 14, 23, 0.8);
    color: var(--text-primary);
    font-family: var(--font-body);
    outline: none;
    transition: all 0.3s ease;
}

.titlebar-search input[type="text"]:focus {
    border-color: var(--neon-green);
    box-shadow: 0 0 12px rgba(57, 255, 20, 0.15);
}

.titlebar-link {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.3s ease;
}

.titlebar-link:hover {
    color: var(--neon-green);
    text-shadow: var(--glow-sm) rgba(57, 255, 20, 0.4);
}

@media (max-width: 768px) {
    .titlebar-inner {
        padding: 0.5rem 1rem;
        gap: 0.6rem;
    }

    .titlebar-logo {
        font-size: 1rem;
    }

    .titlebar-search input[type="text"] {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .titlebar-link {
        display: none;
    }
}

/* ---- Directory page ---- */

.directory-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-bottom: 2rem;
}

.directory-search {
    flex: 1;
    min-width: 200px;
    max-width: 400px;
}

.directory-search input[type="text"] {
    width: 100%;
    padding: 0.7rem 1.2rem;
    border-radius: 12px;
    border: 1px solid rgba(57, 255, 20, 0.2);
    background: rgba(15, 14, 23, 0.8);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}

.directory-search input[type="text"]:focus {
    border-color: var(--neon-green);
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.15);
}

.directory-sort {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-shrink: 0;
}

.directory-sort label {
    color: var(--text-dim);
}

.sort-btn {
    padding: 0.3rem 0.8rem;
    border: 1px solid rgba(57, 255, 20, 0.2);
    border-radius: 20px;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.65rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sort-btn:hover {
    border-color: rgba(57, 255, 20, 0.4);
    color: var(--text-primary);
}

.sort-btn.active {
    border-color: var(--neon-green);
    color: var(--neon-green);
    background: rgba(57, 255, 20, 0.08);
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.filter-pill {
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.filter-pill:hover,
.filter-pill.active {
    opacity: 1;
    transform: scale(1.05);
}

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

.directory-card {
    background: linear-gradient(145deg, #1e1b3a, #171430);
    border: 1px solid rgba(57, 255, 20, 0.15);
    padding: 1.25rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    color: var(--text-primary);
}

.directory-card:hover {
    border-color: rgba(57, 255, 20, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(57, 255, 20, 0.05);
    text-shadow: none;
}

.directory-card h3 {
    font-size: 1.1rem;
    margin: 0.5rem 0 0.3rem;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.directory-card:hover h3 {
    color: var(--neon-green);
}

.directory-card .card-years {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    letter-spacing: 1px;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
}

.directory-card .card-location {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.directory-card .card-tagline {
    font-style: italic;
    font-size: 0.9rem;
    color: var(--neon-pink);
    text-shadow: var(--glow-sm) rgba(255, 0, 110, 0.2);
    margin: 0;
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: var(--text-dim);
    font-style: italic;
    grid-column: 1 / -1;
}

@media (max-width: 768px) {
    .directory-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .directory-search {
        max-width: none;
    }

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