/* ============================================
   SCOPED STYLES FOR NEIGHBORHOOD PAGE ONLY
   All styles are prefixed with .neighborhood-page
   to prevent conflicts with other pages
   ============================================ */

/* Reset - Scoped */
.neighborhood-page * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Page Container */
.neighborhood-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background: linear-gradient(to bottom, #ffffff 0%, #f9fafb 50%, #ffffff 100%);
    min-height: 100vh;
}

/* ============================================
   REUSABLE HERO SECTION STYLES
   ============================================ */
.hero__leftaligned {
    position: relative;
    height: 500px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.hero__leftaligned::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.5) 50%, transparent 100%);
}

.hero__leftaligned .hero__content {
    position: relative;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.hero__leftaligned .hero__text {
    max-width: 700px;
    text-align: left;
}

.hero__leftaligned .hero__tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.hero__leftaligned .hero__title {
    font-size: 4rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero__leftaligned .hero__title--highlight {
    color: #fff;
}

.hero__leftaligned .hero__description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Default centered hero (when hero__leftaligned is NOT present) */
.hero__content {
    position: relative;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__text {
    max-width: 700px;
    text-align: center;
}

.hero__tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #eb146e;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.hero__title {
    font-size: 4rem;
    font-weight: 700;
    color: white;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero__title--highlight {
    color: #eb146e;
}

.hero__description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Neighborhood page specific hero styling */
.neighborhood-page__hero {
    background-image: url('./images/neighborhood-hero.jpg');
}

/* ============================================
   BUTTONS
   ============================================ */
.neighborhood-page__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.neighborhood-page__btn--primary {
    background: #eb146e;
    color: white;
}

.neighborhood-page__btn--primary:hover {
    background: #d81b60;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(233, 30, 99, 0.3);
}

.neighborhood-page__btn--secondary {
    background: white;
    color: #eb146e;
}

.neighborhood-page__btn--secondary:hover {
    background: #f9fafb;
}

.neighborhood-page__btn--outline {
    background: white;
    color: #1f2937;
    border: 1px solid #e5e7eb;
}

.neighborhood-page__btn--outline:hover {
    background: #f9fafb;
}

.neighborhood-page__btn--outline-white {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.neighborhood-page__btn--outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ============================================
   STATS SECTION
   ============================================ */
.neighborhood-page__stats {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 2rem 0;
}

.neighborhood-page__stats-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.neighborhood-page__stat-item {
    text-align: center;
}

.neighborhood-page__stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #eb146e;
    margin-bottom: 0.25rem;
}

.neighborhood-page__stat-label {
    font-size: 0.875rem;
    color: #6b7280;
}

/* ============================================
   MAIN CONTENT CONTAINER
   ============================================ */
.neighborhood-page__container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 4rem 2rem;
}

.neighborhood-page__section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.neighborhood-page__section-heading {
    font-size: 3rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.neighborhood-page__section-description {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 800px;
    margin: 0 auto;
}

/* ============================================
   TABS COMPONENT
   ============================================ */
.neighborhood-page__tabs {
    margin-bottom: 2rem;
}

.neighborhood-page__tabs-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 800px;
    margin: 0 auto 2rem;
    background: #f3f4f6;
    border-radius: 0.5rem;
    padding: 0.25rem;
    gap: 0.25rem;
}

.neighborhood-page__tab-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    border-radius: 0.375rem;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
}

.neighborhood-page__tab-button:hover {
    color: #1f2937;
}

.neighborhood-page__tab-button--active {
    background: white;
    color: #eb146e;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.neighborhood-page__tab-content {
    display: none;
}

.neighborhood-page__tab-content--active {
    display: block;
    animation: neighborhoodFadeIn 0.3s ease-in;
}

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

/* ============================================
   PLACES GRID & CARDS
   ============================================ */
.neighborhood-page__places-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.neighborhood-page__place-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.neighborhood-page__place-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.neighborhood-page__place-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 0.75rem;
}

.neighborhood-page__place-info {
    flex: 1;
}

.neighborhood-page__place-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.25rem;
    transition: color 0.3s;
}

