@import url("./color-scheme.4a3c129fe677.css");

/* =========================================
   GENERAL TYPOGRAPHY & SPACING
========================================= */
.spaced-text {
    margin-bottom: 2rem;
}

.bullet-list-gap {
    margin-bottom: 0.5rem;
}

.custom-bullets {
    list-style-type: square;
    padding-left: 20px;
    font-size: 18px;
    text-align: left;
}

.no-bullets {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.no-bullets li::marker {
    content: '';
}

/* =========================================
   PAGE & SECTION LAYOUTS
========================================= */
.img {
    background-image: url("../images/globe-nasa-Q1p7bh3SHj8-unsplash.e6f12fbeac10.jpg");
    background-position: relative;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    width: 100%;
    height: 50vh;
    max-width: 100vw;
    margin: 0;
    padding-top: 4rem;
}

.box {
    width: 200px;
    height: 200px;
    background-image: url("../images/background_img_meter.62c233de19f8.jpg");
    background-size: cover;
}

.page-intro {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    width: 80%;
}

.page-intro h2,
.page-intro p {
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
}

.room-info,
.seasonal-info {
    margin-bottom: 4rem;
}

.section-separator {
    border: 0;
    height: 1px;
    background-color: #9e9b9b;
    margin: 2rem 0;
}

/* =========================================
   INTRODUCTORY PARAGRAPH
========================================= */

.intro-text-block {
    color: #4CAF50;          /* clean green */
    text-align: center;
    width: 80%;
    margin: 60px auto;       /* spacing from top and bottom, centered */
}

.intro-text-block h2 {
    font-size: 50px;         /* large heading */
    font-weight: bold;
    margin-bottom: 20px;
}

.intro-text-block p {
    font-size: 22px;         /* readable supporting text */
    line-height: 1.5;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2); /* subtle shadow for readability */
    margin-bottom: 15px;
}
/* =========================================
   DASHBOARD FLEX & CARDS
========================================= */
.dashboard-flex {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 0 0 200px;
}

.card {
    padding: 1rem;
    background-color: #f5f5f5;
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card.active {
    background-color: #4CAF50;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.info-display {
    flex: 1;
    border-radius: 12px;
    padding: 1rem;
    background-color: #fafafa;
    border: 1px solid #ddd;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.info {
    display: none;
}

.info.active {
    display: block;
}

/* =========================================
   FLEXIBLE INFO & IMAGES
========================================= */
.info-flex {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.info-text {
    flex: 1;
}

.info-image {
    flex: 0 0 300px;
}

.info-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
}

/* =========================================
   INTRO TEXT BOX
========================================= */
.intro-text {
    top: 0;
    background-color: #f9f9f9;
    padding: 0.5em 1em;
    z-index: 1;
    font-size: 1.2rem;
    line-height: 1.6;
    font-weight: 500;
    color: #333;
    margin-bottom: 1.5em;
    border-left: 5px solid #4CAF50;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 768px) {
    .info-flex {
        flex-direction: column;
    }

    .info-image {
        flex: 1;
    }

    .info-image img {
        height: 180px;
    }

    .occupancy-card {
        height: auto;
    }

    .occupancy-card-image {
        height: 120px;
    }

    .season-card.horizontal,
    .season-card.horizontal.reverse {
        flex-direction: column;
    }

    .season-card.horizontal img,
    .season-card.horizontal.reverse img {
        width: 100%;
        height: 180px;
    }

    .season-content {
        padding: 10px;
    }
}

/* =========================================
   SHARED DASHBOARD STYLES (Night Rates & Energy Tips)
========================================= */
.dashboard-container {
    padding: 2rem 0;
}

.dashboard-flex {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

/* Cards column */
.cards {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.card {
    background: #f5f5f5;
    padding: 1rem;
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.card:hover {
    background: #e8e8e8;
    transform: translateX(4px);
}

.card.active {
    background: #4CAF50;
    color: #fff;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    border-color: #45a049;
}

/* Info display column */
.info-display {
    flex: 2;
    min-width: 300px;
}

.info {
    display: none;
    animation: fadeIn 0.4s ease;
}

.info.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.intro-text {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: #555;
}

/* =========================================
   TABLE STYLES (Night Rates Section)
========================================= */
.appliance-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1em;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.appliance-table th,
.appliance-table td {
    border: 1px solid #e0e0e0;
    padding: 0.75rem;
    text-align: center;
}

.appliance-table th {
    background-color: #f8f8f8;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.appliance-table tbody tr {
    transition: background-color 0.2s ease;
}

.appliance-table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

.appliance-table tbody tr:hover {
    background-color: #f0f0f0;
}

.appliance-table tbody td:last-child {
    color: #4CAF50;
    font-weight: bold;
}

/* =========================================
   OCCUPANCY CARD STYLES (Energy Tips Section)
========================================= */
.occupancy-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.occupancy-card-text {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    background-color: transparent;
}

.occupancy-card-text h3 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.5rem;
}

.occupancy-card-text h3 i {
    color: #4CAF50;
    margin-right: 0.5rem;
}

.occupancy-card-image {
    height: 200px;
    width: 100%;
    flex-shrink: 0;
    overflow: hidden;
}

.occupancy-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 0 8px 8px;
}

/* List styling for energy tips */
.no-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
}

.no-bullets li {
    padding: 0.6rem 0;
    line-height: 1.6;
    color: #555;
    display: flex;
    align-items: flex-start;
}

.no-bullets li i {
    color: #4CAF50;
    margin-right: 0.75rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

/* =========================================
   OCCUPANCY INFO SPECIFIC OVERRIDES
========================================= */
.occupancy-info .dashboard-flex {
    flex-direction: row-reverse;
}

.occupancy-info .cards {
    flex: 1;
}

.occupancy-info .info-display {
    flex: 2;
}

/* =========================================
   RESPONSIVE DESIGN
========================================= */
@media (max-width: 768px) {
    .dashboard-flex {
        flex-direction: column;
    }
    
    .occupancy-info .dashboard-flex {
        flex-direction: column;
    }
    
    .cards,
    .info-display {
        flex: 1;
        width: 100%;
    }
    
    .card {
        padding: 0.75rem;
    }
    
    .appliance-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }

    .appliance-table th,
    .appliance-table td {
        padding: 0.5rem;
        font-size: 0.85rem;
    }
    
    .occupancy-card-text {
        padding: 1rem;
    }
}
/* =========================================
   SAVINGS FACTS & SIMPLE CARDS WITH FLIP
========================================= */
.savings-facts {
    margin: 0;
}

/* Card Container */
.card-flip-container {
    perspective: 1000px;
    height: 300px;
}

.card-flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.card-flip-container.flipped .card-flip-inner {
    transform: rotateY(180deg);
}

/* Front and Back faces */
.card-flip-front,
.card-flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 4px;
    background: white;
}

