/* Main CSS for Tourist Guide Application */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Variables - Cathay Pacific Inspired */
    --primary-color: #006360; /* Cathay Pacific Teal */
    --secondary-color: #425563; /* Cathay Pacific Gray */
    --background-color: #1C2437; /* Cathay Pacific Dark Navy */
    --text-color: #ffffff;
    --overlay-bg: rgba(28, 36, 55, 0.6); /* Dark Navy with opacity */
    --overlay-bg--dark: rgba(28, 36, 55, 0.8); /* Dark Navy with opacity */
    --success-color: #4A8D7F; /* Cathay Pacific Light Teal */
    --danger-color: #B22E45; /* Red accent */
    --heart-color: #E91E63; /* Pink for heart icon */
    
    /* Font Sizes - Senior Friendly */
    --title-size: 28px;
    --subtitle-size: 22px;
    --body-size: 18px;
    --small-size: 16px;
    
    /* Dimensions */
    --menu-width: 300px;
    --header-height: 70px;
    --progress-height: 4px;
    --footer-height: 60px;
}
@media (min-width: 768px) {
    :root {
        --header-height: 90px;
    }
}
@media (min-width: 1025px) {
    :root {
        --header-height: 110px;
    }
}

html, body {
    height: 100%;
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: var(--body-size);
    line-height: 1.4;
    color: var(--text-color);
    background-color: var(--background-color);
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.app-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* App Header Bar */
.app-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 10px;
    /* background-color: var(--overlay-bg); */
    z-index: 50;
}

/* Menu Button - Updated for FontAwesome */
.menu-button {
    width: 44px;
    height: 44px;
    background-color: transparent;
    border: none;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    margin-right: 10px;
    color: var(--text-color);
    font-size: 24px;
}

/* Remove old menu button spans */
.menu-button span {
    display: none;
}

/* Header Title */
.header-title {
    flex: 1;
    font-size: var(--title-size);
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.header-title-main {
    line-height: 1.1;
    font-size: calc(var(--title-size) * 1.3);
    margin-bottom: 0.5rem;
}

.header-region {
    font-size: calc(var(--small-size) * 2.1);
    font-weight: normal;
    opacity: 0.8;
    line-height: 1;
    letter-spacing: 0.12em;
}

/* Animation classes for header region transitions */
.header-region.swipe-out-left {
    animation: swipeOutLeft 0.4s forwards;
}

.header-region.swipe-out-right {
    animation: swipeOutRight 0.4s forwards;
}

.header-region.swipe-in-left {
    animation: swipeInLeft 0.4s forwards;
}

.header-region.swipe-in-right {
    animation: swipeInRight 0.4s forwards;
}

@keyframes swipeOutLeft {
    0% {
        transform: translateX(0);
        opacity: 0.8;
    }
    100% {
        transform: translateX(-100%);
        opacity: 0;
    }
}

@keyframes swipeOutRight {
    0% {
        transform: translateX(0);
        opacity: 0.8;
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes swipeInLeft {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 0.8;
    }
}

@keyframes swipeInRight {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 0.8;
    }
}

/* Status Indicator - Repositioned for header bar */
.status-indicator {
    position: static;
    display: flex;
    align-items: center;
    padding: 5px 10px;
    background-color: transparent;
    border-radius: 20px;
    font-size: var(--small-size);
    margin-left: 10px;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--success-color);
}

.status-online .status-dot {
    background-color: palegreen;
}

.status-offline .status-dot {
    background-color: red;
}

/* Story Viewer - Adjusted for header */
.story-viewer {
    position: relative;
    width: 100%;
    height: 100%;
    padding-top: var(--header-height);
    padding-bottom: var(--footer-height);
    overflow: hidden;
}

.story-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.story {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.story.active {
    opacity: 1;
    z-index: 10;
}

.story-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.carousel-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease;
}

.carousel-image.active {
    opacity: 1;
}

/* Story Content Overlay */
.story-content {
    position: relative;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 60px 20px 0 20px;
}

/* Story ID - Repositioned to left side */
.story-id {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 55px;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7), 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 5;
}

.story-description {
    position: absolute;
    padding: 5px 20px;
    margin-left: -20px !important;
    width: 100%;
    background-color: var(--overlay-bg);
    /* border-radius: 10px; */
    /* margin-bottom: 30px; */
}

.story-description p {
    font-size: var(--subtitle-size);
    margin: 5px 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

/* Progress Indicators */
.progress-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--progress-height);
    display: flex;
    z-index: 20;
    padding: 0 0px;
}

