/* Page with Author Template Styles */

/* Attractions Wrapper */
.plk-attractions-wrapper {
    margin: 50px 0;
}

/* Category Section */
.plk-category-section {
    margin-bottom: 70px;
    scroll-margin-top: 120px;
}

.plk-category-section h2 {
    color: #000000;
    border-bottom: 3px solid #000000;
    padding-bottom: 12px;
    margin-bottom: 30px;
    font-weight: 600;
}

.plk-category-description {
    margin-bottom: 30px;
    line-height: 1.6;
    color: #444;
    font-size: 1.1em;
}

/* Attractions Grid */
.plk-attractions-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* 1 Column Layout */
.plk-attractions-grid.columns-1 {
    grid-template-columns: 1fr;
}

/* 2 Column Layout */
.plk-attractions-grid.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* Tablet responsive for 2 columns */
@media (max-width: 1024px) and (min-width: 769px) {
    .plk-attractions-grid.columns-2 {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}

/* Attraction Card Link */
.attraction-card-link {
    text-decoration: none !important;
    color: inherit;
    display: block;
    cursor: pointer;
}

/* Attraction Card */
.attraction-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: all .3s;
    width: 100%;
}

/* Attraction Image */
.attraction-image {
    height: 260px;
    overflow: hidden;
}

.attraction-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
    display: block;
    border-radius: 10px;
}

/* Attraction Content */
.attraction-content {
    padding: 24px;
}

.attraction-content h3 {
    margin: 0 0 12px;
    font-weight: bold;
    font-size: 1.4em;
    color: #004D40;
}

.attraction-content h3 a {
    color: #004D40;
    text-decoration: none;
    font-weight: bold;
}

.attraction-title-link {
    color: #004D40;
    cursor: pointer;
    font-weight: bold;
}

/* Meta Paragraph */
.attraction-card .attraction-content p {
    color: #666666;
    font-weight: 600;
    margin: 8px 0 12px;
    font-size: 1em !important;
}

/* Description */
.attraction-description {
    line-height: 1.7;
    color: #444;
    margin-bottom: 16px;
}

/* Button */
.button {
    background: #004D40;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
}

.button:hover {
    background: #00695C;
    text-decoration: none;
    color: #fff;
}

/* Practical Guide Section */
.plk-practical-guide-section {
    margin: 50px 0;
}

/* Hover Effects */
.attraction-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 30px rgba(0,0,0,0.14);
    border: 1px solid #000000;
}

.attraction-card:hover img {
    transform: scale(1.05);
}

/* Responsive Grid */
@media (max-width: 768px) {
    .plk-attractions-grid,
    .plk-attractions-grid.columns-1,
    .plk-attractions-grid.columns-2 {
        grid-template-columns: 1fr;
    }
}

/* Article Layout Grid */
.article-layout-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
    margin-top: 20px;
}

.nav-sidebar {
    position: sticky;
    top: 83px;
    max-height: calc(100vh - 83px);
    height: fit-content;
    overflow: hidden; /* Prevent double scrollbars */
}

.content-main {
    /* default */
}

/* Unified Navigation */
.plk-unified-nav {
    background: #ffffff;
    color: #000000;
}

/* Reading Progress Bar */
.reading-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: #007bff;
    transition: width 0.3s ease;
    z-index: 1001;
}

.plk-unified-nav-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 15px;
    position: relative;
}

.plk-nav-title {
    font-weight: bold;
    font-size: 1.1em;
}

.plk-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    background-image: url('../images/dropdown-arrow.svg');
    background-size: 26px 26px;
    background-repeat: no-repeat;
    background-position: center;
    width: 26px;
    height: 26px;
    transition: transform 0.5s;
}

.plk-hamburger.open {
    transform: rotate(180deg);
}

.plk-nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: calc(100vh - 200px); /* Adjust based on your header/container height */
    overflow-x: hidden;
}

/* Optional: Hide scrollbar for cleaner look while keeping functionality */
.plk-nav-links::-webkit-scrollbar {
    width: 4px;
}

.plk-nav-links::-webkit-scrollbar-track {
    background: #d6d7d9;
    border-radius: 3px;
}

.plk-nav-links::-webkit-scrollbar-thumb {
    background: #bfc0c5;
    border-radius: 3px;
}

.plk-nav-links::-webkit-scrollbar-thumb:hover {
    background: #bfc0c5;
}

.plk-nav-links li a {
    color: #232323;
    text-decoration: none;
    padding: 5px 0px;
    border-radius: 4px;
    transition: background 0.3s;
}

.plk-nav-links li a:hover {
    color: #007bff;
}

.plk-nav-links li a:hover,
.plk-nav-links li.active a {
    background: rgba(255,255,255,0.2);
}

.plk-nav-links-jump .active a {
    color: #007bff;
}

/* Category dropdown styles */
.plk-nav-category {
    padding: 5px 4px;
    border-radius: 4px;
    transition: background 0.3s;
}

.plk-nav-category:hover {
    background: rgba(255,255,255,0.1);
}

.plk-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.plk-category-link {
    flex: 1;
}

.plk-category-link a {
    color: #232323;
    text-decoration: none;
    font-weight: 600;
}

.plk-category-link a:hover {
    color: #007bff;
}

.plk-nav-category.active .plk-category-link a {
    color: #007bff;
    font-weight: 600;
}

.plk-toggle-container {
    flex-shrink: 0;
}

