/* Destination Details Page Styles */

:root {
    --dd-bg: #f7fafc;
    --dd-surface: #ffffff;
    --dd-border: #e2e8f0;
    --dd-text: #2d3748;
    --dd-subtext: #718096;
    --dd-primary: #8b5cf6;
    --dd-primary-dark: #6d28d9;
    --dd-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    --dd-shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.15);
}

body {
    background: var(--dd-bg);
    color: var(--dd-text);
}

/* General Layout */
.destination-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 24px 44px;
}

/* Back Navigation */
.back-navigation {
    margin-bottom: 20px;
}

.back-navigation a {
    display: inline-flex;
    align-items: center;
    color: #415b82;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.back-navigation a:hover {
    color: var(--dd-primary-dark);
}

.back-navigation i {
    margin-right: 8px;
}

/* Hero Section */
.destination-hero {
    position: relative;
    height: clamp(230px, 31vw, 340px);
    border-radius: 16px;
    border: 1px solid #d7dde7;
    background-color: #ced6e3;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: var(--dd-shadow);
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 26px 30px;
    background: linear-gradient(180deg, rgba(2, 10, 25, 0) 12%, rgba(6, 20, 45, 0.68) 56%, rgba(5, 16, 36, 0.9) 100%);
    color: #fff;
}

.hero-content h1 {
    font-size: clamp(2rem, 3.8vw, 3rem);
    margin-bottom: 12px;
    font-weight: 800;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.destination-meta {
    display: flex;
    gap: 20px;
    font-size: 0.94rem;
    font-weight: 600;
}

.destination-meta span {
    display: flex;
    align-items: center;
}

.destination-meta i {
    margin-right: 8px;
}

.like-btn.large {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 46px;
    height: 46px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 12px 24px -18px rgba(7, 31, 74, 0.78);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.like-btn.large i {
    font-size: 1.5rem;
    color: #ff5a5a;
}

.like-btn.large:hover {
    transform: scale(1.1);
}

.like-btn.large.active i {
    font-weight: 900;
}

/* Quick Info Section */
.quick-info {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 36px;
}

.info-card {
    background: var(--dd-surface);
    border-radius: 16px;
    padding: 18px;
    border: 1px solid var(--dd-border);
    box-shadow: var(--dd-shadow);
    display: flex;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--dd-shadow-hover);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: #f3edff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 14px;
    flex: 0 0 50px;
}

.info-icon i {
    font-size: 1.2rem;
    color: var(--dd-primary);
}

.info-content h3 {
    font-size: 0.98rem;
    margin: 0 0 5px 0;
    color: var(--dd-text);
}

.info-content p {
    margin: 0;
    font-size: 0.87rem;
    color: var(--dd-subtext);
    line-height: 1.45;
}

.info-content a {
    color: #1f6fbe;
    font-weight: 600;
    text-decoration: none;
}

.info-content a:hover {
    text-decoration: underline;
}

/* Stacked Content Sections */
.destination-sections {
    display: grid;
    gap: 24px;
    margin-bottom: 30px;
}

.destination-section {
    background: var(--dd-surface);
    border: 1px solid var(--dd-border);
    border-radius: 16px;
    box-shadow: var(--dd-shadow);
    padding: 28px;
}

.section-heading {
    margin: 0 0 16px;
    font-size: 1.7rem;
    color: var(--dd-text);
}

/* Tab Navigation */
.destination-tabs {
    margin-bottom: 30px;
    background: var(--dd-surface);
    border: 1px solid var(--dd-border);
    border-radius: 16px;
    box-shadow: var(--dd-shadow);
    overflow: hidden;
}

.tab-controls {
    display: flex;
    border-bottom: 1px solid var(--dd-border);
    background: #f8fafc;
    gap: 6px;
    padding: 8px;
    overflow-x: auto;
}

.tab-btn {
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: none;
    font-size: 0.95rem;
    font-weight: 700;
    color: #4f6484;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--dd-primary-dark);
    border-color: #c9dbf4;
    background: #ffffff;
}

.tab-btn.active {
    color: #ffffff;
    border-color: transparent;
    background: linear-gradient(135deg, #6d28d9 0%, #8b5cf6 100%);
    box-shadow: 0 12px 24px -18px rgba(78, 34, 179, 0.72);
}

/* Tab Content */
.tab-content {
    padding: 30px;
}

.tab-pane {
    display: block;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Overview Tab */
.overview-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.overview-text h2 {
    margin-top: 0;
    color: var(--dd-text);
    font-size: 2rem;
    margin-bottom: 0.8rem;
}

.overview-text h3 {
    margin-top: 20px;
    color: #394b63;
    margin-bottom: 0.45rem;
}

.overview-text p {
    color: var(--dd-subtext);
    line-height: 1.6;
}

#place-highlights {
    margin: 8px 0 0;
    padding-left: 18px;
    color: var(--dd-subtext);
}

#place-highlights li {
    margin-bottom: 6px;
}

.overview-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.stat-card {
    background: #f8fafc;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    border: 1px solid var(--dd-border);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dd-primary);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: #5f7391;
}

/* Attractions Tab */
.attractions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.gallery-item {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--dd-border);
    background: #fff;
    box-shadow: var(--dd-shadow);
}

