#page {
    background-color: rgba(240, 245, 235, 0.98);
    background-image: repeating-linear-gradient(45deg, #ededed, #e9e9e9 15px, transparent 1px, transparent 10px);
}


.sidebar {
    display: none;
    width: 0px;
    max-width: 0px;
}

.site-header-menu {
    width: 100%;
}

header.site-header {
    width: 100%;
    align-content: top;
    text-align: center;
}

.header-center-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
}

#footer {
    align-content: center;
    text-align: center;
}

.site-title {
    width: 100%;
    height: 30px;
    padding-top: 0px;
    margin-bottom: 8px;
    align-content: center;
    text-align: center;
    font-family: Tahoma, Verdana, Helevetica, Geneva;
}

.site-content {
    width: 100%;
}

.main-navigation.menu-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    gap: 8px;
}

.main-navigation.menu-top ul {
    display: contents;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-navigation.menu-top li {
    display: inline-block;
}

.main-navigation.menu-top a {
    color: #0077cc;
    text-decoration: none;
    padding: 6px 12px;
    display: inline-block;
    white-space: nowrap;
}

.main-navigation.menu-top a:hover {
    text-decoration: underline;
}

.main-navigation {
    margin-bottom: 10px;
}



#primary {
    width: 100%;
}

.site-branding {
    width: 100%;
    height: 140px;
    max-height: 140px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.site-branding-container {
    display: flex; 
    align-items: center; 
    justify-content: center; 
    width: fit-content; 
    margin:0 auto;
}

.logo-container {
    flex-shrink: 0; 
    margin-right: 0px;
    margin-left: -15px;
}

.logo-image {
     height:75px; 
     width: 60px;
}

.slogan-container {
    display: flex; 
    flex-direction: column;
}

.site-description {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: 16px;
    line-height: 1.2;
    max-width: 260px;
    margin-top: 0px;
    margin-bottom: 5px;
    height: 40px;
    word-wrap: normal;
    color: #999;
}

.site-header-main {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 140px;
    width: 100%;
}

#div.global-search {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    text-align: center;
}

.search-form {
    display: flex;
    width: 100%;
    justify-content: center;
}

.search-field {
    flex: 1;
    min-width: 300px;
    max-width: 1000px;
    padding: 10px;
    font-size: 18px;
}

.search-submit {
    background-color: #222;
    color: white;
    border: none;
}

.header-image {
    height: 5px;
}

#masthead {
    height: 140px;
    align-content: top;
    vertical-align: top;
    max-height: 140px;
}

#menu-toggle {
    display: none;
}

.no-sidebar {
    margin: 0px;
}


.page {
    margin: 0px;
}

.entry-header {
    margin: 0px !important;
    padding: 0px;
}

.entry-title {
    display: none;
    font-size: 1.5em;
    margin-bottom: 10px;
    margin-top: 10px;
    padding: 0px;
    padding-bottom: 10px;
    text-align: center;
}

div.entry-content {
    align-content: center;
    align-items: center;
}

.category-icon {
    max-width: 80px !important;
    max-height: 80px !important;
}

.category-tag {
    display: inline-block;
    padding: 0.2em 1em;
    margin: 0.2em;
    font-size: 1em;
    color: #fff;
    background-color: #006b99;
    border-radius: 50px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-family: Arial, Helvetica, sans-serif;
}

.widget-area {
    display: inline-block;
    width: 100%;
    height: 100%;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: #444;
    color: #333;
    width: 100%;
}

/* City Profile Screen */
.container {
    width: 100%;
    max-width: 96%;
    margin: 0 auto;
    padding: 0px;
    align-content: center;
    text-align: left;
}

section.intro {
    text-align: center;
    margin-bottom: 10px;
    width: 100%;
}

.intro img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
}

.country-link {
    color: #0077cc;
    font-weight: normal;
    vertical-align: top;
    box-shadow: none !important;
    font-family: Montserrat, Helvetica Neue;
    letter-spacing: 0.5px;
    font-size: 13px;
    text-transform: uppercase;
}

.country-link:hover {
    text-decoration: underline;
    color: #0077cc;
    font-family: Montserrat, Helvetica Neue;
}

ul.point-notes {
    padding-left: 0px;
    text-align: left;
    padding: 0px;
}

.categories-section {
    margin-top: 0px;
}

.category {
    margin-bottom: 10px;
}

.category img {
    max-width: 90% !important;
    height: auto;
    border-radius: 8px;
    margin-bottom: 0px;
    padding: 5px 5px 5px 5px;
}

