/* Components - Cabin Cards, Download Section, Footer */

/* Company Brand Bar */
.company-brand-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: none;
    border-bottom: none;
}

.brand-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-back-arrow {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: opacity 0.3s ease;
}

.brand-back-arrow:hover {
    opacity: 0.7;
}

.brand-download-button {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: opacity 0.3s ease;
}

.brand-download-button:hover {
    opacity: 0.7;
}

.brand-download-button .material-icons-outlined {
    font-size: 20px;
}

.atlantis-brand {
    background: linear-gradient(135deg, #ff5200 0%, #cc4100 100%);
}

.vacaya-brand {
    background: linear-gradient(135deg, #fa0375 0%, #c8025e 100%);
}

.company-brand-bar .material-icons-outlined {
    font-size: 20px;
}

/* Adjust hero header to account for brand bar */
.hero-header {
    margin-top: 44px;
    border-top: none;
}

@media (max-width: 768px) {
    .company-brand-bar {
        padding: 10px 15px;
        font-size: 0.8rem;
    }
    
    .company-brand-bar .material-icons-outlined {
        font-size: 18px;
    }
    
    .hero-header {
        margin-top: 40px;
    }
}

/* Cabins Section */
.cabins-section {
    padding: 0 0 var(--spacing-3xl) 0;
}

.cabins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

/* Large screen: 4 cards per row */
@media (min-width: 1200px) {
    .cabins-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--spacing-lg);
    }
}

/* Medium-large screens: optimize for better fit */
@media (min-width: 992px) and (max-width: 1199px) {
    .cabins-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: var(--spacing-md);
    }
}

/* Cabin Card */
.cabin-card {
    background: var(--surface-white);
    border-radius: var(--radius-xlarge);
    box-shadow: var(--shadow-1);
    overflow: hidden;
    transition: all var(--transition-normal);
    border: 1px solid rgba(156, 39, 176, 0.1);
    position: relative;
}

.cabin-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-3);
    border-color: var(--primary-300);
}

.cabin-card-header {
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
    color: var(--text-on-primary);
    padding: var(--spacing-lg);
    position: relative;
    overflow: hidden;
}

.cabin-card-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: var(--radius-circle);
}

.cabin-number {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.cabin-category {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cabin-card-body {
    padding: var(--spacing-lg);
}

.cabin-details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.cabin-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--surface-medium);
}

.cabin-detail-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.detail-label {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.detail-value {
    color: var(--text-primary);
    font-weight: 600;
}

.cabin-price {
    background: var(--accent-green);
    color: #2e7d32;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-large);
    font-weight: 700;
    font-size: 1.1rem;
}

.cabin-features {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--surface-medium);
}

.features-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.features-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.feature-tag {
    background: var(--primary-50);
    color: var(--primary-700);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-small);
    font-size: 0.8rem;
    font-weight: 500;
}

/* Compact Cabin Cards */
.compact-card {
    padding: var(--spacing-lg);
    background: var(--surface-white);
    border-radius: var(--radius-large);
    border: 2px solid var(--surface-light);
    transition: all var(--transition-normal);
    position: relative;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.compact-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-2);
}

.cabin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-md);
}

.cabin-number {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.cabin-num {
    font-size: 1.3rem;
}

.cabin-deck {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-small);
    font-size: 0.8rem;
    font-weight: 600;
    color: #495057;
    border: 1px solid #dee2e6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.deck-num {
    font-weight: 600;
    font-size: 0.85rem;
}

.cabin-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-sm);
    margin-top: auto;
}

.cabin-type {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.3;
    flex: 1;
}

