/* Moving Jack Hotel Cards - CSS */

/* Section Styles */
.mjhc-hotel-section {
    max-width: 100%;
    margin-top: 2rem;
    margin-bottom: 100px !important;
}

.mjhc-section-header {
    text-align: center;
    margin-bottom: 48px;
    position: relative;
}

.mjhc-section-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #F0C419;
    margin-bottom: 12px;
    display: block;
}

.mjhc-section-title {
    font-family: 'Geologica', -apple-system, sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    color: #1a1a1a;
}

.mjhc-section-subtitle {
    font-size: 1rem;
    color: #6B6560;
    max-width: 480px;
    margin: 0 auto;
    font-weight: 400;
}

.mjhc-section-divider {
    width: 60px;
    height: 2px;
    background: #F0C419;
    margin: 32px auto 0;
}

/* Hotel Card */
.mjhc-hotel-card {
    background: #FFFDFB;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(26, 26, 26, 0.06);
    margin-bottom: 120px !important;
    border: 2px solid #F0C419;
    position: relative;
}

.mjhc-hotel-inner {
    display: grid;
    grid-template-columns: 380px 1fr;
    min-height: 240px;
    overflow: hidden;
    border-radius: 14px;
}

/* No image variant */
.mjhc-hotel-card.mjhc-no-image .mjhc-hotel-inner {
    grid-template-columns: 1fr;
}

.mjhc-hotel-image-wrapper {
    position: relative;
    max-height: 400px;
}

