/* ==========================
   HERO SECTION
========================== */
#hero-tours {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6.5em 2em;
    background-image: 
        radial-gradient(circle at center, transparent 15%, rgba(0, 15, 10, 0.72) 100%),
        linear-gradient(135deg, rgba(0, 21, 15, 0.85) 0%, rgba(0, 123, 94, 0.3) 55%, rgba(0, 21, 15, 0.9) 100%),
        url('../images/tours-hero.webp');
    background-size: cover;
    background-position: center;
    color: #ffffff;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0, 37, 26, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

#hero-tours::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 18, 12, 0.45); /* additional scrim for high readability */
    border-radius: 16px;
    z-index: 1;
    pointer-events: none;
}

#hero-tours h1,
#hero-tours h2,
#hero-tours p {
    position: relative;
    z-index: 2;
}

#hero-tours h1,
#hero-tours h2 {
    color: #ffffff !important;
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    font-family: var(--font-display, inherit);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.95), 0 1px 4px rgba(0, 0, 0, 0.9);
}

#hero-tours p {
    color: #ffffff !important;
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    font-weight: 500;
    max-width: 760px;
    margin: 0.5rem auto 0;
    line-height: 1.6;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.95), 0 1px 3px rgba(0, 0, 0, 0.9);
}

/* ==========================
   TOUR PROOF / LINKS / FAQ
========================== */
#tour-proof,
#tour-planning-links,
#tour-faq {
    margin-top: 2.5em;
}

#tour-proof .tour-proof-grid,
#tour-planning-links .tour-links-grid,
#tour-faq .tour-faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5em;
    align-items: stretch;
}

#tour-proof .tour-proof-card,
#tour-planning-links .tour-link-card,
#tour-faq .tour-faq-item {
    background: linear-gradient(180deg, #ffffff 0%, #f4faf7 100%);
    border: 1px solid #deebe4;
    border-radius: 14px;
    padding: 1.5em;
    box-shadow: 0 10px 24px rgba(0, 77, 64, 0.06);
}

#tour-proof h3,
#tour-planning-links h3,
#tour-faq h3 {
    margin-bottom: 0.55em;
}

#tour-proof p,
#tour-planning-links p,
#tour-faq p {
    margin-bottom: 0;
}

/* ==========================
   TOURS GRID
========================== */
#tours-list {
    margin-top: 2em;
}

#tours-list .tours-grid {
    align-items: stretch;
}

#tours-list .tour {
    background-color: #f0f8f5;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#tours-list .tour:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

#tours-list .tour img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

#tours-list .tour > :not(img) {
    padding: 1.5em;
    text-align: center;
}

#tours-list .tour h3 {
    margin-bottom: 0.5em;
}

#tours-list .tour p {
    margin-bottom: 1em;
}

#tours-list .tour ul {
    margin-bottom: 1em;
}

#tours-list .tour .btn {
    background-color: #007b5e;
    color: #fff;
    margin-top: auto;
}

#tours-list .tour .btn:hover {
    background-color: #004d40;
}

/* ==========================
   CALL TO ACTION
========================== */
#cta-tours {
    background-color: #007b5e;
    color: #fff;
    text-align: center;
    padding: 4em 2em;
    border-radius: 12px;
    margin-top: 3em;
}

#cta-tours .btn {
    --btn-text-color: #004d40;
    background-color: #ffc107;
    color: var(--btn-text-color);
}

#cta-tours .btn:hover {
    background-color: #e0a800;
    color: var(--btn-text-color);
}

/* ==========================
   RESPONSIVE
========================== */
@media (max-width: 1200px) {
    #hero-tours {
        padding: 5em 2em;
    }
}

