/* ============================================================
   css/destination.css
   Maldives Holiday Package — Destination Pages
   Universal styles for all destination/atoll guide pages
   ============================================================ */

/* ===== DESTINATION HERO ===== */
.dest-hero {
    position: relative;
    min-height: 480px;
    height: auto;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    padding-bottom: 2rem;
}

.dest-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 40%;
    transform: scale(1.04);
    transition: transform 8s ease;
}

.dest-hero:hover .dest-hero-bg {
    transform: scale(1.0);
}

.dest-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(5,31,33,0.25) 0%,
        rgba(5,31,33,0.35) 40%,
        rgba(5,31,33,0.75) 100%
    );
}

.dest-hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem 0 3rem;
    width: 100%;
}

.dest-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem;
    font-family: var(--font-body);
    font-weight: 500;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.dest-breadcrumb a {
    color: rgba(255,255,255,0.7);
    transition: color 0.25s;
}

.dest-breadcrumb a:hover { color: var(--teal-300); }

.dest-breadcrumb i {
    font-size: 0.58rem;
    opacity: 0.5;
}

.dest-hero-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.9rem;
    flex-wrap: wrap;
}

.dest-badge {
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 0.25rem 0.85rem;
    border-radius: 30px;
    background: rgba(255,255,255,0.92);
    color: var(--teal-700);
}

.dest-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.dest-hero-subtitle {
    font-size: 1rem;
    color: rgba(255,255,255,0.78);
    font-family: var(--font-body);
    font-weight: 500;
    margin-bottom: 1.2rem;
    letter-spacing: 0.5px;
}

/* ===== QUICK FACTS SECTION ===== */
.dest-facts {
    padding: 2rem 0;
    background: var(--bg-body);
}

.dest-facts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.dest-fact-card {
    background: var(--white);
    border-radius: 16px;
    padding: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 15px rgba(10,44,47,0.08);
    border: 1px solid rgba(44,154,156,0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.dest-fact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(10,44,47,0.12);
}

.dest-fact-card > i {
    font-size: 1.8rem;
    color: var(--teal-500);
    width: 48px;
    text-align: center;
}

.dest-fact-card div {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.dest-fact-card strong {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.dest-fact-card span {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--teal-800);
}

/* ===== OVERVIEW SECTION ===== */
.dest-overview {
    padding: 2rem 0;
    background: var(--bg-section);
}

.dest-overview-grid {
    display: grid;
    grid-template-columns: 1fr 0.7fr;
    gap: 3rem;
    align-items: center;
}

.dest-overview-text h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--teal-800);
    margin-bottom: 1.2rem;
}

.dest-overview-text p {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-soft);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.dest-overview-text strong {
    color: var(--teal-600);
    font-weight: 600;
}

.dest-overview-stats {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    box-shadow: 0 8px 25px rgba(10,44,47,0.08);
    border: 1px solid rgba(44,154,156,0.1);
}

.dest-stat-item {
    text-align: center;
}

.dest-stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--teal-600);
    line-height: 1.2;
}

.dest-stat-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

/* ===== GALLERY SECTION ===== */
.dest-gallery {
    padding: 3rem 0;
    background: var(--bg-body);
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--teal-800);
    margin-bottom: 0.5rem;
}

.section-header h2 i {
    color: var(--teal-500);
    margin-right: 0.5rem;
}

.section-header p {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.dest-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.dest-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    cursor: pointer;
    aspect-ratio: 1 / 0.9;
}

.dest-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.dest-gallery-item:hover img {
    transform: scale(1.05);
}

.dest-gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(5,31,33,0.8), transparent);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 1rem 0.8rem 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dest-gallery-item:hover .dest-gallery-caption {
    opacity: 1;
}

/* ===== ATTRACTIONS SECTION ===== */
.dest-attractions {
    padding: 3rem 0;
    background: var(--bg-section);
}

.dest-attractions-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.dest-attraction-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.5rem;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(10,44,47,0.08);
    border: 1px solid rgba(44,154,156,0.1);
    transition: transform 0.25s ease;
}

.dest-attraction-card:hover {
    transform: translateX(5px);
}

.dest-attraction-img {
    position: relative;
    height: 100%;
    min-height: 160px;
}

.dest-attraction-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dest-attraction-rank {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--teal-600);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.9rem;
}

.dest-attraction-content {
    padding: 1.2rem 1.2rem 1.2rem 0;
}

.dest-attraction-content h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--teal-800);
    margin-bottom: 0.5rem;
}

.dest-attraction-content p {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-soft);
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

.dest-attraction-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.dest-attraction-tags span {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.7rem;
    background: rgba(44,154,156,0.1);
    border-radius: 20px;
    color: var(--teal-700);
}

.dest-attraction-tags span i {
    margin-right: 0.3rem;
    font-size: 0.65rem;
}

/* ===== ACTIVITIES SECTION ===== */
.dest-activities {
    padding: 3rem 0;
    background: var(--bg-body);
}

.dest-activities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.dest-activity {
    background: var(--white);
    border-radius: 20px;
    padding: 1.8rem;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid rgba(44,154,156,0.1);
}

.dest-activity:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(10,44,47,0.12);
}

.dest-activity-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(44,154,156,0.15), rgba(44,154,156,0.05));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.dest-activity-icon i {
    font-size: 1.8rem;
    color: var(--teal-500);
}

