* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f4f2;
    color: #171717;
    line-height: 1.6;
}


/* =========================
   HEADER
========================= */

header {
    position: sticky;
    top: 0;
    z-index: 1000;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 20px 7%;

    background: #111;
    color: white;

    border-bottom: 1px solid #333;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 2px;
}

.logo span {
    font-weight: 400;
    margin-left: 6px;
}

nav {
    display: flex;
    gap: 35px;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: 0.3s;
}

nav a:hover {
    color: #f5b400;
}


/* =========================
   HERO
========================= */

.hero {
    min-height: 75vh;

    display: flex;
    align-items: center;

    padding: 100px 7%;

    background:
        linear-gradient(
            rgba(0, 0, 0, 0.72),
            rgba(0, 0, 0, 0.72)
        ),
        url("bilder/grävmaskin.jpg");

    background-size: cover;
    background-position: center;
}

.hero-content {
    max-width: 700px;
    color: white;
}

.hero-small {
    color: #f5b400;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(45px, 7vw, 85px);
    line-height: 1.05;
    margin-bottom: 30px;
}

.hero p {
    max-width: 600px;
    font-size: 19px;
    color: #ddd;
    margin-bottom: 35px;
}

.button {
    display: inline-block;

    padding: 16px 28px;

    background: #f5b400;
    color: #111;

    text-decoration: none;
    font-weight: 800;

    border-radius: 4px;

    transition: 0.3s;
}

.button:hover {
    transform: translateY(-3px);
    background: #ffc82e;
}


/* =========================
   SECTION TITLE
========================= */

.section-title {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-title > p:first-child {
    color: #f5a900;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.section-title h2 {
    font-size: clamp(32px, 5vw, 55px);
    line-height: 1.1;
    margin-bottom: 15px;
}

.section-title p:last-child {
    color: #666;
}


/* =========================
   MACHINES
========================= */

.machines {
    padding: 110px 7%;
}

.machine-grid {
    max-width: 1400px;
    margin: auto;

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 30px;
}

.machine-card {
    background: white;

    border-radius: 10px;

    overflow: hidden;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.08);

    transition: 0.35s;
}

.machine-card:hover {
    transform: translateY(-8px);

    box-shadow:
        0 20px 45px rgba(0, 0, 0, 0.14);
}


/* =========================
   MACHINE IMAGES
========================= */

.machine-image {
    width: 100%;
    height: 300px;

    overflow: hidden;

    background: #222;
}

.machine-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    transition: transform 0.5s;
}

.machine-card:hover .machine-image img {
    transform: scale(1.05);
}


/* =========================
   MACHINE CONTENT
========================= */

.machine-content {
    padding: 30px;
}

.machine-content h3 {
    font-size: 28px;
    margin-bottom: 12px;
}

.machine-content p {
    color: #666;
    margin-bottom: 25px;
}

.price {
    font-size: 16px;
    margin-bottom: 20px;
}

.price strong {
    color: #111;
    font-size: 22px;
}


/* =========================
   BUTTONS
========================= */

button {
    border: none;

    padding: 14px 24px;

    background: #111;
    color: white;

    font-weight: 800;

    cursor: pointer;

    border-radius: 4px;

    transition: 0.3s;
}

button:hover {
    background: #f5b400;
    color: #111;

    transform: translateY(-2px);
}


/* =========================
   ABOUT
========================= */

.about {
    padding: 120px 7%;

    background: #111;
    color: white;
}

.about-content {
    max-width: 800px;
    margin: auto;
    text-align: center;
}

.section-label {
    color: #f5b400;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.about h2 {
    font-size: clamp(35px, 5vw, 60px);
    line-height: 1.1;
    margin-bottom: 30px;
}

.about p:not(.section-label) {
    color: #ccc;
    font-size: 18px;
    margin-bottom: 15px;
}


/* =========================
   CONTACT
========================= */

.contact {
    padding: 120px 7%;
    text-align: center;
    background: #f5b400;
}

.contact-content {
    max-width: 700px;
    margin: auto;
}

.contact .section-label {
    color: #111;
}

.contact h2 {
    font-size: clamp(35px, 5vw, 60px);
    line-height: 1.1;
    margin-bottom: 20px;
}

.contact p {
    font-size: 18px;
    margin-bottom: 30px;
}

.contact button {
    background: #111;
}

.contact button:hover {
    background: white;
    color: #111;
}


/* =========================
   FOOTER
========================= */