.subcategory {
    background: #fff;
    padding: 0px;
    border: 1px solid #eee;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.2s;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    width: 100%;
    margin: 0px;
    max-width: 200px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease;

}

.category-cell {
    background: #fff;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.2s;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    max-height: 250px;
}

img.subcatImage {
    width: auto;
    height: 100%;
    object-fit: cover;
    filter: saturate(50%) brightness(120%);
    transition: filter 0.3s ease;
    z-index: 1;
    position: relative;
    display: block;
    max-width: 200px;
}

img.subcatImage:hover {
    filter: saturate(100%) brightness(100%);
}

a.subcatLink {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none !important;
    color: #111;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bolder;
    font-size: 13px;
}

.subcategory:hover {
    transform: scale(1.03) translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.subcategory img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 0px;
}

.subcategory a {
    margin-top: 8px;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.categoryLabel {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bolder;
    font-size: 13px;
}

@media (max-width: 768px) {
    .subcategories {
        grid-template-columns: repeat(3, 1fr);
    }
}

img.cityImage {
    width: 80px;
    height: 80px;
}

img.catImage {
    width: 80px;
    height: 80px;
}

ol.city-list {
    padding-left: 20px;
    margin-bottom: 20px;
}

.city-list li {
    padding-bottom: 10px;
    text-align: left;
}

section.intro {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.intro-header {
    width: 100%;
    display: block;
    padding-left: 0;
    padding-right: 0;
    text-align: center;
    margin: 0 auto;
}

.cityImage {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
}

.city-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.city-text h1 {
    text-align: center;
    width: 100%;
    margin-bottom: 4px;
    padding-top: 4px;
}

.countryLinkDiv {
    text-align: center;
    width: 100%;
}

.population {
    margin: 4px 0 0;
    font-size: 1em;
}

.city-description {
    margin-top: 8px;
    text-align: center;
    margin-bottom: 5px;
    width: 100%;
}

.country-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    padding-bottom: 8px;
}

.city-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 4px;
    padding-bottom: 8px;
}

h1.city-name {
    margin-bottom: 0px;
    margin-top: 8px;
}

/* City Tags Styling */
.city-tags-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 6px 0;
    flex-wrap: wrap;
}

.city-tag-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    min-height: 44px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    border-radius: 22px;
    white-space: nowrap;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1;
}

.city-tag-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Mobile responsive for city tags */
@media (max-width: 600px) {
    .city-tags-container {
        gap: 8px;
        margin: 8px 0;
    }

    .city-tag-pill {
        padding: 0 14px;
        min-height: 40px;
        font-size: 13px;
    }
}

.country-images {
    height: 120px;
    display: inline-block;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
    margin-top: 8px;
}

.city-images {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
    max-width: 100%;
    overflow: visible;
}

.city-images img.city-image {
    max-width: 100%;
    height: auto;
    display: block;
    max-height: 120px;
    width: auto;
}

/* Remove underline from city image links */
.city-images a {
    text-decoration: none !important;
    border-bottom: none !important;
}

/* Tighten up city-header vertical spacing for mobile */
@media (max-width: 600px) {
    .city-header {
        gap: 4px !important;
        padding-bottom: 8px !important;
    }

    .city-header h1 {
        margin-bottom: 2px !important;
        margin-top: 0 !important;
        font-size: 1.1em !important;
    }

    .city-header .population {
        margin-top: 0 !important;
        margin-bottom: 2px !important;
        font-size: 1em !important;
    }

    .countryLinkDiv {
        margin-bottom: 0 !important;
    }

    .city-description {
        margin-top: 8px !important;
    }

    .city-text h1 {
        font-size: 1.1em !important;
    }
}

.country-image {
    height: 120px;
    width: auto;
    display: block;
    border-radius: 8px;
    filter: saturate(50%) brightness(120%);
    transition: filter 0.3s ease;
}

.country-image:hover {
    filter: saturate(100%) brightness(100%);
}

.city-image {
    height: 120px;
    width: auto;
    display: block;
    border-radius: 8px;
    filter: saturate(50%) brightness(120%);
    transition: filter 0.3s ease;
}

.city-image:hover {
    filter: saturate(100%) brightness(100%);
}

.country-title {
    margin: 0;
    font-size: 1.6em;
    line-height: 1.2;
    height: 60px;
}
 
