/* ===== Grundstil ===== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4fbff;
    color: #0f172a;
}

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

/* ===== Logotyp ===== */
.logo {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.logo img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid #2dd4bf;
    object-fit: cover;
}

/* ==================================================
   STARTSIDA – BAKGRUND
================================================== */
.index-background {
    background-image: url('1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
}

/* ===== Kontrast på text ===== */
.index-background h1,
.index-background h2,
.index-background p,
.index-background label {
    color: #ffffff;
    text-shadow:
        0 3px 8px rgba(0, 0, 0, 0.55),
        0 6px 18px rgba(0, 0, 0, 0.35);
}

/* ===== Navigation ===== */
nav {
    background: linear-gradient(90deg, #0ea5e9, #2dd4bf);
    padding: 15px;
    text-align: center;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 15px;
    font-weight: 600;
}

nav a:hover {
    text-decoration: underline;
}

/* ===== Rubriker ===== */
h1 {
    text-align: center;
    margin: 30px 0;
    font-size: 50px;
    color: #0ea5e9;
}

/* ===== Formulär (allmän) ===== */
form {
    max-width: 500px;
    margin: 0 auto 30px;
    padding: 20px;
    border-radius: 14px;
    background-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #0284c7;
}

/* ===== Inputs ===== */
form input,
form select,
form button {
    width: 100%;
    padding: 11px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #bae6fd;
    font-size: 16px;
    transition: all 0.3s ease;
}

form input:focus,
form select:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 8px rgba(14,165,233,0.5);
    outline: none;
}

/* ===== Knapp ===== */
form button {
    background: linear-gradient(90deg, #0ea5e9, #2dd4bf);
    color: #ffffff;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

/* ===== Tabeller ===== */
table {
    width: 90%;
    margin: 0 auto 30px;
    border-collapse: collapse;
    background-color: #ffffff;
}

table th,
table td {
    padding: 12px 15px;
    border: 1px solid #e0f2fe;
    text-align: center;
}

table th {
    background-color: #0ea5e9;
    color: #ffffff;
}

/* ===== Meddelanden (BOKNING och KUND) ===== */
#message,
#msg {
    text-align: center;
    font-size: 18px;
    margin-top: 20px;
    font-weight: bold;
    padding: 15px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

#message.success,
#msg.success {
    background-color: #d1fae5;
    color: #15803d;
    border: 1px solid #15803d;
}

#message.error,
#msg.error {
    background-color: #fee2e2;
    color: #dc2626;
    border: 1px solid #dc2626;
}

/* ==================================================
   ROOMS PAGE
================================================== */

.rooms-hero {
    background: linear-gradient(
        rgba(0,0,0,0.45),
        rgba(0,0,0,0.45)
    ), url("1.jpg") center/cover no-repeat;
    padding: 80px 20px;
    text-align: center;
    color: #ffffff;
}

.rooms-wrapper {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.room-showcase {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    height: 420px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.25);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.room-showcase:hover {
    transform: scale(1.05);
    box-shadow: 0 40px 70px rgba(0,0,0,0.35);
}

.room-showcase img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.room-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.75),
        rgba(0,0,0,0.15)
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 35px;
    color: #ffffff;
}

.room-overlay .price {
    font-size: 18px;
    font-weight: bold;
    color: #2dd4bf;
}

/* ==================================================
   MULTI ROOM BOOKING
================================================== */

#rooms {
    margin: 25px auto;
    max-width: 500px;
    padding: 15px;
    background: #f0f9ff;
    border-radius: 10px;
}

#price {
    max-width: 500px;
    margin: 20px auto;
    padding: 15px;
    background: #ecfeff;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    color: #0369a1;
    white-space: pre-line;
    text-align: center;
}

/* ==================================================
   KUNDREGISTERING – NY DESIGN
================================================== */
.form-container {
    max-width: 500px;
    margin: 40px auto 60px;
    padding: 30px;
    background: rgba(255,255,255,0.9);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    text-align: center;
}

.form-container h1 {
    margin-bottom: 30px;
    font-size: 40px;
    color: #0ea5e9;
}

.form-container form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #0284c7;
    text-align: left;
}

.form-container form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 10px;
    border: 1px solid #bae6fd;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-container form input:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 8px rgba(14,165,233,0.5);
    outline: none;
}

.form-container form button {
    width: 100%;
    padding: 14px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 30px;
    border: none;
    background: linear-gradient(90deg, #0ea5e9, #2dd4bf);
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-container form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}


/* ===== Responsive för surfplatta och mobil ===== */

/* Mobil – standard */
h1 {
    font-size: 28px;
}

.room-showcase {
    height: 250px;
}

/* Surfplatta */
@media (min-width: 577px) and (max-width: 992px) {
    h1 {
        font-size: 40px;
    }

    .room-showcase {
        height: 350px;
    }
}

/* Desktop */
@media (min-width: 993px) {
    h1 {
        font-size: 50px;
    }

    .room-showcase {
        height: 420px;
    }
}
