/* Import site color variables and fonts */
:root {
    --primary: #370e04;
    --primary-hover: #6f1f08;
    --secondary: #746f64;
    --tertiary: #dacca9;
    --gold: #e0d5bf;
    --light: #f8f3f2;
    --lighter: #f5efef;
    --white: #ffffff;
    --primary-font: "Lato", sans-serif;
    --secondary-font: "Canela", serif;
}

/* Hero Section */
.hero {
    height: 55vh;
    background: linear-gradient(rgba(55, 14, 4, 0.7), rgba(55, 14, 4, 0.7)),
        url("../img/sources/category_1.jpg") center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    font-family: var(--secondary-font);
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 30px;
    letter-spacing: 2px;
    color: var(--white);
}

.hero-content p {
    font-size: 1.4rem;
    font-weight: 400;
    max-width: 800px;
    margin: 0 auto;
    letter-spacing: 1px;
    color: var(--gold);
    font-style: italic;
}

.hero-content {
    max-width: 100%;
    right: 0;
    left: 0;
}

/* Progress Steps */
.reservation-progress-container {
    margin-bottom: 3rem;
    margin-top: 3rem;
}

.reservation-progress-bar {
    display: flex;
    align-items: start;
    justify-content: center;
    position: relative;
    margin-bottom: 10px;
}

.reservation-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    max-width: 250px;
}

.reservation-step-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
    font-family: var(--primary-font);
    transition: all 0.3s ease;
}

.reservation-progress-step.completed .reservation-step-circle {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.reservation-progress-step.active .reservation-step-circle {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--primary);
    transform: scale(1.1);
}

.reservation-step-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--secondary);
    text-align: center;
    max-width: 180px;
    font-family: var(--primary-font);
    font-weight: 500;
}

.reservation-progress-step.completed .reservation-step-label,
.reservation-progress-step.active .reservation-step-label {
    color: var(--primary);
}

.reservation-progress-line {
    position: absolute;
    top: 22px;
    left: 50%;
    width: calc(100% - 45px);
    height: 2px;
    background: var(--secondary);
    z-index: 1;
}

.reservation-progress-step.completed .reservation-progress-line {
    background: var(--primary);
}

.reservation-progress-step:last-child .reservation-progress-line {
    display: none;
}

/* Apartment Card */
.apartment-card {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-bottom: 50px;
    background: var(--white);
    border: 1px solid var(--tertiary);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(55, 14, 4, 0.1);
    transition: all 0.3s ease;
}

.apartment-image-container {
    flex: 0 0 55%;
    max-width: 55%;
    position: relative;
    overflow: hidden;
    display: block;
    text-decoration: none;
    color: inherit;
}

.apartment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(55, 14, 4, 0.15);
}

.apartment-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 450px;
    transition: transform 0.3s ease;
}

.apartment-card:hover .apartment-image {
    transform: scale(1.05);
}

.apartment-details {
    padding: 50px;
    display: flex;
    flex-direction: column;
    background: var(--white);
    flex: 0 0 45%;
    max-width: 45%;
}

@supports (display: grid) {
    .apartment-card {
        display: grid;
        grid-template-columns: 55% 45%;
    }

    .apartment-image-container,
    .apartment-details {
        flex: initial;
        max-width: none;
    }
}

.apartment-title {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 30px;
    font-weight: 700;
    font-family: var(--secondary-font);
    line-height: 1.2;
}

.apartment-features {
    list-style: none;
    margin-bottom: 40px;
    padding: 0;
}

.apartment-features li {
    font-size: 14px;
    color: var(--primary);
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    font-family: var(--primary-font);
    font-weight: 500;
}

.apartment-features li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 20px;
    font-weight: 700;
}

.price-section {
    margin-top: auto;
    text-align: right;
}

