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

body {
    font-family: 'Space Mono', monospace;
    background-color: #eaeaea; 
    color: #000;
    min-height: 100vh;
}

/* ==========================================================================
   2. NAVBAR
   ========================================================================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 65px;
    background-color: #eaeaea;
    width: 100%;
}

.logo-img {
    height: 55px;
    display: block;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-item {
    text-decoration: none;
    color: #000;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 1px;
    transition: color 0.2s ease;
}

.nav-item:hover {
    color: #dfcba5;
}

/* ==========================================================================
   3. FORMULÁRIO
   ========================================================================== */
.search-container {
    max-width: 700px; /* Alargado um pouco para a grelha de fotos respirar melhor */
    margin: 40px auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.search-header {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.bg-black {
    background-color: #000;
    color: #fff;
    padding: 6px 18px;
    display: inline-block;
}

.search-title {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.search-subtitle {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.text-gold {
    color: #dfcba5;
}

.search-description {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    margin-top: 10px;
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

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

.form-group label {
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
}

.time-range-container {
    display: flex;
    gap: 20px;
    width: 100%;
}

.booking-form input[type="date"],
.booking-form input[type="time"] {
    font-family: 'Space Mono', monospace;
    font-size: 16px;
    font-weight: 700;
    padding: 15px;
    background-color: #000;
    color: #fff;
    border: 2px solid #000;
    outline: none;
    cursor: pointer;
    width: 100%;
    transition: border-color 0.2s ease;
}

.booking-form input[type="date"]:focus,
.booking-form input[type="time"]:focus {
    border-color: #dfcba5;
}

.btn-submit {
    font-family: 'Space Mono', monospace;
    background-color: #000;
    color: #dfcba5;
    border: 4px solid #dfcba5;
    padding: 15px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1.5px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.2s ease-in-out;
    width: 100%;
}

.btn-submit:hover {
    background-color: #fff;
    color: #000;
    border-color: transparent;
}

/* ==========================================================================
   4. GRELHA DE FOTOS DE RESULTADOS (Surgem abaixo do botão)
   ========================================================================== */
.results-section {
    margin-top: 20px;
    padding-top: 40px;
    border-top: 2px dashed #000;
    /* Este é o segredo: diz ao navegador para parar 40px antes do topo ao fazer scroll */
    scroll-margin-top: 40px; 
}

.results-header {
    margin-bottom: 30px;
}

.results-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.results-meta {
    font-size: 14px;
    color: #444;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.photo-card {
    position: relative;
    background-color: #000;
    height: 220px;
    overflow: hidden;
    border: 4px solid #000;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.photo-card:hover {
    transform: translateY(-5px);
    border-color: #dfcba5;
}

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

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-card:hover .photo-overlay {
    opacity: 1;
}

.btn-download {
    text-decoration: none;
    color: #dfcba5;
    background-color: #000;
    border: 2px solid #dfcba5;
    padding: 10px 20px;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.2s ease;
}

.btn-download:hover {
    background-color: #fff;
    color: #000;
    border-color: transparent;
}

.no-photos {
    text-align: center;
    padding: 40px;
    background-color: #000;
    color: #fff;
}

.no-photos h3 { color: #dfcba5; margin-bottom: 5px; }

/* ==========================================================================
   5. RESPONSIVIDADE
   ========================================================================== */
@media (max-width: 768px) {
    .navbar { flex-direction: column; gap: 15px; }
    .search-title { font-size: 2.2rem; }
    .search-subtitle { font-size: 1.6rem; }
    .time-range-container { flex-direction: column; gap: 20px; }
    .image-grid { grid-template-columns: 1fr; }
}