/* Guest Page Components - Design System */

/* ===== BASE VARIABLES ===== */
:root {
    /* Guest-specific colors */
    --brand-blue: #17a9e4;
    --brand-blue-dark: #1485b8;
    --text-primary: #2c3e50;
    --text-secondary: #555;
    --text-muted: #666;
    --background-white: #ffffff;
    --background-light: #f8fbfe;
    --background-soft: #f0f8fd;
    --border-light: #e6f2fb;
    --border-medium: #eef5fb;

    /* Status Colors */
    --success: #22c55e;
    --warning: #ffc107;
    --danger: #e74c3c;
    --info: #17a9e4;

    /* Spacing Scale (8px base) */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;

    /* Typography - Guest-friendly sizes */
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;

    /* Border Radius - More rounded for hospitality */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    /* Shadows - Softer for guest pages */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 20px rgba(23, 169, 228, 0.08);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* Status badge for owner requested info */
.status-owner_requested_info {
    background: var(--background-soft);
    color: var(--info);
}

/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: inherit;
    background: var(--background-white);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
    line-height: 1.6;
}

/* ===== CONTAINER ===== */
.guest-container {
    background: white;
    max-width: 600px;
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

/* ===== HEADERS ===== */
.guest-header {
    background: var(--brand-blue);
    padding: var(--space-xl);
    text-align: center;
    color: white;
}

.guest-logo {
    max-width: 250px;
    height: auto;
    margin-bottom: var(--space-md);
}

.guest-title {
    font-size: var(--font-size-3xl);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: white;
}

.guest-subtitle {
    font-size: var(--font-size-lg);
    opacity: 0.95;
    color: white;
}

.guest-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
    animation: checkmark 0.6s ease;
}

@keyframes checkmark {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ===== CONTENT AREAS ===== */
.guest-content {
    padding: var(--space-2xl) var(--space-xl);
}

.guest-message {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.guest-message p {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

/* ===== INFO PANELS ===== */
.info-panel {
    background: var(--background-light);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--brand-blue);
    box-shadow: var(--shadow-md);
}

.info-panel h3 {
    color: var(--text-primary);
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-md);
    text-align: center;
    font-weight: 600;
}

.info-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    margin-bottom: var(--space-sm);
    background: white;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-medium);
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item i {
    font-size: var(--font-size-xl);
    color: var(--brand-blue);
    width: 28px;
    flex-shrink: 0;
}

.info-item .label {
    font-weight: 600;
    color: var(--text-primary);
    min-width: 70px;
    font-size: var(--font-size-sm);
}

.info-item .value {
    color: var(--text-primary);
    font-size: 1.05rem;
    font-weight: 500;
    font-family: inherit;
    letter-spacing: 0.2px;
}

/* ===== TIMELINE ===== */
.timeline {
    background: white;
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.timeline h3 {
    color: var(--text-primary);
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 600;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-number {
    background: var(--brand-blue);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.timeline-text {
    color: var(--text-secondary);
    line-height: 1.8;
    padding-top: 3px;
}

/* ===== HELP SECTION ===== */
.help-section {
    background: #fff3cd;
    border-left: 4px solid var(--warning);
    border-radius: var(--radius-sm);
    padding: var(--space-md);
    margin-bottom: var(--space-xl);
}

.help-section h3 {
    color: #856404;
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 600;
}

.help-section ul {
    list-style: none;
    color: #856404;
}

.help-section li {
    margin-bottom: var(--space-sm);
    padding-left: var(--space-xl);
    position: relative;
}

.help-section li:before {
    content: "•";
    position: absolute;
    left: var(--space-sm);
}

/* ===== CALL TO ACTION ===== */
.cta-section {
    text-align: center;
    padding: var(--space-lg);
    background: var(--background-soft);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-sm);
    border: 1px solid var(--border-light);
}

.cta-section p {
    color: var(--brand-blue);
    font-weight: 600;
    font-size: var(--font-size-lg);
}

/* ===== CONTACT INFO ===== */
.contact-section {
    text-align: center;
    padding: var(--space-md);
    border-top: 1px solid var(--border-light);
}

.contact-section p {
    color: var(--brand-blue);
    margin-bottom: var(--space-sm);
    font-weight: 600;
}

.contact-section a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: var(--font-size-xl);
}

.contact-section a:hover {
    text-decoration: underline;
}

/* ===== ERROR STATES ===== */
.error-container {
    text-align: center;
    padding: var(--space-2xl);
}

.error-icon {
    font-size: 3rem;
    color: var(--danger);
    margin-bottom: var(--space-md);
}

.error-container h2 {
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    font-weight: 600;
}

.error-container p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: var(--space-sm);
}

/* ===== CONFIRMATION CARDS ===== */
.confirmation-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--space-xl);
    margin-bottom: var(--space-lg);
    border: 1px solid var(--border-light);
}

.confirmation-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.confirmation-icon {
    font-size: 3rem;
    color: var(--brand-blue);
    margin-bottom: var(--space-md);
}