.gallery-item img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    padding: 10px 12px;
    font-size: 0.9rem;
    color: var(--dd-subtext);
}

.attraction-card {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--dd-border);
    box-shadow: var(--dd-shadow);
    transition: transform 0.3s ease;
}

.attraction-card:hover {
    transform: translateY(-5px);
}

.attraction-img {
    height: 180px;
    overflow: hidden;
}

.attraction-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.attraction-card:hover .attraction-img img {
    transform: scale(1.1);
}

.attraction-info {
    padding: 15px;
}

.attraction-info h3 {
    margin-top: 0;
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #213652;
}

.attraction-info p {
    margin: 0;
    color: #627898;
    font-size: 0.9rem;
}

/* Packages Tab */
.packages-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.package-item {
    display: grid;
    grid-template-columns: 300px 1fr auto;
    background: var(--dd-surface);
    border-radius: 16px;
    border: 1px solid var(--dd-border);
    overflow: hidden;
    box-shadow: var(--dd-shadow);
}

.package-image {
    height: 100%;
    overflow: hidden;
}

.package-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.package-details {
    padding: 20px;
}

.package-name {
    font-size: 1.3rem;
    margin: 0 0 10px 0;
    color: #223653;
}

.package-description {
    color: #5f7391;
    margin-bottom: 10px;
    line-height: 1.4;
}

