/* ==========================================================================
   WATERHOLE DETAIL PAGES STYLESHEET
   Location: /css/waterholes.css
   ========================================================================== */

.detail-hero {
    background: linear-gradient(rgba(44, 62, 80, 0.45), rgba(44, 62, 80, 0.45)), var(--hero-bg, url('../images/olifantsbad.png'));
    background-size: cover;
    background-position: center;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    border-bottom: 5px solid var(--savannah-orange, #E47D22);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: high-quality;
    transform: translateZ(0);
}

.detail-container {
    max-width: 1200px;
    margin: -50px auto 40px;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.info-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.main-card {
    background: var(--white-pan, #ffffff);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.sidebar-card {
    background: var(--deep-bush, #2b3a28);
    color: white;
    padding: 30px;
    border-radius: 10px;
    height: fit-content;
}

.sidebar-card h3 {
    color: var(--savannah-orange, #E47D22);
    margin-top: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.95rem;
}

.data-table th, .data-table td {
    text-align: left;
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
}

.data-table th {
    background-color: var(--deep-bush, #2b3a28);
    color: white;
    font-weight: 600;
}

.data-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.gallery-item {
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.back-nav {
    margin-bottom: 20px;
}

.back-nav a {
    color: #FF7F27; 
    text-decoration: none; 
    font-weight: 600;
}

.back-nav a:hover {
    text-decoration: underline;
}

.card-map-preview {
    position: relative;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.card-map-preview:hover {
    transform: translateY(-2px);
}

.map-overlay-hint {
    position: absolute;
    bottom: 0;
    background: rgba(43, 58, 40, 0.85); 
    color: white;
    width: 100%;
    font-size: 0.75rem;
    padding: 6px 0;
    text-align: center;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.85);
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85%;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: high-quality;
    transform: translateZ(0);
}

.close-lightbox {
    position: absolute;
    top: 60px;
    right: 40px;
    color: white;
    font-size: 50px;
    cursor: pointer;
}

@media (max-width: 850px) {
    .info-grid { 
        display: flex; 
        flex-direction: column; 
    }
    .sidebar-card { 
        order: 1; 
        margin-bottom: 20px; 
    }
    .main-card { 
        order: 2; 
    }
    .detail-container { 
        margin-top: 20px; 
    }
}
/* ==========================================================================
   INFO & FEATURE PROMO BOXES
   ========================================================================== */
.feature-promo-box {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 22px;
    border-radius: 10px;
    margin: 30px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-promo-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.feature-promo-box img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    flex-shrink: 0;
}

.feature-promo-content {
    flex-grow: 1;
}

.feature-promo-content h4 {
    margin: 0 0 4px 0;
    font-size: 1.05rem;
    color: var(--deep-bush, #2b3a28);
}

.feature-promo-content p {
    margin: 0;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.4;
}

.feature-promo-btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: bold;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}

/* Route Planner Variant */
.promo-route {
    background-color: #fdf8f3;
    border-left: 5px solid var(--savannah-orange, #E47D22);
}

.promo-route .feature-promo-btn {
    background-color: var(--savannah-orange, #E47D22);
    color: white;
}

.promo-route .feature-promo-btn:hover {
    background-color: #c96715;
}

/* Picnic Spots Variant */
.promo-picnic {
    background-color: #f2f6f1;
    border-left: 5px solid var(--deep-bush, #2b3a28);
}

.promo-picnic .feature-promo-btn {
    background-color: var(--deep-bush, #2b3a28);
    color: white;
}

.promo-picnic .feature-promo-btn:hover {
    background-color: #3e523a;
}

@media (max-width: 600px) {
    .feature-promo-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .feature-promo-btn {
        align-self: flex-start;
    }
}
/* Wildlife Finder Variant */
.promo-wildlife {
    background-color: #faf7ed;
    border-left: 5px solid #d4a373;
}

.promo-wildlife .feature-promo-btn {
    background-color: #b78103;
    color: white;
}

.promo-wildlife .feature-promo-btn:hover {
    background-color: #8c6200;
}