/* ===================================================================
   Revolution Design System
   =================================================================== */

/* 1. Global Styles & Variables */
/* =================================================================== */
:root {
    --rev-purple: #6a2c91;
    --rev-purple-dark: #4d0f80;
    --rev-text: #333;
    --rev-text-light: #666;
    --rev-border: #ddd;
    --rev-background: #f8f9fa;
    --rev-white: #fff;
    --rev-font-sans: 'Poppins', sans-serif;
    --rev-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    --rev-radius: 8px;
}

body.single, body.archive, body.home {
    background-color: var(--rev-background);
    font-family: var(--rev-font-sans);
    color: var(--rev-text);
}

.rev-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.rev-section {
    padding: 60px 0;
}

.rev-section-title {
    font-size: 2.25rem;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

/* 2. Header */
/* =================================================================== */
.rev-header {
    background-color: var(--rev-white);
    border-bottom: 1px solid var(--rev-border);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.rev-header .rev-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rev-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--rev-purple);
    text-decoration: none;
}

.rev-nav a {
    color: var(--rev-text);
    text-decoration: none;
    margin-left: 25px;
    font-weight: 500;
    transition: color 0.2s;
}

.rev-nav a:hover {
    color: var(--rev-purple);
}

.rev-nav-button {
    background-color: var(--rev-purple);
    color: var(--rev-white) !important;
    padding: 8px 16px;
    border-radius: var(--rev-radius);
}

.rev-nav-button:hover {
    background-color: var(--rev-purple-dark);
    color: var(--rev-white) !important;
}

.rev-burger {
    display: none; /* Hidden on desktop */
    flex-direction: column;
    justify-content: space-around;
    width: 2rem;
    height: 2rem;
    cursor: pointer;
}

/* 3. Homepage Hero & Search */
/* =================================================================== */
.rev-hero {
    background: linear-gradient(to right, var(--rev-purple), var(--rev-purple-dark));
    color: var(--rev-white);
    padding: 80px 0;
    text-align: center;
    font-size: 0.9rem;
}

.rev-hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.rev-hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.rev-search-form {
    display: flex;
    background: var(--rev-white);
    border-radius: var(--rev-radius);
    padding: 8px;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: var(--rev-shadow);
}

.rev-search-form input {
    border: none;
    padding: 12px;
    font-size: 1rem;
    flex-grow: 1;
    background: transparent;
}
.rev-search-form input:focus {
    outline: none;
}

.rev-search-form button {
    border: none;
    background-color: var(--rev-purple);
    color: var(--rev-white);
    padding: 0 25px;
    border-radius: var(--rev-radius);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
}

.rev-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.rev-category-card {
    background: var(--rev-white);
    padding: 20px;
    text-align: center;
    border-radius: var(--rev-radius);
    text-decoration: none;
    color: var(--rev-text);
    box-shadow: var(--rev-shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}
.rev-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.rev-category-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background-color: var(--rev-background);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rev-purple);
    font-weight: 700;
}
.rev-category-icon .icon-text {
    margin-bottom: 10px;
}

/* 4. Search Results Page (Map + List) */
/* =================================================================== */
.rev-search-page-container {
    display: flex;
    gap: 30px;
}

.rev-search-results {
    width: 50%;
    flex-shrink: 0;
}

.rev-map-container {
    width: 50%;
    position: sticky;
    top: 90px; /* Header height + margin */
    height: calc(100vh - 90px);
}

.rev-map-container #map {
    width: 100%;
    height: 100%;
    border-radius: var(--rev-radius);
}

.rev-org-card {
    display: flex;
    background: var(--rev-white);
    margin-bottom: 20px;
    border-radius: var(--rev-radius);
    box-shadow: var(--rev-shadow);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.rev-org-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.rev-card-img {
    width: 150px;
    height: 150px;
    object-fit: cover;
}

.rev-card-content {
    padding: 15px;
}
.rev-card-title {
    font-size: 1.25rem;
    margin: 0 0 5px;
}
.rev-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--rev-text-light);
    margin-bottom: 10px;
}
.rev-card-address {
    margin: 0;
}