.population-overlay {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    height: 25px;
    background-color: rgba(90, 90, 90, 0.5);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    pointer-events: none;
    z-index: 20;
    padding: 0 8px;
    margin-bottom: 10px;
}

.city-thumbnail {
    position: relative;
    display: inline-block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
}


/* Subcat Details Screen */
.destination-content {
    display: flex;
    align-items: flex-start;
    width: 100%;
}

.image-container {
    align-items: stretch;
    max-width: 200px;
    max-height: 200px;
    width: 100%;
    height: 100%;
    margin-bottom: 30px;
}

.image-container img {
    max-width: 200px;
    max-height: 200px;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Shrink images for mobile screens */
@media screen and (max-width: 768px) {
    .destination-content {
        flex-direction: column;
        align-items: center;
    }

    .image-container img {
        max-width: 100%;
        max-height: 100%;
        width: 100%;
        height: 100%;
    }
}

@media screen and (max-width: 480px) {
    .image-container img {
        width: 100%;
        height: 100%;
        max-height: 200px;
        max-width: 200px;
    }

    .city-image {
        height: 100px !important;
        width: 100px !important;
    }
}

.text-container {
    flex: 1;
    padding-left: 20px;
}

.cityIntro {
    width: 100%;
}

.cityLandmarkName {
    width: 50%;
}

h2.itemHeader {
    line-height: 1.2;
    font-size: 1.2em;
    margin: 0;
    padding: 0;
    padding-bottom: 5px;
    display: inline-block;
}

div.aboutLandmark {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 1.0em;
    line-height: 1.4;
    padding-left: 0px;
    text-align: left;
    font-weight: bold;
    padding-bottom: 5px;
    margin-bottom: 5px;
}

ul.considerations {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.2;
    padding-left: 20px;
}

li.considerationsLi {
    line-height: 1.5;
}

img.attractionImage {
    max-height: 200px;
    max-width: 200px;
    border-radius: 20px;
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.5);
    filter: saturate(50%) brightness(120%);
    transition: filter 0.3s ease;
}

img.citySubcatImage {
    width: 150px;
    height: 150px;
}

div.countryLinkDiv {}

/* Material Design Pagination Controls */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0rem 0;
    margin-top: 10px;
    padding: 0rem;
}

.pagination-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

.pagination-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.25rem;
    align-items: center;
}

.pagination-item {
    display: flex;
    align-items: center;
    padding-left: 2px;
    padding-right: 2px;
    border-radius: 25px;
}

.pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    height: 50px;
    width: 50px;
    text-decoration: none;
    color: #1976d2;
    background-color: #efefef;
    border: 1px solid;
    border-radius: 50%;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    user-select: none;
    font-size: 1em;
}

.pagination-link:hover {
    background-color: rgba(25, 118, 210, 0.08);
    text-decoration: none;
    color: #1565c0;
}

.pagination-link:focus {
    outline: 2px solid #1976d2;
    outline-offset: 2px;
}

.pagination-current {
    background-color: #1976d2;
    color: white;
    border-color: #1976d2;
    cursor: default;
}

.pagination-current:hover {
    background-color: #1976d2;
    color: white;
}

.pagination-disabled {
    color: #9e9e9e;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-disabled:hover {
    background-color: transparent;
    color: #9e9e9e;
}

.pagination-prev,
.pagination-next {
    border-radius: 50%;
    min-width: auto;
    height: 50px;
    font-size: 1em;
}

.pagination-ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    color: #757575;
    font-weight: 500;
    cursor: default;
    user-select: none;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .pagination-link {
        transition: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .pagination-link {
        border: 2px solid currentColor;
    }

    .pagination-current {
        background-color: #000;
        color: #fff;
        border-color: #000;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .pagination-link {
        color: #90caf9;
    }

    .pagination-link:hover {
        background-color: rgba(144, 202, 249, 0.08);
        color: #bbdefb;
    }

    .pagination-current {
        background-color: #1976d2;
        color: #fff;
    }

    .pagination-disabled {
        color: #616161;
    }

    .pagination-ellipsis {
        color: #9e9e9e;
    }
}

.banner-horizontal {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 5px 0;
    width: 100%;
}

.banner-horizontal img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

.user-feedback {
    text-align: center;
    width: 100%;
    margin: 10px 0;
}

#content-bottom-widgets {
    height: 90px;
}

.ad-inline-banner {
    grid-column: span 3;
    overflow: hidden;
    max-height: 183px;
}

