/* ============================================
   SKELETON LOADING SCREENS
   Reutilizável em qualquer página v2.
   ============================================ */

/* --- Animação Shimmer --- */
@keyframes skeleton-shimmer {
    0%   { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}

.skeleton-bone {
    background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
    background-size: 800px 100%;
    animation: skeleton-shimmer 1.6s ease-in-out infinite;
    border-radius: 8px;
}

/* Container wrapper que será removido pelo JS */
.skeleton-wrapper {
    /* Fade-out ao carregar */
    transition: opacity 0.3s ease;
}
.skeleton-wrapper.skeleton-hide {
    opacity: 0;
    pointer-events: none;
}

/* --- Hero Skeleton --- */
.skeleton-hero-slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

/* --- Promo Cards Skeleton --- */
.skeleton-promo-grid {
    display: flex;
    gap: 20px;
    padding: 15px;
    overflow: hidden;
}

.skeleton-promo-card {
    flex: 0 0 280px;
    border: 2px solid #eee;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
}

.skeleton-promo-img {
    height: 200px;
    border-bottom: 2px solid #eee;
}

.skeleton-promo-body {
    padding: 20px;
}

.skeleton-promo-tag {
    width: 70px;
    height: 20px;
    margin-bottom: 12px;
    border-radius: 6px;
}

.skeleton-promo-title {
    width: 85%;
    height: 20px;
    margin-bottom: 10px;
}

.skeleton-promo-title-sm {
    width: 55%;
    height: 16px;
    margin-bottom: 15px;
}

.skeleton-promo-rating {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.skeleton-promo-rating-badge {
    width: 30px;
    height: 20px;
    border-radius: 6px;
}

.skeleton-promo-stars {
    width: 80px;
    height: 14px;
    margin-top: 3px;
}

.skeleton-promo-desc-1 {
    width: 100%;
    height: 10px;
    margin-bottom: 6px;
}

.skeleton-promo-desc-2 {
    width: 75%;
    height: 10px;
    margin-bottom: 15px;
}

.skeleton-promo-footer {
    padding: 20px;
    border-top: 2px solid #eee;
}

.skeleton-promo-price-label {
    width: 90px;
    height: 10px;
    margin-bottom: 8px;
}

.skeleton-promo-price {
    width: 120px;
    height: 28px;
    margin-bottom: 6px;
}

.skeleton-promo-installment {
    width: 100px;
    height: 10px;
}

/* --- Destinos Skeleton --- */
.skeleton-destinos-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.skeleton-destino-card {
    height: 300px;
    margin-bottom: 30px;
    border-radius: 16px;
}

/* --- Blog Skeleton --- */
.skeleton-blog-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.skeleton-blog-card {
    border: 1px solid #eaeaea;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    margin-bottom: 30px;
}

.skeleton-blog-img {
    height: 200px;
}

.skeleton-blog-body {
    padding: 25px;
}

.skeleton-blog-title {
    width: 80%;
    height: 18px;
    margin-bottom: 12px;
}

.skeleton-blog-text-1 {
    width: 100%;
    height: 10px;
    margin-bottom: 6px;
}

.skeleton-blog-text-2 {
    width: 60%;
    height: 10px;
    margin-bottom: 20px;
}

.skeleton-blog-link {
    width: 80px;
    height: 12px;
}

/* --- Banner Skeleton (pieimage) --- */
.skeleton-banner {
    width: 100%;
    height: 120px;
    border-radius: 16px;
}

/* --- Responsivo --- */
@media (max-width: 767px) {
    .skeleton-promo-grid {
        gap: 15px;
    }
    .skeleton-promo-card {
        flex: 0 0 260px;
    }
}

/* ============================================
   PACOTES PAGE SKELETON
   ============================================ */

.skeleton-pacotes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.skeleton-pacote-card {
    border: 1px solid #eee;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
}

.skeleton-pacote-img {
    height: 220px;
    border-bottom: 1px solid #eee;
}

.skeleton-pacote-body {
    padding: 20px;
}

.skeleton-pacote-tags {
    width: 100px;
    height: 14px;
    margin-bottom: 12px;
}

.skeleton-pacote-title {
    width: 80%;
    height: 22px;
    margin-bottom: 10px;
}

.skeleton-pacote-title-sm {
    width: 50%;
    height: 16px;
    margin-bottom: 15px;
}

.skeleton-pacote-desc-1 {
    width: 100%;
    height: 10px;
    margin-bottom: 6px;
}

.skeleton-pacote-desc-2 {
    width: 85%;
    height: 10px;
    margin-bottom: 6px;
}

.skeleton-pacote-desc-3 {
    width: 60%;
    height: 10px;
}

.skeleton-pacote-footer {
    padding: 25px 20px 20px;
    border-top: 1px solid #eee;
}

.skeleton-pacote-price-label {
    width: 90px;
    height: 10px;
    margin-bottom: 8px;
}

.skeleton-pacote-price-old {
    width: 70px;
    height: 12px;
    margin-bottom: 10px;
}

.skeleton-pacote-price-row {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    margin-bottom: 15px;
}

.skeleton-pacote-price-big {
    width: 130px;
    height: 36px;
}

.skeleton-pacote-price-parcela {
    width: 60px;
    height: 20px;
    margin-bottom: 4px;
}

.skeleton-pacote-disclaimer {
    width: 100%;
    height: 8px;
    margin-top: 6px;
}

/* ============================================
   DETAIL PAGE SKELETON
   ============================================ */

/* Gallery mosaic skeleton */
.skeleton-detail-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 10px;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 40px;
}

.skeleton-detail-gallery-main {
    height: 100%;
    border-radius: 0;
}

.skeleton-detail-gallery-col {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 10px;
}

.skeleton-detail-gallery-sm {
    height: 100%;
    border-radius: 0;
}

/* Title area */
.skeleton-detail-title {
    width: 60%;
    height: 32px;
    margin-bottom: 12px;
}

.skeleton-detail-meta {
    width: 30%;
    height: 16px;
    margin-bottom: 30px;
}

/* Description */
.skeleton-detail-desc-1 {
    width: 100%;
    height: 14px;
    margin-bottom: 8px;
}

.skeleton-detail-desc-2 {
    width: 95%;
    height: 14px;
    margin-bottom: 8px;
}

.skeleton-detail-desc-3 {
    width: 70%;
    height: 14px;
    margin-bottom: 25px;
}

/* Quick info icons row */
.skeleton-detail-quickinfo {
    display: flex;
    flex-wrap: wrap;
    gap: 35px;
    padding-top: 25px;
    border-top: 1px solid #eee;
    margin-bottom: 30px;
}

.skeleton-detail-qi-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.skeleton-detail-qi-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
}

