:root {
    --staytile-title-color: #3730a3;
    --staytile-tabs-bg: #F1F0F0;
    --staytile-text-white: #fff;
    --staytile-card-border: #e0e0e0;
    --staytile-badge-box-bg: #41448E;
    --staytile-badge-text-bg: #9747FF;
    --staytile-card-title-color: #42448E;
    --staytile-card-subtitle-color: #FAB702;
    --staytile-button-primary-bg: #fbbf24;
    --staytile-button-primary-text: #1f2937;
    --staytile-button-primary-hover: #f59e0b;
    --staytile-button-primary-shadow: rgba(251, 191, 36, 0.4);
    --staytile-nav-button-bg: #5b4a9f;
    --staytile-nav-button-hover: #4c3d95;
    --staytile-shadow-black: rgba(0, 0, 0, 0.2);
    --staytile-dot-inactive: #d1d5db;
}

.staytile-container {
    margin: 2rem auto;
    padding: 0 120px;
}

.staytile-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 2rem 0;
    color: var(--staytile-title-color);
    text-align: center;
}

/* Tab Navigation */
.staytile-tabs {
    display: flex;
    justify-content: center;
    border-bottom: none;
    flex-wrap: nowrap;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    background: var(--staytile-tabs-bg);
    border-radius: 12px;
    padding:5px;
}

.staytile-tabs .nav-item {
    margin-bottom: 0;
    padding: 0;
}

.staytile-tabs .nav-item::before{
    display: none;
}

.staytile-tabs .nav-link {
    border-radius: 16px;
    padding:10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
    border: none;
    text-decoration: none;
    color: var(--staytile-title-color);
}

.staytile-tabs .nav-link.active {
    background: var(--staytile-nav-button-bg);
    color: var(--staytile-text-white);
}


.staytile-tabs .tab-icon {
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tab-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.staytile-tabs .nav-link.active .tab-icon img {
    filter: brightness(0) invert(1);
}

.staytile-tabs .nav-link .tab-icon img {
    width: 25px;
    height: 25px;
    filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2000%) hue-rotate(210deg) brightness(0.9);
}

.tab-title {
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
}

.staytile-tabs .nav-link.active .tab-title {
    color: var(--staytile-text-white);
}

.staytile-tabs .nav-link .tab-title {
    text-align: center;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: 18px;
}

/* Tab Content */
.staytile-content {
    margin-top: 2rem;
}

.tab-pane {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Stay Cards Grid */
.stay-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.stay-cards-grid .stay-card {
    padding-bottom: 0px;
}

.stay-card {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--staytile-card-border);
    display: flex;
    flex-direction: column;
}

.stay-card-image {
    position: relative;
    width: 100%;
    height: 327px;
    overflow: hidden;
}

.stay-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px 12px 0 0;

}

.stay-card-icons {
    position: absolute;
    bottom: 3rem;
    left: .5rem;
    display: flex;
    gap: 0.75rem;
    z-index: 5;
}

.stay-icon {
    width: 33.25px;
    height: 33.25px;
    padding: 4.156px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--staytile-text-white);
}

.stay-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.stay-card-badge-box {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--staytile-badge-box-bg);
    padding: 5px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    display: flex;
    padding: 5px 10px;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    align-self: stretch;
}

.stay-card-badge-box .badge-text {
    background: var(--staytile-badge-text-bg);
    padding: 5px 8px;
    text-transform: capitalize;
    color: var(--staytile-text-white);
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
}

