/* booking.css — modern & animated */
:root {
    --brand: #8B5E3C;
    --brand-dark: #6f4a33;
    --brand-light: #B8956F;
    --danger: #DC2626;
    --muted: #6B7280;
    --card-radius: 0.75rem;
    --page-bg: linear-gradient(135deg, #F9FAFB 0%, #F3F1EE 100%);
    --text: #1F2937;
    --header-h: 85px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.15);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--page-bg);
    color: var(--text);
    font-family: "Work Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

/* Smooth animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* container wrapper */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header: fixed height */
.header {
    height: var(--header-h);
    background: linear-gradient(135deg, #fff 0%, #fafbfc 100%);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    z-index: 40;
    position: sticky;
    top: 0;
    animation: fadeInUp 0.5s ease-out;
}

/* header content spacing */
.header .header-inner {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 1rem;
}

.header h1 {
    font-size: 1.125rem;
    margin: 0;
    font-weight: 700;
}

.header .meta {
    color: var(--muted);
    font-size: .9rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* layout: summary aligned with first card */
.layout-row {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    /* ensure first card top aligns with summary top */
    margin-top: 1rem;
}

/* main column takes remaining space */
.main-col {
    flex: 1;
    min-width: 0;
}

/* summary */
.summary {
    width: 320px;
    background: #fff;
    border-radius: var(--card-radius);
    padding: 1.25rem;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: calc(var(--header-h) + 0.75rem);
    animation: slideInRight 0.5s ease-out 0.1s both;
    transition: var(--transition);
}

.summary:hover {
    box-shadow: var(--shadow-lg);
}

/* room card */
.room-card {
    background: #fff;
    border-radius: var(--card-radius);
    padding: 1rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
    animation: fadeInUp 0.5s ease-out;
    border: 1px solid rgba(139, 94, 60, 0.05);
}

.room-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--brand-light);
}

.room-card .room-title {
    font-weight: 700;
    margin: 0 0 .25rem 0;
    font-size: 1.05rem;
}

.room-card .room-desc {
    color: var(--muted);
    font-size: .9rem;
    margin-bottom: .5rem;
}

.room-card .price {
    color: var(--brand);
    font-weight: 700;
    font-size: 1.15rem;
}

/* input style */
.input-field {
    width: 100%;
    padding: .6rem;
    border-radius: .5rem;
    border: 2px solid #E5E7EB;
    background: #fff;
    transition: var(--transition);
    font-family: inherit;
}

.input-field:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(139, 94, 60, 0.1);
}

/* button - brown theme */
.btn-brown {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    border: none;
    color: #fff;
    padding: .6rem 1rem;
    border-radius: .5rem;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(139, 94, 60, 0.2);
}

.btn-brown:hover {
    background: linear-gradient(135deg, var(--brand-dark) 0%, #5a3a25 100%);
    color: #fff;
    text-decoration: none;
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* outline brown */
.btn-outline-brown {
    background: transparent;
    border: 2px solid var(--brand);
    color: var(--brand);
    padding: .45rem .85rem;
    border-radius: .5rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    font-weight: 600;
}

.btn-outline-brown:hover {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 2px 8px rgba(139, 94, 60, 0.2);
}

/* remove underline for pseudo-links used as buttons */
.link-button {
    text-decoration: none;
    color: inherit;
}

/* totals */
.total-row {
    display: flex;
    justify-content: space-between;
    font-size: .95rem;
    color: var(--muted);
    padding-top: .6rem;
    border-top: 1px solid #EEF2F6;
}

.total-final {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1.05rem;
    margin-top: .6rem;
}

/* confirmation layout */
.card {
    background: #fff;
    border-radius: var(--card-radius);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1rem;
    transition: var(--transition);
    animation: fadeInUp 0.5s ease-out;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.terms {
    background: linear-gradient(135deg, #FFF8F1 0%, #FFF5ED 100%);
    border-radius: .5rem;
    padding: .8rem;
    border: 1px solid #F5E3D8;
    color: #6b4b3a;
    transition: var(--transition);
}

.terms:hover {
    box-shadow: var(--shadow-sm);
}

/* small device rules: cards full width, remove side gaps */
@media (max-width: 992px) {
    .layout-row {
        flex-direction: column;
        gap: 1rem;
        margin-top: .5rem;
    }

    .summary {
        position: static;
        width: 100%;
        top: auto;
    }

    .room-card {
        padding: .85rem;
        margin-bottom: 1rem;
    }

    .container {
        padding: 0 .75rem;
    }
}

/* very small */
@media (max-width:420px) {
    .header h1 {
        font-size: 1rem;
    }

    .room-card .room-title {
        font-size: 1rem;
    }

    .summary {
        padding: .85rem;
    }
}

/* quick utility */
.text-muted {
    color: var(--muted);
}

.small {
    font-size: .875rem;
}

.card {
    border-radius: .5rem;
    border: 1px solid #e9ecef;
}

.btn {
    border-radius: .4rem;
    transition: var(--transition);
}

.text-danger {
    color: #d9534f !important;
}

.text-success {
    color: #28a745 !important;
}

.booking-reserved-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}


.terms-section {
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
    border: 1px solid #bfdbfe;
    border-radius: 0.75rem;
    padding: 1.5rem;
    color: #1e40af;
    margin-top: 2rem;
    animation: slideInLeft 0.5s ease-out;
    transition: var(--transition);
}

.terms-section:hover {
    box-shadow: var(--shadow-sm);
}

.required-note {
    color: #c0392b;
    font-weight: 700;
    font-size: 1.06em;
    margin-left: 0.25rem;
    vertical-align: middle;
}

/* Modern form styling */
.form-control,
.form-select {
    transition: var(--transition);
    border: 2px solid #E5E7EB;
    padding: 0.6rem 0.75rem;
}

.form-control:focus,
.form-select:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(139, 94, 60, 0.1);
}

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

/* Enhanced headings */
h1, h2, h3, h4, h5, h6 {
    color: var(--text);
    margin-bottom: 1rem;
    animation: fadeInUp 0.5s ease-out;
}

h2 {
    font-size: 1.875rem;
    font-weight: 700;
}

h4 {
    font-size: 1.125rem;
    font-weight: 600;
}

/* Modern alert styling */
.alert {
    border: none;
    border-radius: var(--card-radius);
    animation: slideInLeft 0.3s ease-out;
    transition: var(--transition);
}

.alert-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border-left: 4px solid #f59e0b;
}

.alert-info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    border-left: 4px solid #3b82f6;
}

.alert-success {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #166534;
    border-left: 4px solid #22c55e;
}

/* Enhanced image styling */
img {
    border-radius: var(--card-radius);
    transition: var(--transition);
}

img:hover {
    transform: scale(1.02);
}

/* Row and Column animations */
.row {
    animation: fadeInUp 0.5s ease-out;
}

.col-lg-8,
.col-lg-4,
.col-md-6 {
    animation: fadeInUp 0.5s ease-out;
}

/* Smooth link styling */
a {
    color: var(--brand);
    transition: var(--transition);
    text-decoration: none;
}

a:hover {
    color: var(--brand-dark);
    text-decoration: underline;
}

/* Loading state */
.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Success state */
.success-icon {
    color: #22c55e;
    animation: scaleIn 0.5s ease-out;
}
