/**
 * attr-details.css — Destination Detail Page
 * aurelio travels | attr-details.html
 *
 * ⚠️  All values reference main.css CSS variables.
 *     No local :root block. No hardcoded hex/rgb.
 *     Compact premium layout — no bulky oversized sections.
 */

/* =============================================
 * BREADCRUMB
 * ============================================= */

.attr-breadcrumb {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-primary);
    padding: 0.7rem 0;
}

.attr-breadcrumb .breadcrumb-item a {
    color: var(--color-sapphire-lighter);
    font-weight: var(--font-weight-medium);
    text-decoration: none;
    transition: color 0.2s;
}

.attr-breadcrumb .breadcrumb-item a:hover { color: var(--color-gold); }

.attr-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: var(--color-gold); }

.attr-breadcrumb .breadcrumb-item.active { color: var(--color-text-muted); }

/* =============================================
 * LOADING / ERROR STATES
 * ============================================= */

.adl-loading {
    min-height: 40vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    gap: 1rem;
}

.adl-spinner {
    width: 2.8rem;
    height: 2.8rem;
    border-width: 0.22rem;
    color: var(--color-gold);
}

.adl-loading-text {
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    margin: 0;
}

.adl-error {
    min-height: 40vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    text-align: center;
    padding: 3rem 1rem;
    gap: 0.75rem;
}

.adl-error-icon  { font-size: 2.5rem; color: var(--color-gold); }
.adl-error-title { font-size: 1.5rem; font-weight: var(--font-weight-bold); color: var(--color-text-primary); margin: 0; }
.adl-error-text  { color: var(--color-text-secondary); margin: 0; }

/* =============================================
 * HERO
 * ============================================= */

.adl-hero {
    position: relative;
    height: 72vh;
    min-height: 520px;
    max-height: 820px;
    overflow: hidden;
}

.adl-hero-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1);
    transition: transform 9s ease;
    filter: brightness(0.88);
    z-index: 1;
}

.adl-hero:hover .adl-hero-image { transform: scale(1.04); }

.adl-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        var(--color-dark-90) 0%,
        var(--color-dark-70) 45%,
        var(--color-dark-30) 100%
    );
    z-index: 2;
}

.adl-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 5rem 0 3rem;
    z-index: 3;
}

/* Category badge */
.adl-category-badge {
    display: inline-block;
    background: var(--gradient-gold);
    color: var(--color-navy-deepest);
    font-size: var(--text-xs);
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 0.45rem 1.2rem;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-gold);
    margin-bottom: 0.9rem;
}

/* Hero title — gold gradient */
.adl-hero-title {
    font-family: var(--font-display);
    font-weight: var(--font-weight-extrabold);
    font-size: clamp(2rem, 5vw, 3.8rem);
    line-height: 1.1;
    letter-spacing: -0.5px;
    margin-bottom: 0.7rem;
    background: var(--gradient-text-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: adlSlideUp 1s ease both;
}

.adl-hero-location {
    color: var(--color-white-80);
    font-size: 1rem;
    margin-bottom: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: adlSlideUp 1.1s ease both;
}

.adl-hero-location i { color: var(--color-gold); }

/* Quick-nav pills */
.adl-hero-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    animation: adlSlideUp 1.2s ease both;
}

.adl-nav-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    background: var(--color-white-10);
    color: var(--color-white-90);
    font-size: var(--text-xs);
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    border: 1px solid var(--color-white-20);
    backdrop-filter: blur(8px);
    transition: var(--transition-elegant);
}

.adl-nav-pill:hover {
    background: var(--gradient-gold);
    color: var(--color-navy-deepest);
    border-color: var(--color-gold);
    box-shadow: var(--shadow-gold-sm);
    transform: translateY(-2px);
}

/* =============================================
 * SECTIONS
 * ============================================= */

.adl-section {
    padding: 3.5rem 0;
    background: var(--bg-primary);
}

.adl-section-alt {
    background: var(--bg-secondary);
}

.adl-section-header {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.6rem 1rem;
    margin-bottom: 2rem;
}

.adl-section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--color-gold-bg);
    border: 1px solid var(--border-gold);
    border-radius: 50%;
    color: var(--color-gold);
    font-size: 0.85rem;
    flex-shrink: 0;
    margin-top: 4px;
    transition: transform 0.3s ease;
}

.adl-section-header:hover .adl-section-icon { transform: rotate(15deg); }