.price-label {
    font-size: 13px;
    color: var(--secondary);
    margin-bottom: 8px;
    font-family: var(--primary-font);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-amount {
    font-family: var(--secondary-font);
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 5px;
    font-weight: 700;
}

.price-tax {
    font-size: 11px;
    color: var(--secondary);
    margin-bottom: 25px;
    font-family: var(--primary-font);
    font-style: italic;
}

.show-offers-btn {
    background: var(--gold);
    color: var(--primary);
    border: none;
    padding: 18px 40px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 700;
    margin-bottom: 30px;
    font-family: var(--primary-font);
    border-radius: 0;
    position: relative;
    overflow: hidden;
}

.show-offers-btn:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(55, 14, 4, 0.3);
}

.show-offers-btn:active {
    transform: translateY(0);
}

.details-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 12px 24px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 600;
    font-family: var(--primary-font);
    cursor: pointer;
    transition: all 0.3s ease;
}

.details-toggle:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.apartment-details-panel {
    display: none;
    border: 1px solid var(--tertiary);
    border-top: none;
    margin-top: -15px;
    margin-bottom: 50px;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(55, 14, 4, 0.08);
}

.apartment-details-panel.is-open {
    display: block;
}

.apartment-panel-inner {
    display: grid;
    grid-template-columns: 1fr;
}

.apartment-panel-media {
    position: relative;
    overflow: hidden;
}

.apartment-media-swiper {
    width: 100%;
    height: 100%;
}

.apartment-slide {
    position: relative;
    height: 100%;
}

.apartment-slide img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    display: block;
}

.apartment-slide-cta {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--white);
    color: var(--primary);
    border: 1px solid var(--tertiary);
    padding: 10px 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 11px;
    font-family: var(--primary-font);
    text-decoration: none;
    transition: all 0.3s ease;
}

.apartment-slide-cta:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.apartment-panel-media .swiper-button-prev,
.apartment-panel-media .swiper-button-next {
    color: var(--white);
    top: 50%;
    margin-top: 0;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 50%;
}

.apartment-panel-media .swiper-button-prev::after,
.apartment-panel-media .swiper-button-next::after {
    font-size: 14px;
}

.apartment-panel-media .swiper-button-prev {
    left: 16px;
}

.apartment-panel-media .swiper-button-next {
    right: 16px;
}

.apartment-panel-media .swiper-pagination-bullet {
    background: var(--white);
    opacity: 0.7;
}

.apartment-panel-media .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--gold);
}

.apartment-panel-details {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
}

.apartment-panel-title {
    font-size: 2rem;
    color: var(--primary);
    font-family: var(--secondary-font);
    margin: 0;
}

.apartment-panel-meta {
    list-style: none;
    padding: 0;
    margin: 0;
}

.apartment-panel-meta li {
    font-size: 13px;
    color: var(--primary);
    margin-bottom: 10px;
    font-family: var(--primary-font);
    letter-spacing: 0.4px;
}

.apartment-panel-description {
    font-size: 13px;
    color: var(--secondary);
    font-family: var(--primary-font);
    line-height: 1.6;
    margin: 0;
}

.apartment-panel-link {
    align-self: flex-start;
    color: var(--primary);
    text-decoration: none;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-family: var(--primary-font);
    font-weight: 600;
    border-bottom: 1px solid var(--primary);
    padding-bottom: 4px;
    transition: all 0.3s ease;
}

