/* =========================================
   RESET & GLOBALS
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    background: #e7ecef;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    color: #12212f;
}

a {
    color: inherit;
    text-decoration: none;
}

/* =========================================
   NAVIGATION
========================================= */

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 15px 40px;
    background: rgba(28, 61, 90, 0.7);
    backdrop-filter: blur(12px);
    display: flex;
    justify-content: flex-end;
    gap: 30px;
    z-index: 9998;
}

nav a {
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .08em;
    transition: color 0.25s ease;
}

nav a:hover {
    color: #c9b9a8;
}

nav a.active {
    color: #c9b9a8;
    font-weight: 800;
}

/* =========================================
   TOP LOGO
========================================= */

#top-logo {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 10px;
    opacity: 0.95;
    z-index: 1;
    pointer-events: none;
}


#stop-logo {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 10px;
    opacity: 0.95;
    z-index: 9997;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* =========================================
   HERO SECTION
========================================= */

.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding-bottom: 100px;
    padding-top: 80px; /* nav offset */
}

.hero-img {
    position: absolute;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.8s ease-in-out;
    z-index: -2;
    pointer-events: none;
}

.hero-img.active {
    opacity: 1;
}

.shero {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: flex-end;
    padding-bottom: 100px;
    padding-top: 80px; /* space for nav */
    position: relative;
    overflow: hidden;
    background: #0b1722; /* fallback if ingen bakgrunnsbilde */
}

.hero-text {
    margin-left: 60px;
    max-width: 600px;
    background: rgba(236, 178, 47, 0.8);
    padding: 25px 30px;
    border-radius: 12px;
    font-size: 2.6rem;
    font-weight: 800;
    color: #0c1d2d;
    line-height: 1.1;
    text-shadow: 0 0 14px rgba(0,0,0,0.45);
    pointer-events: none;
}

/* =========================================
   GENERIC SECTIONS
========================================= */

section {
    min-height: 100vh;
    padding: 120px 60px 60px;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 900;
}

.section-content {
    max-width: 1200px;
    margin: 0 auto;
}

.section-intro,
.booking-intro {
    font-size: 1.02rem;
    line-height: 1.5;
    color: #1c3d5a;
    margin: 0 0 18px 0;
    text-align: left;
}

#reviews .section-intro {
    max-width: 700px;
    margin: 0 auto 18px auto;
    text-align: center;
}

#contact .section-intro {
    max-width: 550px;
    margin: 0 auto 18px auto;
    text-align: center;
}

/* =========================================
   BOOKING / LAYOUT WRAPPER
========================================= */

#booking-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    width: 100%;
}

#properties-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    width: 100%;
    justify-items: center;
    margin-top: 20px;
}


/* =========================================
   PROPERTIES (RENTALS)
========================================= */

.property-card {
    width: 100%;
    max-width: 430px;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(8px);
    padding: 20px;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.property-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.16);
}

.property-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1c3d5a;
}

.property-description {
    margin: 0 0 8px 0;
    color: #0c1d2d;
    line-height: 1.45;
}

.property-description .desc-line {
    display: block;
}

.property-description .desc-line--highlight {
    font-weight: 700;
}

/* Carousel inside property cards */

.carousel {
    width: 100%;
    height: 270px;
    background: #d8dde3;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    margin-bottom: 12px;
}

.carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.carousel img.active {
    opacity: 1;
}

/* =========================================
   BOOKING KALENDER-KORT
========================================= */

.property-calendar {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(8px);
    padding: 20px;
    border-radius: 12px;
    width: 100%;
    max-width: 430px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.08);
}

.booking-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1c3d5a;
    text-shadow: 0 0 6px rgba(255,255,255,0.6);
}

.booking-calendar {
    width: 100%;
}

/* Kalender grid / styling */

.cal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cal-header button {
    background: #1c3d5a;
    color: #ffffff;
    border: none;
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
}

.cal-header button:hover {
    background: #234b71;
}

.cal-title {
    font-weight: bold;
    font-size: 18px;
    color: #1c3d5a;
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-top: 6px;
}

.cal-dayname {
    font-weight: bold;
    text-align: center;
    font-size: 0.8rem;
    color: #44556a;
}

.cal-day,
.cal-spacer {
    padding: 10px;
    text-align: center;
    background: #ffffff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
}

.cal-spacer {
    cursor: default;
    background: transparent;
}

.cal-day.blocked {
    background: #bbb;
    color: #444;
    pointer-events: none;
    opacity: 0.6;
}

.cal-day.selected {
    background: #c9b9a8;
    color: #000;
    font-weight: bold;
}

/* =========================================
   GLOBAL MODAL
========================================= */

#globalModal {
    position: fixed;
    inset: 0;
    display: none;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    padding: 40px;
    z-index: 99999;
}

#modalContent {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    width: min(90%, 900px);
    max-height: 90vh;
    overflow: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

#modalClose {
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
    font-size: 22px;
}

