@charset "UTF-8";
/* dfebf3 */
@import url("https://fonts.googleapis.com/css?family=Ubuntu|Ubuntu+Condensed&display=swap");
@import url("https://fonts.googleapis.com/css?family=Poppins:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900,900i&display=swap");
@import url("https://fonts.googleapis.com/css?family=Satisfy&display=swap");
/* Colore di sfondo principale */
/* Migliori offerte */
.stretched-link_img {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    height: 100%;
    width: 100%;
    z-index: 1;
}

/* AI Toggle Container */
.ai-toggle-container {
    position: absolute;
    right: -25%;
    top: -30px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border: 2px solid #667eea;
    border-radius: 8px;
    padding: 10px 14px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
    cursor: help;
}

/* AI Toggle Switch */
.ai-toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.ai-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.ai-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.ai-toggle-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.ai-toggle-switch input:checked + .ai-toggle-slider {
    background-color: #4CAF50;
}

.ai-toggle-switch input:focus + .ai-toggle-slider {
    box-shadow: 0 0 1px #4CAF50;
}

.ai-toggle-switch input:checked + .ai-toggle-slider:before {
    transform: translateX(26px);
}

/* AI Toggle Toast Notification */
.ai-toggle-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 28px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    display: none;
    min-width: 350px;
    max-width: 500px;
    animation: slideInRight 0.3s ease-out;
}

.ai-toggle-toast.show {
    display: block;
}

.ai-toggle-toast.hide {
    animation: slideOutRight 0.3s ease-in forwards;
}

.ai-toggle-toast-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 18px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.ai-toggle-toast-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.ai-toggle-toast-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    font-size: 1.4em;
    margin-bottom: 10px;
    padding-right: 30px;
}

.ai-toggle-toast-body {
    font-size: 1.15em;
    line-height: 1.5;
    opacity: 0.95;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.line-height-18 {
    line-height: 1.8 !important;
}

.grid-item-offerte-speciali:hover {
    cursor: pointer;
}

.card.offerta {
    border-radius: 15px;
    height: auto; /* Changed from 498px - allow flexible height */
    min-height: 300px;
    border: none;
/*    margin: 15px;*/
    box-shadow: #c2d7e68f 0 0 15px 0px !important;
}

    .card.offerta a {
        cursor: pointer;
    }

        .card.offerta.migliore .card-body, .card.offerta.migliore .card-text {
            color: white;
        }

    .card.offerta.migliore-destinazione {
        background-color: #0067B0;
    }

        .card.offerta.migliore-destinazione .card-body, .card.offerta.migliore-destinazione .card-text {
            color: white;
        }

    .card.offerta.altra {
        background-color: white;
    }

        .card.offerta.altra .card-body, .card.offerta.altra .card-text {
            color: #0067B0;
        }

    .card.offerta .btn-scopri {
        height: 36px;
        border-radius: 20px;
        border: none;
        cursor: pointer;
/*        position: absolute;
        bottom: 30px;*/
        padding-left: 15px;
        padding-right: 15px;
        text-transform: uppercase;
        font-weight: 800;
        font-family: "Poppins", sans-serif;
        font-size: 15px;
        /*display: inline-block;*/
        padding-top: 7px;
    }

        .card.offerta .btn-scopri.blu {
            background-color: #0067b0;
            color: white;
        }

        .card.offerta .btn-scopri.bianco {
            background-color: white;
            color: #0067b0;
        }

        .card.offerta .btn-scopri:hover {
            background-color: #33A5F5;
            color: white;
      	}

            .card.offerta .btn-scopri:hover.shadow {
                box-shadow: #c2d7e68f 0 0 15px 0px !important;
            }

    .card.offerta .open-more {
        position: absolute;
        bottom: 30px;
        right: 8px;
        background-color: transparent;
        border: 0px;
        padding: 5px;
        margin-right: 10px;
        margin-left: 5px;
    }

        .card.offerta .open-more:hover {
            background: #DFEBF3;
        }

    .card.offerta > .image-container {
        border-top-left-radius: 15px;
        border-top-right-radius: 15px;
        height: 369px;
        width: 294px;
        border: none;
        overflow: hidden;
    }

        .card.offerta > .image-container > img {
            border-top-left-radius: 15px;
            border-top-right-radius: 15px;
            height: 369px;
	        width: 294px; 
            object-fit: cover;  /* Cover the whole area, cutting off extra */
            object-position: center;  /* Center the image */
        }

    .card.offerta > .card-img-overlay {
        border-top-left-radius: 15px;
        border-top-right-radius: 15px;
        opacity: 1;
        height: 369px;
        padding: 0 !important;
        background: white;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.3) 60%, rgba(0, 0, 0, 0.8) 100%);
        z-index: 0;
    }

        .card.offerta > .card-img-overlay > .card-text {
            color: white;
        }

            .card.offerta > .card-img-overlay > .card-text.destinazione {
                color: white;
                font-weight: 600;
                position: absolute;
                top: 60px;
                margin-left: 20px !important;
                text-align: left;
                font-size: 15px;
                text-transform: uppercase
            }

            .card.offerta > .card-img-overlay > .card-text.etichetta-offerta {
                position: absolute;
                top: 304px;
                text-align: left;
                background: #DFEBF3;
            }

            .card.offerta > .card-img-overlay > .card-text.notti {
                color: white;
                font-weight: 600;
                position: absolute;
                top: 270px;
                margin-left: 20px !important;
                font-size: 15px;
            }

        .card.offerta > .card-img-overlay .best-offer-hotel-name {
            font-size: 14px;
            width: 90%;
            text-align: left;
            line-height: 18px;
            top: 170px !important;
            position: absolute;
            font-weight: 300;
        }

        .card.offerta > .card-img-overlay .category-offer {
            position: absolute;
            top: 10px;
            left: 115px;
            border-radius: 5px;
            padding: 0px 10px;
        }

	.card.offerta > .card-img-overlay .category-destinazione {
        color: #ecefff !important;
        position: absolute;
        top: 45px;
        border-radius: 5px;
        background: #260443e0;
        font-size: 15px;
        text-shadow:
            1px -1px 0 #4d4d4dbf,  
            1px -1px 0 #4d4d4dbf,
            -1px 1px 0 #4d4d4dbf,
            1px 1px 0 #4d4d4dbf;
        }

        .card.offerta > .card-img-overlay .match-percent {
            position: absolute;
            top: 5px;
            left: 20px;
            border-radius: 5px;
            padding: 0px 5px !important;
            background-color: #fff;
            color: #404040;
        }

        .card.offerta > .card-img-overlay .favourites {
            position: absolute;
            top: 12px;
            right: 15px;
            border-radius: 50%;
            width: 32px;
            height: 32px;
            background-color: #fff;
            color: #CBCBCB;
            text-align: center;
            justify-content: center;
            padding-top: 5px;
        }

            .card.offerta > .card-img-overlay .favourites:hover {
                color: #FF516F;
            }