@media (max-width: 992px) {
    #hero-tours {
        padding: 5em 1.5em;
    }
    .destinations-grid,
    .tours-grid,
    .souvenirs-grid,
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    #hero-tours {
        padding: 4em 1em;
    }
    #tours-list {
        gap: 1.5em;
    }
    .destinations-grid,
    .tours-grid,
    .souvenirs-grid,
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5em;
    }

    #tour-proof .tour-proof-grid,
    #tour-planning-links .tour-links-grid,
    #tour-faq .tour-faq-grid {
        grid-template-columns: 1fr;
    }

    #cta-tours {
        padding: 3em 1.5em;
    }
}

@media (max-width: 480px) {
    #hero-tours h2 {
        font-size: 1.4rem;
    }
    #hero-tours p {
        font-size: 0.95rem;
    }
    #tours-list .tour img {
        height: 180px;
    }
    #tours-list .tour > :not(img) {
        padding: 1em;
    }

    #tour-proof .tour-proof-card,
    #tour-planning-links .tour-link-card,
    #tour-faq .tour-faq-item {
        padding: 1em;
    }

    #tours-list .tour h3 {
        font-size: 1.1rem;
    }
    #cta-tours {
        padding: 2.5em 1em;
    }
    #cta-tours h2 {
        font-size: 1.2rem;
    }
}

/* ==================================
   INTERACTIVE TOURS ENHANCEMENTS
   ================================== */
.section-subtitle-centered {
    text-align: center;
    max-width: 700px;
    margin: 0.5em auto 2.5em;
    color: #4a5568;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Glassmorphism Category Filters */
.tours-filter-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8em;
    margin-bottom: 2.5em;
    padding: 0.6em;
    background: rgba(0, 123, 94, 0.04);
    border: 1px solid rgba(0, 123, 94, 0.15);
    border-radius: 50px;
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
    backdrop-filter: blur(8px);
}

.tours-filter-wrapper .filter-btn {
    background: transparent;
    border: none;
    padding: 0.6em 1.4em;
    font-size: 0.95rem;
    font-weight: 600;
    color: #004d40;
    border-radius: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5em;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.tours-filter-wrapper .filter-btn:hover {
    background: rgba(0, 123, 94, 0.08);
}

.tours-filter-wrapper .filter-btn.active {
    background: #007b5e;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 123, 94, 0.25);
}

/* Layout overrides to match clean grid */
#tours-list .tours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2em;
}

#tours-list .tour {
    border: 1px solid #deebe4;
    box-shadow: 0 10px 24px rgba(0, 77, 64, 0.04);
    background-color: #ffffff;
    text-align: left;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

#tours-list .tour > :not(img):not(.tour-image-container) {
    text-align: left;
    padding: 1.5em;
}

/* Image container and Category Badge */
.tour-image-container {
    overflow: hidden;
    position: relative;
    height: 220px;
}

.tour-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.tour:hover .tour-image-container img {
    transform: scale(1.04);
}

.tour .category-badge {
    position: absolute;
    top: 1em;
    right: 1em;
    z-index: 10;
    padding: 0.4em 0.9em;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    box-shadow: 0 4px 8px rgba(0,0,0,0.12);
    color: #fff;
}