.package-features {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

.package-feature {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #4e6384;
}

.package-feature i {
    margin-right: 5px;
    color: #2f89d5;
}

.package-price {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 30px;
    background: #f8fafc;
    border-left: 1px solid var(--dd-border);
}

.price-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.price-text {
    font-size: 0.8rem;
    color: #777;
    margin-bottom: 15px;
}

.book-package-btn {
    background: var(--dd-primary);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.book-package-btn:hover {
    background: var(--dd-primary-dark);
}

/* Visa Information Tab */
.visa-details {
    max-width: 800px;
}

.visa-process {
    margin-bottom: 30px;
}

.process-steps {
    margin-top: 20px;
}

.step-item {
    display: flex;
    margin-bottom: 25px;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    background: #2f8ad7;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 20px;
    flex-shrink: 0;
}

.step-content {
    padding-bottom: 20px;
    border-bottom: 1px dashed #dbe6f5;
    flex-grow: 1;
}

.step-content h4 {
    margin-top: 0;
    margin-bottom: 5px;
    color: #273c59;
}

.step-content p {
    margin: 0;
    color: #5f7391;
}

.documents-required {
    margin-bottom: 30px;
}

.documents-required ul {
    list-style-type: none;
    padding: 0;
}

.documents-required li {
    padding: 10px 0;
    border-bottom: 1px solid #e3ecf9;
    display: flex;
    align-items: center;
}

.documents-required li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: #27ae60;
    margin-right: 10px;
}

.visa-assistance {
    background: #f7fbff;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #2e8bda;
}

.consult-btn {
    background: var(--dd-primary);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 10px;
}

.consult-btn:hover {
    background: var(--dd-primary-dark);
}

/* Reviews Tab */
.reviews-container {
    margin-bottom: 30px;
}

.review-item {
    border-bottom: 1px solid var(--dd-border);
    padding: 20px 0;
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.reviewer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reviewer-name {
    font-weight: 600;
    margin: 0;
    color: #223550;
}

.review-date {
    font-size: 0.8rem;
    color: #6780a2;
}

.review-rating {
    display: flex;
    margin-bottom: 10px;
}

.review-rating i {
    color: #f39c12;
    margin-right: 2px;
}

.review-text {
    color: #556e90;
    line-height: 1.5;
}

/* Add Review Form */
.add-review {
    background: #f8fafc;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid var(--dd-border);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #324a6d;
}

.rating-input {
    display: flex;
    gap: 5px;
}

.rating-input i {
    color: #ccc;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.rating-input i:hover,
.rating-input i.selected {
    color: #f39c12;
}

textarea {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #cfddef;
    height: 100px;
    resize: vertical;
}

textarea:focus {
    outline: none;
    border-color: #86b4e8;
    box-shadow: 0 0 0 3px rgba(58, 142, 225, 0.16);
}

.submit-review-btn {
    background: var(--dd-primary);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-review-btn:hover {
    background: var(--dd-primary-dark);
}

/* Related Destinations */
.related-destinations {
    margin-bottom: 30px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.related-card {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--dd-border);
    box-shadow: var(--dd-shadow);
    transition: transform 0.3s ease;
}

.related-card:hover {
    transform: translateY(-5px);
}

.related-img {
    height: 150px;
    overflow: hidden;
}

.related-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-info {
    padding: 15px;
    text-align: center;
}

.related-info h3 {
    margin: 0 0 5px 0;
    font-size: 1rem;
    color: #243855;
}

.related-info p {
    margin: 0;
    color: #657c9d;
    font-size: 0.8rem;
}

/* CTA Section */
.destination-cta {
    background: linear-gradient(135deg, #6d28d9 0%, #8b5cf6 100%);
    padding: 40px;
    border-radius: 16px;
    margin-bottom: 30px;
    color: white;
    text-align: center;
    box-shadow: var(--dd-shadow-hover);
}

.cta-content h2 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 2rem;
}

.cta-content p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.primary-btn {
    background: white;
    color: #6d28d9;
    border: none;
    border-radius: 999px;
    padding: 12px 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.secondary-btn {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 999px;
    padding: 12px 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Responsive Adjustments */
@media (max-width: 1180px) {
    .quick-info {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .quick-info {
        grid-template-columns: repeat(2, 1fr);
    }

    .overview-content {
        grid-template-columns: 1fr;
    }

    .attractions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .related-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .package-item {
        grid-template-columns: 200px 1fr auto;
    }
}

@media (max-width: 768px) {
    .destination-container {
        padding: 16px 14px 30px;
    }

    .hero-content {
        padding: 20px 18px;
    }

    .destination-meta {
        flex-direction: column;
        gap: 5px;
    }

    .tab-controls {
        flex-wrap: nowrap;
    }

    .tab-btn {
        flex-grow: 0;
        text-align: center;
    }

    .tab-content {
        padding: 22px 16px;
    }

    .destination-section {
        padding: 22px 16px;
    }

    .attractions-grid,
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .package-item {
        grid-template-columns: 1fr;
    }

    .package-image {
        height: 200px;
    }

    .package-price {
        padding: 20px;
        border-left: none;
        border-top: 1px solid #eee;
    }
}

@media (max-width: 640px) {
    .quick-info {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .attractions-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}