.ad-inline-banner img {
    max-height: 183px;
    height: auto;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

.ad-top-banner,
.ad-bottom-banner,
.ad-center-banner {
    display: block;
    width: 100%;
    margin: 8px 0 8px 0;
    height: auto;
    max-height: 180px;
    text-align: center;
}

.ad-top-banner img,
.ad-bottom-banner img,
.ad-center-banner img {
    display: block;
    width: auto;
    height: auto;
    max-height: 180px;
    text-align: center;
}

.ad-center-banner-container {
    display: block;
    width: 100%;
    margin: 8px 0 16px 0;
    padding: 0;
    background: none;
    border: none;
    text-align: center;
}

.ad-center-banner-container .ad-center-banner {
    margin: 0 auto;
    max-width: 100%;
    display: block;
}

aside#secondary {
    display: none;
}

.user-reviews-title {
    margin-top: 15px;
    margin-bottom: 8px;
    font-size: 1.3em;
    line-height: 1.2;
}

.user-reviews-section {
    margin-top: 5px;
    margin-bottom: 15px;
}

.user-review {
    border-bottom: 1px solid #e7e7e7;
    padding: 10px 0;
    margin-bottom: 8px;
}

.user-review:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.star-rating {
    display: flex;
    align-items: center;
    margin-right: 12px;
}

.star-rating .stars {
    display: inline-flex;
    margin-right: 6px;
}

.rating-text {
    font-size: 14px;
    font-weight: 600;
    color: #0066c0;
    margin-right: 8px;
}

.review-date {
    font-size: 13px;
    color: #565959;
}

.review-text {
    font-size: 14px;
    line-height: 1.4;
    color: #0f1111;
    margin-top: 4px;
}

.review-verified {
    font-size: 12px;
    color: #007600;
    font-weight: 500;
    margin-left: 8px;
}

@media (max-width: 600px) {
    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .star-rating {
        margin-right: 0;
    }

    .review-text {
        font-size: 13px;
    }
}

/* ====================================
   IMAGE LIGHTBOX STYLES
   ==================================== */