.card-flip-front {
    display: flex;
    flex-direction: column;
}

.card-flip-back {
    transform: rotateY(180deg);
    padding: 1.5rem;
    overflow-y: auto;
}

/* Front Card Styling */
.simple-card {
    border: none;
    padding: 0;
    background: transparent;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.simple-card .card-img-top {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.simple-card .card-body {
    padding: 1rem 0.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.simple-card .card-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Flip Button */
.flip-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 0;
    transition: background 0.3s;
    align-self: flex-start;
}

.flip-btn:hover {
    background: #45a049;
}

/* Back Card Styling */
.card-flip-back h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.card-flip-back p {
    font-size: 16px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 1rem;
}

.back-btn {
    background: #666;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 0.5rem;
    transition: background 0.3s;
}

.back-btn:hover {
    background: #555;
}

/* Remove hover effects */
.card:hover,
.simple-card:hover {
    box-shadow: none !important;
    transform: none !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-flip-container {
        height: 450px;
    }
}

/* =========================================
   SEASON CARDS UPDATED
========================================= */
.season-quadrant-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;

    max-width: 1200px;
    margin: 2rem auto;
    padding: 20px;

    background-color: #f5f7fa;
    border-radius: 16px;
}
.season-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    justify-content: flex-start;
    padding: 20px 24px;
}
.season-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.season-card > i {
    align-self: center;
    margin-top: 15px;
    margin-bottom: 5px;
    font-size: 1.3rem;
}

.season-content {
    padding: 16px;
    flex: 1;
}

.season-title {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #2c3e50;
}

.season-tips.icons {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.season-tips.icons li {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0.8em;
}

.season-tips.icons li::marker {
    content: '';
}

@media (max-width: 768px) {
    .season-quadrant-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
}

/* =========================================
   USEFUL WEBSITES BOX
========================================= */
.useful-websites {
    background-color: #f9f9f9;
    padding: 1.2em 1.5em;
    border-left: 5px solid #4CAF50;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    color: #333;
    font-size: 1.05rem;
    line-height: 1.6;
}

.useful-websites h3 {
    margin-top: 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: #2e7d32;
    margin-bottom: 0.5em;
}

.useful-websites p {
    margin: 0;
}

.useful-websites a {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.useful-websites a:hover {
    border-bottom: 1px solid #4CAF50;
    color: #388E3C;
}
