/* =========================================
   Tour Card Component — Standalone Styles
   Reference: /cardtempl.html
   ========================================= */

/* -----------------------------------------
   1. IMAGE WRAPPER & BADGES
   ----------------------------------------- */
.tour-card__image-wrapper {
    position: relative;
    height: 210px;
    overflow: hidden;
    flex-shrink: 0;
}

.tour-card__image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.tour-card:hover .tour-card__image-wrapper img {
    transform: scale(1.05);
}

.tour-card__badges {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 2;
}

.tour-card .badge-top {
    background: var(--c-deep-blue);
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.tour-card .badge-top svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
}

.tour-card .badge-discount {
    background: #eb4e4e;
    color: #fff;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(235, 78, 78, 0.3);
}

/* -----------------------------------------
   2. CONTENT AREA
   ----------------------------------------- */
.tour-card .tour-card__content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* -----------------------------------------
   3. META ROW (Duration, Transport, Likes)
   ----------------------------------------- */
.tour-card__meta-row {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #555;
    margin-bottom: 12px;
}

.tour-card__meta-item {
    display: flex;
    align-items: center;
    margin-right: 14px;
}

.tour-card__meta-item svg {
    width: 15px;
    height: 15px;
    fill: var(--c-gold);
    margin-right: 5px;
    flex-shrink: 0;
}

/* -----------------------------------------
   4. FAVORITE / LIKE BUTTON
   ----------------------------------------- */
.tour-card__favorite-btn {
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    color: #555;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--f-body);
}

.tour-card__favorite-btn .heart-icon {
    width: 20px;
    height: 20px;
    fill: transparent;
    stroke: #555;
    stroke-width: 2;
    transition: transform 0.2s ease, stroke 0.2s ease, fill 0.2s ease;
}

.tour-card__favorite-btn:hover .heart-icon {
    stroke: #eb4e4e;
    transform: scale(1.1);
}

.tour-card__favorite-btn:hover {
    color: var(--c-text-main);
}

/* Active / Liked state */
.tour-card__favorite-btn.is-active .heart-icon,
.tour-card__favorite-btn.liked .heart-icon {
    fill: #eb4e4e;
    stroke: #eb4e4e;
    animation: heartPulse 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tour-card__favorite-btn.is-active,
.tour-card__favorite-btn.liked {
    color: #eb4e4e;
}

@keyframes heartPulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.4); }
    100% { transform: scale(1); }
}

/* -----------------------------------------
   5. TITLE
   ----------------------------------------- */