.lightbox-trigger {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.lightbox-trigger:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.lightbox-trigger:hover::before {
    content: "🔍";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    z-index: 10;
    animation: fadeInZoom 0.2s ease;
}

@keyframes fadeInZoom {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.lightbox-overlay.show {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    transform: scale(0.1);
    transition: transform 0.2s ease;
    transform-origin: center;
}

.lightbox-overlay.show .lightbox-content {
    transform: scale(1);
}

.lightbox-image {
    width: 100%;
    height: auto;
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.lightbox-close {
    position: absolute;
    top: -20px;
    right: -20px;
    background: rgba(255,255,255,0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.lightbox-close:hover {
    background: rgba(255,255,255,1);
}

/* Mobile responsiveness for lightbox */
@media (max-width: 768px) {
    .lightbox-content {
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .lightbox-close {
        top: -20px;
        right: -20px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}

/* ====================================
   CATEGORY ACCORDION STYLES
   ==================================== */

/* Categories grid container */
.categories-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;  /* 3 per line on large screens */
    gap: 10px;
    margin-bottom: 20px;
}

.category-accordion {
    margin-bottom: 0;
    border-radius: 8px;
    overflow: hidden;
    /*box-shadow: 0 2px 4px rgba(0,0,0,0.1);*/
    transition: all 0.3s ease;
}

.category-header {
    display: flex;
    align-items: center;
    /*padding: 5px 20px;*/
    padding-right: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
    /*background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);*/
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid #dee2e6;
    user-select: none;
}

.category-header:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    transform: translateY(-1px);
}

.category-header.expanded {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
}

.category-header.expanded:hover {
    background: linear-gradient(135deg, #0056b3 0%, #003d82 100%);
}

.category-icon {
    width: 32px;
    height: 32px;
    margin-right: 8px;
    border-radius: 0px;
    object-fit: cover;
    max-width: 80px;
}

.categoryLabel {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    text-align: left;
}

.accordion-indicator {
    margin-left: 15px;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.category-header .expand-icon {
    display: inline;
}

.category-header .collapse-icon {
    display: none;
}

.category-header.expanded .expand-icon {
    display: none;
}

.category-header.expanded .collapse-icon {
    display: inline;
}

.subcategories-container {
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    background: #ffffff;
}

.subcategories-container.collapsed {
    max-height: 0;
    padding: 0 20px;
}

.subcategories-container.expanded {
    max-height: 2000px;
    padding: 20px;
}

/* When a category is expanded, it should span the full width */
.category-accordion.expanded {
    grid-column: 1 / -1;
}

.subcategories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
    align-items: start;
    flex-wrap: wrap;
    justify-content: center;
    margin: 10px;
    margin-bottom: 20px;
}

.subcategory:hover {
    transform: translateY(-2px);
}

.subcatLink {
    text-decoration: none;
    color: inherit;
    display: block;
}

.subcatImage {
    width: auto;
    height: auto;
    border-radius: 0px;
    margin-bottom: 0em;
    margin-top: 0em;
    /*box-shadow: 0 2px 8px rgba(0,0,0,0.1);*/
    transition: box-shadow 0.2s ease;
    max-width: 200px;
}

.subcatImage:hover {
    /*box-shadow: 0 4px 12px rgba(0,0,0,0.15);*/
}

.subcatName {
    text-align: center;
    font-size: 13px;
    /*font-weight: 500;*/
    color: #333;
    line-height: 1.3;
    font-family: Tahoma, Verdana, Helevetica, Geneva;
    font-weight: bold;
    font-style: normal;
    text-decoration: none !important;
    padding-bottom: 5px;
    padding-left: 5px;
    padding-right: 5px;
}

/* Medium screens (tablets) - 2 per line */
@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
}

/* Small screens (mobile) - 1 per line */
@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .category-header {
        padding-top: 2px;
        padding-bottom: 2px;
        padding-left: 8px;
        height: 55px;
    }
    
    .category-icon {
        width: 44px !important;
        height: 44px !important;
        margin-right: 6px;
    }
    
    .categoryLabel {
        font-size: 14px;
    }
    
    .subcategories {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
    
    .subcategories-container.expanded {
        padding: 15px;
    }
}

/* Inline subcategory styles */
.inline-subcategory {
    display: none;
    margin: 20px 0;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
}

.inline-subcategory-expanded {
    display: block !important;
    grid-column: 1 / -1;
    width: 100% !important;
    clear: both;
    float: none;
    position: relative;
    left: 0;
    right: 0;
    margin-left: 0;
    margin-right: 0;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

.subcategory-header {
    border-bottom: 1px solid #eee;
}

.subcategory-title {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: #333;
    padding-right: 40px; /* Make space for the close button */
}

.subcategory-description {
    margin: 0;
    color: #666;
    font-size: 16px;
}

.inline-subcategory-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    color: white;
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    padding: 0;
    background: #666666;
}

.inline-subcategory-close:hover {
    background: #d32f2f;
}

.inline-subcategory-close:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(244, 67, 54, 0.3);
}

/* ====================================
   NEIGHBORHOODS SECTION STYLES - MODERN CARD DECK
   ==================================== */
   .neighborhoods-section {
    margin: 40px 0;
    padding: 30px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    min-height: fit-content;
    overflow: visible;
}

.neighborhoods-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

.neighborhoods-title {
    margin-top: 15px;
    margin-bottom: 8px;
    font-size: 1.3em;
    line-height: 1.2;
}

.neighborhoods-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    font-weight: 500;
    margin: 0;
}

.card-deck-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    overflow: visible;
}

@media (max-width: 768px) {
    .card-deck-container {
        gap: 0;
        padding: 0;
        position: relative;
    }
    
    .deck-nav-btn {
        position: relative;
        z-index: 10;
        margin: 0 -10px;
    }
}

@media (max-width: 480px) {
    .card-deck-container {
        gap: 0;
        padding: 0;
        position: relative;
    }
    
    .deck-nav-btn {
        position: relative;
        z-index: 10;
        margin: 0 -5px;
    }
}

.card-deck {
    position: relative;
    min-height: 850px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    flex: 1;
    overflow: visible;
}

.neighborhood-card {
    position: absolute;
    width: 100%;
    max-width: 700px;
    background: white;
    border-radius: 25px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 8px 16px rgba(0, 0, 0, 0.06);
    padding: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    height: auto;
}

.neighborhood-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    z-index: 1;
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 21px 21px 14px;
    position: relative;
    overflow: hidden;
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
}

.card-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
}

