/* ========================================
   Rea Suite Booking Engine - Main Styles
   ======================================== */

/* Root Variables */
:root {
    --primary-color: #1976d2;
    --primary-dark: #1565c0;
    --primary-light: #42a5f5;
    --secondary-color: #ff6f00;
    --text-dark: #212121;
    --text-light: #757575;
    --bg-light: #f5f5f5;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --success-color: #4caf50;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

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

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

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* Header & Navigation */
.header {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    position: relative;
    height: 600px;
    background: linear-gradient(135deg, #1976d2 0%, #42a5f5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1534113414509-0bd4d8d34a7e?w=1600') center/cover;
    opacity: 0.3;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(25, 118, 210, 0.7);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    animation: fadeInUp 1s ease 0.2s backwards;
}

/* Search Box */
.search-box {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    z-index: 100;
}

.search-form {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.search-form .form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.search-form .form-control,
.search-form .form-select {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: var(--transition);
}

.search-form .form-control:focus,
.search-form .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

/* Buttons */
.btn-primary {
    background: var(--primary-color);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Apartments Section */
.apartments-section {
    padding: 8rem 0 4rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Apartment Card */
.apartment-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.apartment-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.apartment-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.apartment-card:hover .apartment-image {
    transform: scale(1.05);
}

.apartment-card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.apartment-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.apartment-location {
    color: var(--text-light);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.apartment-features {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.feature-badge {
    background: var(--bg-light);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.apartment-description {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.apartment-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.apartment-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price-period {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 400;
}

/* Features Section */
.features-section {
    background: var(--bg-light);
    padding: 4rem 0;
}

.feature-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Apartment Detail Page */
.apartment-detail-section {
    padding: 2rem 0 4rem;
}

.apartment-gallery {
    margin-top: 2rem;
}

.main-image {
    height: 450px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-images .col-6 {
    margin-bottom: 0.5rem;
}

.thumbnail {
    height: 145px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.thumbnail:hover {
    opacity: 0.8;
    transform: scale(0.98);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.apartment-info {
    margin-top: 2rem;
}

.apartment-info h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.apartment-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.apartment-amenities .col-md-6 {
    margin-bottom: 1rem;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-light);
    border-radius: 8px;
}

.amenity-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.apartment-rules ul {
    list-style: none;
    padding: 0;
}

.apartment-rules li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.apartment-rules li:last-child {
    border-bottom: none;
}

.apartment-rules li i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Booking Card */
.booking-card {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.sticky-booking {
    position: sticky;
    top: 100px;
}

.booking-card-header {
    margin-bottom: 1.5rem;
}

.price-info {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price-breakdown {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 8px;
}

.price-breakdown .d-flex {
    font-size: 0.95rem;
}

.price-breakdown .fw-bold {
    font-size: 1.1rem;
}

/* Booking Form Section */
.booking-section {
    padding: 3rem 0;
    background: var(--bg-light);
    min-height: calc(100vh - 200px);
}

.booking-form-container {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.form-section {
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 8px;
}

.form-section-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-dark);
}

.form-section-title i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.payment-method-option {
    background: var(--bg-white);
    padding: 1rem;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.payment-method-option:has(input:checked) {
    border-color: var(--primary-color);
    background: rgba(25, 118, 210, 0.05);
}

.payment-method-option label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    margin-bottom: 0;
}

.payment-method-option i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* Booking Summary */
.booking-summary {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.apartment-summary {
    display: flex;
    gap: 1rem;
}

.apartment-summary-image {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
}

.apartment-summary-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.apartment-summary-info h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.booking-details .detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.booking-details .detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
}

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

.price-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.price-row.total {
    font-size: 1.3rem;
    padding-top: 1rem;
}

/* Confirmation Page */
.confirmation-section {
    padding: 3rem 0;
    background: var(--bg-light);
    min-height: calc(100vh - 200px);
}

.confirmation-card {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.confirmation-icon {
    margin-bottom: 2rem;
}

.confirmation-icon i {
    font-size: 6rem;
    color: var(--success-color);
    animation: scaleIn 0.5s ease;
}

.confirmation-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.confirmation-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.confirmation-number {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    display: inline-block;
}

.booking-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-left: 0.5rem;
}

.confirmation-details {
    text-align: left;
    margin-top: 2rem;
}

.detail-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.detail-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.next-steps {
    text-align: left;
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.step-item {
    display: flex;
    gap: 1.5rem;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h6 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.step-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}

.confirmation-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer p {
    margin-bottom: 0.5rem;
}

.footer i {
    margin-right: 0.5rem;
    color: var(--primary-light);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        height: 400px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .search-box {
        position: relative;
        bottom: 0;
        margin-top: -40px;
    }

    .apartments-section {
        padding: 5rem 0 3rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .apartment-card-title {
        font-size: 1.25rem;
    }

    .apartment-price {
        font-size: 1.5rem;
    }

    .main-image {
        height: 250px;
    }

    .thumbnail {
        height: 120px;
    }

    .apartment-info h1 {
        font-size: 1.8rem;
    }

    .sticky-booking {
        position: relative;
        top: 0;
        margin-top: 2rem;
    }

    .booking-form-container {
        padding: 1.5rem;
    }

    .confirmation-card {
        padding: 2rem 1.5rem;
    }

    .confirmation-title {
        font-size: 1.8rem;
    }

    .confirmation-icon i {
        font-size: 4rem;
    }

    .booking-number {
        font-size: 1.2rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .confirmation-actions {
        display: none;
    }

    .confirmation-section {
        background: white;
    }

    .confirmation-card {
        box-shadow: none;
    }
}