footer {
    padding: 40px 7%;

    background: #090909;
    color: white;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer p {
    color: #777;
    font-size: 14px;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 800px) {

    header {
        padding: 18px 5%;
    }

    nav {
        gap: 15px;
    }

    nav a {
        font-size: 12px;
    }

    .hero {
        min-height: 70vh;
        padding: 80px 5%;
    }

    .machines {
        padding: 80px 5%;
    }

    .machine-grid {
        grid-template-columns: 1fr;
    }

    .machine-image {
        height: 250px;
    }

    .machine-content {
        padding: 25px;
    }

    .about,
    .contact {
        padding: 80px 5%;
    }

    footer {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}
/* =========================
   BOOKING MODAL
========================= */

.booking-overlay {
    position: fixed;
    inset: 0;

    z-index: 9999;

    background: rgba(0, 0, 0, 0.75);

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 20px;

    overflow-y: auto;
}

.booking-modal {
    position: relative;

    width: 100%;
    max-width: 600px;

    background: white;

    padding: 40px;

    border-radius: 10px;

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.35);
}

.booking-close {
    position: absolute;

    top: 15px;
    right: 15px;

    width: 40px;
    height: 40px;

    padding: 0;

    background: #111;
    color: white;

    border-radius: 50%;

    font-size: 25px;
    line-height: 1;

    cursor: pointer;
}

.booking-close:hover {
    background: #f5b400;
    color: #111;
}

.booking-label {
    color: #f5a900;

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 3px;

    margin-bottom: 10px;
}

.booking-modal h2 {
    font-size: 34px;

    line-height: 1.1;

    margin-bottom: 15px;
}

.booking-machine {
    background: #f4f4f2;

    padding: 15px;

    margin-bottom: 25px;

    border-left: 4px solid #f5b400;
}

#bookingForm {
    display: flex;

    flex-direction: column;

    gap: 8px;
}

#bookingForm label {
    margin-top: 10px;

    font-weight: 700;

    font-size: 14px;
}

#bookingForm input,
#bookingForm textarea {
    width: 100%;

    padding: 14px;

    border: 1px solid #ccc;

    border-radius: 5px;

    font-family: inherit;

    font-size: 16px;

    outline: none;

    transition: 0.2s;
}

#bookingForm input:focus,
#bookingForm textarea:focus {
    border-color: #f5b400;

    box-shadow:
        0 0 0 3px rgba(245, 180, 0, 0.15);
}

#bookingForm textarea {
    resize: vertical;
}

.booking-submit {
    margin-top: 20px;

    width: 100%;

    padding: 16px;

    background: #111;

    color: white;

    font-size: 15px;
}

.booking-submit:hover {
    background: #f5b400;

    color: #111;
}


/* MOBIL */

@media (max-width: 600px) {

    .booking-modal {
        padding: 30px 20px;
    }

    .booking-modal h2 {
        font-size: 28px;
    }
}
/* =========================
   IMAGE GALLERY
========================= */

.gallery-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;

    background: rgba(0, 0, 0, 0.92);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px;
}

.gallery-container {
    position: relative;

    width: 100%;
    max-width: 1100px;

    text-align: center;
}

.gallery-image {
    max-width: 100%;
    max-height: 75vh;

    object-fit: contain;

    border-radius: 6px;
}

.gallery-title {
    color: white;

    font-size: 24px;
    font-weight: 700;

    margin-top: 15px;
}

.gallery-counter {
    color: #bbb;

    margin-top: 5px;
}

.gallery-close,
.gallery-prev,
.gallery-next {
    position: absolute;

    border: none;

    background: rgba(255, 255, 255, 0.15);
    color: white;

    cursor: pointer;

    transition: 0.2s;
}

.gallery-close:hover,
.gallery-prev:hover,
.gallery-next:hover {
    background: #f5b400;
    color: #111;
}

.gallery-close {
    top: -20px;
    right: -20px;

    width: 45px;
    height: 45px;

    border-radius: 50%;

    font-size: 28px;
}

.gallery-prev,
.gallery-next {
    top: 50%;

    width: 55px;
    height: 55px;

    border-radius: 50%;

    font-size: 30px;

    transform: translateY(-50%);
}

.gallery-prev {
    left: -80px;
}

.gallery-next {
    right: -80px;
}

.gallery-open {
    cursor: pointer;
}

@media (max-width: 800px) {

    .gallery-overlay {
        padding: 15px;
    }

    .gallery-prev {
        left: 10px;
    }

    .gallery-next {
        right: 10px;
    }

    .gallery-close {
        top: 10px;
        right: 10px;
    }

    .gallery-image {
        max-height: 65vh;
    }
}
/* =========================
   PRODUCT DETAILS
========================= */

.product-overlay {
    position: fixed;
    inset: 0;

    z-index: 11000;

    background: rgba(0, 0, 0, 0.82);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 25px;

    overflow-y: auto;
}

.product-modal {
    position: relative;

    width: 100%;
    max-width: 1000px;

    background: white;

    border-radius: 12px;

    overflow: hidden;

    display: grid;
    grid-template-columns: 1fr 1fr;

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.4);
}

