/* Import color variables */
@import 'variables.css';

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    flex: 1;
}

header {
    margin-bottom: 2rem;
    text-align: center;
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.header-content > div {
    flex: 0 1 auto;
}

header h1 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

header p {
    margin: 0;
}

.theme-toggle {
    background: var(--card-bg-color);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.theme-toggle:hover {
    transform: translateY(-50%) scale(1.1);
    border-color: var(--primary-color);
}

.theme-icon {
    width: 24px;
    height: 24px;
    color: var(--text-color);
    transition: all 0.3s ease;
    position: absolute;
}

.sun-icon {
    opacity: 1;
}

.moon-icon {
    opacity: 0;
}

[data-theme="dark"] .sun-icon {
    opacity: 0;
}

[data-theme="dark"] .moon-icon {
    opacity: 1;
}


.search-container {
    background-color: var(--card-bg-color);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.date-inputs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    flex: 1;
}

@media (max-width: 600px) {
    .date-inputs {
        flex-direction: column;
        gap: 0;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: normal !important;
    margin-bottom: 1rem;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    cursor: pointer;
    margin: 0;
}

.date-hint {
    font-size: 0.8rem;
    font-weight: normal;
    color: #666;
    font-style: italic;
}

input, select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    background-color: var(--card-bg-color);
    color: var(--text-color);
    transition: border-color 0.3s, background-color 0.3s;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
}

input[type="text"][readonly] {
    background-color: var(--light-bg-color);
    cursor: pointer;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%236b4c93" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 35px;
}


input:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(107, 76, 147, 0.2);
}

button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
}

button:hover {
    background-color: var(--secondary-color);
}

button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.hidden {
    display: none;
}

#loading {
    text-align: center;
    margin: 2rem 0;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

#results-container, #partial-stays-container, #error-container, #notification-container {
    background-color: var(--card-bg-color);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

#results-container h2, #partial-stays-container h2, #error-container h2, #notification-container h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.partial-stays-intro {
    color: var(--secondary-text-color);
    margin-bottom: 1.5rem;
}

.alternative-options-header {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-color);
}

.alternative-options-header h3 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.alternative-options-header p {
    color: var(--secondary-text-color);
    margin-bottom: 1rem;
}

.special-request-options-header {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--light-bg-color);
    border-radius: 8px;
    border: 2px dashed var(--border-color);
}

.special-request-options-header h3 {
    color: var(--secondary-text-color);
    margin-bottom: 0.5rem;
}

.special-request-options-header p {
    color: var(--secondary-text-color);
    margin-bottom: 1rem;
    font-style: italic;
}

.chained-timeline.special-request-required {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.chained-timeline.special-request-required::after {
    content: 'Special Request Rooms Required';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 600;
    pointer-events: none;
}

#dates-summary {
    background-color: var(--primary-color-10);
    border-radius: 4px;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-color);
}

.date-display {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.date-display p {
    margin: 0.25rem 1rem 0.25rem 0;
    font-size: 0.95rem;
}

#display-checkin, #display-checkout {
    font-weight: 600;
    color: var(--accent-color);
}

#error-container {
    border-left: 4px solid var(--error-color);
}

#error-message {
    color: var(--error-color);
}