.neighborhood-page__place-card:hover .neighborhood-page__place-name {
    color: #eb146e;
}

.neighborhood-page__place-type {
    font-size: 0.875rem;
    color: #6b7280;
}

.neighborhood-page__place-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: #fef3c7;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
}

.neighborhood-page__place-rating-icon {
    color: #fbbf24;
    font-size: 0.875rem;
}

.neighborhood-page__place-rating-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
}

.neighborhood-page__place-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid #f3f4f6;
}

.neighborhood-page__place-distance,
.neighborhood-page__place-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.neighborhood-page__place-distance {
    color: #eb146e;
    font-weight: 500;
}

.neighborhood-page__place-time {
    color: #6b7280;
}

/* ============================================
   MAP SECTION
   ============================================ */
.neighborhood-page__map-section {
    background: #f9fafb;
    padding: 4rem 0;
}

.neighborhood-page__map-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.neighborhood-page__map-container {
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.neighborhood-page__map-iframe {
    width: 100%;
    height: 600px;
    border: none;
}

.neighborhood-page__quick-search {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.neighborhood-page__quick-search-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.neighborhood-page__quick-search-icon {
    color: #eb146e;
    font-size: 1.5rem;
}

.neighborhood-page__quick-search-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.neighborhood-page__quick-search-description {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.neighborhood-page__category-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.neighborhood-page__category-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(249, 250, 251, 0.5);
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 500;
}

.neighborhood-page__category-icon {
    color: #eb146e;
    width: 1.25rem;
    transition: color 0.3s;
}

.neighborhood-page__category-arrow {
    margin-left: auto;
    opacity: 0;
    transition: opacity 0.3s;
}

.neighborhood-page__category-item:hover {
    background: #eb146e;
    color: white;
}

.neighborhood-page__category-item:hover .neighborhood-page__category-icon {
    color: white;
}

.neighborhood-page__category-item:hover .neighborhood-page__category-arrow {
    opacity: 1;
}

/* ============================================
   ADDRESS CARD
   ============================================ */
.neighborhood-page__address-card {
    max-width: var(--max-width);
    margin: 2rem auto 0;
    padding: 0 2rem;
}

.neighborhood-page__address-content {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.neighborhood-page__address-info {
    display: flex;
    gap: 1rem;
    align-items: start;
}

.neighborhood-page__address-icon-wrapper {
    background: rgba(233, 30, 99, 0.1);
    padding: 0.75rem;
    border-radius: 0.5rem;
}

.neighborhood-page__address-icon {
    color: #eb146e;
    font-size: 1.5rem;
}

.neighborhood-page__address-text {
    flex: 1;
}

.neighborhood-page__address-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.neighborhood-page__address-line {
    color: #6b7280;
}

.neighborhood-page__address-buttons {
    display: flex;
    gap: 0.75rem;
}

/* ============================================
   CTA SECTION
   ============================================ */
.neighborhood-page__cta-section {
    padding: 5rem 0;
}

.neighborhood-page__cta-container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 2rem;
}

.neighborhood-page__cta-card {
    position: relative;
    background: linear-gradient(to right, #eb146e, #d81b60);
    border-radius: 1rem;
    padding: 3rem;
    text-align: center;
    overflow: hidden;
}

.neighborhood-page__cta-title {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.neighborhood-page__cta-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.neighborhood-page__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */
@media (max-width: 1024px) {
    .neighborhood-page__map-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero__title,
    .hero__leftaligned .hero__title {
        font-size: 2.5rem;
    }

    .hero__description,
    .hero__leftaligned .hero__description {
        font-size: 1rem;
    }

    .neighborhood-page__section-heading {
        font-size: 2rem;
    }

    .neighborhood-page__tabs-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .neighborhood-page__tab-button span {
        display: none;
    }

    .neighborhood-page__places-grid {
        grid-template-columns: 1fr;
    }

    .neighborhood-page__cta-title {
        font-size: 2rem;
    }

    .neighborhood-page__address-content {
        flex-direction: column;
        text-align: center;
    }

    .neighborhood-page__address-info {
        flex-direction: column;
        align-items: center;
    }
}