.product-close {
    position: absolute;

    top: 15px;
    right: 15px;

    z-index: 2;

    width: 45px;
    height: 45px;

    padding: 0;

    border-radius: 50%;

    background: #111;
    color: white;

    font-size: 28px;
}

.product-close:hover {
    background: #f5b400;
    color: #111;
}

.product-image {
    min-height: 600px;

    background: #222;

    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}

.product-info {
    padding: 55px 45px;
}

.product-label {
    color: #f5a900;

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 3px;

    margin-bottom: 12px;
}

.product-info h2 {
    font-size: 48px;

    line-height: 1.05;

    margin-bottom: 20px;
}

.product-price {
    font-size: 28px;

    font-weight: 800;

    margin-bottom: 25px;
}

.product-price span {
    font-size: 16px;

    font-weight: 400;

    color: #666;
}

.product-description {
    color: #666;

    font-size: 17px;

    margin-bottom: 30px;
}

.product-info h3 {
    font-size: 20px;

    margin-bottom: 12px;
}

.product-details {
    padding-left: 20px;

    color: #555;

    margin-bottom: 35px;
}

.product-details li {
    margin-bottom: 8px;
}

.product-actions {
    display: flex;

    gap: 12px;

    flex-wrap: wrap;
}

.product-gallery-button {
    background: #eee;
    color: #111;
}

.product-gallery-button:hover {
    background: #ddd;
}

.product-book-button {
    background: #111;
    color: white;
}

.product-book-button:hover {
    background: #f5b400;
    color: #111;
}


/* MOBIL */

@media (max-width: 800px) {

    .product-modal {
        grid-template-columns: 1fr;
    }

    .product-image {
        min-height: 300px;
        max-height: 400px;
    }

    .product-info {
        padding: 35px 25px;
    }

    .product-info h2 {
        font-size: 36px;
    }

    .product-price {
        font-size: 24px;
    }

    .product-actions {
        flex-direction: column;
    }

    .product-actions button {
        width: 100%;
    }
}
/* =========================
   PRODUCT PRICES
========================= */

.product-prices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 30px;
}

.price-box {
    padding: 18px;
    background: #f4f4f2;
    border-radius: 6px;
    border-left: 4px solid #111;
}

.price-box.weekend {
    border-left-color: #f5b400;
}

.price-box span {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #666;
    margin-bottom: 6px;
}

.price-box strong {
    display: block;
    font-size: 25px;
    color: #111;
}

.price-box small {
    display: block;
    color: #777;
    margin-top: 3px;
}

@media (max-width: 600px) {

    .product-prices {
        grid-template-columns: 1fr;
    }

}
/* =========================
   BOOKING PRICE
========================= */

.booking-price-calculation {
    margin: 15px 0;
    padding: 18px;

    background: #f4f4f2;

    border-left: 4px solid #f5b400;

    display: flex;
    flex-direction: column;

    gap: 4px;
}

.booking-price-calculation strong {
    font-size: 22px;
}

.booking-price-calculation span {
    color: #666;
}

.booking-price-calculation small {
    color: #777;
}
/* =========================
   SMART BOKNING
========================= */

#rentalType,
#startDate,
#customEndDate {
    width: 100%;
    padding: 14px;

    border: 1px solid #ccc;
    border-radius: 5px;

    background: white;

    font-family: inherit;
    font-size: 16px;

    outline: none;

    transition: 0.2s;
}

#rentalType:focus,
#startDate:focus,
#customEndDate:focus {
    border-color: #f5b400;

    box-shadow:
        0 0 0 3px rgba(245, 180, 0, 0.15);
}

.date-help {
    margin-top: 6px;
    margin-bottom: 10px;

    font-size: 13px;

    color: #777;
}

.booking-period {
    margin-top: 15px;
    padding: 15px;

    background: #f4f4f2;

    border-left: 4px solid #111;

    display: flex;
    flex-direction: column;

    gap: 3px;
}

.booking-period strong {
    font-size: 18px;
}

.booking-period span {
    color: #666;
}

.custom-end-label {
    margin-top: 12px;
}
/* =========================
   KALENDER / TILLGÄNGLIGHET
========================= */

.calendar-loading {
    padding: 15px;
    margin: 15px 0;

    background: #f4f4f2;

    border-left: 4px solid #f5b400;

    color: #555;
}

.booking-period {
    margin-top: 15px;
    padding: 15px;

    background: #f4f4f2;

    border-left: 4px solid #111;

    display: flex;
    flex-direction: column;

    gap: 4px;
}

.booking-period strong {
    font-size: 18px;
}

.booking-period span {
    color: #666;
}

.date-help {
    margin-top: 6px;
    margin-bottom: 10px;

    font-size: 13px;

    color: #777;
}

.booking-price-calculation {
    margin: 15px 0;

    padding: 18px;

    background: #f4f4f2;

    border-left: 4px solid #f5b400;

    display: flex;
    flex-direction: column;

    gap: 4px;
}