.adl-section-title {
    font-family: var(--font-display);
    font-weight: var(--font-weight-bold);
    font-size: 1.6rem;
    color: var(--color-text-primary);
    margin: 0;
    position: relative;
    padding-bottom: 0.5rem;
}

.adl-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient-gold);
    border-radius: var(--radius-full);
    transition: width 0.4s ease;
}

.adl-section-header:hover .adl-section-title::after { width: 100%; }

.adl-section-sub {
    width: 100%;
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    margin: -0.8rem 0 0 3.1rem;
}

/* =============================================
 * OVERVIEW — DESCRIPTION
 * ============================================= */

.adl-description {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
}

.adl-description p:first-of-type::first-letter {
    font-size: 3.2rem;
    line-height: 0.75;
    font-weight: var(--font-weight-extrabold);
    float: left;
    padding-right: 0.75rem;
    padding-top: 0.15rem;
    color: var(--color-gold);
}

/* Quick facts strip */
.adl-facts-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.adl-fact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: 0.55rem 1rem;
    flex: 1 1 160px;
}

.adl-fact i {
    color: var(--color-gold);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.adl-fact-label {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 0.3rem;
}

.adl-fact-value {
    font-size: var(--text-sm);
    color: var(--color-text-primary);
    font-weight: var(--font-weight-medium);
}

/* =============================================
 * SIDEBAR CARDS
 * ============================================= */

.adl-sidebar-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition-elegant);
}

.adl-sidebar-card:hover {
    border-color: var(--border-gold);
    box-shadow: var(--shadow-card);
}

.adl-sidebar-card-header {
    padding: 0.85rem 1.2rem;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-primary);
    color: var(--color-text-primary);
    font-weight: var(--font-weight-semibold);
    font-size: var(--text-sm);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.adl-sidebar-card-header i { color: var(--color-gold); }

.adl-book-header {
    background: var(--gradient-sapphire);
    border-bottom: none;
    color: var(--color-white);
}

.adl-book-header i { color: var(--color-gold-light); }

.adl-sidebar-card-body {
    padding: 1rem 1.2rem;
}

.adl-sidebar-location {
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    margin: 0;
}

.adl-book-text {
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    margin-bottom: 0.75rem;
}

/* Tips list in sidebar */
.adl-tips-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.9rem 1.2rem;
}

.adl-tip-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.adl-tip-row > i {
    color: var(--color-gold);
    font-size: 0.85rem;
    margin-top: 3px;
    flex-shrink: 0;
    width: 14px;
}

.adl-tip-row > div strong {
    display: block;
    color: var(--color-text-primary);
    font-size: var(--text-xs);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 2px;
}

.adl-tip-row > div p {
    color: var(--color-text-secondary);
    font-size: var(--text-xs);
    margin: 0;
    line-height: 1.5;
}

/* =============================================
 * ITEM CARDS (See / Do)
 * ============================================= */

.adl-item-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    padding: 1.2rem 1.1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    height: 100%;
    transition: var(--transition-elegant);
    position: relative;
    overflow: hidden;
}

/* Gold left-edge reveal */
.adl-item-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0;
    width: 3px;
    height: 0;
    background: var(--gradient-gold);
    transition: height 0.4s ease;
    border-radius: var(--radius-full);
}

.adl-item-card:hover::before { height: 100%; }

.adl-item-card:hover {
    border-color: var(--border-gold);
    box-shadow: var(--shadow-card);
    transform: translateY(-4px);
}

.adl-item-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: var(--color-gold-bg);
    border: 1px solid var(--border-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gold);
    font-size: 0.9rem;
    transition: var(--transition-elegant);
}

.adl-item-card:hover .adl-item-icon {
    background: var(--gradient-gold);
    color: var(--color-navy-deepest);
    box-shadow: var(--shadow-gold-sm);
}

.adl-item-body { flex: 1; min-width: 0; }

.adl-item-title {
    font-family: var(--font-display);
    font-weight: var(--font-weight-semibold);
    font-size: 0.95rem;
    color: var(--color-text-primary);
    margin: 0 0 0.3rem;
    transition: color 0.3s ease;
}

.adl-item-card:hover .adl-item-title { color: var(--color-gold); }

.adl-item-text {
    color: var(--color-text-muted);
    font-size: var(--text-xs);
    margin: 0;
    line-height: 1.55;
}

/* =============================================
 * TRAIL CARDS
 * ============================================= */

.adl-trail-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    padding: 1.2rem 1.2rem 1rem;
    height: 100%;
    transition: var(--transition-elegant);
    position: relative;
    overflow: hidden;
}