.confirmation-title {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.confirmation-message {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== SUCCESS STATES ===== */
.success-banner {
    position: fixed;
    top: var(--space-md);
    left: 50%;
    transform: translateX(-50%);
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: var(--radius-sm);
    padding: var(--space-md) var(--space-lg);
    box-shadow: var(--shadow-lg);
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 500;
    animation: slideDown 0.3s ease-out;
}

.error-banner {
    position: fixed;
    top: var(--space-md);
    left: 50%;
    transform: translateX(-50%);
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: var(--radius-sm);
    padding: var(--space-md) var(--space-lg);
    box-shadow: var(--shadow-lg);
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 500;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 600px) {
    body {
        padding: var(--space-sm);
    }

    .guest-container {
        margin: 0;
        border-radius: var(--radius-md);
    }

    .guest-header {
        padding: var(--space-lg);
    }

    .guest-title {
        font-size: var(--font-size-2xl);
    }

    .guest-subtitle {
        font-size: var(--font-size-base);
    }

    .guest-content {
        padding: var(--space-lg) var(--space-md);
    }

    .guest-message p {
        font-size: var(--font-size-base);
    }

    .info-panel {
        padding: var(--space-md);
    }

    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }

    .info-item .label {
        min-width: auto;
    }

    .timeline-item {
        gap: var(--space-sm);
    }

    .timeline-text {
        font-size: var(--font-size-sm);
    }

    .success-banner,
    .error-banner {
        left: var(--space-sm);
        right: var(--space-sm);
        transform: none;
        width: auto;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-center {
    text-align: center;
}

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

.text-right {
    text-align: right;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: var(--space-xs);
}

.mb-2 {
    margin-bottom: var(--space-sm);
}

.mb-3 {
    margin-bottom: var(--space-md);
}

.mb-4 {
    margin-bottom: var(--space-lg);
}

.mb-5 {
    margin-bottom: var(--space-xl);
}

.mt-0 {
    margin-top: 0;
}

.mt-1 {
    margin-top: var(--space-xs);
}

.mt-2 {
    margin-top: var(--space-sm);
}

.mt-3 {
    margin-top: var(--space-md);
}

.mt-4 {
    margin-top: var(--space-lg);
}

.mt-5 {
    margin-top: var(--space-xl);
}

.d-none {
    display: none;
}

.d-block {
    display: block;
}

.d-flex {
    display: flex;
}

.d-inline-flex {
    display: inline-flex;
}

.flex-column {
    flex-direction: column;
}

.flex-row {
    flex-direction: row;
}

.align-items-center {
    align-items: center;
}

.justify-content-center {
    justify-content: center;
}

.w-100 {
    width: 100%;
}

.h-100 {
    height: 100%;
}

/* Map mini card (property search widget) */
.kig-map-mini-card {
    background: var(--background-white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    padding: 10px 14px;
    max-width: 260px;
}

.kig-map-mini-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
}

.kig-map-mini-description {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    line-height: 1.4;
    margin-top: var(--space-xs);
    margin-bottom: var(--space-xs);
}

/* Main property card description (search widget grid) */
.kig-card-description {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    line-height: 1.5;
    margin-top: var(--space-xs);
    margin-bottom: var(--space-xs);
}

/* ===== PRIMARY CTA BUTTONS ===== */
.guest-primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    background: var(--brand-blue);
    color: #ffffff;
    font-weight: 600;
    font-size: var(--font-size-base);
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease, color 0.2s ease;
    width: 100%;
    max-width: 100%;
}

.guest-primary-button:hover,
.guest-primary-button:focus {
    background: var(--brand-blue-dark);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.guest-primary-button:active {
    transform: translateY(0);
    box-shadow: var(--shadow-md);
}

.guest-primary-button--disabled,
.guest-primary-button[aria-disabled="true"] {
    background: #cbd5e1;
    color: #64748b;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.guest-primary-button--disabled:hover,
.guest-primary-button--disabled:focus,
.guest-primary-button[aria-disabled="true"]:hover,
.guest-primary-button[aria-disabled="true"]:focus {
    background: #cbd5e1;
    color: #64748b;
    box-shadow: none;
    transform: none;
}

/* ===== Manage My Stay - Arrival Date Picker ===== */
.kig-mms-date-wrapper {
    position: relative;
    width: 100%;
}

.kig-mms-date-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    background: #ffffff;
}

.kig-mms-date-trigger.kig-placeholder {
    color: var(--text-muted);
}

.kig-mms-date-popover {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 8px;
    background: #ffffff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 12px;
    max-height: 380px;
    overflow-y: auto;
    z-index: 40;
}

.kig-mms-date-popover .kig-checkout-date-months {
    display: block;
}

.kig-mms-date-popover .kig-checkout-date-month {
    margin-bottom: 12px;
}

.kig-mms-date-popover .kig-checkout-date-grid {
    width: 100%;
}

.kig-mms-date-popover-mobile {
    /* Reuse shared mobile date picker styles; this class is only for potential overrides */
}

/* Guest registration landing page typography to match gate pass */
.guest-registration-page {
    font-family: 'Arial', sans-serif;
}

.guest-registration-complete {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
}

.guest-registration-complete-icon {
    color: var(--success);
    font-size: 1.1em;
}