.booking-price-calculation strong {
    font-size: 22px;
}

.booking-price-calculation span {
    color: #666;
}

.booking-price-calculation small {
    color: #777;
}

#rentalType,
#startDate,
#customEndDate {
    width: 100%;

    padding: 14px;

    border: 1px solid #ccc;

    border-radius: 5px;

    background: white;

    font-family: inherit;

    font-size: 16px;

    outline: none;
}

#rentalType:focus,
#startDate:focus,
#customEndDate:focus {
    border-color: #f5b400;

    box-shadow:
        0 0 0 3px
        rgba(245, 180, 0, 0.15);
}

.custom-end-label {
    margin-top: 12px;
}
/* =====================================================
   WGS UTHYRNING - NY KALENDER
===================================================== */

.wgs-calendar-box {
    margin-top: 18px;
    padding: 20px;

    background: #f7f7f5;

    border: 1px solid #ddd;
    border-radius: 10px;
}


/* =========================
   KALENDER HEADER
========================= */

.wgs-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 20px;
}


.wgs-calendar-header h3 {
    margin: 0;

    font-size: 21px;
    font-weight: 700;

    color: #222;

    text-transform: capitalize;
}


.wgs-calendar-header button {
    width: 40px;
    height: 40px;

    border: none;
    border-radius: 50%;

    background: #222;
    color: white;

    font-size: 27px;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: 0.2s;
}


.wgs-calendar-header button:hover {
    transform: scale(1.08);
}


/* =========================
   VECKODAGAR
========================= */

.wgs-calendar-weekdays {
    display: grid;

    grid-template-columns:
        repeat(7, 1fr);

    gap: 6px;

    margin-bottom: 6px;

    text-align: center;
}


.wgs-calendar-weekdays div {
    padding: 8px 2px;

    font-size: 12px;

    font-weight: 700;

    color: #666;

    text-transform: uppercase;
}


/* =========================
   DAGAR
========================= */

.wgs-calendar-days {
    display: grid;

    grid-template-columns:
        repeat(7, 1fr);

    gap: 6px;
}


/* Alla kalenderknappar */

.calendar-day {

    width: 100%;
    min-height: 48px;

    border-radius: 7px;

    border: 2px solid transparent;

    font-size: 16px;

    font-weight: 700;

    display: flex;

    align-items: center;
    justify-content: center;

    transition:
        transform 0.15s,
        box-shadow 0.15s,
        border 0.15s;

    opacity: 1;
}


/* =========================
   LEDIG
========================= */

.calendar-day.free {

    background: #3aaa5d;

    color: white;

    border-color: #2f914b;

    cursor: pointer;
}


.calendar-day.free:hover {

    background: #2f914b;

    transform: scale(1.05);

    box-shadow:
        0 4px 10px
        rgba(0, 0, 0, 0.15);
}


/* =========================
   BOKAD
========================= */

.calendar-day.booked {

    background: #d94a4a;

    color: white;

    border-color: #b93636;

    cursor: not-allowed;

    text-decoration: none;
}


/* =========================
   EJ VALBARA DATUM
========================= */

.calendar-day.not-valid {

    background: #e4e4e2;

    color: #999;

    border-color: #d5d5d2;

    cursor: not-allowed;
}


/* =========================
   GAMLA DATUM
========================= */

.calendar-day.past {

    background: #eeeeec;

    color: #aaa;

    border-color: #ddd;

    cursor: not-allowed;
}


/* =========================
   VALT DATUM
========================= */

.calendar-day.selected {

    background: #f5b400;

    color: #111;

    border-color: #111;

    transform: scale(1.05);

    box-shadow:
        0 3px 8px
        rgba(0, 0, 0, 0.18);
}


/* =========================
   TOMMA RUTOR
========================= */

.calendar-empty {

    min-height: 48px;
}


/* =========================
   FÖRKLARING
========================= */

.calendar-legend {

    display: flex;

    justify-content: center;

    align-items: center;

    flex-wrap: wrap;

    gap: 18px;

    margin-top: 20px;

    padding-top: 15px;

    border-top: 1px solid #ddd;

    font-size: 13px;

    color: #555;
}


.calendar-legend span {

    display: flex;

    align-items: center;

    gap: 6px;
}


.calendar-legend i {

    width: 15px;
    height: 15px;

    display: inline-block;

    border-radius: 4px;
}


/* Grön */

.legend-free {

    background: #3aaa5d;
}


/* Gul */

.legend-selected {

    background: #f5b400;
}


/* Röd */

.legend-booked {

    background: #d94a4a;
}


/* =========================
   MEDDELANDE
========================= */

.calendar-message {

    margin-top: 10px;

    font-size: 13px;

    color: #666;
}


/* =========================
   MOBIL
========================= */

