/* ==================== BASE ==================== */
* {
    box-sizing: border-box;
}

body {
    background-color: #b8a88e;
}

/* ==================== GRADIENT TEXT ==================== */
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.animated-gradient-text {
    background: linear-gradient(270deg,
            #c9a96e,
            #f5e6c8,
            #a8884f,
            #d4b87a,
            #c9a96e);
    background-size: 300% 300%;
    animation: gradient-shift 5s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.animated-gradient-text:hover {
    animation-play-state: paused;
}

/* ==================== HERO CARD ==================== */
.hero-card {
    box-shadow:
        0 25px 60px -12px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(201, 169, 110, 0.05);
}

/* Tinggi hero card — UBAH NILAI min-height UNTUK MENGATUR TINGGI CARD */
@media (min-width: 1024px) {
    .hero-card {
        max-height: calc(100vh - 0.5rem);
        min-height: 70vh;
        overflow: hidden;
    }

    /* Slider mengisi tinggi card dikurangi padding */
    .slider-wrapper {
        height: calc(70vh - 2rem) !important;
    }
}

/* ==================== SLICK: IMAGE SLIDER (HERO) ==================== */
.image-slider .slick-dots {
    bottom: 16px;
}

.image-slider .slick-dots li button:before {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    opacity: 1;
}

.image-slider .slick-dots li.slick-active button:before {
    color: #c9a96e;
    opacity: 1;
}

.image-slider .slick-prev,
.image-slider .slick-next {
    display: none !important;
}

.image-slider .slick-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-slider .slick-list,
.image-slider .slick-track,
.image-slider .slick-slide>div {
    height: 100%;
}

/* ==================== SLICK: GALLERY SLIDER ==================== */
.gallery-slider .slick-dots {
    bottom: -50px;
}

.gallery-slider .slick-dots li button:before {
    font-size: 12px;
    color: rgba(200, 185, 154, 0.3);
    opacity: 1;
}

.gallery-slider .slick-dots li.slick-active button:before {
    color: #c9a96e;
}

.gallery-slider .slick-prev,
.gallery-slider .slick-next {
    width: 50px;
    height: 50px;
    z-index: 20;
    background: rgba(201, 169, 110, 0.1);
    border: 1px solid rgba(201, 169, 110, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.gallery-slider .slick-prev:hover,
.gallery-slider .slick-next:hover {
    background: rgba(201, 169, 110, 0.25);
    border-color: rgba(201, 169, 110, 0.5);
}

.gallery-slider .slick-prev:before,
.gallery-slider .slick-next:before {
    font-size: 18px;
    color: #c9a96e;
    opacity: 0.8;
}

.gallery-slider .slick-prev {
    left: -15px;
}

.gallery-slider .slick-next {
    right: -15px;
}

.gallery-slider .slick-slide {
    outline: none !important;
}

/* ==================== MOBILE NAV OVERLAY ==================== */
#mobile-nav.active {
    opacity: 1;
    pointer-events: auto;
}

#mobile-nav .nav-link {
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}

#mobile-nav.active .nav-link {
    transform: translateY(0);
    opacity: 1;
}

#mobile-nav.active .nav-link:nth-child(1) {
    transition-delay: 0.1s;
}

#mobile-nav.active .nav-link:nth-child(2) {
    transition-delay: 0.2s;
}

#mobile-nav.active .nav-link:nth-child(3) {
    transition-delay: 0.3s;
}

#mobile-nav.active .nav-link:nth-child(4) {
    transition-delay: 0.4s;
}

/* ==================== SELECT DROPDOWN ==================== */
select option {
    background: #222220;
    color: #c8b99a;
}

/* ==================== CALENDAR MODAL ==================== */
#calendar-modal.active {
    opacity: 1;
    visibility: visible;
}

#calendar-modal.active #calendar-card {
    transform: translateY(0);
}

.cal-day-cell {
    position: relative;
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 500;
    color: #c8b99a;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.cal-day-cell::before {
    content: '';
    position: absolute;
    inset: 2px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    z-index: -1;
}

.cal-day-cell:not(.disabled):hover::before {
    border-color: rgba(201, 169, 110, 0.5);
    background-color: rgba(201, 169, 110, 0.1);
}

.cal-day-cell.disabled {
    opacity: 0.3;
    pointer-events: none;
    color: #8a8278;
}

.cal-day-cell.selected::before {
    border-color: #c9a96e;
    background-color: #c9a96e;
}

.cal-day-cell.selected {
    color: #1a1a18;
    font-weight: 700;
}

.cal-day-cell.in-range {
    color: #c9a96e;
}

.cal-day-cell.in-range::after {
    content: '';
    position: absolute;
    top: 2px;
    bottom: 2px;
    left: -2px;
    right: -2px;
    background-color: rgba(201, 169, 110, 0.1);
    z-index: -2;
}

/* ==================== SMOOTH SCROLL ==================== */
html {
    scroll-behavior: smooth;
}

/* ==================== SLIDER UTILITIES ==================== */
.slider-img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    aspect-ratio: 4/5;
}

@media (min-width: 768px) {
    .slider-img-cover {
        aspect-ratio: 1/1;
    }
}

/* Ensure slider descriptions are uniform to align titles perfectly */
.java-slider p,
.sumatra-slider p {
    min-height: 48px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==================== RESPONSIVE TWEAKS ==================== */
@media (max-width: 639px) {

    .gallery-slider .slick-prev,
    .gallery-slider .slick-next {
        display: none !important;
    }
}