.marginbadge {
    left: 20px !important;
}

@media (max-width: 992px) {
    .card.offerta > .card-img-overlay .favourites {
        padding-top: 5px;
    }
}

.card.offerta > .card-img-overlay .promo {
    position: absolute;
    top: -20px;
    margin-left: 249px !important;
    font-family: "Poppins", sans-serif;
    font-weight: 800;
    font-size: 14px;
    border-radius: 50%;  /* Make it a circle */
    width: 55px;  /* Set width and height */
    height: 55px;
    display: flex;
    align-items: center;  /* Center text vertically */
    justify-content: center;  /* Center text horizontally */
    border: 1px solid #da052e;
    z-index: 100;
}

.card.offerta>.card-img-overlay .ai {
    position: absolute;
    top: -10px;
    margin-left: -10px !important;
    z-index: 100;
}

.card.offerta > .card-img-overlay .promo_online {
    position: absolute;
    top: -20px;
    margin-left: 249px !important;
    font-family: "Poppins", sans-serif;
    font-weight: 800;
    font-size: 14px;
    border-radius: 50%;  /* Make it a circle */
    width: 55px;  /* Set width and height */
    height: 55px;
    display: flex;
    align-items: center;  /* Center text vertically */
    justify-content: center;  /* Center text horizontally */
    border: 1px solid #1f93c1;
}

.card.offerta > .card-img-overlay .card-title {
    color: white;
    font-weight: bold;
    font-size: 18px;
    line-height: 21px;
    text-align: left;
    position: absolute;
    top: 50%; /* Adjusted to 50% for vertical centering */
    transform: translateY(-50%); /* Moves the element up by half its height */
    margin-left: 20px !important;
    width: 90%;
    text-shadow: -1px -1px 0 #4d4d4d38, 1px -1px 0 #4d4d4d38, -1px 1px 0 #4d4d4d38, 1px 1px 0 #4d4d4d38;
}