#modalDynamic h2 {
    margin-bottom: 10px;
}

#modalDynamic p {
    margin-bottom: 10px;
}

/* Bilder i gallerimodalen */

.modal-carousel img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 10px;
}

/* Enkel form-styling inne i modal */

#modalDynamic form input,
#modalDynamic form textarea {
    border: 1px solid #ccd2da;
    border-radius: 6px;
    font: inherit;
}

#modalDynamic form button {
    border: none;
    border-radius: 999px;
    background: #1c3d5a;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
}

#modalDynamic form button:hover {
    background: #234b71;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 900px) {

    nav {
        justify-content: center;
        gap: 20px;
        padding: 12px 20px;
    }

    nav a {
        font-size: 12px;
    }

    .hero-text {
        margin-left: 20px;
        margin-right: 20px;
        font-size: 2.1rem;
    }

    section {
        padding: 110px 20px 50px;
    }
}

@media (max-width: 600px) {

    .hero {
        padding-bottom: 60px;
    }

    .hero-text {
        font-size: 1.8rem;
        padding: 18px 20px;
    }

    #modalContent {
        padding: 16px;
    }

    .modal-carousel img {
        height: 260px;
    }
}
.review-group {
  margin-bottom: 60px;
  background: rgba(255,255,255,0.65);
  padding: 20px;
  border-radius: 12px;
  backdrop-filter: blur(8px);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.review-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1c3d5a;
}

.stars {
  font-size: 1.4rem;
  color: gold;
}

.review-carousel {
  position: relative;
  overflow: hidden;
  height: 140px;
}

.review-item {
  position: absolute;
  width: 100%;
  opacity: 0;
  transition: opacity .6s;
  text-align: left;
  font-size: .95rem;
  line-height: 1.3;
}

.review-item.active {
  opacity: 1;
}

.review-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.review-nav button {
  background: #1c3d5a;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor:pointer;
  font-size: 0.8rem;
}
/* REVIEWS GRID */
#reviews-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    width: 100%;
}

#contact-wrapper {
    display: flex;
    justify-content: center;
}

#contact-container {
    width: 100%;
    max-width: 550px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(6px);
    padding: 30px 28px;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.08);
}

#contactForm {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

#contactForm h3 {
    text-align: center;
    color: #1c3d5a;
    margin-bottom: 8px;
    font-size: 1.4rem;
}

#contactForm label {
    font-weight: 600;
    color: #1c3d5a;
    font-size: 1rem;
}

#contactForm input,
#contactForm textarea {
    width: 100%;
    padding: 14px 12px;
    border: 1px solid #ccd2da;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
}

#contactForm button {
    margin-top: 10px;
    padding: 14px 20px;
    background: #1c3d5a;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease-in-out;
    font-size: 1.05rem;
}

#contactForm button:hover {
    background: #234b71;
}

#contact-status {
    text-align: center;
    margin-top: 10px;
    font-size: 0.95rem;
    font-weight: 600;
}

#contact-status.success {
    color: #1e7a1e;
}

#contact-status.error {
    color: #c0392b;
}

/* SMOOBU CALENDAR STYLING */
#smoobuApartment3013191de {
    background: rgba(255,255,255,0.65);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 10px;
    /* KRITISK: Sørg for at kalenderen kan klikkes */
    pointer-events: auto !important;
}

#smoobuApartment3013191de * {
    /* Sørg for at alle elementer i kalenderen kan klikkes */
    pointer-events: auto !important;
}

#smoobuApartment3013191de .calendar-header,
#smoobuApartment3013191de .calendarHeader {
    background: transparent !important;
    color: #1c3d5a !important;
    font-weight: 700;
}

#smoobuApartment3013191de button,
#smoobuApartment3013191de a {
    background: #1c3d5a !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    cursor: pointer !important;
}

#smoobuApartment3013191de .calendar-header button,
#smoobuApartment3013191de .calendarHeader button {
    background: transparent !important;
    border-radius: 999px !important;
    width: 36px;
    height: 36px;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none !important;
}

#smoobuApartment3013191de a.btn-next {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

#smoobuApartment3013191de button:hover,
#smoobuApartment3013191de a:hover {
    background: #234b71 !important;
}

#smoobuApartment3013191de th,
#smoobuApartment3013191de .weekday {
    color: #44556a !important;
    font-weight: 700;
    font-size: 0.8rem;
}

#smoobuApartment3013191de td,
#smoobuApartment3013191de .day {
    background: #ffffff !important;
    border-radius: 8px !important;
    color: #12212f !important;
    transition: background 0.2s ease;
    cursor: pointer !important;
}

#smoobuApartment3013191de td:hover {
    background: rgba(28, 61, 90, 0.12) !important;
}

#smoobuApartment3013191de .booked,
#smoobuApartment3013191de .unavailable {
    background: #9aa6b2 !important;
    color: #ffffff !important;
    opacity: 1;
    text-decoration: line-through;
}

