/* ---------------------------------------------------------
   GLOBAL RESET & BASE
--------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 95vw;
}

html {
    width: 100%;
max-width:100vw;
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
align-content:center;
    background-image: url("../assets/59onLetchworth.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

body {
    width: 100%;
    height: 100%;
    font-family: "Segoe UI", "Inter", Arial, sans-serif;
    color: #222;
    padding: 10px;

    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
	margin:auto;

}

/* ---------------------------------------------------------
   HEADER
--------------------------------------------------------- */
header {
    width: 100%;
backdrop-filter:blur(10px);
background:rgba(0,0,0,0.3);
border:solid black 1px;
    padding: 25px 20px;
    border-radius: 10px;
    margin-bottom: 20px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

header h1 {
    font-size: 24px;
    font-weight: 600;
color:white;

    letter-spacing: 1px;

    display: flex;
    flex-direction: column;
}

header a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    max-width: fit-content;
}

/* ---------------------------------------------------------
   MAIN
--------------------------------------------------------- */
main {
    width: 100%;
    max-width: 90vw;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    top: 50%;
	left:50%;

    transform: translate(-50%,-50%);
}

main#searchBookings {
    display: flex;
    gap: 5vw;
}

/* ---------------------------------------------------------
   CARD
--------------------------------------------------------- */
.card {
	backdrop-filter:blur(10px);
    padding: 20px;
    border-radius: 12px;
    margin: auto;
    margin-bottom: 20px;

    width: 350px;
    max-height: 60vh;
    overflow-y: auto;

    display: flex;
    flex-direction: column;
    justify-content: space-evenly;

    border: 1px solid black;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06);
background:rgba(0,0,0,0.3);
}

/* Spacing between sections inside card */
.sec {
    margin: 5px auto;
    display: flex;
    flex-direction: column;
}

.card h3,lable {
color:white;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 600;
}

/* ---------------------------------------------------------
   INPUTS & BUTTONS
--------------------------------------------------------- */
.input,
select,
option {
    width: 250px;
    max-width: 80vw;
    padding: 10px;
    margin: 6px auto 12px auto;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fafafa;
    transition: 0.2s;
}

.input:focus {
    border-color: #00a357;
    background: #fff;
    outline: none;
}

.btn {
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
    margin: 10px auto 0 auto;
    max-width: 150px;
}

.btn.primary {
    background: #00a357;
    color: white;
}

.btn.primary:hover {
    background: #acff99;

}

/* ---------------------------------------------------------
   ENTRIES LIST
--------------------------------------------------------- */
.entries-list {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 5px;
}

.entry {
    padding: 14px;
    background: #fafafa;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: 0.15s;
}

.entry:hover {
    background: #f0f8ff;
    border-color: #acff99;
}

/* ---------------------------------------------------------
   DETAILS PANEL
--------------------------------------------------------- */
.details-panel {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 20px;
}

.details-panel.hidden {
    display: none;
}

.details-panel h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.details-row {
    margin-bottom: 12px;
}

.details-row strong {
    width: 120px;
    display: inline-block;
    font-weight: 600;
    color: #333;
}

/* ---------------------------------------------------------
   RESPONSIVE
--------------------------------------------------------- */
@media (max-width: 900px) {
    main#searchBookings {
        flex-direction: column;
        gap: 3vh;
    }

    .details-panel {
        position: relative;
        top: 0;
        margin-top: 20px;
    }
}