.card.offerta > .card-img-overlay p {
    margin-right: 0px !important;
    margin-left: 0px !important;
}

.card.offerta > .card-img-overlay .living-offerte-categoria-hotel {
    justify-content: left;
    text-align: left;
    left: 0px;
    float: left;
    clear: both;
    width: 25%;
    margin-left: 22px;
    padding-left: 0px;
}

    .card.offerta > .card-img-overlay .living-offerte-categoria-hotel img {
        height: 22px;
        width: fit-content;
        display: block;
        margin-left: -8px;
        position: absolute;
        top: 207px;
    }

.card.offerta .card-body {
    padding: 0 !important;
    border-radius: 15px;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    z-index: 100;
    overflow-x: hidden;
}

    .card.offerta .card-body > .card-text.notti {
        color: white;
        font-weight: normal;
        text-align: left;
        margin-bottom: 0;
        font-family: 'Poppins', Arial;
    }

    .card.offerta .card-body > .card-text.transfer {
        margin-top: -10px;
        padding-top: 0;
        line-height: 14px;
        text-align: left;
    }

    .card.offerta .card-body > .card-text.tour_op {
        color: #fa3424;
    	font-weight: 700;
    	position: absolute;
    	top: 75px;
    	right: 20px !important;
    	font-size: 16px;
    }

/* TO DO - Da verificare perch� questa regola si trova qui - Compromette il funzionamento del dropdown menu nell'header
.dropdown-toggle::after { 
  content: none; 
} */
.dropdown button {
    background-color: transparent;
    border: 0px;
}

    .dropdown button:hover {
        background-color: transparent;
        border: 0px;
    }

.white {
    color: #ffffff !important;
}

.bg-hotel {
    background: #116b01;
}

.bg-caseappartamentiville {
    background: #127700;
}

.bg-mareeuropa {
    background: #00BEA4;
}

.bg-maremondo {
    background: #FF9100;
}

.bg-viaggidinozze {
    background: #6F4AD5;
}

.bg-viaggiorganizzati {
    background: #FF5733;
}

.bg-altro {
    background: #33A1FD;
}

.bg-montagnainverno {
    background: #FF33D1;
}

.bg-mareitalia {
    background: #1D8A99;
}

.bg-montagna_estate {
    background: #8D41AD;
}

.bg-treni {
    background: #CC7000;    
}

.bg-crociere {
    background: #003366;
}

.bg-viaggiinbus {
    background: #e8a819;
}

.bg-voli {
    background: #e8195e;
}

.bg-montagnaestate {
    background: #19e84d;
}

.bg-volohotel {
    background: #196ce8;
}

.bg-capodanno {
    background: #e84219;
}

.bg-pasqua {
    background: #19b8e8;
}

.prezzo-size {
    font-size: 20px; 
    color: #fdcb0a;
}

.popover {
    border-radius: 10px;
    padding: 0px 10px 15px 10px;
    border: 0;
    box-shadow: #c2d7e68f 0 0 15px 0px !important;
}

    .popover .arrow {
        border: 0;
        border-color: white;
    }

    .popover .popover-body {
        border-radius: 15px;
    }

        .popover .popover-body p {
            line-height: 21px;
            margin-bottom: -5px;
        }

            .popover .popover-body p a {
                font-family: "Ubuntu", sans-serif;
                font-weight: 300;
                font-size: 14px;
                line-height: 11px;
                color: #404040;
            }

                .popover .popover-body p a .i {
                    color: #0067B0;
                }

                .popover .popover-body p a:hover {
                    text-decoration: none;
                    color: #0067B0;
                }

        .popover .popover-body hr {
            margin-top: 15px;
            margin-bottom: 10px;
        }

/* .Migliori offerte */
.badge-offer {
    position: absolute;
    top: -15px;
    right: 10px; /* Adjust as needed to align with your existing circle */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #01274d; /* Dark blue background */
    border-radius: 30px; /* Fully rounded border */
    padding: 5px 20px 5px 10px; /* Padding for text alignment */
    font-family: "Poppins", sans-serif;
    font-weight: bold;
    font-size: 14px;
    color: #ffffff; /* White text */
    min-width: 250px; /* Minimum width to ensure text fits */
    z-index: 5;
    border: 2px solid; /* Initial border */
}