.neighborhood-name {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0 0 5px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.neighborhood-summary {
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.4;
    opacity: 0.95;
    position: relative;
    z-index: 2;
}

.card-content {
    padding: 7px;
    background: white;
    border-bottom-left-radius: 25px;
    border-bottom-right-radius: 25px;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 14px;
    background: var(--accent-color);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    transition: transform 0.2s ease;
}

.info-item:hover {
    transform: translateY(-2px);
}

.info-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.info-content {
    flex: 1;
}

.info-content label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.info-content span {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
    line-height: 1.4;
}

.walkability-high {
    color: #059669;
    font-weight: 600;
}

.walkability-moderate {
    color: #d97706;
    font-weight: 600;
}

.walkability-low {
    color: #dc2626;
    font-weight: 600;
}

.neighborhood-attractions {
    margin-bottom: 25px;
    padding: 18px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.neighborhood-attractions h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 15px 0;
}

.neighborhood-attractions ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.neighborhood-attractions li {
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
    line-height: 1.5;
}

.neighborhood-attractions li:last-child {
    border-bottom: none;
}

.neighborhood-attractions strong {
    color: var(--secondary-color);
    font-weight: 600;
}

.neighborhood-unique {
    padding: 18px;
    background: linear-gradient(135deg, var(--accent-color), rgba(255,255,255,0.8));
    border-radius: 12px;
    border: 1px solid var(--primary-color);
}

.neighborhood-unique h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 15px 0;
}

.neighborhood-unique p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
}

.deck-controls {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 10;
}

.deck-nav-btn {
    background: linear-gradient(135deg, #3B82F6, #1E40AF);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    top: 40%;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
    font-size: 1.2rem;
}

.deck-nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.deck-nav-btn:hover::before {
    left: 100%;
}

.deck-nav-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}


.deck-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.deck-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #3B82F6;
    background: white;
    padding: 12px 20px;
    border-radius: 25px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    border: 2px solid #E0E7FF;
}

.current-card {
    color: #3B82F6;
    font-weight: 800;
}

.total-cards {
    color: #64748b;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .neighborhoods-title {
        font-size: 2rem;
    }
    
    .card-deck {
        min-height: 750px;
        padding: 0 10px;
    }
    
    .neighborhood-card {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }
    
    .card-header {
        padding: 8px 11px 6px;
    }
    
    .neighborhood-name {
        font-size: 1.8rem;
    }
    
    .card-content {
        padding: 7px;
    }
    
    .info-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .info-item {
        padding: 6px;
    }
    
    .neighborhood-attractions {
        padding: 6px;
    }
    
    .neighborhood-unique {
        padding: 6px;
    }
    
    .deck-controls {
        gap: 20px;
        margin-top: 30px;
    }
    
    .deck-nav-btn {
        width: 45px;
        height: 45px;
        position: absolute;
        z-index: 100;
    }
    
    .deck-nav-btn.prev-btn {
        left: 10px;
    }
    
    .deck-nav-btn.next-btn {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .neighborhoods-section {
        margin: 30px 0;
        padding: 20px 0;
    }
    
    .neighborhoods-title {
        font-size: 1.8rem;
    }
    
    .card-deck {
        min-height: 800px;
        padding: 0 10px;
    }
    
    .neighborhood-card {
        width: 90%;
        max-width: 90%;
        margin: 0;
    }
    
    .neighborhood-name {
        font-size: 1.5rem;
    }
    
    .neighborhood-summary {
        font-size: 1rem;
    }
    
    .card-header {
        padding: 7px 8px 4px;
    }
    
    .card-content {
        padding: 6px;
    }
    
    .info-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
    
    .info-item {
        padding: 4px;
    }
    
    .neighborhood-attractions {
        padding: 4px;
    }
    
    .neighborhood-unique {
        padding: 4px;
    }
    
    .deck-controls {
        gap: 15px;
    }
    
    .deck-nav-btn {
        width: 40px;
        height: 40px;
        position: absolute;
        z-index: 100;
    }
    
    .deck-nav-btn.prev-btn {
        left: 10px;
    }
    
    .deck-nav-btn.next-btn {
        right: 10px;
    }
    
    .deck-indicator {
        font-size: 1rem;
        padding: 10px 15px;
    }
}

/* Animation for card transitions */
.neighborhood-card {
    animation: cardEntrance 0.8s ease-out;
}

@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Hover effects for cards */
.neighborhood-card:hover {
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 12px 24px rgba(0, 0, 0, 0.1);
}

/* Accessibility improvements */
.deck-nav-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .neighborhood-card {
        border: 2px solid var(--primary-color);
    }
    
    .info-item {
        border: 2px solid var(--primary-color);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .neighborhood-card,
    .deck-nav-btn,
    .info-item {
        transition: none;
    }
    
    .card-header::before {
        animation: none;
    }
}