.adl-trail-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.adl-trail-card:hover::after { transform: scaleX(1); transform-origin: left; }

.adl-trail-card:hover {
    border-color: var(--border-gold);
    box-shadow: var(--shadow-card);
    transform: translateY(-4px);
}

.adl-trail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
}

.adl-trail-name {
    font-family: var(--font-display);
    font-weight: var(--font-weight-semibold);
    font-size: 0.95rem;
    color: var(--color-text-primary);
}

/* Difficulty badges */
.adl-trail-badge {
    font-size: 0.7rem;
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.25rem 0.7rem;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.adl-badge-easy        { background: var(--color-success-light); color: var(--color-success); }
.adl-badge-moderate    { background: var(--color-warning-light);  color: var(--color-warning-dark); }
.adl-badge-challenging { background: var(--color-error-light);    color: var(--color-error); }

.adl-trail-meta {
    display: flex;
    gap: 1rem;
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.adl-trail-meta i { color: var(--color-gold); margin-right: 3px; }

.adl-trail-desc {
    color: var(--color-text-secondary);
    font-size: var(--text-xs);
    margin: 0;
    line-height: 1.5;
}

/* =============================================
 * MAP
 * ============================================= */

.adl-map-wrapper {
    height: 420px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border-primary);
    box-shadow: var(--shadow-card);
}

/* Leaflet dark layer adjustments */
.adl-map-wrapper .leaflet-container {
    background: var(--bg-tertiary);
    font-family: var(--font-body);
}

/* Dark-theme tile filter — inverts OSM light tiles to match dark UI */
.adl-map-wrapper .leaflet-tile-pane {
    filter: invert(1) hue-rotate(180deg) brightness(0.85) saturate(0.7);
}

/* Re-invert the gold marker and popup so they stay correct colour */
.adl-map-wrapper .adl-map-marker,
.adl-map-wrapper .leaflet-popup {
    filter: invert(1) hue-rotate(180deg);
}

/* Gold custom marker */
.adl-map-marker {
    background: transparent;
    border: none;
}

.adl-map-marker i {
    font-size: 2rem;
    color: var(--color-gold);
    filter: drop-shadow(0 3px 6px var(--color-gold-glow));
}

.adl-map-fallback {
    height: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    color: var(--color-text-muted);
    gap: 0.75rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-primary);
}

.adl-map-fallback i { font-size: 2.5rem; color: var(--color-gold); }

/* =============================================
 * NEARBY DESTINATIONS
 * ============================================= */

.adl-nearby-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition-elegant);
    height: 100%;
}

.adl-nearby-card:hover {
    border-color: var(--border-gold);
    box-shadow: var(--shadow-card);
    transform: translateY(-5px);
}

.adl-nearby-img-wrap {
    height: 160px;
    overflow: hidden;
}

.adl-nearby-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    filter: brightness(0.88);
}

.adl-nearby-card:hover .adl-nearby-img-wrap img {
    transform: scale(1.07);
    filter: brightness(1);
}

.adl-nearby-body {
    padding: 0.9rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.adl-nearby-title {
    font-family: var(--font-display);
    font-weight: var(--font-weight-semibold);
    font-size: 0.95rem;
    color: var(--color-text-primary);
    margin: 0;
    transition: color 0.3s ease;
}

.adl-nearby-card:hover .adl-nearby-title { color: var(--color-gold); }

/* =============================================
 * TOUR PACKAGE CARDS
 * ============================================= */

.adl-pkg-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition-elegant);
    height: 100%;
}

.adl-pkg-card:hover {
    border-color: var(--border-gold);
    box-shadow: var(--shadow-card);
    transform: translateY(-5px);
}

.adl-pkg-img-wrap {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.adl-pkg-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.4s ease;
    filter: brightness(0.85);
}

.adl-pkg-card:hover .adl-pkg-img-wrap img {
    transform: scale(1.07);
    filter: brightness(1);
}

.adl-pkg-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--gradient-gold);
    color: var(--color-navy-deepest);
    font-size: 0.7rem;
    font-weight: var(--font-weight-bold);
    padding: 0.25rem 0.7rem;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-gold-sm);
}

.adl-pkg-body {
    padding: 1rem 1.1rem;
    border-top: 1px solid var(--border-primary);
}

.adl-pkg-title {
    font-family: var(--font-display);
    font-weight: var(--font-weight-semibold);
    font-size: 0.95rem;
    color: var(--color-text-primary);
    margin-bottom: 0.35rem;
    transition: color 0.3s ease;
}

