body {
    font-family: 'poppins', sans-serif;
    background-color: #F7F7F7;
    font-color: #d3af37;
}
/* Hide scrollbar for horizontal gallery */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
#gallery-helpful{
    color: #d3af37;
}
.scrollbar-hide {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

/* Mobile Bottom Sheet Transition */
#filter-modal-content {
    transition: transform 0.3s ease-out;
}
#filter-modal.hidden #filter-modal-content {
    transform: translateY(100%);
}

/* Star Rating Styles (using text characters) */
.stars {
    font-size: 1.25rem; /* 20px */
    line-height: 1;
}
.star.filled {
    color: #FFD700; /* star-teal */
}
.star.empty {
    color: #E5E5E5; /* light-gray */
}
.star.half {
    /* Creates a half-filled star by clipping a gradient */
    background: linear-gradient(90deg, #FFD700 50%, #E5E5E5 50%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ======================================================================
    NEW CUSTOM DROPDOWN STYLES
====================================================================== */
.custom-select-wrapper {
    position: relative;
    font-family: 'Poppins', sans-serif;
}
.custom-select-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem; /* py-2 px-4 */
    border: 1px solid #D1D5DB; /* border-gray-300 */
    border-radius: 1rem; /* rounded-2xl */
    background-color: #ffffff; /* bg-white */
    color: #4B5563; /* text-gray-600 */
    font-weight: 500; /* font-medium */
    cursor: pointer;
    transition: all 0.2s ease;
}
.custom-select-trigger:hover {
    border-color: #9CA3AF; /* border-gray-400 */
}
.custom-select-trigger .trigger-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.custom-select-trigger .arrow {
    width: 1.25rem; /* w-5 */
    height: 1.25rem; /* h-5 */
    margin-left: 0.5rem; /* ml-2 */
    transition: transform 0.2s ease;
    color: #9CA3AF; /* text-gray-400 */
}
.custom-select-wrapper.open .custom-select-trigger {
    border-color: #00D4AA; /* border-secondary-teal */
    box-shadow: 0 0 0 2px rgba(0, 212, 170, 0.3); /* ring */
}
.custom-select-wrapper.open .arrow {
    transform: rotate(180deg);
}

.custom-select-options {
    position: absolute;
    top: calc(100% + 0.5rem); /* mt-2 */
    left: 0;
    right: 0;
    background-color: #ffffff; /* bg-white */
    border: 1px solid #E5E7EB; /* border-gray-200 */
    border-radius: 1rem; /* rounded-2xl */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); /* shadow-lg */
    z-index: 30;
    overflow: hidden;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.custom-select-wrapper.open .custom-select-options {
    display: block;
    opacity: 1;
    transform: translateY(0);
}
#gallery-counter{
    color: #F7F7F7;
}

.custom-select-option {
    padding: 0.75rem 1rem; /* py-3 px-4 */
    color: #374151; /* text-gray-700 */
    cursor: pointer;
    transition: background-color 0.15s ease;
    white-space: nowrap;
}
.custom-select-option:hover {
    background-color: #F3F4F6; /* bg-gray-100 */
}
.custom-select-option.selected {
    background-color: #E6FFFA; /* bg-teal-50 */
    color: #00D4AA; /* text-secondary-teal */
    font-weight: 600; /* font-semibold */
}
/* Hide original select */
.custom-select-wrapper select {
    display: none;
}


/* ======================================================================
    MOBILE VIDEO PLAYER (MVP) STYLES
====================================================================== */

/* * 1. Player Container
* This wrapper holds the video and the UI overlay.
*/
.mvp-player-container {
    position: relative;
    line-height: 0; /* Prevents extra space below video */
    overflow: visible; /* Changed from hidden to visible */
    /* Respects the original video's layout (block, inline-block, etc) */
    display: block; 
    width: 100%;
    height: 100%;
    background: #000; /* Fallback for video load */
}

/* Ensure video inside container scales correctly */
.mvp-player-container > video {
    /* The video might have its own classes (e.g., object-contain) */
    /* We just ensure it's responsive to the container */
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    display: block;
}

/* * 2. UI Overlay
* Holds all controls and handles tap gestures.
*/
.mvp-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    transition: opacity 0.3s ease;
    /* For tap/double-tap */
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    /* Allow touch events to pass through when idle */
    pointer-events: auto;
}

/* * 3. Generic Button Styles
*/
.mvp-btn {
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}
.mvp-btn:focus {
    outline: none;
}

/* * 4. Top & Center Controls
*/

/* Close Button (Top Right) */
.mvp-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.3); /* 30% OPACITY */
    border-radius: 50%;
    z-index: 100;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.mvp-close-btn svg {
    width: 28px;
    height: 28px;
    color: #FFFFFF;
}

/* Center Play/Pause Button */
.mvp-center-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    /* ADD SEMI-TRANSPARENT BACKGROUND */
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    /* Rest stays same */
    z-index: 50;
    transition: opacity 0.3s ease, transform 0.1s ease;
}
.mvp-center-play:active {
    transform: translate(-50%, -50%) scale(0.95);
    background: rgba(0, 0, 0, 0.5); /* Slightly darker on press */
}

