/* ─── LAYOUT ───────────────────────────────────────────────────────────────── */
.container {
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

/* ─── TEXT ───────────────────────────────────────────────────────────────── */
.text_money {
    color: var(--terra-d);
    font-size: 1.6rem;
    font-weight: 700;
}

.text_money span {
    font-size: 0.9rem;
    color: var(--light);
    font-weight: 500;
}

.rooms_header p,
span {
    color: var(--light);
}

/* ─── ROOMS ──────────────────────────────────────────────────────────────── */
.rooms {
  padding: clamp(1rem, 2vw, 2rem) 0;
  background: var(--white);
}

.rooms_header {
    text-align: center;
    margin-bottom: 60px;
}

.rooms .label {
    display: block;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.875rem;
    color: var(--terra);
    margin-bottom: 12px;
    font-weight: 600;
}

.rooms_header h2 {
    text-align: center;
    font-family: var(--font-serif);
    margin-bottom: 2rem;
    color: var(--dark);
}

.rooms_header p {
    max-width: 650px;
    margin: 0 auto;
    color: var(--light);
    line-height: 1.6;
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 500;
}

/* ─── ROOMS GRID ─────────────────────────────────────────────────────────── */

.rooms_grid {
    display: grid;
    /* 4 columns layout to match the provided image */
    grid-template-columns: repeat(4, 1fr); 
    gap: 24px;
}

/* ─── ROOMS CARD ─────────────────────────────────────────────────────────── */

.rooms_card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden; /* Important for rounding image corners */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.rooms_card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Image Styling */
.rooms_img {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.rooms_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.rooms_card:hover .rooms_img img {
    transform: scale(1.08);
}

/* Text Content Area */
.rooms_text {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.rooms_text h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    font-family: var(--font-sans);

    /* SOLUÇÃO PARA O ALINHAMENTO: */
    min-height: 2.8em; /* Garante espaço para 2 linhas de texto */
    display: flex;
    align-items: center; /* Centraliza verticalmente se for só 1 linha */
    margin-bottom: 4px;
}

/* Availability Tag */
.rooms_text p {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

/* ─── BUTTON STYLE ───────────────────────────────────────────────────────── */

.relative {
    margin-top: auto;
    padding-top: 15px;
}

.btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-size: .875rem;
    font-weight: 600;
    letter-spacing: .02em;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}
.btn--primary {
    background: var(--terra);
    color: var(--white);
    border-color: var(--terra);
}
.btn--primary:hover {
    background: var(--terra-d);
    border-color: var(--terra-d);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(196,132,90,.35);
}

.btn--full { 
    width: 100%;
    justify-content: center; 
    border-radius: 50px;
}



/* ─── EXTRAS ──────────────────────────────────────────────────────────────── */
.extras {
    padding: 4rem 0;
}
/* Cabeçalho da Seção */
.extras_header {
    text-align: center;
    margin-bottom: 50px;
}

.extras_header p {
    /* color: #718096;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6; */

        max-width: 650px;
    margin: 0 auto;
    color: var(--light);
    line-height: 1.6;
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 500;
}

/* Grid de Cards */
.extras_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

/* Estilização do Card */
.extras_card {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05); /* Sombra suave */
    transition: transform 0.3s ease;

    /* SOLUÇÃO: Transformar o card num flex container */
    display: flex;
    flex-direction: column;
    align-items: center; /* Garante que tudo continua centrado */
}

.extras_card:hover {
    transform: translateY(-5px);
}

/* Ícone */
.icon-wrapper {
    width: 60px;
    height: 60px;
    background-color: var(--sand);
    border-radius: 50%;
    
    margin: 0 auto 25px auto;
    
    /* Centraliza a imagem perfeitamente */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Previne cortes acidentais */
    overflow: hidden; 
}

.icon-wrapper img {
    /* Define o tamanho do ícone em relação ao círculo */
    /* 50% a 60% costuma ser o ideal para "respirar" */
    width: 60%; 
    height: 60%;
    object-fit: contain;
    /* Removemos o padding e o background daqui */
}

/* Títulos e Textos do Card */
.extras_card h4 {
    font-size: 1.25rem;
    color: #2d3748;
    margin-bottom: 15px;
    font-weight: 600;

    /* SOLUÇÃO: Altura mínima para os títulos (ajustado para extras) */
    min-height: 3em; 
    display: flex;
    align-items: center;
    justify-content: center;
}





/* ─── CONTACT ───────────────────────────────────────────────────────────────── */
.contact {
  padding: clamp(4rem, 10vw, 8rem) 0;
  background: linear-gradient(160deg, #1a1610 0%, #2e2416 100%);
}
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(3rem, 8vw, 6rem);
  align-items: start;
}
.contact__left h2 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}
.contact__left h2 em { color: var(--terra); }
.contact__left p { color: rgba(255,255,255,.6); margin-bottom: 2.5rem; }
.contact__host {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.contact__host strong {
  display: block;
  color: var(--white);
  font-size: .95rem;
}
.contact__host span {
  font-size: .8rem;
  color: rgba(255,255,255,.5);
}

/* ─── FORM ──────────────────────────────────────────────────────────────────── */
.contact__form {
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  box-shadow: var(--shadow-lg);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  margin-bottom: 1.15rem;
}
.form-group label {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--mid);
  text-transform: uppercase;
}
.form-group input:not([type="radio"]),
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .8rem 1rem;
  border: 1.5px solid var(--warm);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: .9rem;
  color: var(--dark);
  background: var(--cream);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--terra);
  box-shadow: 0 0 0 3px rgba(196,132,90,.18);
  background: var(--white);
}
.form-group textarea { resize: vertical; }
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%238a7d6e' d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px;
  cursor: pointer;
}
.form-note {
  text-align: center;
  font-size: .75rem;
  color: var(--light);
  margin-top: .85rem;
}



