/* Open Sky Villa Booking Engine - Main Styles */

:root {
    /* Brand Colors - Inspired by Open Sky Villa aesthetic */
    --primary-color: #2c5f7c;
    --primary-dark: #1a3d52;
    --primary-light: #4a8ba8;
    --accent-color: #d4a574;
    --accent-light: #e8c9a5;
    --background-light: #f8f6f3;
    --background-white: #ffffff;
    --text-dark: #2c2c2c;
    --text-medium: #666666;
    --text-light: #999999;
    --border-color: #e0e0e0;
    --success-color: #4caf50;
    --error-color: #f44336;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    background-color: var(--background-light);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--background-white);
    box-shadow: var(--shadow);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-size: 28px;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.language-selector {
    display: flex;
    gap: 8px;
}

.lang-btn {
    padding: 8px 16px;
    border: 2px solid var(--border-color);
    background: var(--background-white);
    color: var(--text-medium);
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.lang-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Main Content */
.main-content {
    padding: 40px 0;
    min-height: calc(100vh - 200px);
}

.booking-step {
    display: none;
    background: var(--background-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    max-width: 900px;
    margin: 0 auto;
}

.booking-step.active {
    display: block;
}

.booking-step h2 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-weight: 600;
}

/* Date Selection */
.date-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.date-input-group,
.guest-input-group {
    display: flex;
    flex-direction: column;
}

.date-input-group label,
.guest-input-group label {
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.date-input {
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

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

.guest-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.guest-btn {
    width: 36px;
    height: 36px;
    border: 2px solid var(--border-color);
    background: var(--background-white);
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.guest-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.guest-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.guest-count {
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

.coupon-section {
    margin: 20px 0;
}

.coupon-section label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.coupon-input {
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 16px;
    width: 100%;
    max-width: 300px;
    transition: border-color 0.3s ease;
}

.coupon-input:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Calendar */
.calendar-container {
    margin: 30px 0;
    padding: 20px;
    background: var(--background-light);
    border-radius: 8px;
}

.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 10px;
}

.calendar-header-day {
    text-align: center;
    font-weight: 600;
    color: var(--text-medium);
    font-size: 14px;
    padding: 8px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    background: var(--background-white);
}

.calendar-day:hover:not(.disabled):not(.selected):not(.in-range) {
    background: var(--primary-light);
    color: white;
}

.calendar-day.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: var(--background-light);
}

.calendar-day.selected {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.calendar-day.in-range {
    background: var(--accent-light);
    color: var(--text-dark);
}

.calendar-day.today {
    border-color: var(--accent-color);
}

.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-nav-btn {
    padding: 8px 16px;
    border: 2px solid var(--border-color);
    background: var(--background-white);
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.calendar-nav-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.calendar-month {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
}

/* Buttons */
.btn-primary,
.btn-secondary {
    padding: 14px 32px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: var(--background-white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    margin-right: 10px;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* Rooms Container */
.rooms-container {
    display: grid;
    gap: 30px;
    margin: 30px 0;
}

.room-card {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: var(--background-white);
}

.room-card:hover {
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.room-card.selected {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.room-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: var(--background-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 14px;
}

.room-content {
    padding: 24px;
}

.room-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 16px;
}

.room-name {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.room-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
}

.room-price small {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-medium);
}

.room-description {
    color: var(--text-medium);
    margin-bottom: 16px;
    line-height: 1.6;
}

.room-details {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.room-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-medium);
    font-size: 14px;
}

.room-amenities {
    margin-bottom: 20px;
}

.room-amenities h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.amenities-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.amenity-tag {
    padding: 6px 12px;
    background: var(--background-light);
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-medium);
}

.room-select-btn {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--primary-color);
    background: var(--primary-color);
    color: white;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.room-select-btn:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.room-select-btn.selected {
    background: var(--success-color);
    border-color: var(--success-color);
}

/* Booking Summary */
.booking-summary {
    background: var(--background-light);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.booking-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.booking-summary-label {
    color: var(--text-medium);
}

.booking-summary-value {
    font-weight: 600;
    color: var(--text-dark);
}

/* Services */
.services-container {
    display: grid;
    gap: 20px;
    margin: 30px 0;
}

.service-item {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.service-item:hover {
    border-color: var(--primary-color);
}

.service-item.selected {
    border-color: var(--primary-color);
    background: var(--accent-light);
}

.service-info {
    flex: 1;
}

.service-name {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.service-price {
    color: var(--text-medium);
    font-size: 14px;
}

.service-checkbox {
    width: 24px;
    height: 24px;
    cursor: pointer;
}

/* Guest Form */
.guest-form {
    margin: 30px 0;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.form-group input:invalid {
    border-color: var(--error-color);
}

/* Review Summary */
.review-summary {
    background: var(--background-light);
    padding: 30px;
    border-radius: 8px;
    margin: 30px 0;
}

.review-section {
    margin-bottom: 24px;
}

.review-section:last-child {
    margin-bottom: 0;
}

.review-section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.review-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    color: var(--text-medium);
}

.review-total {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.terms-section {
    margin: 30px 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Confirmation Screen */
.confirmation-screen {
    text-align: center;
}

.confirmation-content {
    max-width: 600px;
    margin: 0 auto;
}

.checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--success-color);
    color: white;
    font-size: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
}

.confirmation-content h2 {
    color: var(--success-color);
    margin-bottom: 16px;
}

.confirmation-content p {
    color: var(--text-medium);
    margin-bottom: 30px;
    font-size: 18px;
}

.confirmation-details {
    background: var(--background-light);
    padding: 24px;
    border-radius: 8px;
    margin: 30px 0;
    text-align: left;
}

.confirmation-details-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

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

/* Footer */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 20px 0;
    text-align: center;
    margin-top: 40px;
}

.footer p {
    margin: 0;
}