.mvp-play-icon {
    width: 0;
    height: 0;
    border-left: 40px solid rgba(255, 255, 255, 0.95);
    border-top: 26px solid transparent;
    border-bottom: 26px solid transparent;
    margin-left: 10px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

.mvp-pause-icon {
    display: none; /* Shown by JS */
    gap: 12px;
    flex-direction: row;
}
.mvp-pause-icon span {
    width: 12px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 4px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

/* * 5. Bottom Controls
*/
.mvp-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0; /* Use right instead of width: 100% */
    max-height: 35vh; /* Reduced from 45vh to prevent overflow */
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.95) 100%);
    z-index: 20;
    padding: 16px; /* Reduced padding */
    /* Add safe area for devices with notches */
    padding-bottom: max(16px, env(safe-area-inset-bottom));
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 12px; /* Reduced gap */
}

/* Volume Button (Absolute within controls) */
.mvp-volume-btn {
    position: absolute;
    top: 16px; /* Moved closer to top */
    right: 16px;
    width: 56px;
    height: 56px;
    /* INCREASE OPACITY for better visibility */
    background: rgba(40, 40, 40, 0.7); /* Darker, more opaque */
    border-radius: 50%;
    z-index: 25; /* Above other controls */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    /* ADD SUBTLE BORDER */
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.mvp-volume-btn:active {
    background: rgba(40, 40, 40, 0.85); /* Even darker on press */
}
.mvp-volume-btn svg {
    width: 28px;
    height: 28px;
    stroke: #FFFFFF;
    stroke-width: 2.5px;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Time Display (Centered) */
.mvp-time-display {
    font-size: 13px; /* Reduced from 15px */
    font-weight: 500;
    color: var(--mvp-text-color, #FFFFFF);
    text-align: center;
    background: rgba(0, 0, 0, 0.7); /* More opaque */
    padding: 6px 12px; /* Reduced padding */
    border-radius: 20px;
    align-self: center; /* Center in flex container */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* Timeline */
.mvp-timeline {
    width: 100%;
    height: 36px; /* Reduced from 44px */
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    touch-action: none; /* Prevent page scroll */
}

.mvp-timeline-track {
    position: absolute;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    pointer-events: none;
}

.mvp-timeline-progress {
    position: absolute;
    height: 4px;
    background: var(--mvp-primary-color, #DC143C);
    border-radius: 2px;
    width: 0%;
    pointer-events: none;
    transition: width 0.1s linear;
}

.mvp-timeline-scrubber {
    position: absolute;
    width: 24px;
    height: 24px;
    background: var(--mvp-accent-color, #E63946);
    border: 4px solid #FFFFFF;
    border-radius: 50%;
    left: 0%;
    transform: translateX(-50%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    transition: transform 0.1s ease, left 0.1s linear;
}

/* Dragging states */
.mvp-timeline.mvp-dragging .mvp-timeline-progress {
    transition: none;
}
.mvp-timeline.mvp-dragging .mvp-timeline-scrubber {
    transform: translateX(-50%) scale(1.4);
    transition: transform 0.1s ease;
}

/* * 6. Seek Indicator (TikTok-style)
*/
.mvp-seek-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none; /* Shown by JS */
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 60;
    pointer-events: none;
}

.mvp-seek-icon {
    font-size: 48px;
    color: #FFF;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.8));
}

.mvp-seek-text {
    font-size: 20px;
    font-weight: 600;
    color: #FFFFFF;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

/* * 7. Interaction States
*/

/* Hide controls when idle */
.mvp-overlay.mvp-idle .mvp-controls,
.mvp-overlay.mvp-idle .mvp-close-btn,
.mvp-overlay.mvp-idle .mvp-center-play {
    opacity: 0;
    /* Allow gallery swipe */
    pointer-events: none;
}

/* Keep play button visible if paused */
.mvp-overlay.mvp-idle.mvp-paused .mvp-center-play {
    opacity: 1;
    pointer-events: auto;
}

/* When NOT idle, capture all touch events */
.mvp-overlay:not(.mvp-idle) {
    pointer-events: auto;
}


/* ======================================================================
    START: USER FIXES
====================================================================== */

/* 1. Z-Index Fix: Lower sticky CTA z-index to be below modal (z-50) */
#stickyCta {
    z-index: 40; 
}

/* 2. Filter Modal Color Fixes (Overrides for missing Tailwind config) */
.filter-pill[data-active="true"] {
    background-color: #00D4AA !important; /* bg-secondary-teal */
    color: #FFFFFF !important; /* text-white */
    border-color: #00D4AA !important; /* border-secondary-teal */
    font-weight: 600 !important; /* font-semibold */
}
.filter-pill[data-active="false"] {
    background-color: #FFFFFF !important; /* bg-white */
    color: #4B5563 !important; /* text-gray-700 */
    border-color: #D1D5DB !important; /* border-gray-300 */
}

#apply-filters {
    background-color: #00D4AA;
    color: #FFFFFF;
}

#reset-filters {
    color: #00D4AA;
}

/* 3. "Carregar Mais" Button Style Fix */
/* This rule REPLACES the existing #load-more rule */
#load-more {
    background-color: transparent; /* Remove green background */
    color: #00D4AA; /* text-secondary-teal */
    font-weight: 600; /* font-semibold */
    text-decoration: underline; /* underline */
    cursor: pointer;
    text-align: center;
    /* Resetting other button styles */
    padding: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    display: inline-block; /* Ensure it's not full-width */
}
#load-more:hover {
    text-decoration: none; /* hover:no-underline */
}

/* ======================================================================
    END: USER FIXES
====================================================================== */