@media (max-width: 600px) {

    .wgs-calendar-box {

        padding: 12px;

    }


    .wgs-calendar-days {

        gap: 4px;

    }


    .wgs-calendar-weekdays {

        gap: 4px;

    }


    .wgs-calendar-weekdays div {

        font-size: 10px;

    }


    .calendar-day {

        min-height: 42px;

        font-size: 14px;

        border-width: 1px;

    }


    .calendar-empty {

        min-height: 42px;

    }


    .calendar-legend {

        gap: 10px;

        font-size: 11px;

    }

}
/* =====================================================
   WGS KALENDER - VALD HYRESPERIOD
===================================================== */

.calendar-day.selected {
    background: #f5b400 !important;
    color: #111 !important;

    border-color: #111 !important;

    font-weight: 800;

    transform: scale(1.04);

    box-shadow:
        0 3px 8px
        rgba(0, 0, 0, 0.18);
}


/* Lediga dagar */

.calendar-day.free {
    background: #3aaa5d;
    color: white;

    border-color: #2f914b;
}


/* Bokade dagar */

.calendar-day.booked {
    background: #d94a4a;
    color: white;

    border-color: #b93636;

    cursor: not-allowed;
}


/* Ej valbara dagar */

.calendar-day.not-valid {
    background: #e4e4e2;
    color: #999;

    border-color: #d5d5d2;
}


/* Gamla datum */

.calendar-day.past {
    background: #eeeeee;
    color: #aaa;

    border-color: #ddd;
}


/* Datum ska alltid synas */

.calendar-day {
    color: inherit;

    opacity: 1;

    font-weight: 700;

    visibility: visible;
}


/* Hover ska inte gömma datumet */

.calendar-day:hover {
    color: inherit;
}


/* Mobil */

@media (max-width: 600px) {

    .calendar-day {
        min-height: 42px;
        font-size: 14px;
    }

}/* =====================================================
   WGS KALENDER - VALD HYRESPERIOD
===================================================== */

.calendar-day.selected {
    background: #f5b400 !important;
    color: #111 !important;

    border-color: #111 !important;

    font-weight: 800;

    transform: scale(1.04);

    box-shadow:
        0 3px 8px
        rgba(0, 0, 0, 0.18);
}


/* Lediga dagar */

.calendar-day.free {
    background: #3aaa5d;
    color: white;

    border-color: #2f914b;
}


/* Bokade dagar */

.calendar-day.booked {
    background: #d94a4a;
    color: white;

    border-color: #b93636;

    cursor: not-allowed;
}


/* Ej valbara dagar */

.calendar-day.not-valid {
    background: #e4e4e2;
    color: #999;

    border-color: #d5d5d2;
}


/* Gamla datum */

.calendar-day.past {
    background: #eeeeee;
    color: #aaa;

    border-color: #ddd;
}


/* Datum ska alltid synas */

.calendar-day {
    color: inherit;

    opacity: 1;

    font-weight: 700;

    visibility: visible;
}


/* Hover ska inte gömma datumet */

.calendar-day:hover {
    color: inherit;
}


/* Mobil */

@media (max-width: 600px) {

    .calendar-day {
        min-height: 42px;
        font-size: 14px;
    }

}
/* =====================================================
   WGS ADMINPANEL
===================================================== */

.admin-page {
    margin: 0;
    background: #f4f4f2;
    color: #222;
    font-family: Arial, sans-serif;
}


/* LOGIN */

.admin-login {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: #111;
}


.admin-login-box {
    width: 100%;
    max-width: 430px;

    padding: 45px;

    background: white;

    border-radius: 12px;

    box-shadow:
        0 20px 60px
        rgba(0,0,0,.25);
}


.admin-logo {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 3px;
}


.admin-logo span {
    display: block;

    font-size: 11px;
    letter-spacing: 4px;

    color: #f5b400;
}


.admin-label {
    margin-top: 25px;

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;

    color: #f0a900;
}


.admin-login-box h1 {
    margin: 8px 0;

    font-size: 38px;
}


.admin-login-box p {
    color: #666;
}


.admin-login-box label {
    display: block;

    margin-top: 20px;
    margin-bottom: 7px;

    font-weight: 700;
}


.admin-login-box input {
    width: 100%;

    box-sizing: border-box;

    padding: 14px;

    border: 1px solid #ccc;

    border-radius: 6px;

    font-size: 16px;
}


.admin-login-button {
    width: 100%;

    margin-top: 25px;

    padding: 15px;

    border: none;

    border-radius: 6px;

    background: #111;

    color: white;

    font-weight: 800;

    cursor: pointer;
}


.admin-login-button:hover {
    background: #333;
}


.admin-message {
    min-height: 20px;

    margin-top: 15px;

    font-size: 14px;
}


.admin-message.error {
    color: #c62828;
}


/* HEADER */