.apartment-panel-link:hover {
    color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.details-link {
    text-align: center;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--primary);
    text-decoration: none;
    cursor: pointer;
    font-weight: 600;
    font-family: var(--primary-font);
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

.details-link:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.details-link:hover {
    color: var(--primary-hover);
}

.details-link:hover:after {
    width: 100%;
}

/* Alert Styles */
.alert {
    border: none;
    border-radius: 0;
    padding: 20px 25px;
    font-family: var(--primary-font);
    font-size: 14px;
    letter-spacing: 0.3px;
}

.alert-info {
    background: rgba(218, 204, 169, 0.2);
    color: var(--primary);
    border-left: 4px solid var(--tertiary);
}

.alert-warning {
    background: rgba(218, 204, 169, 0.2);
    color: var(--primary);
    border-left: 4px solid var(--gold);
}

.alert-success {
    background: rgba(218, 204, 169, 0.2);
    color: var(--primary);
    border-left: 4px solid var(--gold);
}

/* Form Styles */
.card {
    border: none;
    border-radius: 0;
    box-shadow: 0 4px 20px rgba(55, 14, 4, 0.1);
    border: 1px solid var(--tertiary);
}

.card-header {
    background: var(--primary);
    color: var(--white);
    border-bottom: none;
    padding: 20px 25px;
    font-family: var(--secondary-font);
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: 0.5px;
}

.card-header h5,
.card-header h6 {
    margin: 0;
    color: var(--white);
}

.card-body {
    padding: 30px 25px;
    background: var(--white);
}

.form-label {
    font-family: var(--primary-font);
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.form-control {
    border: 1px solid var(--tertiary);
    border-radius: 0;
    padding: 12px 15px;
    font-family: var(--primary-font);
    font-size: 14px;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(55, 14, 4, 0.1);
    outline: none;
}

.form-control::placeholder {
    color: var(--secondary);
    font-style: italic;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    padding: 12px 30px;
    font-family: var(--primary-font);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
    border-radius: 0;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(55, 14, 4, 0.3);
}

.btn-outline-secondary {
    background: transparent;
    border-color: var(--secondary);
    color: var(--secondary);
    padding: 12px 30px;
    font-family: var(--primary-font);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
    border-radius: 0;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background: var(--secondary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline-primary {
    background: transparent;
    border-color: var(--primary);
    color: var(--primary);
    padding: 12px 30px;
    font-family: var(--primary-font);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
    border-radius: 0;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* Badge Styles */
.badge {
    font-family: var(--primary-font);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 12px;
    border-radius: 0;
}

.bg-warning {
    background: var(--gold) !important;
    color: var(--primary) !important;
}

/* Guest Capacity Indicator */
.guest-capacity-indicator {
    margin-bottom: 15px;
}

.guest-capacity-indicator .badge {
    font-size: 11px;
    padding: 8px 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.guest-capacity-indicator .badge.bg-success {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    color: white !important;
}

.guest-capacity-indicator .badge.bg-warning {
    background: linear-gradient(135deg, var(--gold), #ffc107) !important;
    color: var(--primary) !important;
}

.guest-capacity-indicator .badge.bg-danger {
    background: linear-gradient(135deg, #dc3545, #c82333) !important;
    color: white !important;
}

/* Text Utilities */
.text-muted {
    color: var(--secondary) !important;
}

.text-primary {
    color: var(--primary) !important;
}

.text-success {
    color: var(--primary) !important;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .apartment-card {
        grid-template-columns: 1fr;
        margin-bottom: 30px;
    }

    .apartment-image-container,
    .apartment-details {
        flex-basis: 100%;
        max-width: 100%;
    }

    .apartment-image {
        min-height: 300px;
    }

    .apartment-details {
        padding: 30px 20px;
    }

    .apartment-title {
        font-size: 2rem;
        margin-bottom: 20px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .reservation-progress-step {
        max-width: 150px;
    }

    .reservation-step-label {
        font-size: 10px;
    }

    .card-body {
        padding: 20px 15px;
    }

    .apartment-details-panel {
        margin-top: 0;
        margin-bottom: 30px;
    }

    .apartment-slide img {
        height: 360px;
    }
}

@media screen and (max-width: 576px) {
    .apartment-details {
        padding: 20px 15px;
    }

    .details-toggle {
        width: 100%;
    }

    .show-offers-btn {
        padding: 15px 25px;
        font-size: 11px;
    }

    .btn-primary,
    .btn-outline-secondary,
    .btn-outline-primary {
        padding: 10px 20px;
        font-size: 11px;
    }
}