/* Specific styles for each badge type */
.badge-offer-offerta-flash {
    border-color: #fdcb0a; /* Yellow border */
}

.badge-offer-last-minute {
    border-color: #00ff00; /* Green border */
    border-width: 3px;
}

.badge-offer-sconto-extra {
    border-color: #ff0000; /* Red border */
    border-width: 3px;
}

.badge-offer i {
    margin-right: 15px; /* Space between icon and text */
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.grid-container-offerte-speciali.loading {
    position: relative;
    min-height: 300px;
}

.grid-container-offerte-speciali.loading:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    margin-top: -25px;
    margin-left: -25px;
    border: 6px solid #f3f3f3;
    border-top: 6px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Vedi Tariffe Link */
.vedi-tariffe-link {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.85rem;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px solid transparent;
}

.vedi-tariffe-link:hover {
    color: #5568d3;
    border-bottom-color: #5568d3;
    text-decoration: none;
}

.vedi-tariffe-link:active {
    transform: scale(0.98);
}

.vedi-tariffe-link.tariffe-link-disabled {
    color: #aaa;
    border-bottom-color: transparent;
    cursor: not-allowed;
    opacity: 0.6;
}

.vedi-tariffe-link.tariffe-link-disabled:hover {
    color: #aaa;
    border-bottom-color: transparent;
}

/* Tariffe Modal */
.tariffe-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tariffe-modal.show {
    opacity: 1;
}

.tariffe-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
}

.tariffe-modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 90vw;
    max-height: 90vh;
    width: 80vw;
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.tariffe-modal.show .tariffe-modal-content {
    transform: scale(1);
}

.tariffe-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.tariffe-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
}

.tariffe-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
    width: 36px;
    height: 36px;
}