.skeleton-detail-qi-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.skeleton-detail-qi-label {
    width: 60px;
    height: 10px;
}

.skeleton-detail-qi-value {
    width: 80px;
    height: 14px;
}

/* Sidebar widget */
.skeleton-detail-widget {
    background: #fff;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    border: 1px solid #e1e1e1;
}

.skeleton-detail-btn-cart {
    width: 100%;
    height: 44px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.skeleton-detail-price-label-sm {
    width: 70px;
    height: 10px;
    margin-bottom: 8px;
}

.skeleton-detail-price-big {
    width: 120px;
    height: 26px;
    margin-bottom: 20px;
}

.skeleton-detail-form-box {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.skeleton-detail-form-row {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.skeleton-detail-form-row:last-child {
    border-bottom: none;
}

.skeleton-detail-form-label {
    width: 40px;
    height: 8px;
    margin-bottom: 6px;
}

.skeleton-detail-form-input {
    width: 100%;
    height: 18px;
}

.skeleton-detail-btn-reserve {
    width: 100%;
    height: 48px;
    border-radius: 8px;
    margin-top: 10px;
}

/* Info cards */
.skeleton-detail-info-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #f0f0f0;
    margin-bottom: 20px;
}

.skeleton-detail-card-title {
    width: 40%;
    height: 18px;
    margin-bottom: 18px;
}

.skeleton-detail-card-line {
    width: 90%;
    height: 12px;
    margin-bottom: 12px;
}

.skeleton-detail-card-line-sm {
    width: 65%;
    height: 12px;
    margin-bottom: 12px;
}

@media (max-width: 767px) {
    .skeleton-detail-gallery {
        grid-template-columns: 1fr;
        height: 250px;
    }
    .skeleton-detail-gallery-col {
        display: none;
    }
}
