/* Custom styles for Explorer Gahan */

/* Hero section background with 20% opacity */
article#top.wrapper.style1 {
    position: relative !important;
    background-color: #f4f4f4 !important;
}

article#top.wrapper.style1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/static/images/bg-m1.jpg') no-repeat center center;
    background-size: cover;
    opacity: 0.2;
    z-index: 0;
}

article#top.wrapper.style1 > .container {
    position: relative;
    z-index: 1;
}

/* Darker font for description text */
article#top.wrapper.style1 p {
    color: #333 !important;
}

article#top.wrapper.style1 h1 {
    color: #222 !important;
}

/* Post content styling */
.post-content {
    font-size: 1.15em !important;
    color: #333 !important;
    line-height: 1.8 !important;
    text-align: left !important;
}

.post-content p {
    color: #333 !important;
    font-size: 1.15em !important;
    margin-bottom: 1em !important;
}

.post-content h3 {
    color: #222 !important;
    margin-bottom: 0.5em !important;
}

/* Remove bullets from details list */
.post-content ul {
    list-style: none !important;
    padding-left: 0 !important;
    margin-bottom: 1em !important;
}

.post-content ul li {
    padding: 0.3em 0 !important;
    border-bottom: 1px solid #eee;
}

.post-content ul li:last-child {
    border-bottom: none;
}

/* Photo Gallery styling */
.gallery-section .row {
    display: flex !important;
    flex-wrap: wrap !important;
    margin: 0 -0.5rem !important;
}

.gallery-section .col-4 {
    width: 50% !important;
    padding: 0.5rem !important;
    box-sizing: border-box !important;
}

.gallery-section .image.fit {
    margin: 0 !important;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.gallery-section .image.fit img {
    width: 100% !important;
    height: auto !important;
    max-height: 800px !important;
    object-fit: cover !important;
    display: block;
}

.gallery-section p {
    font-size: 0.9em;
    color: #666;
    margin-top: 0.5rem;
    text-align: center;
}

@media screen and (max-width: 736px) {
    .gallery-section .col-4 {
        width: 100% !important;
    }
}

/* Smaller buttons */
.button {
    padding: 0.5em 1.5em !important;
    font-size: 0.85em !important;
}

.button.large {
    padding: 0.6em 2em !important;
    font-size: 0.9em !important;
}

/* Filter section styling */
.filter-section {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 1rem !important;
    justify-content: center !important;
    margin-bottom: 1rem !important;
}

.filter-section strong {
    margin-right: 0.5rem !important;
    color: #333 !important;
}

.filter-section .button {
    margin: 0.2rem !important;
}

.filter-wrapper {
    text-align: center !important;
    padding: 2em !important;
}

.filter-wrapper + .wrapper,
article.wrapper.style2:has(.filter-wrapper) {
    padding: 2em 0 !important;
}

.filter-wrapper h4 {
    margin-bottom: 1rem !important;
}

.filter-wrapper p {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    margin: 0.5rem 0 !important;
}

/* Filter dropdowns */
.filter-dropdowns {
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 2.5rem !important;
    padding: 0.5em 2em !important;
    background: #fff !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08) !important;
}

.filter-group {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    white-space: nowrap !important;
}

.filter-group label {
    font-weight: 600 !important;
    color: #444 !important;
    font-size: 0.95em !important;
}

.filter-group select {
    padding: 0.6em 2em 0.6em 1em !important;
    font-size: 0.95em !important;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    background: #f9f9f9 !important;
    cursor: pointer !important;
    min-width: 160px !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75em center !important;
}

.filter-group select:hover {
    border-color: #aaa !important;
    background-color: #fff !important;
}

.filter-group select:focus {
    outline: none !important;
    border-color: #666 !important;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.1) !important;
}

.filter-wrapper h4 {
    margin-bottom: 1.5rem !important;
}

/* Mobile-friendly filters */
@media screen and (max-width: 980px) {
    .filter-dropdowns {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
        padding: 1.5em !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .filter-group {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.5rem !important;
        width: 100% !important;
    }

    .filter-group label {
        text-align: left !important;
    }

    .filter-group select {
        width: 100% !important;
        min-width: unset !important;
    }

    .filter-wrapper {
        padding: 1.5em 1em !important;
    }
}

/* Newsletter section */
.newsletter-section {
    text-align: center !important;
    padding: 2rem 0 !important;
}

.newsletter-section h3 {
    margin-bottom: 0.5rem !important;
}

.newsletter-section p {
    margin-bottom: 1.5rem !important;
    color: #666 !important;
}

.newsletter-form {
    max-width: 500px !important;
    margin: 0 auto !important;
}

.newsletter-input-group {
    display: flex !important;
    gap: 0.5rem !important;
    justify-content: center !important;
}

.newsletter-input-group input[type="email"] {
    flex: 1 !important;
    padding: 0.75em 1em !important;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    font-size: 1em !important;
    max-width: 300px !important;
}

.newsletter-message {
    margin-top: 1rem !important;
    font-size: 0.9em !important;
}

/* Mobile-friendly newsletter */
@media screen and (max-width: 736px) {
    .newsletter-input-group {
        flex-direction: column !important;
        align-items: center !important;
        gap: 1rem !important;
    }

    .newsletter-input-group input[type="email"] {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .newsletter-input-group .button {
        width: 100% !important;
    }

    .newsletter-form {
        padding: 0 1em !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* Share buttons */
.share-section {
    text-align: center !important;
    padding: 1.5rem 0 !important;
    margin-bottom: 1.5rem !important;
}

.share-section h4 {
    margin-bottom: 1rem !important;
}

.share-buttons {
    justify-content: center !important;
}

.share-buttons li a {
    font-size: 1.2em !important;
}

.share-buttons li a:hover {
    color: #333 !important;
}

/* YouTube Video Box */
.youtube-video-box {
    max-width: 480px !important;
    margin: 0 auto !important;
}

.youtube-thumbnail {
    position: relative !important;
    cursor: pointer !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.youtube-thumbnail:hover {
    transform: scale(1.02) !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2) !important;
}

.youtube-thumb-img {
    width: 100% !important;
    display: block !important;
}

.youtube-play-btn {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 70px !important;
    height: 70px !important;
    background: rgba(255, 0, 0, 0.9) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background 0.3s ease, transform 0.3s ease !important;
}

.youtube-thumbnail:hover .youtube-play-btn {
    background: rgba(255, 0, 0, 1) !important;
    transform: translate(-50%, -50%) scale(1.1) !important;
}

.youtube-play-btn .icon {
    color: #fff !important;
    font-size: 1.8em !important;
    margin-left: 5px !important;
}

.youtube-player {
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15) !important;
}

.youtube-player iframe {
    width: 100% !important;
    height: 270px !important;
    display: block !important;
}

@media screen and (max-width: 736px) {
    .youtube-video-box {
        max-width: 100% !important;
    }

    .youtube-play-btn {
        width: 60px !important;
        height: 60px !important;
    }

    .youtube-play-btn .icon {
        font-size: 1.5em !important;
    }

    .youtube-player iframe {
        height: 200px !important;
    }
}

/* Post detail info boxes - fixed height */
.box.style1 {
    height: 330px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

/* Adventures page post boxes - min height */
.wrapper.style3 .box.style2 {
    min-height: 640px !important;
    overflow: hidden !important;
}
