﻿:root {
    --primary-bg-color: lightcyan;
}

html, body {
        margin: 0;
        padding: 0;
        width: 100%;
        background: transparent !important;
        font-family: sans-serif;
    }

    body {
        display: block;
    }

    #app {
        background: transparent !important;
        display: inline-block;
    }

.control-wrapper {
    max-width: 700px;
    margin: 0 auto;
    padding: 0px 0px 0px;
}

.e-card.clickable-card {
    display: flex;
    flex-direction: row; /* Items go top to bottom */
    align-items: stretch; /* Full width of parent */
    background-color: lightcyan;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
    padding: 0.5rem;
    border-radius: 6px;
    width: fit-content;
}

.e-card-header, .e-card-content, .e-card-footer {
    padding: 0.75rem 1rem;
    text-align: center;
}

.card-image {
    position: relative;
    width: max-content;
    height: auto;
    object-fit: contain;
    margin: 20px;
    padding: 60px;
}

button.e-control.e-btn.e-lib.e-outline {
    font-size: x-large;
}

.e-card-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px;
}


/* Syncfusion list and card responsiveness */
.e-list-template .e-list-item {
    padding: 0;
    border: none;
}

.e-card.clickable-card {
    cursor: pointer;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.e-card .e-card-header-title {
    font-size: 1rem;
    font-weight: bold;
}

.e-card-header, .e-card-content, .e-card-footer {
    padding: 0.5rem 0.2rem;
    text-align: center;
}

.e-card .e-card-footer {
    font-size: 0.9rem;
    color: #555;
    text-align: center;
}

.image-container {
    position: relative;
    width: 100%;
    height: auto;
    margin-top: 5px;
}

td.cabin-description {
    text-align: start;
}

td.cabin-price {
    font-weight: 700;
    padding-left: 20px;
}

/* Remove bullets from SfListView */
.e-list-template ul {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

.e-headertext {
    font-size: 25px;
    font-weight: 600;
}

.e-list-header {
    text-align: center;
}

.cruiseList {
    width: max-content;
}

.e-list-template .e-list-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.image-container {
    position: relative; /* Make THIS the relative parent */
    width: 100%;
    height: auto;
}

.price-label {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 255, 255, 0.5); /* 50% transparent white */
    color: darkred; /* Dark red text */
    padding: 0.5rem 1rem;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 1px 1px 2px white; /* Optional: white outline for visibility */
    z-index: 2;
}

.discount-sticker {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: crimson;
    color: white;
    padding: 5px 10px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    z-index: 10;
}

/* Responsive mobile layout */
@media (max-width: 768px) {
    .e-card.clickable-card {
        flex-direction: column !important;
    }

    .e-card .e-card-content img {
        width: 100%;
        height: auto;
    }

    .e-list-template .e-list-item {
        margin: 0.5rem 0;
    }

    .e-card-header, .e-card-footer {
        padding: 0.75rem 1rem;
    }

    .e-card-content {
        padding: 0.5rem 1rem;
    }
}