#smoobuApartment3013191de .available {
    background: #ffffff !important;
    color: #12212f !important;
}

#smoobuApartment3013191de .selected,
#smoobuApartment3013191de .active {
    background: #c9b9a8 !important;
    color: #000 !important;
    font-weight: 700;
}

#smoobuApartment3013191de .today {
    outline: 2px solid #1c3d5a;
    outline-offset: -2px;
    font-weight: 700;
}

#smoobuApartment3013191de * {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
}

.smoobuCalendarIframe {
    width: 100%;
    max-width: 1000px;
    background: rgba(255,255,255,0.65);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.08);
}

.smoobuCalendarIframe iframe {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 10px;
    background: #ffffff;
}



/* --- Booking layout --- */
.booking-widgets {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px;
  display: grid;
  gap: 20px;
}

/* Ett property-kort */
.booking-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.06);
  overflow: hidden;
}

/* Header / title i kortet */
.booking-card__header {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.booking-card__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.booking-card__meta {
  margin: 0;
  opacity: 0.75;
  font-size: 14px;
}

/* Innhold: kalender + airbnb */
.booking-card__body {
  padding: 18px;
  display: grid;
  gap: 18px;
}

/* Desktop: kalender og airbnb ved siden av hverandre */
@media (min-width: 900px) {
  .booking-card__body {
    grid-template-columns: 1fr 420px;
    align-items: start;
  }
}

/* --- Smoobu iframe: responsiv switching --- */
#smoobuCalendarIframe,
.smoobuCalendarIframe {
  width: 100%;
  display: grid;
  place-items: center;
}

#smoobuCalendarIframe iframe,
.smoobuCalendarIframe iframe {
  border: 0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* Default: desktop iframe */
#smoobuCalendarIframe .smallDevices,
.smoobuCalendarIframe .smallDevices { display: none; }

#smoobuCalendarIframe .bigDevices,
.smoobuCalendarIframe .bigDevices {
  display: block;
  width: min(1000px, 100%);
  height: 600px;
}

/* Mobil: bruk smallDevices */
@media (max-width: 520px) {
  #smoobuCalendarIframe .bigDevices,
  .smoobuCalendarIframe .bigDevices { display: none; }

  #smoobuCalendarIframe .smallDevices,
  .smoobuCalendarIframe .smallDevices {
    display: block;
    width: min(320px, 100%);
    height: 540px;
  }
}

/* --- Airbnb embed: tving til "kort" og full bredde --- */
.airbnb-embed-frame {
  width: 100% !important;
  height: auto !important;
  margin: 0 auto !important;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

/* --- Events module --- */
#events-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
  padding: 12px 16px 28px;
}

.event-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.06);
  overflow: hidden;
  padding: 18px;
}

.event-card__head h3 {
  margin: 0 0 6px;
  font-size: 21px;
  color: #1c3d5a;
}

.event-card__head p {
  margin: 0;
  color: #4f5f6e;
  line-height: 1.45;
}

.event-meta {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.event-meta span {
  background: #eef3f7;
  color: #2a4d6b;
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 12px;
  font-weight: 600;
}

.event-booking-form {
  margin-top: 16px;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}

@media (min-width: 780px) {
  .event-booking-form {
    grid-template-columns: 1fr 1fr;
    column-gap: 12px;
  }

    .event-booking-form .event-slot-info,
  .event-booking-form .event-payment-note,
  .event-booking-form .event-status,
  .event-booking-form button,
  .event-booking-form textarea {
    grid-column: 1 / -1;
  }
}

.event-booking-form input,
.event-booking-form select,
.event-booking-form textarea {
  width: 100%;
  border: 1px solid rgba(28,61,90,0.22);
  border-radius: 8px;
  padding: 10px 11px;
  font: inherit;
  background: #fff;
}

.event-booking-form label {
  font-size: 13px;
  font-weight: 600;
  color: #425362;
  margin-top: 4px;
}

.event-slot-info {
  background: linear-gradient(180deg, #f8fbfd, #f1f7fb);
  border: 1px solid #d6e6f1;
  border-radius: 10px;
  padding: 11px;
  color: #234761;
  line-height: 1.35;
}

.event-booking-form button {
  border: 0;
  border-radius: 10px;
  background: #1c3d5a;
  color: #ffffff;
  font-weight: 700;
  padding: 12px 14px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.event-booking-form button:hover {
  background: #255173;
}

.event-booking-form button:disabled {
  opacity: 0.75;
  cursor: wait;
}

.event-payment-note {
  margin: 0;
  color: #5a6874;
  font-size: 13px;
}

.event-status {
  min-height: 20px;
  font-size: 14px;
  font-weight: 600;
}

.event-status a {
  color: #0b4f82;
  font-weight: 700;
}

.event-status--ok {
  color: #1d6b2e;
}

.event-status--error {
  color: #a32222;
}

.events-loading,
.events-empty,
.events-error {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 14px;
  color: #2f475a;
}