@keyframes errorHighlight {
    0% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    50% { transform: translateX(10px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

.error-highlight {
    animation: errorHighlight 0.5s ease;
}

.room-card {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(224, 122, 95, 0.08);
}

.room-card h3 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.room-info {
    margin-bottom: 0.25rem;
}

.availability {
    font-weight: 600;
    color: var(--success-color);
}

.price {
    font-weight: 600;
}

.room-content {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
}

.room-image {
    flex: 0 0 30%;
    max-width: 200px;
    border-radius: 4px;
    overflow: hidden;
}

.room-image img {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 4px;
}

.room-image img.image-error {
    opacity: 0.5;
    background-color: var(--light-bg-color);
}

.room-details {
    flex: 1;
    min-width: 60%;
}

.room-description {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.4;
}

.room-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.room-availability {
    font-size: 0.9rem;
}

.rate-plans-container {
    margin-top: 0.5rem;
    background-color: var(--light-bg-color);
    border-radius: 4px;
    padding: 0.5rem;
}

.stay-duration-info {
    font-size: 0.9rem;
    color: var(--secondary-text-color);
    font-style: italic;
    margin-bottom: 0.5rem;
    text-align: center;
}

.rate-plans-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.rate-plans-table th,
.rate-plans-table td {
    padding: 0.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.rate-plans-table th {
    font-weight: 600;
    color: var(--accent-color);
    border-bottom: 2px solid var(--border-color);
}

.rate-plans-table tbody tr:last-child td {
    border-bottom: none;
}

.non-ac-plan {
    background-color: rgba(255, 255, 255, 0.7);
}

.ac-plan {
    background-color: rgba(224, 122, 95, 0.05);
}

.tax-info {
    font-size: 0.8rem;
    color: var(--secondary-text-color);
    font-style: italic;
}

.price-info {
    margin-bottom: 0.25rem;
}

.price-label {
    font-weight: 500;
}

.with-taxes {
    font-size: 0.9rem;
    color: var(--secondary-text-color);
}

.plan-info {
    font-size: 0.9rem;
    color: var(--accent-color);
}

.amenities {
    margin-top: 0.75rem;
    font-size: 0.9rem;
}

.amenities-title {
    font-weight: 600;
    color: var(--accent-color);
}

.plan-note {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--accent-color);
}

.note, .time-note {
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 1rem;
    color: var(--secondary-text-color);
}

.time-note {
    margin-bottom: 1rem;
    padding: 0.5rem;
    background-color: var(--light-bg-color);
    border-radius: 4px;
    text-align: center;
}

.monitor-button {
    display: block;
    width: 100%;
    padding: 1rem;
    margin: 1rem 0;
    background-color: var(--primary-color-10);
    border: 1px solid var(--border-color);
    color: var(--accent-color);
    font-weight: 600;
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s;
}

.monitor-icon {
    margin-right: 0.5rem;
}

.coming-soon-label, .processing-tag {
    font-size: 0.8rem;
    background-color: var(--primary-color);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    margin-left: 0.5rem;
    vertical-align: middle;
    font-style: italic;
    box-shadow: 0 1px 3px rgba(224, 122, 95, 0.4);
}

.processing-tag {
    background-color: var(--accent-color);
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
}

.special-tag-small {
    font-size: 0.7rem;
    background-color: var(--secondary-color);
    color: white;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    margin-left: 0.3rem;
    vertical-align: middle;
    font-weight: normal;
}

.booking-link {
    margin-top: 1.5rem;
    text-align: center;
}

.book-now-btn {
    display: inline-block;
    background-color: var(--success-color);
    color: white;
    font-weight: 600;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.book-now-btn:hover {
    background-color: #3d8b40;
}

.toggle-button {
    background-color: var(--primary-color-10);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 0.5rem 1rem;
    text-align: left;
    width: 100%;
    margin: 1rem 0;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.toggle-button:hover {
    background-color: var(--primary-color-20);
}

.toggle-icon {
    display: inline-block;
    margin-right: 0.5rem;
    transition: transform 0.3s;
}

.toggle-icon.expanded {
    transform: rotate(90deg);
}

#chained-stays {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border-color);
}

#chained-stays h3 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.help-text {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.chained-stay-option {
    margin-bottom: 2rem;
}

.chained-stay-header {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
    font-size: 1.1rem;
}

.chained-timeline {
    display: flex;
    flex-direction: column;
    position: relative;
}

.timeline-connector {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background-color: var(--secondary-color);
    transform: translateX(-50%);
    z-index: 0;
    opacity: 0.7;
}

.special-room {
    border-left: 4px solid var(--secondary-color);
    background-color: var(--special-bg-color); /* Light amber/orange background */
}

/* Ensure special room connector lines appear above the background */
.special-room .room-connector .connector-line,
.special-room .room-connector .timeline-dot {
    z-index: 2; /* Higher z-index to ensure above both the timeline and the special room */
}

.chained-day {
    display: flex;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
}

/* Multi-day consolidated rooms styling */
.chained-day .multi-day-date {
    background-color: var(--primary-color);
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.chained-day .multi-day-connector {
    position: relative;
}

.chained-day .multi-day-room {
    background-color: white;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 3px 10px rgba(200, 121, 65, 0.15);
}

.chained-day .consolidated-room {
    background-color: white;
    position: relative;
}

.timeline-date {
    flex: 0 0 120px;
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem;
    border-radius: 8px;
    text-align: center;
    align-self: flex-start;
    box-shadow: var(--shadow);
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 2;
}

.room-connector {
    position: relative;
    flex: 0 0 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.connector-line {
    height: 4px;
    width: 100%;
    background-color: var(--secondary-color);
    position: relative;
    z-index: 3; /* Ensure it's above special room backgrounds */
}

.room-card-timeline {
    flex: 1;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1rem;
    background-color: #f9f9f9;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 2;
}

.special-room.room-card-timeline {
    background-color: var(--special-bg-color); /* Ensure special room cards have the correct background */
}

.timeline-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3; /* Ensure it's above special room backgrounds */
}

.stay-total {
    background-color: var(--primary-color-10);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1rem;
    margin-top: 1rem;
    text-align: right;
}

.special-stay-total {
    background-color: var(--secondary-color-10);
    border: 1px solid var(--secondary-color);
}

.special-request-note {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background-color: var(--light-bg-color);
    border-radius: 4px;
    font-size: 0.9rem;
    text-align: center;
}

/* Continue search button */
.continue-search-button, .retry-search-button {
    margin: 2rem 0;
    padding: 1rem;
    background-color: var(--light-bg-color);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.continue-progress {
    margin-bottom: 1rem;
}

.progress-bar {
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.9rem;
    color: var(--secondary-text-color);
    text-align: center;
    margin-bottom: 5px;
}

.progress-explanation {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--secondary-text-color);
    text-align: center;
    padding: 5px;
    border-radius: 4px;
    background-color: rgba(255, 248, 225, 0.7);
    margin: 8px 0;
}

/* New, simpler search status indicator */
.search-progress-indicator {
    margin: 30px auto;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 80%;
    text-align: center;
}

.search-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 10px;
}

.status-message {
    text-align: left;
}

.status-title {
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.status-details {
    font-size: 0.9rem;
    color: var(--secondary-text-color);
}

.search-more-btn, .retry-btn {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-more-btn:hover, .retry-btn:hover {
    background-color: var(--secondary-color);
}

.search-more-btn:disabled, .retry-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.special-options-header {
    margin: 2rem 0 1rem;
    padding-top: 1.5rem;
    border-top: 1px dashed var(--border-color);
}

.special-options-header h4 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.special-options-header p {
    font-size: 0.9rem;
    color: var(--secondary-text-color);
}

.special-option {
    background-color: var(--secondary-color-10);
    border: 1px solid var(--secondary-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 2rem;
}

.chained-stays h3 {
    display: flex;
    align-items: center;
}

.total-price {
    font-weight: 600;
    color: var(--accent-color);
    font-size: 1.2rem;
}

/* Tabular summary of stay */
.stay-summary-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.stay-summary-table th,
.stay-summary-table td {
    padding: 0.6rem 0.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.stay-summary-table th {
    background-color: var(--light-bg-color);
    font-weight: 600;
    color: var(--secondary-text-color);
}

.stay-summary-table tfoot {
    font-weight: 600;
    background-color: var(--primary-color-10);
}

.stay-summary-table tfoot td {
    border-top: 2px solid var(--border-color);
}

.price-per-night {
    font-size: 0.8rem;
    color: var(--secondary-text-color);
}

.special-tag-mini {
    font-size: 0.7rem;
    background-color: var(--secondary-color);
    color: white;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    font-weight: normal;
    white-space: nowrap;
}

.incomplete-warning {
    background-color: #fff3cd;
    color: #856404;
    padding: 0.5rem;
    margin-bottom: 0.75rem;
    border-radius: 4px;
    font-size: 0.9rem;
    border-left: 3px solid #ffeeba;
}

.missing-dates, .coverage-info {
    margin-top: 0.25rem;
    font-size: 0.85rem;
    font-style: italic;
}

/* Date-room table with improved UX */
.date-room-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 0.95rem;
}

.date-room-table th,
.date-room-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.date-room-table th {
    background-color: var(--light-bg-color);
    font-weight: 600;
    color: var(--secondary-text-color);
    position: sticky;
    top: 0;
    z-index: 1;
}

.date-room-table tbody tr:hover {
    background-color: #f8f9fa;
}

.date-room-table .missing-row {
    background-color: #fff3e0;
    font-style: italic;
    color: #856404;
}

.date-room-table .missing-row:hover {
    background-color: #ffe0b2;
}

/* Improved option header layout */
.option-dates {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.date-range {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 500;
}

.full-coverage-badge,
.partial-coverage-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.full-coverage-badge {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.partial-coverage-badge {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Section headers for full vs partial coverage */
.chained-header {
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.chained-header.full-coverage-section {
    background-color: #fff;
    border-left: 4px solid #28a745;
    box-shadow: var(--shadow);
}

.chained-header.partial-coverage-section {
    background-color: #fff;
    border-left: 4px solid #ff9800;
    box-shadow: var(--shadow);
    margin-top: 3rem;
}

.chained-header h2 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.chained-header p {
    margin: 0.5rem 0 0 0;
    color: var(--secondary-text-color);
}

/* No rooms message styling */
.no-rooms-message {
    background: linear-gradient(135deg, #fff8e1 0%, #ffe0b2 100%);
    border-left: 4px solid #ff9800;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.no-rooms-message h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #856404;
}

.no-rooms-message p {
    margin-bottom: 0.5rem;
    color: #856404;
}

.no-rooms-message p:last-child {
    margin-bottom: 0;
}

.gap-list {
    margin: 0.25rem 0;
    padding-left: 1.5rem;
    font-size: 0.85rem;
}

.gap-list li {
    margin-bottom: 0.25rem;
}

/* New flex layout for gaps display */
.gaps-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 0.5rem 0;
    font-size: 0.9rem;
    background-color: rgba(255, 248, 225, 0.5);
    padding: 0.5rem;
    border-radius: 4px;
}

.gap-item {
    margin: 0.25rem 0;
    display: flex;
    align-items: center;
}

/* Style the bullet point in gap items */
.gap-item::before {
    content: '•';
    margin-right: 0.5rem;
    color: var(--accent-color);
    font-weight: bold;
}

.price-breakdown {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
}

/* Special room styling moved above */

/* Special rooms section */
.special-rooms-section {
    margin-top: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.special-rooms-header {
    background-color: var(--primary-color-10);
    padding: 1rem;
    cursor: pointer;
    user-select: none;
}

.special-rooms-header h3 {
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--accent-color);
}

.special-rooms-header p {
    margin: 0.5rem 0 0;
    font-size: 0.9rem;
    color: var(--secondary-text-color);
}

.special-rooms-content {
    padding: 1rem;
}

.special-rooms-content.hidden {
    display: none;
}

.special-booking-note {
    margin-top: 1rem;
    padding: 1rem;
    background-color: var(--primary-color-10);
    border-radius: 4px;
    text-align: center;
}

.contact-btn {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.contact-btn:hover {
    background-color: var(--accent-color);
}

.special-tag {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.special-note {
    font-style: italic;
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    background-color: var(--secondary-color-10);
    padding: 0.5rem;
    border-radius: 4px;
}

.no-rooms-message {
    padding: 1rem;
    color: #666;
    text-align: center;
    font-style: italic;
}

footer {
    text-align: center;
    padding: 1rem;
    background-color: var(--primary-color-10);
    color: #666;
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
}

/* Highlight chained options when they're the main available option */
.highlighted-section {
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    border-radius: 8px;
    margin-top: 10px;
    margin-bottom: 20px;
}

/* Handle image errors */
.image-error {
    display: none;
}

.image-error-container::before {
    content: 'Image not available';
    display: flex;
    align-items: center;
    justify-content: center;
    height: 220px;
    background-color: var(--light-bg-color);
    color: var(--secondary-text-color);
    font-style: italic;
    border-radius: 4px;
}

/* New results highlighting */
.new-result {
    position: relative;
    animation: highlightNew 2s ease-in-out;
    border: 2px solid var(--primary-color);
}

.new-result::after {
    content: 'New';
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: var(--accent-color);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

@keyframes highlightNew {
    0% { box-shadow: 0 0 0 4px rgba(224, 122, 95, 0.7); }
    100% { box-shadow: 0 0 0 0 rgba(224, 122, 95, 0); }
}

/* Small spinner for processing */
.processing-indicator {
    padding: 15px;
    margin: 10px 0;
    text-align: center;
    background-color: var(--light-bg-color);
    border-radius: 8px;
}

.processing-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-style: italic;
    color: var(--secondary-text-color);
}

.small-spinner {
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-left-color: var(--primary-color);
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: spin 1s linear infinite;
    display: inline-block;
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 1rem;
    }
    
    .search-container,
    #results-container,
    #partial-stays-container,
    #error-container,
    #notification-container {
        padding: 1rem;
    }
}
/* Simplified chained option layout */
.chained-option-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid var(--primary-color);
    padding: 1.25rem;
    margin-bottom: 1rem;
    border-radius: 8px;
}

.chained-option-header.partial {
    border-left-color: #ff9800;
    background: linear-gradient(135deg, #fff8e1 0%, #ffe0b2 100%);
}

.option-main-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.option-main-info h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text-dark);
}

.option-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
}

.option-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: #666;
}

.missing-nights {
    color: #f57c00;
    font-weight: 500;
}

.timeline-room-card {
    display: none; /* Hidden for now - will be replaced with better visualization */
}

.stay-summary {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.stay-summary h4 {
    margin: 0 0 1rem 0;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.select-option-button {
    width: 100%;
    padding: 0.875rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 0.5rem;
}

.select-option-button:hover {
    background-color: var(--accent-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.select-option-button:active {
    transform: translateY(0);
}

/* Calendar View Styles */
.calendar-view {
    margin: 1.5rem 0;
    background: var(--card-bg-color);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.calendar-header-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    text-align: center;
}

.calendar-grid {
    display: grid;
    grid-template-rows: auto auto;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 1rem;
}

/* Room span headers - shown above the day cells */
.room-span {
    grid-row: 1;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Room-specific colors for span headers */
.room-span[data-room*="Nadhi"] {
    background: linear-gradient(135deg, #4FC3F7 0%, #29B6F6 100%);
}

.room-span[data-room*="Shivapadam"] {
    background: linear-gradient(135deg, #81C784 0%, #66BB6A 100%);
}

.room-span[data-room*="Brahmaputra"] {
    background: linear-gradient(135deg, #FFB74D 0%, #FFA726 100%);
}

.room-span[data-room*="Alayam"] {
    background: linear-gradient(135deg, #BA68C8 0%, #AB47BC 100%);
}

.room-span[data-room*="Nalanda"] {
    background: linear-gradient(135deg, #F06292 0%, #EC407A 100%);
}

.room-span[data-room*="Thennai"] {
    background: linear-gradient(135deg, #FFD54F 0%, #FFCA28 100%);
    color: #333;
}

.calendar-day {
    grid-row: 2;
    background: var(--light-bg-color);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem;
    min-height: 90px;
    min-width: 100px;
    display: flex;
    flex-direction: column;
    transition: all 0.2s;
}

.calendar-day:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.calendar-day.today {
    border-color: var(--primary-color);
    border-width: 3px;
}

.calendar-day.missing {
    background: var(--special-bg-color);
    opacity: 0.7;
}

.day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.day-weekday {
    font-weight: 600;
    color: var(--secondary-text-color);
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
}

.day-number {
    font-weight: bold;
    color: var(--text-dark);
    font-size: 1.1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .calendar-day {
        min-height: 80px;
        min-width: 90px;
        padding: 0.5rem;
    }

    .room-span {
        font-size: 0.8rem;
        padding: 0.4rem 0.5rem;
    }
}

/* Missing dates styling in summary table */
.missing-row {
    background-color: #fff3e0;
    font-style: italic;
}

.missing-row td {
    color: #f57c00;
    padding: 0.5rem !important;
}