.adl-pkg-card:hover .adl-pkg-title { color: var(--color-gold); }

.adl-pkg-text {
    color: var(--color-text-secondary);
    font-size: var(--text-xs);
    margin-bottom: 0.7rem;
    line-height: 1.55;
}

/* =============================================
 * CTA SECTION
 * ============================================= */

.adl-cta {
    background: var(--gradient-hero);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.adl-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 60% 40%, var(--color-sapphire-glow-sm) 0%, transparent 65%);
    pointer-events: none;
}

.adl-cta .container { position: relative; z-index: 1; }

.adl-cta-title {
    font-family: var(--font-display);
    font-weight: var(--font-weight-extrabold);
    font-size: clamp(1.5rem, 3vw, 2.4rem);
    margin-bottom: 0.75rem;
    background: linear-gradient(to right, var(--color-white), var(--color-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.adl-cta-sub {
    color: var(--color-text-secondary);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.adl-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.8rem 2.2rem;
    background: var(--gradient-gold);
    color: var(--color-navy-deepest);
    font-weight: var(--font-weight-bold);
    border-radius: var(--radius-full);
    text-decoration: none;
    font-size: 0.95rem;
    border: 2px solid var(--color-gold);
    box-shadow: var(--shadow-gold);
    transition: var(--transition-elegant);
    position: relative;
    overflow: hidden;
}

.adl-cta-btn:hover {
    background: transparent;
    color: var(--color-gold);
    transform: translateY(-4px);
    box-shadow: 0 10px 24px var(--color-gold-glow);
}

/* =============================================
 * ANIMATIONS
 * ============================================= */

@keyframes adlSlideUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* =============================================
 * RESPONSIVE
 * ============================================= */

@media (max-width: 991.98px) {
    .adl-hero          { height: 65vh; min-height: 420px; }
    .adl-hero-title    { font-size: 2.4rem; }
    .adl-section       { padding: 2.8rem 0; }
    .adl-map-wrapper   { height: 360px; }
    .adl-map-fallback  { height: 360px; }
}

@media (max-width: 767.98px) {
    .adl-hero          { height: 58vh; min-height: 360px; }
    .adl-hero-title    { font-size: 1.9rem; }
    .adl-hero-content  { padding: 3.5rem 0 2rem; }
    .adl-section       { padding: 2.2rem 0; }
    .adl-section-sub   { margin-left: 0; }
    .adl-facts-strip   { flex-direction: column; }
    .adl-map-wrapper   { height: 300px; }
    .adl-map-fallback  { height: 300px; }
    .adl-cta           { padding: 3rem 0; }
    .adl-cta-title     { font-size: 1.4rem; }
}

@media (max-width: 575.98px) {
    .adl-hero          { height: 50vh; min-height: 300px; }
    .adl-hero-title    { font-size: 1.6rem; margin-bottom: 0.5rem; }
    .adl-hero-nav      { gap: 0.3rem; }
    .adl-nav-pill      { font-size: 0.68rem; padding: 0.35rem 0.8rem; }
    .adl-section-title { font-size: 1.35rem; }
    .adl-map-wrapper   { height: 260px; }
    .adl-map-fallback  { height: 260px; }
}

/* =============================================
 * ACCESSIBILITY
 * ============================================= */

@media (prefers-reduced-motion: reduce) {
    .adl-hero-image,
    .adl-hero-title,
    .adl-hero-location,
    .adl-hero-nav,
    .adl-item-card,
    .adl-trail-card,
    .adl-nearby-card,
    .adl-pkg-card {
        animation: none !important;
        transition: none !important;
    }
}

@media (prefers-contrast: high) {
    .adl-item-card,
    .adl-trail-card,
    .adl-nearby-card,
    .adl-pkg-card,
    .adl-sidebar-card { border: 2px solid var(--color-white); }
}

.adl-item-card:focus,
.adl-trail-card:focus,
.adl-nav-pill:focus,
.adl-cta-btn:focus {
    outline: 3px solid var(--color-gold);
    outline-offset: 2px;
}

/* =============================================
 * PRINT
 * ============================================= */

@media print {
    .adl-hero, .adl-cta, .adl-map-wrapper { display: none; }

    .adl-item-card,
    .adl-trail-card,
    .adl-pkg-card {
        background: #fff !important;
        border: 1px solid #000;
        box-shadow: none;
        page-break-inside: avoid;
    }
}