/* ============================================
   DETAIL PAGE SPECIFIC STYLES
   ============================================ */

.detail-page {
    padding: 2rem 0 4rem;
    margin-top: 60px;
}

.back-link {
    display: inline-block;
    margin: 1.5rem 0;
    color: var(--primary);
    font-weight: 600;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--primary-dark);
    transform: translateX(-4px);
}

.back-link i {
    margin-right: 0.5rem;
}

/* Hero */
.detail-hero {
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 2rem 2rem;
    border-radius: 40px;
    margin-bottom: 2rem;
    text-align: left;
    color: #fff;
    overflow: hidden;
    min-height: 350px;
    align-items: left;
    justify-content: flex-start;
}

.detail-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--hero-bg);
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.detail-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.detail-hero * {
    position: relative;
    z-index: 2;
}

.detail-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 0.5rem;
    color: bisque;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.detail-hero p {
    font-size: 1.15rem;
    font-weight: 300;
    line-height: 1.7;
    max-width: 550px;
    margin: 0.5rem 0 0 0;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* Gallery */
.detail-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    margin: 2rem 0;
}

.detail-gallery img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.detail-gallery img:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-hover);
}

/* ============================================
   DESCRIPTION SECTION — now animated + card-based
   ============================================ */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(14px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.detail-description {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 28px;
    box-shadow: var(--shadow);
    margin: 2rem 0;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.detail-description h2 {
    color: var(--primary);
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    animation: fadeUp 0.6s ease both;
}

.detail-description h2::after {
    content: '';
    flex: 1;
    height: 2px;
    margin-left: 0.6rem;
    background: linear-gradient(90deg, var(--primary), transparent);
    border-radius: 2px;
    opacity: 0.5;
}

/* ---- About paragraphs: drop-cap intro + pull-quote second graf ---- */
.detail-description p {
    font-size: 1.1rem;
    color: var(--secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
    animation: fadeUp 0.7s ease both;
}

.detail-description p:nth-of-type(2) {
    animation-delay: 0.15s;
    font-style: italic;
    background: rgba(196, 69, 43, 0.06);
    border-radius: 16px;
    padding: 1.2rem 1.4rem 1.2rem 2.4rem;
    position: relative;
}

.detail-description p:nth-of-type(2)::before {
    content: '\201C';
    font-family: 'Playfair Display', serif;
    font-size: 2.6rem;
    color: var(--primary);
    opacity: 0.4;
    position: absolute;
    top: -0.1rem;
    left: 0.6rem;
    line-height: 1;
}

[data-theme="dark"] .detail-description p:nth-of-type(2) {
    background: rgba(255, 255, 255, 0.05);
}

/* ---- Tour Highlights: turned into a hoverable icon-card grid ---- */
.detail-description ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.detail-description ul:nth-of-type(1) {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.detail-description ul:nth-of-type(1) li {
    border-bottom: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 1.2rem 1.3rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    animation: popIn 0.6s ease both;
}

.detail-description ul:nth-of-type(1) li:nth-child(1) {
    animation-delay: 0.05s;
}

.detail-description ul:nth-of-type(1) li:nth-child(2) {
    animation-delay: 0.12s;
}

.detail-description ul:nth-of-type(1) li:nth-child(3) {
    animation-delay: 0.19s;
}

.detail-description ul:nth-of-type(1) li:nth-child(4) {
    animation-delay: 0.26s;
}

.detail-description ul:nth-of-type(1) li:nth-child(5) {
    animation-delay: 0.33s;
}

.detail-description ul:nth-of-type(1) li:nth-child(6) {
    animation-delay: 0.40s;
}

.detail-description ul:nth-of-type(1) li:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.detail-description ul:nth-of-type(1) li i {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(196, 69, 43, 0.12);
    color: var(--primary);
    font-size: 1.2rem;
    transition: transform 0.25s ease;
}

.detail-description ul:nth-of-type(1) li:hover i {
    transform: scale(1.12) rotate(-4deg);
}

/* ---- Itinerary: turned into a connected vertical timeline ---- */
.detail-description ul:nth-of-type(2) {
    position: relative;
    margin-left: 0.4rem;
    padding-left: 1.6rem;
    border-left: 2px solid var(--border-color);
}

.detail-description ul:nth-of-type(2) li {
    border-bottom: none;
    position: relative;
    padding: 0.6rem 0 0.6rem 0.4rem;
    animation: fadeUp 0.6s ease both;
}

.detail-description ul:nth-of-type(2) li:nth-child(1) {
    animation-delay: 0.05s;
}

.detail-description ul:nth-of-type(2) li:nth-child(2) {
    animation-delay: 0.15s;
}

.detail-description ul:nth-of-type(2) li:nth-child(3) {
    animation-delay: 0.25s;
}

.detail-description ul:nth-of-type(2) li:nth-child(4) {
    animation-delay: 0.35s;
}

.detail-description ul:nth-of-type(2) li::before {
    content: '';
    position: absolute;
    left: -1.84rem;
    top: 1.1rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 4px var(--card-bg);
}

.detail-description ul:nth-of-type(2) li i {
    color: var(--primary);
    width: 22px;
}

.detail-description ul li {
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.detail-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
    scroll-margin-top: 100px;
}

/* Dark mode overrides */
[data-theme="dark"] .detail-description {
    background: var(--card-bg);
}

[data-theme="dark"] .detail-description p {
    color: var(--secondary);
}

[data-theme="dark"] .detail-description ul li {
    border-bottom-color: var(--border-color);
}

/* Responsive */
@media (max-width: 850px) {
    .detail-gallery {
        grid-template-columns: 1fr 1fr;
    }

    .detail-hero h1 {
        font-size: 2.2rem;
    }

    .detail-description ul:nth-of-type(1) {
        grid-template-columns: 1fr;
    }

    .detail-description {
        padding: 1.8rem;
    }

    .detail-description h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 550px) {
    .detail-gallery {
        grid-template-columns: 1fr;
    }

    .detail-hero h1 {
        font-size: 1.8rem;
    }

    .detail-hero {
        padding: 3rem 1rem;
        min-height: 250px;
    }

    .detail-page {
        margin-top: 100px;
    }

    .detail-description h2 {
        font-size: 1.3rem;
    }
}