/* =========================
   Variables & Wrapper
   ========================= */
:root {
    --shanti-gap: 2rem;
    --shanti-visible-cards: 3;
}

.shanti-rooms-wrapper {
    position: relative;
    width: 100%;
    /* Ensure room for buttons if they are absolute, or just normal flow */
}

/* =========================
   Slider Viewport
   ========================= */
.shanti-rooms-slider {
    position: relative;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
}

.shanti-rooms-slider::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.shanti-rooms-track {
    display: flex;
    gap: var(--shanti-gap);
    width: max-content;
    padding-bottom: 20px;
}

/* =========================
   Room Card (Dynamic Width)
   ========================= */
.shanti-room-card {
    box-sizing: border-box;
    /* (100% - gaps) / 3 cards */
    width: calc((100vw - (var(--shanti-gap) * (var(--shanti-visible-cards) - 1)) - 80px) / var(--shanti-visible-cards));
    flex-shrink: 0;
    scroll-snap-align: start;
    border-radius: 32px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
}

.shanti-room-image img {
    width: 100%;
    aspect-ratio: 16/11;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 1.5rem;
}

.shanti-room-title {
    margin-bottom: 1rem;
}

.shanti-room-description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
    font-weight:300;
}

.shanti-room-prices {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(243, 236, 228, 0.1);
    font-weight:300;
}

/* =========================
   Controls (Fixed Circles)
   ========================= */
.shanti-slider-controls {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    gap: 1.5rem;
    margin-top: -1.5rem;
    width: 100%;
}

.us_custom_arrow {
    position: relative !important;
    width: 64px !important;
    height: 64px !important;
    flex: 0 0 64px !important;
    border-radius: 50% !important;
    background: rgba(154, 136, 158, 0.15) !important;
    transition: all 0.3s ease;
    
    /* Perfect Centering */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Reset theme containers to let parent flex-box do the work */
.us_custom_arrow .w-iconbox,
.us_custom_arrow .w-iconbox-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
}

/* Ensure the FontAwesome icon itself is centered */
.us_custom_arrow i {
    display: block !important;
    line-height: 1 !important;
    margin: 0 !important;
    font-size: 1.2rem;
    color: #3B2A3D; /* Adjust color as needed */
}

.us_custom_arrow:hover {
    background: rgba(154, 136, 158, 0.3) !important;
    transform: translateY(-2px);
}

.us_custom_arrow button {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 10;
    cursor: pointer;
    background: transparent !important;
    border: none !important;
}
/* =========================
   Mobile Adjustments
   ========================= */
@media (max-width: 1024px) {
    :root { --shanti-visible-cards: 2; }
    .shanti-room-card { width: calc((100vw - 4rem) / 2.2); }
}

@media (max-width: 767px) {
    :root { --shanti-visible-cards: 1; }
    .shanti-room-card { width: 85vw; padding: 1.5rem; }
    .shanti-rooms-slider { padding-left: 20px; }
}