.progress-segment {
    flex: 1;
    height: 100%;
    margin: 0 2.5px;
    background-color: rgba(255, 255, 255, 0.15);
    /* border-radius: 2px; */
    overflow: hidden;
    &:first-child {
        margin-left: 0;
    }
    
    &:last-child {
        margin-right: 0;
    }
}

.progress-bar {
    height: 100%;
    width: 0;
    background-color: #FFFFFF;
    /* border-radius: 2px; */
    transition: width linear;
    box-shadow: 0 0 3px rgba(255, 255, 255, 0.7);
}

/* Destination Menu */
.destination-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--background-color);
    z-index: 100;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.destination-menu.open {
    left: 0;
}

/* Menu Header */
.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: var(--primary-color);
    height: var(--header-height);
}

.menu-header h2 {
    font-size: var(--title-size);
    font-weight: bold;
    flex: 1;
    text-align: center;
}

/* Close button */
.close-menu {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 24px;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.destination-list {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
}

.region-group {
    margin-bottom: 20px;
}

.region-title {
    font-size: var(--subtitle-size);
    font-weight: bold;
    padding: 10px;
    background-color: var(--secondary-color);
    border-radius: 5px;
    margin-bottom: 10px;
}

.destination-item {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background-color: var(--overlay-bg);
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.destination-item:hover, .destination-item:active {
    background-color: rgba(0, 123, 255, 0.3);
}

.destination-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 5px;
    object-fit: cover;
    margin-right: 15px;
}

.destination-info {
    flex: 1;
}

.destination-name {
    font-size: var(--subtitle-size);
    font-weight: bold;
    margin-bottom: 5px;
}

.attraction-count {
    font-size: var(--small-size);
    color: rgba(255, 255, 255, 0.8);
}

/* Loading Spinner */
.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loading-spinner.visible {
    opacity: 1;
    visibility: visible;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Touch Navigation Areas */
.touch-area {
    position: absolute;
    top: 60px;
    bottom: 60px;
    width: 50%;
    z-index: 30;
}

.touch-area-left {
    left: 0;
}

.touch-area-right {
    &.hasSubIcons{
        top: 160px !important;
    }
    right: 0;
}

/* Update Notification */
.update-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: var(--text-color);
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 90%;
    width: 350px;
    animation: slideUp 0.5s ease-out forwards;
}

.update-notification p {
    margin: 0;
    font-size: var(--body-size);
    font-weight: bold;
}

.refresh-button {
    background-color: var(--text-color);
    color: var(--primary-color);
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    margin-left: 15px;
    font-size: var(--small-size);
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.refresh-button:hover {
    background-color: #e0e0e0;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, 50px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* Cache Toast Notification */
.cache-toast {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--success-color);
    color: var(--text-color);
    padding: 12px 20px;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    font-size: var(--small-size);
    font-weight: 500;
    text-align: center;
    animation: fadeInOut 3s ease-in-out forwards;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
    15% {
        opacity: 1;
        transform: translate(-50%, 0);
    }
    85% {
        opacity: 1;
        transform: translate(-50%, 0);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
}

/* Collection Heart Icon - Updated for FontAwesome */
.collection-heart {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20;
    font-size: 20px;
    opacity: 0.7;
    transition: transform 0.3s ease, opacity 0.3s ease;
    color: var(--text-color);
}

.collection-heart.collected {
    opacity: 1;
}

.collection-heart.collected i {
    color: var(--heart-color);
}

/* Heart Animation */
.heart-animation {
    position: fixed;
    z-index: 1000;
    pointer-events: none;
    animation: heart-pulse 1s ease-out forwards;
    color: var(--heart-color);
    font-size: 80px;
    transform: translate(-50%, -50%);
}

.heart-animation i {
    display: block;
}

@keyframes heart-pulse {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.3);
    }
    15% {
        opacity: 1;
    }
    30% {
        transform: translate(-50%, -50%) scale(1.2);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.0);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.5);
    }
}

/* Story Links for URL and Map */
.story-links {
    position: absolute;
    top: 70px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 35;
    pointer-events: auto;
}

.story-link {
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    text-decoration: none;
    font-size: 18px;
    opacity: 0.7;
    transition: transform 0.3s ease, opacity 0.3s ease;
    cursor: pointer;
    padding: 10px;
    box-sizing: border-box;
}