/* Dynamic color coding for badges */
.tour .category-badge.primate-safaris {
    background: linear-gradient(135deg, #dd6b20 0%, #ed8936 100%);
}

.tour .category-badge.wildlife-safaris {
    background: linear-gradient(135deg, #2f855a 0%, #48bb78 100%);
}

.tour .category-badge.cultural-city {
    background: linear-gradient(135deg, #2b6cb0 0%, #4299e1 100%);
}

.tour .category-badge.mountain-trekking {
    background: linear-gradient(135deg, #6b46c1 0%, #805ad5 100%);
}

/* Tour Meta Grid */
.tour-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5em;
    margin: 1.2em 0 1.5em;
    padding: 0.8em 0.4em;
    border-top: 1px dashed #deebe4;
    border-bottom: 1px dashed #deebe4;
}

.tour-meta-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: 0.78rem;
    color: #4a5568;
    gap: 0.25em;
}

.tour-meta-item i {
    font-size: 1.05rem;
    color: #007b5e;
    margin-bottom: 0.15em;
}

.tour-meta-item span strong {
    display: block;
    color: #1a202c;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 0.1em;
}

/* Included checklist custom bullet styling */
#tours-list .tour h4 {
    font-size: 0.88rem;
    font-weight: 700;
    color: #004d40;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.8em;
}

.included-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.included-list li {
    font-size: 0.9rem;
    color: #4a5568;
    margin-bottom: 0.55em;
    display: flex;
    align-items: center;
    gap: 0.6em;
    line-height: 1.35;
}

.included-list li::before {
    content: "\f058";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #38a169;
    font-size: 1rem;
}

/* Tour actions and sharing style */
.tour-actions {
    display: flex;
    flex-direction: column;
    gap: 0.8em;
    padding: 1.5em;
    border-top: 1px solid #deebe4;
    margin-top: auto;
    background-color: #fcfdfe;
}

.tour-actions .btn {
    width: 100%;
    text-align: center;
    font-weight: 600;
    display: block;
    box-sizing: border-box;
}

/* Social Share Bar */
.share-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    padding: 0.4em 0.8em;
    border-radius: 8px;
    background: #f4faf7;
    border: 1px solid #deebe4;
}

.share-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #004d40;
    letter-spacing: 0.03em;
    margin-right: auto;
}

.share-action {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #deebe4;
    color: #004d40;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
}

.share-action:hover {
    background: #007b5e;
    color: #ffffff;
    border-color: #007b5e;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 123, 94, 0.15);
}

.share-action.is-copied {
    background: #38a169;
    color: #ffffff;
    border-color: #38a169;
}

/* Animation utility to hide non-matching items nicely */
.tour.hidden {
    display: none !important;
}

/* Responsiveness adjustments */
@media (max-width: 768px) {
    .tours-filter-wrapper {
        border-radius: 20px;
        max-width: 100%;
    }
    
    .tours-filter-wrapper .filter-btn {
        padding: 0.5em 1em;
        font-size: 0.85rem;
    }
    
    #tours-list .tours-grid {
        grid-template-columns: 1fr;
    }
    
    .compare-drawer {
        width: 95%;
        padding: 0.8rem;
    }
    .compare-drawer-content {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }
    .compare-modal-content {
        max-height: 95vh;
    }
    .compare-table th, .compare-table td {
        padding: 0.8rem;
        font-size: 0.85rem;
    }
}

/* ==================================
   DYNAMIC CARD INTERACTIVE EFFECTS
   ================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#tours-list .tour {
    animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#tours-list .tour:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 36px rgba(0, 77, 64, 0.12) !important;
    border-color: #007b5e !important;
}

/* ==================================
   SEARCH & FILTERS PANEL
   ================================== */
.tours-search-wrapper {
    max-width: 750px;
    margin: 0 auto 2rem;
    text-align: center;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 2px solid #deebe4;
    border-radius: 30px;
    padding: 0.1rem 0.3rem;
    box-shadow: 0 6px 16px rgba(0, 77, 64, 0.03);
    transition: all 0.25s ease;
}

.search-box:focus-within {
    border-color: #007b5e;
    box-shadow: 0 8px 24px rgba(0, 123, 94, 0.12);
}

.search-icon {
    position: absolute;
    left: 1.25rem;
    color: #007b5e;
    font-size: 1.1rem;
}

#tours-search-input {
    width: 100%;
    border: none;
    outline: none;
    padding: 0.8rem 3rem 0.8rem 3rem;
    font-size: 1rem;
    color: #1a202c;
    border-radius: 30px;
    background: transparent;
}

.clear-search-btn {
    position: absolute;
    right: 1.25rem;
    background: #e2e8f0;
    border: none;
    color: #4a5568;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.clear-search-btn:hover {
    background: #cbd5e0;
    color: #1a202c;
}

