/* ============================================
   MODERN DESTINATION DETAIL PAGE STYLING
   ============================================ */

/* Hero Section with Featured Image */
.destination-detail .main-item.mb_50:first-child {
    margin-bottom: 40px !important;
}

.destination-detail .main-photo {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    max-height: 500px;
}

.destination-detail .main-photo img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.destination-detail .main-photo:hover img {
    transform: scale(1.05);
}

/* Modern Section Styling */
.destination-detail .main-item {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.destination-detail .main-item:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.destination-detail .main-item h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--theme-color-secondary, #2c2c2c);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--theme-color-primary, #f09c1c);
    display: inline-block;
    position: relative;
}

.destination-detail .main-item h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 50%;
    height: 3px;
    background: linear-gradient(90deg, var(--theme-color-primary, #f09c1c) 0%, transparent 100%);
}

/* Description Styling */
.destination-detail .main-item > div {
    color: #555;
    font-size: 16px;
    line-height: 1.8;
}

.destination-detail .main-item > div p {
    margin-bottom: 15px;
}

/* Information Table Modern Styling */
.destination-detail .summary .table {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin: 0;
}

.destination-detail .summary .table td {
    padding: 18px 20px;
    border-color: rgba(0, 0, 0, 0.06);
    vertical-align: middle;
}

.destination-detail .summary .table td:first-child {
    background: linear-gradient(135deg, rgba(240, 156, 28, 0.08) 0%, rgba(240, 156, 28, 0.03) 100%);
    font-weight: 700;
    color: var(--theme-color-secondary, #2c2c2c);
    width: 35%;
}

.destination-detail .summary .table td:last-child {
    color: #555;
}

.destination-detail .summary .table tr:hover td {
    background: rgba(240, 156, 28, 0.05);
}

/* Package Cards in Destination Detail */
.destination-detail .package .item {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.destination-detail .package .item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.destination-detail .package .item .photo {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.destination-detail .package .item .photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.destination-detail .package .item:hover .photo img {
    transform: scale(1.1);
}

.destination-detail .package .item .wishlist {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
}

.destination-detail .package .item .wishlist a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--theme-color-primary, #f09c1c);
    font-size: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.destination-detail .package .item .wishlist a:hover {
    background: var(--theme-color-primary, #f09c1c);
    color: #fff;
    transform: scale(1.1);
}

.destination-detail .package .item .text {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.destination-detail .package .item .price {
    font-size: 24px;
    font-weight: 800;
    color: var(--theme-color-primary, #f09c1c);
    margin-bottom: 12px;
}

.destination-detail .package .item .price del {
    font-size: 18px;
    color: #999;
    margin-left: 8px;
}

.destination-detail .package .item .text h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    border: none;
    padding: 0;
}

.destination-detail .package .item .text h2::after {
    display: none;
}

.destination-detail .package .item .text h2 a {
    color: #2c2c2c;
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.destination-detail .package .item .text h2 a:hover {
    color: var(--theme-color-primary, #f09c1c);
}

.destination-detail .package .item .review {
    color: #ffc107;
    font-size: 14px;
    margin-bottom: 15px;
}

.destination-detail .package .item .review i {
    margin-right: 2px;
}

.destination-detail .package .item .element {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 14px;
    color: #666;
}

.destination-detail .package .item .element:first-of-type {
    margin-top: auto;
}

.destination-detail .package .item .element i {
    margin-right: 6px;
    color: var(--theme-color-primary, #f09c1c);
}

/* Photo Gallery Modern Grid */
.destination-detail .photo-all .row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.destination-detail .photo-all .row > div {
    flex: 0 0 calc(25% - 15px);
    max-width: calc(25% - 15px);
}

.destination-detail .photo-all .item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    aspect-ratio: 1;
    transition: all 0.3s ease;
}

.destination-detail .photo-all .item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.destination-detail .photo-all .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.destination-detail .photo-all .item:hover img {
    transform: scale(1.15);
}

.destination-detail .photo-all .item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(240, 156, 28, 0.3) 0%, rgba(0, 0, 0, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.destination-detail .photo-all .item:hover::before {
    opacity: 1;
}

.destination-detail .photo-all .item::after {
    content: '\f002';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: #fff;
    font-size: 32px;
    z-index: 2;
    transition: transform 0.3s ease;
}

.destination-detail .photo-all .item:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

/* Video Gallery Modern Styling */
.destination-detail .video-all .row {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

.destination-detail .video-all .row > div {
    flex: 0 0 calc(50% - 12.5px);
    max-width: calc(50% - 12.5px);
}

.destination-detail .video-all .item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
    aspect-ratio: 16/9;
    transition: all 0.4s ease;
}

.destination-detail .video-all .item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.destination-detail .video-all .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.destination-detail .video-all .item:hover img {
    transform: scale(1.1);
}

.destination-detail .video-all .item .bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%);
    transition: opacity 0.3s ease;
}

.destination-detail .video-all .item:hover .bg {
    opacity: 0.8;
}

.destination-detail .video-all .item .icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.destination-detail .video-all .item .icon i {
    font-size: 80px;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

.destination-detail .video-all .item:hover .icon i {
    color: var(--theme-color-primary, #f09c1c);
    transform: scale(1.2);
}

/* Map Section */
.destination-detail .location-map .map {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
    height: 450px;
}

.destination-detail .location-map .map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Responsive Design */
@media (max-width: 991px) {
    .destination-detail .main-photo {
        max-height: 400px;
    }
    
    .destination-detail .main-photo img {
        height: 400px;
    }
    
    .destination-detail .main-item {
        padding: 28px;
    }
    
    .destination-detail .main-item h2 {
        font-size: 24px;
    }
    
    .destination-detail .photo-all .row > div {
        flex: 0 0 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }
    
    .destination-detail .package .item .photo {
        height: 200px;
    }
}

@media (max-width: 767px) {
    .destination-detail .main-photo {
        max-height: 300px;
        border-radius: 12px;
    }
    
    .destination-detail .main-photo img {
        height: 300px;
    }
    
    .destination-detail .main-item {
        padding: 20px;
        border-radius: 12px;
    }
    
    .destination-detail .main-item h2 {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    .destination-detail .photo-all .row {
        gap: 15px;
    }
    
    .destination-detail .photo-all .row > div {
        flex: 0 0 calc(50% - 7.5px);
        max-width: calc(50% - 7.5px);
    }
    
    .destination-detail .video-all .row {
        gap: 20px;
    }
    
    .destination-detail .video-all .row > div {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .destination-detail .video-all .item .icon i {
        font-size: 60px;
    }
    
    .destination-detail .summary .table td {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .destination-detail .summary .table td:first-child {
        width: 40%;
    }
    
    .destination-detail .location-map .map {
        height: 350px;
    }
    
    .destination-detail .package .item .photo {
        height: 180px;
    }
    
    .destination-detail .package .item .text {
        padding: 20px;
    }
}

@media (max-width: 575px) {
    .destination-detail .photo-all .row > div {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .destination-detail .package .item {
        margin-bottom: 20px;
    }
}