.story-link:hover, .story-link:active {
    opacity: 1;
    transform: scale(1.1);
    background-color: rgba(0, 0, 0, 0.7);
}

.story-link i {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

.url-link {
    background-color: rgba(0, 0, 0, 0.5);
}

.map-link {
    background-color: rgba(0, 0, 0, 0.5);
}

/* Footer Menu */
.footer-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--footer-height);
    background-color: var(--overlay-bg);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 50;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.footer-button {
    background-color: transparent;
    border: none;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    font-size: var(--small-size);
    transition: all 0.2s ease;
    width: 100%;
    cursor: pointer;
}

.footer-button:hover, 
.footer-button:active {
    background-color: rgba(255, 255, 255, 0.1);
}

.footer-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.footer-label {
    font-size: 12px;
    white-space: nowrap;
}

/* Footer Buttons */
.footer-button.fullscreen-button .footer-icon {
    font-size: 26px; /* Slightly larger icon */
}

/* Add a margin between footer buttons */
.footer-button + .footer-button {
    margin-left: 10px;
}

/* Error Message */
.error-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--overlay-bg--dark);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    max-width: 90%;
    text-align: center;
}

.error-message h3 {
    margin-bottom: 10px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-message h3 i {
    margin-right: 8px;
    color: var(--text-color);
}

.error-close {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 5px;
    font-size: var(--small-size);
    cursor: pointer;
}

.error-close:hover {
    background-color: var(--success-color);
}

/* Error Message Paragraph */
.error-message p {
    margin-bottom: 20px;
    color: var(--text-color);
}

/* Destination Label */
.destination-label {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 5px 10px;
    border-radius: 15px;
    margin-top: 10px;
    font-size: var(--small-size);
    align-self: flex-start;
    display: inline-block;
    margin-bottom: 3rem;
}

/* Information View */
.information-view {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-color);
    z-index: 60;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-size: 2.3em;
}

.info-view-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 10px;
    background-color: var(--primary-color);
    z-index: 50;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.info-view-header h1 {
    flex: 1;
    font-size: var(--title-size);
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    margin-left: 44px; /* Balance with close button on right */
}