.tour-card .tour-card__title {
    font-size: 20px;
    color: var(--c-text-main);
    line-height: 1.2;
    margin-bottom: 14px;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* -----------------------------------------
   6. INFO BOX (Notes)
   ----------------------------------------- */
.tour-card__info-box {
    background-color: #f4f2ec;
    border-left: 3px solid var(--c-gold);
    border-radius: 0 6px 6px 0;
    padding: 10px 12px;
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tour-card__info-item {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: var(--c-text-main);
}

.tour-card__info-item svg {
    width: 15px;
    height: 15px;
    fill: var(--c-gold);
    margin-right: 8px;
    flex-shrink: 0;
}

/* -----------------------------------------
   7. SCHEDULE & INCLUDED
   ----------------------------------------- */
.tour-card__schedule {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #555;
    margin-bottom: 14px;
}

.tour-card__schedule svg {
    width: 15px;
    height: 15px;
    fill: var(--c-gold);
    margin-right: 6px;
    flex-shrink: 0;
}

.tour-card__included-title {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #555;
    margin-bottom: 8px;
}

.tour-card__included-title svg {
    width: 15px;
    height: 15px;
    fill: var(--c-gold);
    margin-right: 6px;
    flex-shrink: 0;
}

/* -----------------------------------------
   8. TAGS
   ----------------------------------------- */
.tour-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.tour-card__tag {
    background: #f4f2ec;
    color: var(--c-text-main);
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 12px;
}

/* -----------------------------------------
   9. RATING & DIVIDER
   ----------------------------------------- */
.tour-card__rating {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #555;
    margin-bottom: 16px;
}

.tour-card__stars {
    color: var(--c-gold);
    margin-right: 6px;
    font-size: 15px;
    letter-spacing: 1px;
}

.tour-card__rating-val {
    color: var(--c-deep-blue);
    font-weight: 700;
    margin-right: 4px;
}

.tour-card__divider {
    height: 1px;
    background: #eeeeee;
    margin-bottom: 16px;
}

/* -----------------------------------------
   10. PRICE BLOCK
   ----------------------------------------- */
.tour-card__price-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.tour-card__price-row {
    display: flex;
    align-items: baseline;
    font-size: 14px;
    color: #555;
}

.tour-card__price-label {
    flex-shrink: 0;
    white-space: nowrap;
    margin-right: 4px;
}

.tour-card__price-old {
    text-decoration: line-through;
    color: #aaaaaa;
    font-size: 15px;
    margin-right: 6px;
}

.tour-card__price-main {
    font-size: 22px;
    font-weight: 800;
    color: #eb4e4e;
    margin-right: 5px;
}

.tour-card__price-main--normal {
    color: var(--c-text-main);
}

.tour-card__price-row--child .tour-card__price-main {
    font-size: 17px;
    font-weight: 700;
    color: #555;
}

/* -----------------------------------------
   11. BUTTONS
   ----------------------------------------- */
.tour-card__btn {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    font-family: var(--f-body);
}

.tour-card__btn--primary {
    background: var(--c-gold);
    color: #fff;
    border: 1px solid var(--c-gold);
    margin-bottom: 10px;
}

.tour-card__btn--primary:hover {
    background: var(--c-deep-blue);
    border-color: var(--c-deep-blue);
}

.tour-card__btn--outline {
    background: transparent;
    color: var(--c-gold);
    border: 1px solid var(--c-gold);
    font-size: 14px;
}

.tour-card__btn--outline svg {
    fill: currentColor;
    margin-right: 6px;
    transition: fill 0.3s ease;
}

.tour-card__btn--outline:hover {
    color: var(--c-deep-blue);
    border-color: var(--c-deep-blue);
}

/* Contact button wrapper (outside <a> link) */
.tour-card__contact-wrapper {
    padding: 0 18px 18px 18px;
}

/* -----------------------------------------
   12. MOBILE — comfortable reading sizes
   ----------------------------------------- */
@media (max-width: 768px) {

    /* Content padding */
    .tour-card .tour-card__content {
        padding: 16px;
    }

    .tour-card__contact-wrapper {
        padding: 0 16px 16px 16px;
    }

    /* Title */
    .tour-card .tour-card__title {
        font-size: 1.25rem;
        margin-bottom: 12px;
    }

    /* Meta row (duration, transport, likes) */
    .tour-card__meta-row {
        font-size: 13px;
        color: #555;
    }

    .tour-card__meta-item svg {
        width: 15px;
        height: 15px;
    }

    .tour-card__favorite-btn {
        font-size: 14px;
    }

    .tour-card__favorite-btn .heart-icon {
        width: 22px;
        height: 22px;
    }

    /* Info box (notes) */
    .tour-card__info-item {
        font-size: 13px;
    }

    .tour-card__info-item svg {
        width: 15px;
        height: 15px;
    }

    /* Schedule */
    .tour-card__schedule {
        font-size: 13px;
        color: #555;
    }

    .tour-card__schedule svg {
        width: 15px;
        height: 15px;
    }

    /* Included label */
    .tour-card__included-title {
        font-size: 13px;
        color: #555;
    }

    .tour-card__included-title svg {
        width: 15px;
        height: 15px;
    }

    /* Tags */
    .tour-card__tag {
        font-size: 12px;
        padding: 5px 10px;
    }

    /* Rating */
    .tour-card__rating {
        font-size: 14px;
        color: #555;
    }

    .tour-card__stars {
        font-size: 15px;
    }

    /* Prices */
    .tour-card__price-row {
        font-size: 14px;
        color: #555;
    }

    .tour-card__price-old {
        font-size: 15px;
    }

    .tour-card__price-main {
        font-size: 22px;
    }

    .tour-card__price-row--child .tour-card__price-main {
        font-size: 17px;
    }

    /* Buttons */
    .tour-card__btn--primary {
        font-size: 15px;
        padding: 13px;
    }

    .tour-card__btn--outline {
        font-size: 14px;
        padding: 12px;
    }
}