.admin-header {
    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 22px 5%;

    background: #111;

    color: white;
}


.admin-header p {
    margin: 5px 0 0;

    color: #aaa;
}


.admin-header-actions {
    display: flex;

    align-items: center;

    gap: 10px;
}


.admin-site-button,
.admin-logout,
.admin-refresh {
    padding: 10px 16px;

    border: 1px solid #555;

    border-radius: 5px;

    background: transparent;

    color: inherit;

    text-decoration: none;

    cursor: pointer;
}


.admin-site-button:hover,
.admin-logout:hover,
.admin-refresh:hover {
    background: #333;
}


/* CONTENT */

.admin-content {
    width: 90%;

    max-width: 1200px;

    margin: 0 auto;

    padding: 55px 0;
}


.admin-welcome h1 {
    margin: 5px 0;

    font-size: 42px;
}


.admin-welcome > p:last-child {
    color: #666;
}


/* STATISTIK */

.admin-stat-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 15px;

    margin: 40px 0;
}


.admin-stat {
    padding: 25px;

    background: white;

    border-radius: 8px;

    border-left: 5px solid #f5b400;

    box-shadow:
        0 4px 15px
        rgba(0,0,0,.06);
}


.admin-stat span {
    display: block;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1px;

    color: #777;
}


.admin-stat strong {
    display: block;

    margin-top: 8px;

    font-size: 38px;
}


.admin-stat small {
    color: #777;
}


/* BOKNINGAR */

.admin-bookings {
    margin-top: 50px;
}


.admin-section-header {
    display: flex;

    align-items: end;

    justify-content: space-between;

    margin-bottom: 20px;
}


.admin-section-header h2 {
    margin: 5px 0;

    font-size: 30px;
}


.booking-list {
    display: flex;

    flex-direction: column;

    gap: 15px;
}


.admin-booking-card {
    padding: 25px;

    background: white;

    border-radius: 8px;

    box-shadow:
        0 4px 15px
        rgba(0,0,0,.06);
}


.booking-card-top {
    display: flex;

    justify-content: space-between;

    align-items: start;

    padding-bottom: 20px;

    border-bottom: 1px solid #eee;
}


.booking-card-top h3 {
    margin: 10px 0 0;

    font-size: 25px;
}


.booking-status {
    display: inline-block;

    padding: 5px 10px;

    border-radius: 20px;

    font-size: 11px;

    font-weight: 800;
}


.booking-status.upcoming {
    background: #dff3e4;

    color: #24733a;
}


.booking-status.active {
    background: #fff0bd;

    color: #785d00;
}


.booking-status.completed {
    background: #eee;

    color: #777;
}


.booking-price {
    font-size: 23px;

    font-weight: 800;
}


.booking-card-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;

    padding: 25px 0;
}


.booking-info span,
.booking-message span {
    display: block;

    margin-bottom: 6px;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1px;

    color: #888;
}


.booking-info strong,
.booking-info a {
    color: #222;

    font-size: 15px;

    word-break: break-word;
}


.booking-info a {
    text-decoration: none;
}


.booking-info a:hover {
    text-decoration: underline;
}


.booking-message {
    padding: 18px;

    background: #f5f5f3;

    border-left: 4px solid #f5b400;

    border-radius: 4px;
}


.booking-message p {
    margin: 0;

    line-height: 1.5;
}


.booking-card-footer {
    display: flex;

    justify-content: space-between;

    padding-top: 15px;

    border-top: 1px solid #eee;

    color: #888;

    font-size: 11px;
}


.admin-loading,
.admin-empty,
.admin-error {
    padding: 50px;

    text-align: center;

    background: white;

    border-radius: 8px;
}


.admin-error {
    color: #b3261e;
}


.admin-empty-icon {
    font-size: 40px;

    color: #3aaa5d;
}


.admin-footer {
    padding: 35px 5%;

    background: #111;

    color: white;

    text-align: center;
}


.admin-footer p {
    color: #888;
}


/* MOBIL */

@media (max-width: 800px) {

    .admin-stat-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }


    .booking-card-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }


    .admin-header {
        flex-direction: column;

        align-items: flex-start;

        gap: 20px;
    }

}


@media (max-width: 550px) {

    .admin-login-box {
        padding: 30px 22px;
    }


    .admin-content {
        width: 94%;

        padding-top: 35px;
    }


    .admin-welcome h1 {
        font-size: 32px;
    }


    .admin-stat-grid {
        grid-template-columns: 1fr;
    }


    .booking-card-grid {
        grid-template-columns: 1fr;
    }


    .booking-card-top {
        flex-direction: column;

        gap: 15px;
    }


    .booking-card-footer {
        flex-direction: column;

        gap: 8px;
    }

}
/* =====================================================
   WGS ADMIN - BOKNINGSHANTERING
===================================================== */

