/* =========================================
   PREMIUM BLOG STYLES
   ========================================= */

/* Grid Layout */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2.5rem;
    padding: 1rem 0 3rem;
}

/* Blog Card */
.blog-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    top: 0;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(249, 115, 22, 0.25);
    border-color: rgba(249, 115, 22, 0.4);
}

.blog-card-image-wrapper {
    position: relative;
    height: 260px;
    overflow: hidden;
}

.blog-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-card-image {
    transform: scale(1.05);
}

.blog-card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #f97316, #ea580c);
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 10;
}

.blog-card-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-date {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-card-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.blog-card-excerpt {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-footer {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.read-more-link {
    color: #f97316;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    transition: gap 0.3s ease, color 0.2s;
}

.read-more-link:hover {
    gap: 0.75rem;
    color: #fb923c;
}

/* Single Post Styles */
.single-post-container {
    padding-bottom: 4rem;
}

.single-post-hero {
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
    height: 60vh;
    min-height: 400px;
    position: relative;
    margin-bottom: 4rem;
    margin-top: -2rem;
    /* Pull up to navbar */
}

.single-post-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-post-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 4rem;
}

.single-post-header-content {
    max-width: 900px;
    text-align: center;
    color: white;
    padding: 0 2rem;
}

.single-post-badge {
    background: #0EA09D;
    color: white;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 10px rgba(14, 165, 233, 0.4);
}

.single-post-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .single-post-title {
        font-size: 2rem;
    }

    .single-post-hero {
        height: 50vh;
    }
}

.single-post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.single-post-body {
    max-width: 760px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.8;
    color: #334155;
    padding: 0 1.5rem;
}

.single-post-body p {
    margin-bottom: 1.75rem;
}

.single-post-body h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0f172a;
    margin-top: 3rem;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.single-post-body h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.single-post-body ul,
.single-post-body ol {
    margin-bottom: 1.75rem;
    padding-left: 2rem;
}

.single-post-body li {
    margin-bottom: 0.75rem;
}

.single-post-body img {
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
    width: 100%;
}

.single-post-tags {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.post-tag {
    background: #f1f5f9;
    color: #475569;
    padding: 0.4rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.post-tag:hover {
    background: #e2e8f0;
    color: #334155;
}

/* Loading State Helpers */
.loading-container {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6rem 1rem;
    width: 100%;
    min-height: 300px;
}

.loading-spinner-premium {
    width: 50px;
    height: 50px;
    border: 3px solid #e2e8f0;
    border-radius: 50%;
    border-top-color: var(--color-primary);
    animation: spin 1s linear infinite;
    margin-bottom: 1.5rem;
}

.loading-text {
    font-size: 1.1rem;
    color: #64748b;
    font-weight: 500;
    letter-spacing: 0.02em;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* =========================================
   DESTINATION CATEGORIES POPUP & LIGHTBOX
   ========================================= */

body.modal-open {
    overflow: hidden;
}

.destination-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(11, 18, 32, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.destination-modal-overlay.active {
    opacity: 1;
}

.destination-modal-overlay.closing {
    opacity: 0;
}

.destination-modal-container {
    width: 100%;
    max-width: 900px;
    background: linear-gradient(160deg, #131d31, #0c1322);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    max-height: 85vh;
    overflow: hidden;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.destination-modal-overlay.active .destination-modal-container {
    transform: scale(1) translateY(0);
}

.destination-modal-overlay.closing .destination-modal-container {
    transform: scale(0.95) translateY(10px);
}

.destination-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f8fafc;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.destination-modal-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fb923c;
    transform: rotate(90deg);
}

.destination-modal-header {
    padding: 2.5rem 2.5rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.destination-modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    font-weight: 900;
    color: #f8fafc;
    line-height: 1.2;
}

.destination-modal-subtitle {
    font-size: 1rem;
    color: #fb923c;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.25rem;
}

.destination-modal-body {
    flex: 1;
    padding: 2rem 2.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Tabs list styling */
.destination-tabs-container {
    position: sticky;
    top: 0;
    z-index: 5;
    background: #10192a;
    padding: 0.5rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.destination-tabs-list {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
}

.destination-tabs-list::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.destination-tab-item {
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    color: rgba(248, 250, 252, 0.65);
    background: transparent;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.destination-tab-item i {
    font-size: 1.05rem;
    transition: transform 0.25s ease;
}

.destination-tab-item:hover {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.04);
}

.destination-tab-item.active {
    color: #ffffff;
    background: #f97316;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
}

.destination-tab-item.active i {
    transform: scale(1.15);
}

/* Gallery images grid styling */
.destination-gallery-grid-wrapper {
    flex: 1;
    min-height: 250px;
}

.destination-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
}

.gallery-image-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 180px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-image-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(249, 115, 22, 0.25);
    border-color: rgba(249, 115, 22, 0.4);
}

.gallery-image-card:hover img {
    transform: scale(1.08);
}

.gallery-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11, 18, 32, 0.6), transparent);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.gallery-image-card:hover .gallery-image-overlay {
    opacity: 1;
}

.gallery-image-overlay i {
    font-size: 1.5rem;
    color: #ffffff;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-image-card:hover .gallery-image-overlay i {
    transform: scale(1);
}

/* Empty/loading states styling */
.destination-modal-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 1rem;
    color: rgba(248, 250, 252, 0.7);
    gap: 1.2rem;
}

.destination-modal-loading .loading-spinner {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #f97316;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.destination-modal-empty, .folder-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    color: rgba(248, 250, 252, 0.6);
    text-align: center;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 18px;
}

.destination-modal-empty i, .folder-empty-state i {
    font-size: 2.2rem;
    color: #fb923c;
    margin-bottom: 1rem;
}

.destination-modal-footer {
    padding: 1.5rem 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: flex-end;
    background: rgba(0, 0, 0, 0.15);
}

.destination-book-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.95rem 1.8rem;
    background: linear-gradient(135deg, #f97316, #fb923c);
    color: white;
    font-weight: 800;
    border-radius: 14px;
    font-size: 1rem;
    box-shadow: 0 12px 30px rgba(249, 115, 22, 0.35);
    transition: all 0.2s ease;
}

.destination-book-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 35px rgba(249, 115, 22, 0.45);
    color: white;
}

/* Lightbox overlay styling */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(6, 10, 18, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.lightbox-overlay.active {
    opacity: 1;
}

.lightbox-overlay.closing {
    opacity: 0;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.65);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 10002;
}

.lightbox-close:hover {
    color: #ffffff;
}

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 1.4rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10001;
}

.lightbox-prev:hover, .lightbox-next:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fb923c;
    border-color: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

.lightbox-content {
    max-width: 80vw;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 72vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    transform: scale(0.95);
    transition: transform 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.lightbox-overlay.active .lightbox-content img {
    transform: scale(1);
}

.lightbox-caption {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    padding: 0.5rem 0.25rem;
}

.lightbox-folder-name {
    font-weight: 700;
    color: #fb923c;
}

.lightbox-counter {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .destination-modal-container {
        max-height: 95vh;
    }
    .destination-modal-header {
        padding: 2rem 1.5rem 1rem;
    }
    .destination-modal-title {
        font-size: 1.8rem;
    }
    .destination-modal-body {
        padding: 1.5rem 1.5rem;
    }
    .destination-tabs-container {
        padding: 0.4rem;
    }
    .destination-tab-item {
        padding: 0.6rem 1rem;
        font-size: 0.88rem;
    }
    .destination-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 0.75rem;
    }
    .gallery-image-card {
        height: 120px;
        border-radius: 12px;
    }
    .destination-modal-footer {
        padding: 1rem 1.5rem;
    }
    .destination-book-btn {
        width: 100%;
        justify-content: center;
    }
    .lightbox-prev, .lightbox-next {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }
    .lightbox-prev {
        left: 1rem;
    }
    .lightbox-next {
        right: 1rem;
    }
}