.rev-results-count {
    color: var(--rev-text-light);
    margin-bottom: 20px;
}

.rev-no-results {
    background: var(--rev-background);
    padding: 30px;
    border-radius: var(--rev-radius);
    text-align: center;
    color: var(--rev-text-light);
}

/* 5. Organization Detail Page */
/* =================================================================== */
.rev-org-banner {
    height: 350px;
    background-size: cover;
    background-position: center;
    position: relative;
    color: var(--rev-white);
    display: flex;
    background: linear-gradient(to right, var(--rev-purple), var(--rev-purple-dark));
    align-items: flex-end;
}
.rev-org-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 50%);
}
.rev-org-banner .rev-container {
    position: relative;
    z-index: 2;
    padding-bottom: 30px;
}
.rev-org-title { font-size: 2.5rem; margin-bottom: 5px; }
.rev-org-meta { display: flex; align-items: center; gap: 10px; }

.rev-page-container { display: flex; gap: 30px; padding-top: 30px; }
.rev-main-content { width: 65%; }
.rev-sidebar { width: 35%; }
.rev-sticky-card { position: sticky; top: 90px; }
.rev-map-small { height: 250px; border-radius: var(--rev-radius); margin-bottom: 20px; background: var(--rev-border); }
.rev-contact-info { background: var(--rev-white); padding: 20px; border-radius: var(--rev-radius); box-shadow: var(--rev-shadow); }
.rev-button-primary { display: block; width: 100%; text-align: center; background: var(--rev-purple); color: var(--rev-white); padding: 15px; border-radius: var(--rev-radius); text-decoration: none; font-weight: 700; margin-top: 20px; }

/* Tabs */
.rev-tabs { border-bottom: 1px solid var(--rev-border); margin-bottom: 20px; }
.rev-tab-button { background: none; border: none; padding: 15px 15px; cursor: pointer; font-size: 1rem; border-bottom: 3px solid transparent; }
.rev-tab-button.active { border-bottom-color: var(--rev-purple); color: var(--rev-purple); font-weight: 700; }
.rev-tab-content { display: none; }
.rev-tab-content h3 { margin-top: 0; }

/* About Section & Tags */
.rev-about-section { margin-bottom: 30px; }
.rev-about-section p { color: var(--rev-text-light); line-height: 1.6; }
.rev-category-tags { margin-bottom: 30px; }
.rev-tag {
    display: inline-block;
    background-color: #eee;
    color: var(--rev-text-light);
    padding: 5px 12px;
    border-radius: 20px;
    margin: 0 5px 5px 0;
    font-size: 0.9rem;
}