.plk-toggle-arrow {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    user-select: none;
    min-width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-symbol {
    font-size: 1.8rem;
    color: #666;
    transition: transform 0.3s;
}


.plk-nav-subitems {
    display: none;
    list-style: none;
    padding-left: 20px;
    margin: 0;
}

.plk-nav-subitems.open {
    display: block;
}

@media (max-width: 768px) {
    .article-layout-grid {
        display: block;
    }
    .nav-sidebar {
        margin-bottom: 20px;
        position: sticky;
        top: 83px;
        z-index: 1000;
        overflow: visible;
        margin-left: -15px;
        margin-right: -15px;
    }
    .plk-unified-nav-container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    .plk-unified-nav-container {
        cursor: pointer;
    }
    .plk-nav-title {
        display: block;
    }
    .plk-hamburger {
        display: flex;
    }
    .plk-nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #ffffff;
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border-top: none;
        z-index: 1010;
        border-top: 1px solid #dadce0;
    }
    .plk-nav-links.open {
        max-height: 70vh; /* Limit mobile dropdown to 70% of viewport height */
        padding: 24px 16px;
        overflow-y: auto; /* Enable vertical scrolling when content overflows */
        overflow-x: hidden; /* Prevent horizontal scroll */
    }
    .plk-nav-links li {
        width: 100%;
    }
    .plk-nav-links li a {
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.2);
    }

    .plk-nav-links-jump {
        position: relative;
    }

    .plk-nav-links-jump::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 2px;
        background: #dadce0;
    }

    .plk-nav-links-jump.active::before {
        background: #007bff;
    }

    /* Custom scrollbar for mobile */
    .plk-nav-links.open::-webkit-scrollbar {
        width: 6px;
    }

    .plk-nav-links.open::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 3px;
    }

    .plk-nav-links.open::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 3px;
    }

    .plk-nav-links.open::-webkit-scrollbar-thumb:hover {
        background: #555;
    }
}

/* Sticky Navigation - kept for compatibility */
.plk-sticky-nav {
    position: fixed;
    top: 83px;
    left: 0;
    width: 100%;
    background: #ffffff;
    color: #000000;
    z-index: 1000;
    transition: transform 0.3s ease;
    transform: translateY(-100%);
}

.plk-sticky-nav.visible {
    transform: translateY(0);
}

/* Responsive Images */
.page-thumbnail,
.page-thumbnail img {
    width: 100%;
    height: auto !important;
    max-height: 80vh;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

.attraction-image,
.attraction-image img {
    width: 100%;
    height: auto !important;
    object-fit: cover;
    display: block;
    border-radius: 10px;
}

.attraction-wrapper {
    width: 100%;
    overflow: hidden;
}

/* Page Excerpt */
.entry-full-content .page-excerpt p {
    font-size: 1.1rem;
    color: #545454;
    margin-bottom: 0px;
    line-height: 1.6;
}

/* Excerpt Meta Row */
.excerpt-meta-row {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .excerpt-meta-row {
        flex-direction: column;
        gap: 10px;
    }
}

/* Table of Contents */
.plk-toc-wrapper {
    background: #f0f8ff;
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
}

.plk-toc-list {
    list-style: none;
    padding: 0;
}

.plk-toc-list li {
    margin: 10px 0;
    font-weight: bold;
}

.plk-toc-list li a {
    color: #006400;
    text-decoration: none;
}

.plk-toc-list li ul {
    list-style: none;
    padding-left: 20px;
    margin: 5px 0;
}

.plk-toc-list li ul li {
    margin: 5px 0;
    font-size: 0.9em;
    border-bottom: 1px solid #ddd;
    padding: 3px;
}

.plk-toc-list li ul li a {
    color: #228B22;
    text-decoration: none;
}

@media (max-width: 768px) {
    .plk-toc-wrapper {
        font-size: 0.9em;
    }
    .plk-toc-list ul {
        padding-left: 10px;
    }
}

/* Global Styles */
html {
    scroll-behavior: smooth;
}

.l-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1002;
    background-color: #fff;
}

.container.container-breadcrumb {
    margin-top: 83px;
}

.entry-header {
    margin-top: 5px;
}

/* Author Meta Layout */
.eeat-meta-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.eeat-author-meta-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.eeat-author-meta-link:hover {
    text-decoration: none;
}

.eeat-author-meta {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.eeat-author-info {
    display: flex;
    flex-direction: column;
}

.eeat-author-name strong {
    color: #174ea6;
}

.eeat-author-meta-link:hover strong {
  color: #1a73e8;
}

.eeat-author-role {
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
}

/* Share Button */
.eeat-share-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.eeat-share-button {
    background: #fff;
    color: #000000;
    border: 1px solid #ffffff;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background 0.3s;
}

.eeat-share-button:hover {
    color: #1a73e8;
}

button.eeat-share-button:hover img.eeat-share-icon {
    filter: brightness(0) saturate(100%) invert(18%) sepia(93%) saturate(1900%) hue-rotate(200deg) brightness(170%) contrast(100%);
}

.eeat-share-icon {
    width: 23px;
    height: 22px;
    flex-shrink: 0;
}

.eeat-share-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 140px;
    display: none;
    z-index: 1000;
}

.eeat-share-dropdown.open {
    display: block;
}

.eeat-share-option {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    transition: background 0.3s;
}

.eeat-share-option:hover {
    background: #f5f5f5;
}

.eeat-share-option:last-child {
    border-bottom: none;
}

@media (max-width: 768px) {
    .eeat-author-meta {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .l-header {
        height: 83px;
        z-index: 1002;
    }
    .share-text {
        display: none;
    }
}