.booking-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    padding: 18px 0;

    border-top: 1px solid #eee;
}


.admin-action {
    padding: 10px 15px;

    border: none;
    border-radius: 5px;

    font-size: 12px;
    font-weight: 800;

    cursor: pointer;
}


.admin-action.confirm {
    background: #3aaa5d;
    color: white;
}


.admin-action.confirm:hover {
    background: #2f914b;
}


.admin-action.cancel {
    background: #d94a4a;
    color: white;
}


.admin-action.cancel:hover {
    background: #b93636;
}


.admin-action.restore {
    background: #f5b400;
    color: #111;
}


.admin-action.details {
    background: #222;
    color: white;
}


.admin-action:hover {
    transform: translateY(-1px);
}


/* STATUS */

.booking-status.pending {
    background: #fff0bd;
    color: #785d00;
}


.booking-status.confirmed {
    background: #dff3e4;
    color: #24733a;
}


.booking-status.cancelled {
    background: #f7dddd;
    color: #a52c2c;
}


/* =====================================================
   ADMIN KALENDER
===================================================== */

.admin-calendar-section {
    margin-top: 50px;
}


.admin-calendar-info {
    color: #777;
}


.admin-machine-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}


.machine-tab {
    padding: 11px 16px;

    border: 1px solid #ccc;

    border-radius: 6px;

    background: white;

    color: #333;

    font-weight: 700;

    cursor: pointer;
}


.machine-tab.active {
    background: #111;

    border-color: #111;

    color: white;
}


.admin-calendar-box {
    padding: 25px;

    background: white;

    border-radius: 8px;

    box-shadow:
        0 4px 15px
        rgba(0,0,0,.06);
}


.admin-calendar-header {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 20px;
}


.admin-calendar-header h3 {
    margin: 0;

    font-size: 24px;
}


.admin-calendar-header button {
    width: 42px;
    height: 42px;

    border: none;

    border-radius: 50%;

    background: #222;

    color: white;

    font-size: 27px;

    cursor: pointer;
}


.admin-calendar-weekdays {
    display: grid;

    grid-template-columns:
        repeat(7, 1fr);

    gap: 6px;

    margin-bottom: 6px;

    text-align: center;
}


.admin-calendar-weekdays div {
    padding: 8px 2px;

    font-size: 11px;

    font-weight: 800;

    color: #777;

    text-transform: uppercase;
}


.admin-calendar-days {
    display: grid;

    grid-template-columns:
        repeat(7, 1fr);

    gap: 6px;
}


.admin-calendar-empty {
    min-height: 70px;
}


.admin-calendar-day {
    min-height: 70px;

    padding: 8px;

    box-sizing: border-box;

    border-radius: 7px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    border: 2px solid transparent;

    cursor: default;
}


.admin-calendar-day strong {
    font-size: 18px;
}


.admin-calendar-day span {
    margin-top: 5px;

    font-size: 9px;

    font-weight: 700;
}


/* LEDIG */

.admin-calendar-day.free {
    background: #e4f5e8;

    border-color: #3aaa5d;

    color: #26753d;
}


/* FÖRFRÅGAN */

.admin-calendar-day.pending {
    background: #fff0bd;

    border-color: #f5b400;

    color: #785d00;

    cursor: pointer;
}


/* BEKRÄFTAD */

.admin-calendar-day.booked {
    background: #f7dddd;

    border-color: #d94a4a;

    color: #a52c2c;

    cursor: pointer;
}


.admin-calendar-day:hover {
    transform: scale(1.02);
}


/* LEGEND */

.admin-calendar-legend {
    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 18px;

    margin-top: 20px;

    padding-top: 15px;

    border-top: 1px solid #eee;

    font-size: 12px;
}


.admin-calendar-legend span {
    display: flex;

    align-items: center;

    gap: 6px;
}


.admin-calendar-legend i {
    width: 14px;
    height: 14px;

    border-radius: 3px;
}


.admin-legend-free {
    background: #3aaa5d;
}


.admin-legend-pending {
    background: #f5b400;
}


.admin-legend-booked {
    background: #d94a4a;
}


.admin-legend-cancelled {
    background: #aaa;
}


/* =====================================================
   DETALJER
===================================================== */

.admin-detail-overlay {
    position: fixed;

    inset: 0;

    z-index: 9999;

    background:
        rgba(0,0,0,.75);

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 20px;
}


.admin-detail-modal {
    position: relative;

    width: 100%;

    max-width: 700px;

    max-height: 90vh;

    overflow-y: auto;

    padding: 35px;

    box-sizing: border-box;

    background: white;

    border-radius: 10px;
}


.admin-detail-close {
    position: absolute;

    top: 15px;
    right: 15px;

    width: 38px;
    height: 38px;

    border: none;

    border-radius: 50%;

    background: #222;

    color: white;

    font-size: 25px;

    cursor: pointer;
}