/* --- MODAL BASE --- */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    overflow-y: auto;
}

.modal_content {
    background: #fff;
    margin: 40px auto;
    width: 95%;
    max-width: 900px;
    border-radius: 24px;
    position: relative;
    padding: 32px;
}

.close_modal {
    position: absolute;
    right: 24px; top: 20px;
    font-size: 40px;
    font-weight: bold;
    color: #64748b;
    cursor: pointer;
}

/* --- GALLERY SYSTEM --- */
.modal_gallery {
    display: grid;
    grid-template-columns: 3fr 1fr; /* 3 colunas: 1 grande, 1 stack de pequenas */
    gap: 12px;
    margin: 20px 0;
}

.main_img img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 12px;
}

.side_imgs {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.side_imgs img {
    width: 100%;
    height: 108px;
    object-fit: cover;
    border-radius: 12px;
}

/* --- TEXT & PRICE --- */
.modal_title {
    font-family: var(--font-sans);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
}

.modal_price_row h3 {
    font-size: 2rem;
    color: #1a1610;
    margin: 24px 0;
}

.modal_price_row span {
    color: var(--terra);
    font-weight: 800;
}

.modal_price_row small {
    font-size: 1rem;
    color: var(--light);
    font-weight: 400;
}

/* --- AMENITIES GRID --- */
.modal_amenities h4 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: var(--dark);
}

.amenities_grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.amenity_item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: #475569;
}

.icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 50%;
}

.modal_description {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 30px;
}




.modal_furnishing {
    margin: 25px 0;
}

.modal_furnishing h4 {
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--dark);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.furnishing_grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 colunas no PC e Mobile */
    gap: 20px;
}

.furnishing_item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: var(--cream);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.furnishing_icon {
    font-size: 1.4rem;
}

.furnishing_info strong {
    display: block;
    font-size: 0.85rem;
    color: var(--dark);
}

.furnishing_info span {
    font-size: 0.8rem;
    color: var(--light);
}

/* No telemóvel, se ficar muito apertado, passa para 1 coluna */
@media (max-width: 480px) {
    .furnishing_grid {
        grid-template-columns: 1fr;
    }
}




.modal_specs {
    margin: 20px 0;
    padding: 15px 0;
    border-top: 1px solid var(--warm);
    border-bottom: 1px solid var(--warm);
}

.specs_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
    text-align: center;
}

.spec_item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.spec_label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--light);
    font-weight: 600;
}

.spec_value {
    font-size: 0.95rem;
    color: var(--dark);
    font-weight: 500;
}

.modal_divider {
    border: 0;
    border-top: 1px solid var(--warm);
    margin: 25px 0;
    opacity: 0.5;
}


/* ─── SMART TOUR ──────────────────────────────────────────────────────── */
.smart-tour {
    background-color: var(--white);
    padding: 4rem 0;
}

.smart-tour .rooms_header {
    margin-bottom: 50px;
}

.tour-container {
    position: relative;
    max-width: 1000px;
    margin: 50px auto;
    overflow: hidden;
}

.scene {
    display: none;
    position: relative;
}

.scene.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.main-scene-img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 2rem;
    display: block;
    filter: brightness(0.8); /* Escurece um pouco para os pontos brilharem */
}

/* O PONTO (Hotspot) */
.hotspot {
    position: absolute;
    z-index: 10;
}

.hotspot-dot {
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    animation: pulse 2s infinite;
}

/* A LABEL (Mini-informação) */
.hotspot-label {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: white;
    padding: 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 220px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.hotspot-label img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.hotspot-label strong {
    display: block;
    font-size: 14px;
    color: #333;
}

.hotspot-label span {
    font-size: 12px;
    color: #777;
}

/* INTERAÇÃO: Mostrar label ao passar o rato no ponto */
.hotspot:hover .hotspot-label {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ANIMAÇÕES */
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,255,255,0.7); }
    70% { transform: scale(1.2); box-shadow: 0 0 0 15px rgba(255,255,255,0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

@keyframes fadeIn {
    from { opacity: 0; } to { opacity: 1; }
}

/* NAVEGAÇÃO */
.tour-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
}

.tour-nav button {
    padding: 10px 24px;
    border: 1px solid var(--warm);
    background: var(--cream);
    color: var(--mid);
    cursor: pointer;
    border-radius: 50px; /* Estilo mais moderno/pílula */
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.tour-nav button:hover {
    border-color: var(--terra);
    color: var(--terra);
}

.tour-nav button.active {
    background: var(--terra);
    border-color: var(--terra);
    color: white;
}

/* ─── RESPONSIVE ─────────────────────────────────────────────────────────── */

/* Large Tablets & Small Desktops (3 columns) */
@media (max-width: 1100px) {
    .rooms_grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablets (2 columns) */
@media (max-width: 850px) {
    .rooms_grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .btn { justify-content: center; }
}

/* Mobile (1 column) */
@media (max-width: 550px) {
    .rooms_grid {
        grid-template-columns: 1fr;
    }
    
    .rooms_header h2 {
        font-size: 2rem;
    }
    
    .rooms {
        padding: 60px 0;
    }
}

@media (max-width: 960px) {
  .contact__inner { grid-template-columns: 1fr; }

}