/* Stars Rating */
.rev-stars { --star-size: 1.2rem; --star-color: #ccc; --star-background: var(--rev-purple); display: inline-block; font-size: var(--star-size); font-family: Times; line-height: 1; }
.rev-stars::before { content: "★★★★★"; letter-spacing: 3px; background: linear-gradient(90deg, var(--star-background) calc(var(--rating) / 5 * 100%), var(--star-color) calc(var(--rating) / 5 * 100%)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* Photo Grid */
.rev-photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rev-photo-grid img.rev-photo-thumbnail {
    width: 100%; height: 150px; object-fit: cover; border-radius: var(--rev-radius);
    cursor: pointer;
    transition: opacity 0.2s;
}
.rev-photo-grid img.rev-photo-thumbnail:hover { opacity: 0.8; }

/* Review Card */
.rev-review-card { background: var(--rev-white); padding: 20px; border-radius: var(--rev-radius); box-shadow: var(--rev-shadow); margin-bottom: 20px; }
.rev-review-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.rev-review-author { font-weight: 700; }
.rev-review-date { font-size: 0.9rem; color: var(--rev-text-light); margin-top: 10px; display: block; }

/* Homepage Organization Grid */
.rev-org-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.rev-org-card-home {
    background: var(--rev-white);
    border-radius: var(--rev-radius);
    box-shadow: var(--rev-shadow);
    overflow: hidden;
    text-decoration: none;
    color: var(--rev-text);
    transition: transform 0.2s, box-shadow 0.2s;
}
.rev-org-card-home:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.rev-org-card-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-image: linear-gradient(to top, #e6e9f0 0%, #eef1f5 100%);
}

.rev-org-card-content {
    padding: 20px;
}

.rev-org-card-content h3 {
    font-size: 1.1rem;
    margin: 0 0 5px;
    font-weight: 600;
}

.rev-org-card-content p {
    font-size: 0.9rem;
    color: var(--rev-text-light);
    margin: 0;
}

/* 6. Footer */
/* =================================================================== */
.rev-footer {
    background-color: var(--rev-purple-dark);
    color: rgba(255, 255, 255, 0.85);
    padding: 50px 0 0;
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.rev-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.rev-footer-col .rev-logo {
    color: var(--rev-white);
    margin-bottom: 15px;
    display: block;
}

.rev-footer-col h4 {
    color: var(--rev-white);
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.rev-footer-col a {
    display: block;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    margin-bottom: 10px;
}
.rev-footer-col a:hover { color: var(--rev-white); }

.rev-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* Generic Content Page (Legal, etc.) */
.rev-text-page h1 { font-size: 2.5rem; margin-bottom: 10px; }
.rev-text-page h2 { font-size: 1.75rem; margin-top: 40px; margin-bottom: 15px; border-bottom: 1px solid var(--rev-border); padding-bottom: 5px; }
.rev-text-page p, .rev-text-page li { line-height: 1.7; color: var(--rev-text-light); }
.rev-text-page ul { margin-left: 20px; }
.rev-page-title { font-size: 2.5rem; margin-bottom: 30px; }
.rev-breadcrumb { margin-bottom: 20px; color: var(--rev-text-light); }
.rev-breadcrumb a { color: var(--rev-purple); text-decoration: none; }

/* Simple Card Grid (for Cities) */
.rev-simple-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.rev-simple-card {
    background: var(--rev-white);
    padding: 20px;
    border-radius: var(--rev-radius);
    box-shadow: var(--rev-shadow);
    text-decoration: none;
    color: var(--rev-text);
    font-weight: 600;
    text-align: center;
    transition: all 0.2s;
}
.rev-simple-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    color: var(--rev-purple);
}

/* 7. Lightbox Modal */
/* =================================================================== */
.rev-lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.rev-lightbox-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.rev-lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}
.rev-lightbox-close:hover { color: #ccc; }

/* Responsive */
@media (max-width: 768px) {
    .rev-nav {
        display: none;
        position: fixed;
        top: 71px; /* Header height */
        left: 0;
        width: 100%;
        height: calc(100vh - 71px);
        background-color: var(--rev-white);
        flex-direction: column;
        align-items: center;
        padding-top: 50px;
    }
    .rev-nav.active {
        display: flex;
    }
    .rev-nav a {
        margin: 20px 0;
        font-size: 1.5rem;
    }
    .rev-burger {
        display: flex;
    }
    .rev-burger span {
        width: 2rem;
        height: 0.25rem;
        background: var(--rev-purple);
        border-radius: 10px;
        transition: all 0.3s linear;
    }
    .rev-burger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .rev-burger.active span:nth-child(2) {
        opacity: 0;
    }
    .rev-burger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .rev-search-page-container, .rev-page-container { flex-direction: column; }
    .rev-search-results, .rev-map-container, .rev-main-content, .rev-sidebar { width: 100%; }
    .rev-map-container { height: 300px; position: static; }
    .rev-hero-title { font-size: 2rem; }
    .rev-search-form { flex-direction: column; gap: 10px; }
    .rev-org-grid, .rev-simple-grid { grid-template-columns: 1fr; }
    .rev-footer-grid { grid-template-columns: 1fr; }
    .rev-category-grid { grid-template-columns: repeat(2, 1fr); }

    .rev-tabs {
        position: -webkit-sticky;
        position: sticky;
        top: 70px; /* Height of the sticky header */
        background: var(--rev-background);
        z-index: 950;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }
}

@media (max-width: 992px) {
    .rev-org-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Content Block for SEO Text */
.rev-content-block {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.rev-content-block p {
    color: var(--rev-text-light);
    line-height: 1.7;
} 