.badge-keywords {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.badge-pricing {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

.badge-actual-price {
    color: var(--staytile-text-white);
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%; /* 21px */
    text-decoration-line: line-through;
}

.stay-card-badge-box .badge-price {
    color: var(--staytile-text-white);
    font-size: 16px;
    font-style: normal;
    font-weight: 800;
    line-height: 24px;
}

.stay-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.stay-card-title {
    color: var(--staytile-card-title-color);
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: 30px;
}

.stay-card-subtitle {
    color: var(--staytile-card-subtitle-color);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
}

.stay-card-description {
    color: var(--staytile-card-title-color);
    font-size: 14px;
    font-weight: 400;
    line-height: 21px;
    margin-bottom: 0;
}

.stay-card-description {
    color: var(--staytile-card-title-color);
    font-size: 14px;
    font-weight: 400;
    line-height: 21px;
    margin-bottom: 75px;
}

.stay-card-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.stay-button-wrapper {
    flex: 1 1 auto;
    min-width: 180px;
}

.stay-button {
display: flex;
height: 45px;
padding: 15px 10px;
justify-content: center;
align-items: center;
gap: 10px;
flex: 1 0 0;
}

.stay-button.primary {
    background: var(--staytile-button-primary-bg);
    color: var(--staytile-button-primary-text);
    border: 3px solid var(--staytile-button-primary-bg);
}

.stay-button.primary:hover {
    background: var(--staytile-button-primary-hover);
    border-color: var(--staytile-button-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--staytile-button-primary-shadow);
}

.stay-button.secondary {    
    border: 1px solid var(--staytile-card-title-color);
    color: var(--staytile-card-title-color);
}

.stay-button.outline {
    background: transparent;
    border: 3px solid var(--staytile-title-color);
    color: var(--staytile-title-color);
}

.stay-button.outline:hover {
    background: var(--staytile-title-color);
    color: var(--staytile-text-white);
}

/* Responsive */
@media (max-width: 768px) {
    .staytile-container {
        padding: 0 1rem;
    }

    .staytile-tabs .nav-link {
        padding: 10px;
        min-width: auto;
    }

    .stay-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stay-card-image {
        height: 300px;
    }

    .stay-card-content {
        padding: 1.5rem;
    }

    .stay-card-title {
        font-size: 1.5rem;
    }

    .stay-card-badge-box .badge-price {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .staytile-tabs {
        flex-direction: row;
    }

    .staytile-tabs .nav-link {
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }

    .tab-icon {
        width: 40px;
        height: 40px;
    }

    .stay-card-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .stay-button-wrapper {
        width: 100%;
    }


    .stay-icon {
        width: 40px;
        height: 40px;
        padding: 0.5rem;
    }

    .stay-card-badge-box .badge-text {
        font-size: 0.9rem;
        padding: 0.4rem 1rem;
    }

    .badge-pricing {
        gap: 0.75rem;
    }

    .badge-actual-price {
        font-size: 1rem;
    }

    .stay-card-badge-box .badge-price {
        font-size: 1.3rem;
    }
}

/* =========================================
   BUTTON ICON AND POSITION STYLES
   ========================================= */

/* Button with icon layout */
.stay-button {
    display: flex;
    height: 45px;
    padding: 15px 10px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex: 1 0 0;
}

/* Icon sizing */
.button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
}

.button-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Icon position variants */
.button-icon-before {
    order: -1;
}

.button-icon-after {
    order: 1;
}

.button-text {
    order: 0;
}

/* Button positioning for cards in grid */
.stay-card {
    position: relative;
    padding-bottom: 3rem;
    overflow: visible;
}

.stay-card .stay-button-wrapper.button-inside {
    position: relative;
}

.stay-card .stay-button-wrapper.button-outside {
    position: absolute;
    left: 50%;
    transform: translate(-50%, 50%);
    bottom: 0;
    z-index: 10;
}

@media (max-width: 767px) {
    .button-icon {
        width: 1rem;
        height: 1rem;
    }

    .stay-card .stay-button-wrapper.button-outside {
        transform: translate(-50%, 40%);
    }
}

/* Button container alignment */

/* Button container - Figma specs */
.stay-card-buttons {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 15px;
    align-self: stretch;
    flex-wrap: wrap;
    margin-top: auto;
}

/* Individual button wrapper - Figma specs */
.stay-card .stay-button-wrapper {
    flex: 1 1 0;
    min-width: 150px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

/* Card rounded borders */
.stay-card {
    border-radius: 12px;
}

/* =========================================
   OWL CAROUSEL SLIDER STYLES
   ========================================= */

/* Slider container */
.stay-card-slider.owl-carousel {
    margin: 0;
    padding: 0;
}

/* Owl Carousel items - maintain grid card styling */
.stay-card-slider .owl-item .stay-card {
    margin: 0 auto;
    max-width: 400px;
}

/* Owl nav buttons */
.stay-card-slider .owl-nav {
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 100;
}

.stay-card-slider .owl-nav button {
    pointer-events: all;
    background: var(--staytile-nav-button-bg) !important;
    color: var(--staytile-text-white) !important;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px var(--staytile-shadow-black);
}

.stay-card-slider .owl-nav button:hover {
    background: var(--staytile-nav-button-hover) !important;
    transform: scale(1.1);
}

.stay-card-slider .owl-nav button.owl-prev {
    margin-left: -25px;
}

.stay-card-slider .owl-nav button.owl-next {
    margin-right: -25px;
}

/* Owl pagination dots */
.stay-card-slider .owl-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 2rem;
}

.stay-card-slider .owl-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--staytile-dot-inactive);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.stay-card-slider .owl-dot.active {
    background: var(--staytile-nav-button-bg);
    width: 30px;
    border-radius: 6px;
}

/* Responsive slider */
@media (max-width: 768px) {
    .stay-card-slider .owl-nav button {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .stay-card-slider .owl-nav button.owl-prev {
        margin-left: -20px;
    }

    .stay-card-slider .owl-nav button.owl-next {
        margin-right: -20px;
    }
}