.cabin-price {
    background: var(--primary-500);
    color: #ffffff;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-small);
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Category Color Coding for Compact Cards - 10-Color Palette */

/* 1. Presidential/Premium Suite (deep purple) */
.compact-card.category-presidential {
    border-color: #6a1b9a;
    background: linear-gradient(135deg, #fff 0%, #f3e5f5 100%);
}
.compact-card.category-presidential .cabin-price {
    background: #4a148c;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* 2. Suite (purple) */
.compact-card.category-suite {
    border-color: #9c27b0;
    background: linear-gradient(135deg, #fff 0%, #f3e5f5 100%);
}
.compact-card.category-suite .cabin-price {
    background: #7b1fa2;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* 3. Junior Suite (lavender) */
.compact-card.category-junior-suite {
    border-color: #ba68c8;
    background: linear-gradient(135deg, #fff 0%, #f8e7f8 100%);
}
.compact-card.category-junior-suite .cabin-price {
    background: #9c27b0;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* 4. Concierge Class (purple-pink) */
.compact-card.category-concierge {
    border-color: #8e24aa;
    background: linear-gradient(135deg, #fff 0%, #f3e5f5 100%);
}
.compact-card.category-concierge .cabin-price {
    background: #7b1fa2;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* 5. Specialty Balcony (teal) */
.compact-card.category-specialty {
    border-color: #00acc1;
    background: linear-gradient(135deg, #fff 0%, #e0f2f1 100%);
}
.compact-card.category-specialty .cabin-price {
    background: #00838f;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* 6. Premium Balcony (blue) */
.compact-card.category-premium-balcony {
    border-color: #1976d2;
    background: linear-gradient(135deg, #fff 0%, #e3f2fd 100%);
}
.compact-card.category-premium-balcony .cabin-price {
    background: #1565c0;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* 7. Standard Balcony (ocean blue) */
.compact-card.category-balcony {
    border-color: #0288d1;
    background: linear-gradient(135deg, #fff 0%, #e1f5fe 100%);
}
.compact-card.category-balcony .cabin-price {
    background: #0277bd;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* 8. Ocean View (light blue) */
.compact-card.category-oceanview {
    border-color: #29b6f6;
    background: linear-gradient(135deg, #fff 0%, #e1f5fe 100%);
}
.compact-card.category-oceanview .cabin-price {
    background: #0288d1;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* 9. Interior Premium (coral) */
.compact-card.category-interior-premium {
    border-color: #ff7043;
    background: linear-gradient(135deg, #fff 0%, #fbe9e7 100%);
}
.compact-card.category-interior-premium .cabin-price {
    background: #d84315;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* 10. Standard Interior (orange) */
.compact-card.category-interior {
    border-color: #ff9800;
    background: linear-gradient(135deg, #fff 0%, #fff3e0 100%);
}
.compact-card.category-interior .cabin-price {
    background: #ef6c00;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* Default category styling (gray) - for unknown/unmapped categories */
.compact-card.category-default,
.compact-card:not(.category-presidential):not(.category-suite):not(.category-junior-suite):not(.category-concierge):not(.category-specialty):not(.category-balcony):not(.category-oceanview):not(.category-interior) {
    border-color: #9e9e9e;
    background: linear-gradient(135deg, #fff 0%, #f5f5f5 100%);
    position: relative;
}

/* Add a subtle indicator for unknown categories */
.compact-card.category-default::before {
    content: "?";
    position: absolute;
    top: 4px;
    right: 4px;
    width: 16px;
    height: 16px;
    background: #ff9800;
    color: white;
    border-radius: 50%;
    font-size: 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
}

.compact-card.category-default .cabin-price,
.compact-card:not(.category-presidential):not(.category-suite):not(.category-junior-suite):not(.category-concierge):not(.category-specialty):not(.category-balcony):not(.category-oceanview):not(.category-interior) .cabin-price {
    background: #757575;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* Status Indicators */
.status-available {
    background: var(--accent-green);
    color: #2e7d32;
}

.status-occupied {
    background: #ffebee;
    color: #c62828;
}

.status-maintenance {
    background: #fff8e1;
    color: #f57c00;
}

/* Floating Download Button (FAB) - Modern Design */
.floating-download {
    position: fixed;
    bottom: 60px;
    right: 24px;
    z-index: 1000;
    border: none;
    border-radius: 50%;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.5rem;
    text-decoration: none;
    color: white;
}

/* Atlantis download button */
body[data-company="atlantis"] .floating-download {
    background: linear-gradient(135deg, #ff5200, #cc4100);
    box-shadow: 0 4px 20px rgba(255, 82, 0, 0.4);
}

body[data-company="atlantis"] .floating-download:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(255, 82, 0, 0.5);
    background: linear-gradient(135deg, #cc4100, #993100);
}

body[data-company="atlantis"] .floating-download::before {
    background: linear-gradient(135deg, rgba(255, 82, 0, 0.3), rgba(204, 65, 0, 0.3));
}

/* Vacaya download button */
body[data-company="vacaya"] .floating-download {
    background: linear-gradient(135deg, #fa0375, #c8025e);
    box-shadow: 0 4px 20px rgba(250, 3, 117, 0.4);
}

body[data-company="vacaya"] .floating-download:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(250, 3, 117, 0.5);
    background: linear-gradient(135deg, #c8025e, #96014b);
}

body[data-company="vacaya"] .floating-download::before {
    background: linear-gradient(135deg, rgba(250, 3, 117, 0.3), rgba(200, 2, 94, 0.3));
}

.floating-download:active {
    transform: translateY(-1px) scale(1.02);
    transition: all 0.1s ease;
}

.floating-download::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.floating-download:hover::before {
    opacity: 1;
    animation: pulse-ring 2s infinite;
}

/* Tooltip for the floating button */
.floating-download::after {
    content: 'Download Excel';
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(30, 41, 59, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-right: 12px;
    backdrop-filter: blur(10px);
}

.floating-download:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(-4px);
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.1;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .floating-download {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
        font-size: 1.3rem;
    }
    
    .floating-download::after {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
}

/* Footer - Elegant Minimal Design */
.footer {
    background: linear-gradient(135deg, #1e293b, #334155);
    color: var(--surface-white);
    padding: var(--spacing-lg) 0;
    margin-top: var(--spacing-xl);
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.3), transparent);
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: var(--spacing-sm);
}

.footer-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-weight: 400;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-meta {
    display: none; /* Hide last updated and other meta info */
}

/* Disclaimer Footer */
.disclaimer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 20px;
    text-align: center;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    line-height: 1.4;
}

.disclaimer a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.2s ease;
}

.disclaimer a:hover {
    color: white;
    border-bottom-color: white;
}

/* Deck Indicators */
.deck-indicator {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #495057;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-small);
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid #dee2e6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Category Badges - 10-Color Palette */
.category-presidential { background: #f3e5f5; color: #4a148c; }
.category-suite { background: #f3e5f5; color: #6a1b9a; }
.category-junior-suite { background: #f8e7f8; color: #9c27b0; }
.category-concierge { background: #f3e5f5; color: #7b1fa2; }
.category-specialty { background: #e0f2f1; color: #00838f; }
.category-premium-balcony { background: #e3f2fd; color: #1565c0; }
.category-balcony { background: #e1f5fe; color: #0277bd; }
.category-oceanview { background: #e1f5fe; color: #0288d1; }
.category-interior-premium { background: #fbe9e7; color: #d84315; }
.category-interior { background: #fff3e0; color: #ef6c00; }
.category-default { background: #fafafa; color: #616161; }

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

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

.slide-in-left {
    animation: slideInLeft 0.3s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Hover Effects */
.hover-lift {
    transition: transform var(--transition-normal);
}

.hover-lift:hover {
    transform: translateY(-2px);
}

/* Focus States */
button:focus-visible,
select:focus-visible {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
}

/* Selection Styles */
::selection {
    background: var(--primary-200);
    color: var(--text-primary);
}

/* Scrollbar Styles */
html {
    scrollbar-width: thin;
}

body[data-company="atlantis"] {
    scrollbar-color: #ff5200 #f1f1f1;
}

body[data-company="vacaya"] {
    scrollbar-color: #fa0375 #f1f1f1;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    border-radius: 5px;
}

/* Atlantis scrollbar */
body[data-company="atlantis"] ::-webkit-scrollbar-thumb {
    background: #ff5200;
}

body[data-company="atlantis"] ::-webkit-scrollbar-thumb:hover {
    background: #cc4100;
}

/* Vacaya scrollbar */
body[data-company="vacaya"] ::-webkit-scrollbar-thumb {
    background: #fa0375;
}

body[data-company="vacaya"] ::-webkit-scrollbar-thumb:hover {
    background: #c8025e;
}