.close-info-button {
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

/* Old back-button styles can be removed or kept for backward compatibility */
.back-button {
    display: none;
}

.info-content-container {
    flex: 1;
    overflow-y: auto;
    padding-top: var(--header-height);
    padding-bottom: var(--footer-height);
}

/* Information Container */
.information-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.information-header {
    margin-top: 10px;
    text-align: center;
}

.information-header h1 {
    font-size: 24px;
    margin: 0;
    color: var(--text-color);
}

.information-sections {
    flex: 1;
    overflow-y: auto;
    padding: 50px 15px 20px;
}

/* Information Sections */
.information-section {
    margin-bottom: 30px;
    background-color: var(--overlay-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 20px;
    padding: 15px;
    margin: 0;
    background-color: var(--primary-color);
    color: var(--text-color);
}

/* Phone Section */
.contact-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-info {
    flex: 1;
}

.contact-name {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 5px;
}

.contact-phone {
    font-size: 16px;
    opacity: 0.9;
}

/* Address Section */
.address-item {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.address-item:last-child {
    border-bottom: none;
}

.address-info {
    flex: 1;
    padding-right: 15px;
}

.location-name {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 5px;
}

.location-address {
    font-size: 16px;
    opacity: 0.9;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.action-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background-color: var(--primary-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.2s ease;
}

.action-button:hover {
    background-color: var(--success-color);
}

/* Text Info Section */
.info-item {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-item:last-child {
    border-bottom: none;
}

.info-title {
    font-size: 18px;
    margin: 0 0 10px;
    color: var(--text-color);
}

.info-content {
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
    opacity: 0.9;
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: calc(var(--footer-height) + 20px);
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    background-color: var(--success-color);
    color: var(--text-color);
    border-radius: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    font-size: 16px;
    animation: fadeInOut 3s ease-in-out forwards;
}

/* Maintenance View */
.maintenance-view {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1100; /* Higher than other views */
    display: flex;
    flex-direction: column;
    padding: 20px;
    display: none;
}

.maintenance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--primary-color);
}

.maintenance-header h1 {
    color: var(--text-color);
    font-size: var(--title-size);
    margin: 0;
}

.close-maintenance-button {
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.maintenance-content {
    flex: 1;
    overflow-y: auto;
}

.maintenance-section {
    background-color: var(--overlay-bg);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.maintenance-section h2 {
    color: var(--text-color);
    font-size: var(--subtitle-size);
    margin: 0 0 15px 0;
}

.maintenance-section p {
    color: var(--text-color);
    font-size: var(--body-size);
    margin: 0 0 15px 0;
    opacity: 0.8;
}

.maintenance-button {
    display: block;
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    background-color: var(--primary-color);
    color: var(--text-color);
    border: none;
    border-radius: 6px;
    font-size: var(--body-size);
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s ease;
}

.maintenance-button:hover, 
.maintenance-button:active {
    background-color: var(--success-color);
}

.maintenance-button.danger {
    background-color: var(--danger-color);
}

.maintenance-button.danger:hover, 
.maintenance-button.danger:active {
    background-color: #d63031;
}

.maintenance-data-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.maintenance-data-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin-bottom: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.maintenance-data-item span {
    flex: 1;
}

.refresh-data-button {
    background-color: var(--primary-color);
    color: var(--text-color);
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
}

.refresh-data-button:hover {
    background-color: var(--success-color);
}

/* Maintenance Link - Subtle text link in destination menu */
.maintenance-link {
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    padding: 15px 0;
    margin-top: 10px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.maintenance-link:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* Remove the long press indicator styles */
.long-press-indicator,
.long-press-progress,
.long-press-center {
    display: none;
}

/* Login Form Styles */
.login-form {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 400px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.login-form h2 {
    margin: 0 0 1rem;
    font-size: 1.5rem;
    text-align: center;
    color: #006360;
}

.password-input {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    width: 100%;
}

.login-error {
    color: #d32f2f;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.login-button, .cancel-button {
    padding: 0.75rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.login-button {
    background-color: #006360;
    color: white;
}

.login-button:hover {
    background-color: #004d4a;
}

.cancel-button {
    background-color: #f5f5f5;
    color: #333;
}

.cancel-button:hover {
    background-color: #e0e0e0;
}

/* Information View Header with Logout Button */
.information-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: #006360;
    color: white;
}

.logout-button {
    background: none;
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Information Error Styles */
.information-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    height: 100%;
}

.information-error i {
    font-size: 3rem;
    color: #d32f2f;
    margin-bottom: 1rem;
}

.information-error h2 {
    margin: 0.5rem 0;
    color: #333;
}

.information-error p {
    margin-bottom: 1.5rem;
    color: #666;
}

.retry-button {
    padding: 0.75rem 2rem;
    background-color: #006360;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
}

.retry-button:hover {
    background-color: #004d4a;
}

/* Itinerary Styles */
.itinerary-sections {
    padding: 10px 15px;
}

.itinerary-day {
    margin-bottom: 20px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.itinerary-day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.itinerary-day-header.today-highlight {
    box-shadow: 0 0 8px rgba(255, 253, 196, 0.4);
    border: 3px solid rgba(255, 253, 196, 0.6);
}

.itinerary-day-header:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.itinerary-day-header h1 {
    margin: 0;
    font-size: 20px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.itinerary-day-weather {
    display: flex;
    align-items: center;
    font-size: 0.8em;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 1rem;
}

.weather-icon {
    width: 36px;
    height: 36px;
    margin-right: 4px;
}

.weather-text {
    font-weight: normal;
    font-size: 1.2rem;
    white-space: nowrap;
}

.day-date {
    margin: 0 10px;
    font-size: 1.5rem;
    opacity: 0.8;
    font-weight: normal;
}

.day-toggle-icon {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.itinerary-day.expanded .day-toggle-icon {
    transform: rotate(180deg);
}

.itinerary-day-content {
    padding: 0 15px 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.itinerary-item {
    display: flex;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    align-items: flex-start;
    justify-content: space-between;
}

.itinerary-item:last-child {
    border-bottom: none;
}

.itinerary-time {
    flex: 1;
    font-weight: bold;
    margin-right: 10px;
    color: var(--success-color);
}

.itinerary-content {
    flex: 4;
}
.itinerary-content.fullrow{
    flex: 5;
}

.itinerary-link-wrapper {
    flex: 1;
    display: inline-flex;
    justify-content: flex-end;
    align-self: center;
}

.itinerary-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.itinerary-subtitle {
    font-size: 16px;
    opacity: 0.8;
}

.itinerary-link {
    width: 84px;
    height: 84px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
    background-color: var(--primary-color);
    border-radius: 50%;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.itinerary-link:hover {
    background-color: var(--success-color);
}

.no-items-message,
.no-data-message {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
} 