.search-keywords {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    justify-content: center;
}

.keywords-label {
    font-size: 0.82rem;
    color: #4a5568;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-right: 0.25rem;
}

.keyword-tag {
    background: #f4faf7;
    border: 1px solid #deebe4;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.82rem;
    color: #004d40;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    font-weight: 600;
}

.keyword-tag i {
    font-size: 0.75rem;
    color: #007b5e;
}

.keyword-tag:hover {
    background: #007b5e;
    color: #ffffff;
    border-color: #007b5e;
    transform: scale(1.03);
}

.keyword-tag.active {
    background: #007b5e;
    color: #ffffff;
    border-color: #007b5e;
    box-shadow: 0 4px 10px rgba(0, 123, 94, 0.15);
}

/* ==================================
   COMPARISON SYSTEM STYLING
   ================================== */
.compare-checkbox-container {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 0.35rem 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 77, 64, 0.12);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 700;
    color: #004d40;
    transition: all 0.2s ease;
    border: 1px solid #deebe4;
    user-select: none;
    backdrop-filter: blur(4px);
}

.compare-checkbox-container:hover {
    background: #ffffff;
    border-color: #007b5e;
    transform: translateY(-1px);
}

.compare-checkbox-container input[type="checkbox"] {
    cursor: pointer;
    accent-color: #007b5e;
    width: 14px;
    height: 14px;
    margin: 0;
}

/* Floating Compare Drawer */
.compare-drawer {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    z-index: 999;
    background: #ffffff;
    border: 2px solid #007b5e;
    border-radius: 16px;
    box-shadow: 0 12px 36px rgba(0, 77, 64, 0.18);
    width: 90%;
    max-width: 580px;
    padding: 0.9rem 1.4rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.compare-drawer.hidden {
    transform: translateX(-50%) translateY(150px);
    opacity: 0;
    pointer-events: none;
}

.compare-drawer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.compare-drawer-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.compare-count-badge {
    background: #007b5e;
    color: #ffffff;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.compare-drawer-text {
    margin: 0;
    font-size: 0.9rem;
    color: #004d40;
    font-weight: 700;
}

.compare-drawer-actions {
    display: flex;
    gap: 0.5rem;
}

.compare-drawer-actions .btn-compare {
    background: #007b5e;
    color: #ffffff;
    border: none;
    padding: 0.55rem 1.1rem;
    font-size: 0.85rem;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.compare-drawer-actions .btn-compare:hover:not(:disabled) {
    background: #005a44;
    box-shadow: 0 4px 12px rgba(0, 123, 94, 0.25);
}

.compare-drawer-actions .btn-compare:disabled {
    background: #cbd5e0;
    color: #718096;
    cursor: not-allowed;
}

.compare-drawer-actions .btn-clear-compare {
    background: transparent;
    border: 1px solid #718096;
    color: #4a5568;
    padding: 0.55rem 1rem;
    font-size: 0.85rem;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.compare-drawer-actions .btn-clear-compare:hover {
    background: #f7fafc;
    color: #1a202c;
    border-color: #1a202c;
}

/* Compare Modal Overlay */
.compare-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.compare-modal.hidden {
    opacity: 0;
    pointer-events: none;
}

.compare-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 24, 18, 0.7);
    backdrop-filter: blur(4px);
}

.compare-modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 18px;
    width: 100%;
    max-width: 820px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
    display: flex;
    flex-direction: column;
}

.compare-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.6rem;
    border-bottom: 1px solid #deebe4;
    background: #f4faf7;
}

.compare-modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    color: #004d40;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.close-modal-btn {
    background: transparent;
    border: none;
    font-size: 1.25rem;
    color: #718096;
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 0.3rem;
}

.close-modal-btn:hover {
    color: #e53e3e;
}

.compare-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
}

.compare-table-wrapper {
    overflow-x: auto;
    border: 1px solid #deebe4;
    border-radius: 12px;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
    background: #ffffff;
}