.tariffe-modal-close:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.tariffe-modal-body {
    padding: 24px;
    overflow: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.tariffe-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tariffe-pdf-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.tariffe-pdf-viewer {
    width: 100%;
    height: 70vh;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tariffe-pdf-fallback {
    text-align: center;
    width: 100%;
}

.tariffe-pdf-fallback p {
    color: #6b7280;
    margin-bottom: 12px;
}

.btn-download-pdf {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-download-pdf:hover {
    background: #5568d3;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.tariffe-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: #6b7280;
    font-size: 1rem;
}

.tariffe-loading .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.tariffe-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: #ef4444;
    text-align: center;
}

.tariffe-error i {
    font-size: 3rem;
}

.tariffe-error p {
    margin: 0;
    font-size: 1.1rem;
    color: #6b7280;
}

.btn-open-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-open-link:hover {
    background: #5568d3;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tariffe-modal-content {
        max-width: 95vw;
        max-height: 95vh;
        width: 100%;
        margin: 10px;
    }
    
    .tariffe-modal-header {
        padding: 16px;
    }
    
    .tariffe-modal-body {
        padding: 16px;
    }
    
    .tariffe-pdf-viewer {
        height: 60vh;
    }
}

/* ---------------------------------------------------------------------------
   Meal pill: subtle hint when AI-extracted pasti details are available,
   richer Bootstrap tooltip when the user hovers.
   --------------------------------------------------------------------------- */
.meal-pill.has-details {
    cursor: help;
    border-bottom: 1px dashed rgba(110, 60, 188, 0.5);
}
.meal-pill .meal-info-dot {
    font-size: 0.75em;
    margin-left: 0.25rem;
    color: #6E3CBC;
    opacity: 0.75;
}
.meal-pill.has-details:hover .meal-info-dot {
    opacity: 1;
}

/* Bootstrap tooltip override — wider, readable for the meal popover. */
.tooltip-inner:has(.meal-tooltip-rich) {
    max-width: 360px;
    padding: 0;
    background: #1f2937;
}
.meal-tooltip-rich {
    text-align: left;
    padding: 10px 12px;
    line-height: 1.45;
}
.meal-tooltip-rich .meal-tooltip-title {
    font-weight: 700;
    font-size: 0.85rem;
    color: #fcd34d;
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 4px;
}
.meal-tooltip-rich .meal-tooltip-body {
    font-size: 0.82rem;
    color: #f3f4f6;
    white-space: normal;
}
/* Fallback for browsers without :has() — just widen any tooltip containing the rich block. */
.tooltip.show .tooltip-inner {
    max-width: 360px;
}

/* ============================================
   MOBILE — offer cards (Phase 2)
   The legacy .card.offerta layout uses absolutely-positioned children
   pinned to a hardcoded 294×369 box (see lines ~259-340 above). Scaling
   the box would break those offsets. Instead, on mobile we accept the
   294px card width and center it in the grid cell, killing the 79px
   right-side dead zone the audit caught. Belt-and-braces overflow-x
   clip on the section in case any child still wants to be wider.
   ============================================ */
@media (max-width: 768px) {
    #offerte_speciali_offerte,
    .offers-section-modern {
        overflow-x: clip;
    }
    .offers-grid-modern {
        justify-items: center;
    }
    .card.offerta {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    /* Audit Phase 2: card title was 15.2px and price 14px — readable but
       small. Bump on mobile where the user reads at arm's length. */
    .card.offerta > .card-img-overlay .best-offer-hotel-name {
        font-size: 16px;
        line-height: 1.35;
    }
    .card.offerta > .card-img-overlay > .card-text.destinazione,
    .card.offerta > .card-img-overlay > .card-text.notti {
        font-size: 16px;
    }
}

/* ============================================================
   Skeleton placeholders. They share the OUTER card class with the
   real card (.offer-card-modern / .locandina-card-modern) so the
   grid lays them out at the exact same dimensions — no layout
   jump when JS swaps in the real data.

   The `.is-skeleton` modifier:
     - disables hover effects + pointer-events
     - fills each inner slot (card-image / card-body-modern /
       locandina-image / locandina-footer) with greyed shimmer
       primitives (.skeleton-fill, .skeleton-line, .skeleton-pill,
       .skeleton-price, .skeleton-button).

   `.offer-card-skeleton` is kept as a marker class so the existing
   injectSkeletonCards `querySelector('.offer-card-skeleton')` check
   still finds template-rendered placeholders.
   ============================================================ */

.offer-card-modern.is-skeleton,
.locandina-card-modern.is-skeleton {
    cursor: default;
    pointer-events: none;
}
.offer-card-modern.is-skeleton:hover,
.locandina-card-modern.is-skeleton:hover {
    transform: none;
}

/* Fill primitive — absolutely positioned, fills its parent slot.
   The parent (.card-image / .locandina-image) already supplies the
   width/height + position:relative anchor. */
.is-skeleton .skeleton-fill {
    position: absolute;
    inset: 0;
    background-color: #f3f4f6;
    overflow: hidden;
    border-radius: inherit;
}

/* Block placeholders — line, pill, price, button. */
.is-skeleton .skeleton-line,
.is-skeleton .skeleton-pill,
.is-skeleton .skeleton-price,
.is-skeleton .skeleton-button {
    background-color: #f3f4f6;
    position: relative;
    overflow: hidden;
    border-radius: 6px;
}
.is-skeleton .skeleton-line { height: 14px; margin-bottom: 0.45rem; }
.is-skeleton .skeleton-line-title { width: 78%; height: 18px; }
.is-skeleton .skeleton-line-short  { width: 55%; height: 12px; }
.is-skeleton .skeleton-meta-row {
    display: flex;
    gap: 0.4rem;
    margin-top: 0.3rem;
}
.is-skeleton .skeleton-pill {
    height: 22px;
    border-radius: 999px;
    flex: 1;
}
.is-skeleton .skeleton-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin-top: 0.6rem;
    padding-top: 0.6rem;
    border-top: 1px solid #f3f4f6;
}
.is-skeleton .skeleton-price { width: 40%; height: 22px; }
.is-skeleton .skeleton-button { width: 90px; height: 32px; border-radius: 8px; }

/* Shimmer: shared ::after gradient on every greyed primitive. */
.is-skeleton .skeleton-fill::after,
.is-skeleton .skeleton-line::after,
.is-skeleton .skeleton-pill::after,
.is-skeleton .skeleton-price::after,
.is-skeleton .skeleton-button::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.55) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: translateX(-100%);
    animation: skeletonShimmer 1.35s infinite;
}

@keyframes skeletonShimmer {
    100% { transform: translateX(100%); }
}

@media (prefers-reduced-motion: reduce) {
    .offer-card-skeleton .skeleton-image::after,
    .offer-card-skeleton .skeleton-line::after,
    .offer-card-skeleton .skeleton-pill::after,
    .offer-card-skeleton .skeleton-price::after,
    .offer-card-skeleton .skeleton-button::after {
        animation: none;
    }
}
