/**
 * Location Page Specific Styles
 */

.location-page-main {
    padding: 20px 0 0; /* Removed 60px bottom padding */
}

/* Breadcrumbs */
.breadcrumbs {
    font-size: 16px;
    margin-top: 30px;
    margin-bottom: 10px; /* Added gap below the border */
    color: #666;
    border-bottom: 1px solid #eeeeee;
    padding-bottom: 10px;
}

.breadcrumbs a {
    color: #0000ee;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 5px;
    color: #999;
}

/* Page Heading */
.location-title-row {
    margin-bottom: 25px;
}

.location-title-row h1 {
    font-size: 19px;
    font-weight: bold;
    color: #000;
    margin: 0;
    display: inline-block;
    border-bottom: 1.5px solid #cfcfcf; /* Darker, text-width border */
    padding-bottom: 3px;
}

/* City View Specifics */
.city-title-section {
    text-align: center;
    margin: 20px 0 30px;
}

.city-title-section h1 {
    display: inline-block;
    font-size: 20px; /* Reduced slightly from 22px */
    font-weight: bold;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-decoration-color: #ccc; /* Lighter underline color */
    text-underline-offset: 8px;
    color: #000;
}

.category-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 0 auto 15px;
    max-width: 880px; /* Increased from 820px to give more space */
}

.category-row-centered {
    display: flex;
    justify-content: center;
    margin: 0 auto 40px;
    max-width: 880px; /* Aligned with the top boxes */
}

.category-box {
    border: 1px solid #d4d4d4;
    background: #fff;
    min-width: 0;
}

.category-box.centered-box {
    width: calc(33.33% - 13px); /* Match width of top boxes */
}

.category-header {
    background: #f1f1f1;
    border-bottom: 1px solid #d4d4d4;
    padding: 8px 12px;
    font-weight: bold;
    font-size: 18px; /* Increased from 15px */
}

.category-list {
    list-style: none;
    padding: 12px;
    margin: 0;
}

.category-list li {
    margin-bottom: 8px;
    font-size: 16px; /* Increased from 14px */
}

.category-list a {
    color: #0000ee;
    text-decoration: none;
}

.category-list a:hover {
    text-decoration: underline;
}

.category-list a.highlight-red {
    color: #c0392b; /* Reddish color for key categories */
    font-weight: bold;
}

.city-link:hover {
    text-decoration: underline;
}


/* Cities Grid */
.city-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* Increased from 5 to reduce column width */
    gap: 8px 12px;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    margin-left: 15px; /* Pushed to the right a little */
}

.city-link {
    color: #0000ee;
    text-decoration: none;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Info Section (Dynamic) */
.info-section {
    color: #333;
}

.info-section h3 {
    font-size: 18px;
    font-weight: bold;
    margin-top: 30px;
    margin-bottom: 12px;
    color: #000;
}

.info-section h3:first-child {
    margin-top: 0 !important;
}

.info-section p {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.info-section ul {
    list-style: none;
    padding: 0;
}

.info-section ul li::before {
    content: '\25AA'; 
    position: absolute;
    left: 0;
    color: #333;
    font-size: 20px; /* Matched to main index */
    top: -4px;
}

/* Safety Box UI */
.safety-box {
    background-color: #fffdec;
    border-left: 6px solid #ffcc00;
    padding: 20px 25px;
    margin: 35px 0;
    border-radius: 2px;
}

.safety-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 5px;
}

.safety-icon {
    color: #b59b1d;
    font-size: 24px;
    font-family: var(--font-family);
}

.safety-title {
    font-weight: bold;
    font-size: 17px;
    color: #444;
}

.safety-box p {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: 181818;
}

/* Guide List Styles */
.guide-list li {
    padding-left: 18px !important;
}

.guide-list li a {
    color: #0000ee !important;
    text-decoration: none;
}

.guide-list li a:hover {
    text-decoration: underline;
}

/* FAQ Section */
.faq-section {
    margin-top: 30px; 
    border-top: 1px solid #eeeeee;
    padding-top: 30px;
    margin-bottom: 0; /* Gap before footer removed completely */
}

.faq-section h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 25px;
}

.faq-item {
    margin-bottom: 25px;
}

.faq-item strong {
    display: block;
    font-size: 16px;
    color: #000;
    margin-bottom: 8px;
}

.faq-item p {
    font-size: 17px; /* Increased from 16px */
    margin: 0;
    color: #181818;
    display: inline; /* Ensure bold text inside doesn't break line if global rules exist */
}

.faq-item p strong {
    display: inline !important; /* Force inline to fix the breaking bug in screenshot */
}

/* Responsive Grid */
@media (max-width: 1080px) {
    .city-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 850px) {
    .city-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

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

@media (max-width: 850px) {
    .category-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .category-box.centered-box {
        width: 100%;
    }
}

@media (max-width: 550px) {
    .city-title-section h1 {
        font-size: 17px; /* Smaller font for mobile */
        text-decoration: none; /* No underline on smaller devices */
    }
    .category-grid-container {
        grid-template-columns: 1fr;
    }
    .category-row-centered {
        display: block;
    }
}
