/* Method & Passion - Alojamento Local - Styles */

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

:root {
    /* Paleta de cores elegante - Bege, Dourado e Preto */
    --primary-color: #c9a961;
    --primary-dark: #9d7d3a;
    --secondary-color: #d4af37;
    --accent-color: #b8966d;
    --text-dark: #2c2420;
    --text-light: #6b5d52;
    --bg-light: #f5f1eb;
    --bg-beige: #e8dfd5;
    --white: #ffffff;
    --black: #1a1311;
    --shadow-sm: 0 1px 2px 0 rgba(42, 36, 32, 0.08);
    --shadow-md: 0 4px 6px -1px rgba(42, 36, 32, 0.12);
    --shadow-lg: 0 10px 15px -3px rgba(42, 36, 32, 0.15);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

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

/* ===== HEADER ===== */
header {
    background: linear-gradient(135deg, #c9a961 0%, #9d7d3a 100%);
    color: var(--white);
    padding: 30px 20px;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 12px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.language-selector:hover {
    background: rgba(255, 255, 255, 0.25);
}

.language-selector label {
    font-size: 1rem;
    cursor: pointer;
}

.language-selector select {
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    padding: 2px 4px;
    font-family: inherit;
}

.language-selector select option {
    background: var(--black);
    color: var(--white);
}

header .container {
    text-align: center;
}

header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
    letter-spacing: -0.5px;
}

header p {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 300;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    font-size: 0.8rem;
    backdrop-filter: blur(10px);
}

.trust-badge::before {
    content: '🔒';
    font-size: 0.9rem;
}

/* ===== MAIN CONTENT ===== */
main {
    padding: 60px 0;
}

section {
    margin-bottom: 60px;
}

h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 30px;
    margin-top: 10px;
    text-align: center;
    font-weight: 600;
}

/* ===== ACCOMMODATION CARDS ===== */
.accommodations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.accommodation-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    border: 3px solid transparent;
}

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

.accommodation-card.selected {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(201, 169, 97, 0.2);
}

.accommodation-image {
    width: 100%;
    height: 220px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.accommodation-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.accommodation-content {
    padding: 25px;
}

.accommodation-content h3 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 600;
}

.accommodation-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.accommodation-features {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--text-light);
}

.feature {
    display: flex;
    align-items: center;
    gap: 5px;
}

.feature::before {
    content: '✓';
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1rem;
}

/* ===== BOOKING FORM ===== */
.booking-section {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.booking-form {
    display: grid;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

label .required {
    color: #ef4444;
    font-size: 1.2rem;
}

input[type="date"],
input[type="number"],
input[type="text"],
select {
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--white);
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.15);
}

input::placeholder {
    color: #9ca3af;
}

.date-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Names section */
.names-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.name-input-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

.name-input-wrapper input {
    flex: 1;
}

.btn-remove {
    padding: 10px 16px;
    background: #8b6f47;
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
    font-weight: 500;
}

.btn-remove:hover {
    background: #6b5537;
}

.btn-add-name {
    padding: 12px 20px;
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
}

.btn-add-name:hover {
    background: #b8921f;
    transform: translateY(-2px);
}

.btn-add-name::before {
    content: '+';
    font-size: 1.3rem;
    font-weight: bold;
}

/* Submit button */
.btn-submit {
    padding: 18px 40px;
    background: linear-gradient(135deg, #c9a961 0%, #9d7d3a 100%);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 15px;
    position: relative;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-submit:active {
    transform: translateY(-1px);
}

.btn-submit::after {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413Z"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.btn-submit:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

/* Error messages */
.error-message {
    color: #b8716f;
    font-size: 0.85rem;
    display: none;
    margin-top: 5px;
}

.form-group.error input,
.form-group.error select {
    border-color: #d4928f;
}

.form-group.error .error-message {
    display: block;
}

/* ===== FOOTER ===== */
footer {
    background: var(--black);
    color: var(--white);
    text-align: center;
    padding: 30px 20px;
    margin-top: 60px;
}

footer p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    header p {
        font-size: 1rem;
    }

    .booking-section {
        padding: 25px;
    }

    .date-inputs {
        grid-template-columns: 1fr;
    }

    .accommodations {
        grid-template-columns: 1fr;
    }

    h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.6rem;
    }

    .booking-section {
        padding: 20px;
    }

    .btn-submit {
        padding: 16px 30px;
        font-size: 1rem;
    }
}