.mjhc-hotel-image {
    width: 100%;
    height: 100%;
    max-height: 400px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.mjhc-hotel-card:hover .mjhc-hotel-image {
    transform: scale(1.05);
}

.mjhc-hotel-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #FFFDFB;
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1a1a1a;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Inline badge for no-image cards */
.mjhc-hotel-badge-inline {
    display: inline-block;
    background: #FFF9E6;
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1a1a1a;
    border: 1px solid #F0C419;
    margin-bottom: 12px;
}

.mjhc-hotel-price-badge {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: rgba(255, 255, 255, 0.95);
    color: #1a1a1a;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 5;
}

/* Inline price for no-image cards */
.mjhc-hotel-price-inline {
    font-size: 0.8rem;
    color: #1a1a1a;
    background: #FFF9E6;
    padding: 4px 10px;
    border-radius: 4px;
}

.mjhc-price-label {
    font-size: 0.65rem;
    font-weight: 400;
    color: #6B6560;
}

.mjhc-price-value {
    font-weight: 600;
}

.mjhc-hotel-content {
    padding: 32px;
    display: flex;
    flex-direction: column;
}

.mjhc-hotel-header {
    margin-bottom: 20px;
}

.mjhc-hotel-name {
    font-family: 'Geologica', -apple-system, sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
line-height:26px;
    color: #1a1a1a;
}

.mjhc-hotel-pretitle {
    font-family: 'Geologica', -apple-system, sans-serif;
    font-size: 1.4rem;
    color: #999;
    letter-spacing: -0.02em;
    font-weight: 400;
    display: block;
    margin-bottom: 0;
}

.mjhc-hotel-stars {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.mjhc-hotel-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.mjhc-hotel-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 500;
}

.mjhc-rating-stars {
    display: flex;
    gap: 2px;
}

.mjhc-star {
    width: 14px;
    height: 14px;
    fill: #E5B800;
}

.mjhc-star-empty {
    fill: #E8E4DE;
}

.mjhc-rating-score {
    color: #1a1a1a;
    font-weight: 600;
}

.mjhc-rating-count {
    color: #6B6560;
    font-weight: 400;
}

.mjhc-hotel-location {
    font-size: 0.8rem;
    color: #6B6560;
    display: flex;
    align-items: center;
    gap: 4px;
}

.mjhc-location-icon {
    width: 12px;
    height: 12px;
    stroke: #6B6560;
}

/* Actions */
.mjhc-hotel-actions {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.mjhc-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #3B82F6;
    color: #FFFDFB !important;
    padding: 14px 30px !important;
    border-radius: 10px;
    font-family: 'Geologica', -apple-system, sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.3s ease;
    letter-spacing: -0.01em;
    border: none;
    cursor: pointer;
    box-shadow: 
        0 1px 0 #0a5fb8,
        0 3px 6px rgba(23, 142, 253, 0.4) !important;
}

.mjhc-cta-primary:hover {
    background: #2563EB;
    color: #FFFDFB !important;
    transform: translateX(4px);
    text-decoration: none !important;
}

.mjhc-cta-primary svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.mjhc-cta-primary:hover svg {
    transform: translateX(4px);
}

.mjhc-cta-secondary {
    font-size: 0.75rem;
    color: #6B6560 !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.mjhc-cta-secondary:hover {
    color: #1a1a1a !important;
    text-decoration: none !important;
}

.mjhc-cta-secondary svg {
    width: 12px;
    height: 12px;
}

/* Editor's Choice Card Variant */
.mjhc-editors-choice {
    position: relative;
}

.mjhc-editors-choice::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(135deg, #F0C419, transparent 50%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Hotel Budget Group */
.mjhc-hotel-group {
    margin: 2rem 0;
}

.mjhc-hotel-group-title {
    font-family: 'Geologica', -apple-system, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

.mjhc-hotel-group-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.mjhc-hotel-group-item {
    display: flex;
    flex-direction: column;
}

.mjhc-budget-label {
    font-family: 'Geologica', -apple-system, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    padding: 8px 0;
    text-align: center;
    color: #1a1a1a;
}

/* Compact Hotel Card */
.mjhc-hotel-compact {
    background: #FFFDFB;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(26, 26, 26, 0.06);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 2px solid #F0C419;
}

.mjhc-hotel-compact-image {
    position: relative;
    height: 140px;
    overflow: hidden;
}

.mjhc-hotel-compact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mjhc-compact-price {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(255, 255, 255, 0.95);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #1a1a1a;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.mjhc-hotel-compact-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.mjhc-hotel-compact-name {
    font-family: 'Geologica', -apple-system, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: #1a1a1a;
}

.mjhc-hotel-compact-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0.5rem;
}

.mjhc-compact-stars {
    color: #F0C419;
    font-size: 0.8rem;
}

.mjhc-compact-score {
    font-size: 0.8rem;
    font-weight: 600;
    color: #1a1a1a;
}

.mjhc-hotel-compact-location {
    font-size: 0.75rem;
    color: #6B6560;
    margin: 0 0 auto 0;
    padding-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.mjhc-hotel-compact-location .mjhc-location-icon {
    width: 12px;
    height: 12px;
    stroke: #6B6560;
    flex-shrink: 0;
}

.mjhc-compact-cta {
    display: block;
    background: #3B82F6;
    color: #fff !important;
    text-align: center;
    padding: 10px 16px;
    border-radius: 8px;
    font-family: 'Geologica', -apple-system, sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.2s ease;
    margin-top: auto;
}

.mjhc-compact-cta:hover {
    background: #2563EB;
    color: #fff !important;
}

/* Pointer Arrow */
.mjhc-hotel-pointer {
    position: absolute;
    left: -60px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    padding: 16px 16px;
    border-radius: 50%;
    font-size: 1.9rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
    z-index: 10;
    animation: mjPointerBounce 2s ease-in-out infinite;
}

@keyframes mjPointerBounce {
    0%, 100% {
        transform: translateY(-50%) translateX(0);
    }
    50% {
        transform: translateY(-50%) translateX(5px);
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .mjhc-hotel-group-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .mjhc-section-header {
        margin-bottom: 32px;
    }

    .mjhc-hotel-pointer {
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .mjhc-hotel-pointer::after {
        display: none;
    }

    .mjhc-hotel-name,
    .mjhc-hotel-pretitle {
        text-align: center;
    }
    
    .mjhc-hotel-stars,
    .mjhc-hotel-meta {
        justify-content: center;
    }

    .mjhc-hotel-inner {
        grid-template-columns: 1fr;
    }

    .mjhc-hotel-card {
        margin-left: 1rem !important;
        margin-right: 1rem !important;
    }

    .mjhc-hotel-image-wrapper {
        height: 250px;
        max-height: 250px;
    }
    
    .mjhc-hotel-image {
        max-height: 250px;
    }

    .mjhc-hotel-content {
        padding: 24px;
    }

    .mjhc-hotel-name {
        font-size: 1.25rem;
    }

    .mjhc-hotel-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .mjhc-cta-primary {
        justify-content: center;
        padding: 18px 28px !important;
        font-size: 1.15rem;
        width: 100%;
        text-align: center;
    }

    .mjhc-cta-secondary {
        justify-content: center;
        padding: 12px;
        font-size: 0.85rem;
    }
}

/* Animation */
@media (prefers-reduced-motion: no-preference) {
    .mjhc-hotel-card {
        animation: mjFadeUp 0.6s ease backwards;
    }
    
    .mjhc-hotel-card:nth-child(2) {
        animation-delay: 0.1s;
    }
    
    .mjhc-hotel-card:nth-child(3) {
        animation-delay: 0.2s;
    }
    
    .mjhc-hotel-card:nth-child(4) {
        animation-delay: 0.3s;
    }

    @keyframes mjFadeUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* Fix wpautop damage */
.mjhc-rating-stars {
    display: inline-flex !important;
    flex-direction: row !important;
    gap: 2px !important;
}

.mjhc-rating-stars svg {
    display: inline-block !important;
}

.mjhc-hotel-image-wrapper p,
.mjhc-hotel-image-wrapper br,
.mjhc-hotel-content > p:empty {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    line-height: 0 !important;
}

.mjhc-hotel-meta p,
.mjhc-hotel-meta br {
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
}

.mjhc-hotel-image-wrapper {
    font-size: 0 !important;
    line-height: 0 !important;
}

.mjhc-hotel-price-badge {
    font-size: 0.75rem !important;
    line-height: 1.4 !important;
}

.mjhc-hotel-image {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

.mjhc-cta-secondary {
    margin-right: auto;
}

/* Force white text on compact button */
a.mjhc-compact-cta,
a.mjhc-compact-cta:link,
a.mjhc-compact-cta:visited,
a.mjhc-compact-cta:hover,
a.mjhc-compact-cta:active,
.mjhc-hotel-compact a.mjhc-compact-cta {
    color: #fff !important;
}

/* ==================== ACTIVITIES SECTION ==================== */
.mjhc-activities-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 1.5rem 0;
}
.mjhc-activity-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}
.mjhc-activity-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 75%;
    background: #F97316;
    border: none;
    border-radius: 12px;
    padding: 20px 32px;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 
        0 2px 0 #EA580C,
        0 4px 12px rgba(249, 115, 22, 0.4);
}
.mjhc-activity-btn:hover {
    background: #EA580C;
    transform: translateY(-2px);
    box-shadow: 
        0 4px 0 #C2410C,
        0 8px 20px rgba(249, 115, 22, 0.5);
}
.mjhc-activity-arrow {
    font-size: 2rem;
    line-height: 1;
    transition: transform 0.3s ease;
    position: absolute;
}
.mjhc-arrow-left {
    left: -50px;
}
.mjhc-arrow-right {
    right: -50px;
}
.mjhc-activity-btn:hover .mjhc-arrow-left {
    transform: translateX(10px);
}
.mjhc-activity-btn:hover .mjhc-arrow-right {
    transform: translateX(-10px);
}
.mjhc-activity-name {
    font-family: 'Geologica', -apple-system, sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff !important;
    letter-spacing: -0.01em;
    text-align: center;
}
.mjhc-activity-price {
    position: absolute;
    top: -10px;
    right: -10px;
    font-family: 'Geologica', -apple-system, sans-serif;
    font-size: 0.75rem;
    color: #1a1a1a;
    font-weight: 600;
    background: #F0C419;
    padding: 4px 10px;
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
/* Mobile */
@media (max-width: 768px) {
    .mjhc-activities-group {
        margin-left: 16px!important;
        margin-right: 16px!important;
    }
    
    .mjhc-activity-btn {
        width: 100%;
        padding: 18px 20px;
    }
    
    .mjhc-activity-arrow {
        position: static;
    }
    
    .mjhc-activity-btn:hover .mjhc-arrow-left {
        transform: translateX(-6px);
    }
    
    .mjhc-activity-btn:hover .mjhc-arrow-right {
        transform: translateX(6px);
    }
    
    .mjhc-activity-name {
        font-size: 1rem;
    }
    
    .mjhc-activity-arrow {
        font-size: 1.5rem;
    }
    
    .mjhc-activity-price {
        top: -8px;
        right: -5px;
        font-size: 0.7rem;
    }
}