.admin-detail-modal h2 {
    margin: 5px 0 15px;

    font-size: 32px;
}


.detail-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 20px;

    margin-top: 25px;
}


.detail-grid > div {
    padding: 15px;

    background: #f5f5f3;

    border-radius: 5px;
}


.detail-grid span,
.detail-message span {
    display: block;

    margin-bottom: 6px;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1px;

    color: #888;
}


.detail-grid strong,
.detail-grid a {
    color: #222;

    word-break: break-word;
}


.detail-message {
    margin-top: 20px;

    padding: 18px;

    background: #f5f5f3;

    border-left: 4px solid #f5b400;
}


.detail-message p {
    margin-bottom: 0;

    line-height: 1.5;
}


.detail-actions {
    display: flex;

    gap: 8px;

    flex-wrap: wrap;

    margin-top: 25px;

    padding-top: 20px;

    border-top: 1px solid #eee;
}


/* =====================================================
   MOBIL
===================================================== */

@media (max-width: 700px) {

    .admin-section-header {
        flex-direction: column;

        align-items: flex-start;

        gap: 15px;
    }


    .admin-calendar-box {
        padding: 12px;
    }


    .admin-calendar-days {
        gap: 3px;
    }


    .admin-calendar-weekdays {
        gap: 3px;
    }


    .admin-calendar-day {
        min-height: 55px;

        padding: 4px;
    }


    .admin-calendar-day strong {
        font-size: 15px;
    }


    .admin-calendar-day span {
        display: none;
    }


    .detail-grid {
        grid-template-columns: 1fr;
    }


    .admin-detail-modal {
        padding: 25px 18px;
    }

}
/* =====================================================
   WGS – FÖRBÄTTRAT BILDMODAL / GALLERI
===================================================== */

.gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(0, 0, 0, 0.94);

    box-sizing: border-box;
}

.gallery-modal.active {
    display: flex;
}


/* STÄNG */

.gallery-close {
    position: absolute;

    top: 20px;
    right: 25px;

    width: 50px;
    height: 50px;

    border: none;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.12);

    color: white;

    font-size: 36px;
    line-height: 1;

    cursor: pointer;

    z-index: 10;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.gallery-close:hover {
    background: rgba(255, 255, 255, 0.25);

    transform: scale(1.08);
}


/* HUVUDINNEHÅLL */

.gallery-content {
    position: relative;

    width: min(1100px, 94vw);

    display: flex;

    align-items: center;
    justify-content: center;

    flex-direction: column;
}


/* HUVUDBILD */

#galleryImage {
    display: block;

    width: auto;
    height: auto;

    max-width: 82vw;
    max-height: 72vh;

    object-fit: contain;

    border-radius: 8px;

    box-shadow:
        0 20px 60px
        rgba(0, 0, 0, 0.55);

    user-select: none;
}


/* PILAR */

.gallery-arrow {
    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    width: 54px;
    height: 54px;

    border: none;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.14);

    color: white;

    font-size: 42px;

    line-height: 45px;

    cursor: pointer;

    z-index: 5;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.gallery-arrow:hover {
    background: rgba(255, 255, 255, 0.28);
}

.gallery-prev {
    left: 10px;
}

.gallery-next {
    right: 10px;
}


/* TEXT / BILDRÄKNARE */

.gallery-caption {
    margin-top: 16px;

    color: white;

    font-size: 14px;

    font-weight: 600;

    letter-spacing: 1px;

    opacity: 0.9;
}


/* =====================================================
   MOBIL
===================================================== */

@media (max-width: 700px) {

    .gallery-modal {
        padding: 10px;
    }


    .gallery-close {
        top: 10px;
        right: 10px;

        width: 44px;
        height: 44px;

        font-size: 30px;
    }


    #galleryImage {
        max-width: 94vw;
        max-height: 70vh;

        border-radius: 5px;
    }


    .gallery-arrow {
        width: 44px;
        height: 44px;

        font-size: 32px;

        line-height: 38px;
    }


    .gallery-prev {
        left: 4px;
    }


    .gallery-next {
        right: 4px;
    }

}
.gallery-thumbnails {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding: 8px;
    overflow-x: auto;
    box-sizing: border-box;
}

.gallery-thumbnail {
    flex: 0 0 auto;
    width: 78px;
    height: 58px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 5px;
    overflow: hidden;
    background: #222;
    cursor: pointer;
    opacity: 0.65;
    transition:
        opacity 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.gallery-thumbnail:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.gallery-thumbnail.active {
    opacity: 1;
    border-color: white;
}

.gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 700px) {

    .gallery-thumbnails {
        justify-content: flex-start;
        gap: 7px;
        margin-top: 12px;
    }

    .gallery-thumbnail {
        width: 62px;
        height: 48px;
    }
}