.compare-table th, .compare-table td {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid #deebe4;
    vertical-align: middle;
}

.compare-table th {
    background: #f4faf7;
    color: #004d40;
    font-weight: 700;
    font-size: 0.95rem;
}

.compare-table tr:last-child th, .compare-table tr:last-child td {
    border-bottom: none;
}

.feature-label {
    font-weight: 700;
    color: #004d40;
    background: #fdfefe;
    width: 150px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.compare-tour-column {
    width: 38%;
}

.compare-tour-image {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.compare-tour-title {
    font-weight: 700;
    color: #1a202c;
    font-size: 0.95rem;
    margin: 0;
}

.compare-highlights-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.compare-highlights-list li {
    margin-bottom: 0.35rem;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #4a5568;
}

.compare-highlights-list li::before {
    content: "\f058";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #38a169;
    font-size: 0.85rem;
}

.compare-table .btn {
    font-size: 0.8rem;
    padding: 0.45rem 0.9rem;
    width: 100%;
    display: block;
    text-align: center;
    box-sizing: border-box;
}

/* ==================================
   FAVORITES AND MAP SYSTEM STYLING
   ================================== */
.favorite-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #deebe4;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 77, 64, 0.1);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    color: #a0aec0; /* default neutral gray */
}

.favorite-btn:hover {
    transform: scale(1.1);
    color: #e53e3e;
    background: #ffffff;
    border-color: #feb2b2;
    box-shadow: 0 6px 14px rgba(229, 62, 62, 0.2);
}

.favorite-btn.favorited {
    color: #e53e3e;
    background: #ffffff;
    border-color: #fca5a5;
    animation: heartBeat 0.3s ease;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.25); }
    100% { transform: scale(1); }
}

/* Custom tour actions row */
.tour-actions-row {
    display: flex;
    gap: 0.6rem;
    width: 100%;
}

.btn-quick-enquire {
    flex: 1.2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-weight: 700 !important;
    background-color: #007b5e !important;
    color: #ffffff !important;
    border: none;
    border-radius: 24px;
    padding: 0.75rem 1.1rem;
    font-size: 0.85rem !important;
    transition: background-color 0.2s, transform 0.1s;
    text-decoration: none;
}

.btn-quick-enquire:hover {
    background-color: #004d40 !important;
}

.btn-view-map {
    flex: 0.8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-weight: 600 !important;
    background-color: #ffffff !important;
    color: #007b5e !important;
    border: 2px solid #007b5e !important;
    border-radius: 24px;
    padding: 0.65rem 1.1rem;
    font-size: 0.85rem !important;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-view-map:hover {
    background-color: rgba(0, 123, 94, 0.08) !important;
    border-color: #004d40 !important;
    color: #004d40 !important;
}

/* Share wrapper alignment */
.share-wrapper-container {
    width: 100%;
}

/* Favorite filter badge in quick keywords */
.keyword-tag.favorite-filter-tag {
    background-color: #fff5f5;
    border: 1.5px solid #feb2b2;
    color: #c53030;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 700;
}

.keyword-tag.favorite-filter-tag:hover {
    background-color: #fed7d7;
    border-color: #f56565;
    color: #9b2c2c;
}

.keyword-tag.favorite-filter-tag.active {
    background-color: #e53e3e;
    color: #ffffff;
    border-color: #e53e3e;
}

.keyword-tag.favorite-filter-tag.active i {
    color: #ffffff !important;
}

/* Sorting select input styles */
#tours-sort-select:hover {
    border-color: #007b5e;
}

#tours-sort-select:focus {
    border-color: #007b5e;
    box-shadow: 0 0 0 3px rgba(0, 123, 94, 0.15);
}

/* Map specific override styles for Leaflet popups */
.leaflet-popup-content-wrapper {
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 77, 64, 0.15);
}

.leaflet-popup-tip {
    background: white;
}