.dest-activity h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--teal-800);
    margin-bottom: 0.5rem;
}

.dest-activity p {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--text-soft);
    line-height: 1.6;
}

/* ===== WEATHER SECTION ===== */
.dest-weather {
    padding: 3rem 0;
    background: var(--bg-section);
}

.dest-weather-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.dest-weather-text h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--teal-800);
    margin-bottom: 1rem;
}

.dest-weather-text h2 i {
    color: var(--teal-500);
    margin-right: 0.5rem;
}

.dest-weather-text p {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-soft);
    line-height: 1.7;
    margin-bottom: 0.8rem;
}

.dest-weather-tip {
    margin-top: 1.2rem;
    padding: 1rem;
    background: rgba(44,154,156,0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.dest-weather-tip i {
    font-size: 1.2rem;
    color: var(--teal-500);
}

.dest-weather-tip span {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--teal-800);
}

.dest-weather-chart {
    background: var(--white);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(10,44,47,0.08);
}

.dest-month-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.6rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
}

.dest-month-row span:first-child {
    width: 35px;
    font-weight: 600;
    color: var(--teal-700);
}

.dest-month-bar {
    flex: 1;
    height: 8px;
    background: linear-gradient(90deg, var(--teal-400), var(--teal-600));
    border-radius: 10px;
}

.dest-month-row span:last-child {
    width: 25px;
    text-align: center;
    color: var(--text-muted);
}

/* ===== TRANSPORT SECTION ===== */
.dest-transport {
    padding: 3rem 0;
    background: var(--bg-body);
}

.dest-transport-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.dest-transport-card {
    background: var(--white);
    border-radius: 20px;
    padding: 1.8rem;
    text-align: center;
    transition: transform 0.25s ease;
    border: 1px solid rgba(44,154,156,0.1);
}

.dest-transport-card:hover {
    transform: translateY(-3px);
}

.dest-transport-card i {
    font-size: 2.2rem;
    color: var(--teal-500);
    margin-bottom: 1rem;
}

.dest-transport-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--teal-800);
    margin-bottom: 0.5rem;
}

.dest-transport-card p {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--text-soft);
    line-height: 1.6;
}

/* ===== PACKAGES SECTION ===== */
.dest-packages {
    padding: 3rem 0 4rem;
    background: var(--bg-section);
}

.dest-packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dest-package-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(10,44,47,0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid rgba(44,154,156,0.1);
}

.dest-package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(10,44,47,0.15);
}

.dest-package-img {
    position: relative;
    height: 200px;
}

.dest-package-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dest-package-category {
    position: absolute;
    top: 12px;
    right: 12px;
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
    background: rgba(0,0,0,0.6);
    color: white;
}

.dest-package-content {
    padding: 1.2rem;
}

.dest-package-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--teal-800);
    margin-bottom: 0.3rem;
}

.dest-package-meta {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.7rem;
    color: var(--text-muted);
}

.dest-package-meta i {
    margin-right: 0.2rem;
    color: var(--teal-500);
}

.dest-package-desc {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--text-soft);
    line-height: 1.5;
    margin-bottom: 0.8rem;
}

.dest-package-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(44,154,156,0.1);
}

.dest-package-price {
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--teal-600);
    font-size: 1rem;
}

.dest-package-price span {
    font-size: 0.65rem;
    font-weight: 400;
    color: var(--text-muted);
}

.dest-package-link {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--teal-500);
    text-decoration: none;
    transition: color 0.2s;
}

.dest-package-link:hover {
    color: var(--teal-700);
}

.dest-package-link i {
    margin-left: 0.3rem;
    font-size: 0.65rem;
}

.dest-packages-viewall {
    text-align: center;
}

.dest-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--teal-600);
    color: white;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.8rem 2rem;
    border-radius: 40px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.dest-btn:hover {
    background: var(--teal-700);
    transform: translateY(-2px);
    color: white;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .dest-facts-grid {
        gap: 0.8rem;
    }
}

@media (max-width: 992px) {
    .dest-facts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dest-overview-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .dest-overview-stats {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .dest-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dest-activities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dest-transport-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dest-packages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dest-weather-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .dest-hero {
        min-height: 380px;
    }
    
    .dest-hero-title {
        font-size: 1.8rem;
    }
    
    .dest-facts-grid {
        grid-template-columns: 1fr;
    }
    
    .dest-gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .dest-attraction-card {
        grid-template-columns: 1fr;
    }
    
    .dest-attraction-img {
        min-height: 200px;
    }
    
    .dest-attraction-content {
        padding: 1rem;
    }
    
    .dest-activities-grid {
        grid-template-columns: 1fr;
    }
    
    .dest-transport-grid {
        grid-template-columns: 1fr;
    }
    
    .dest-packages-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 1.6rem;
    }
    
    .dest-overview-text h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .dest-hero {
        padding: 50px 20px;
        min-height: 350px;
    }
    
    .dest-hero-title {
        font-size: 1.5rem;
    }
    
    .dest-hero-subtitle {
        font-size: 0.85rem;
    }
    
    .dest-badge {
        font-size: 0.6rem;
    }
    
    .dest-stat-number {
        font-size: 1.6rem;
    }
    
    .dest-activity-icon {
        width: 55px;
        height: 55px;
    }
    
    .dest-activity-icon i {
        font-size: 1.4rem;
    }
}