/* ============================================================
   Byggare Björk – Komplett main.css (High-End Agency Style)
   ============================================================ */

:root {
  /* High-end minimalist palette */
  --color-primary: #111827;   /* Nästan svart för hög kontrast */
  --color-secondary: #4B5563; /* Mörkgrå för läsbarhet */
  --color-muted: #9CA3AF;     /* Ljusgrå för meta-text */
  --color-accent: #1A365D;    /* Lyxig marinblå (som er gamla fast stramare) */
  --color-bg: #FFFFFF;        /* Kritvit bakgrund */
  --color-surface: #F9FAFB;   /* Off-white ytor */
  --color-border: #E5E7EB;    /* Krispiga ljusa linjer */
  --color-success: #10B981;   /* Elegant grön */

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;
  
  --radius: 6px; 
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
}

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

*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-secondary);
  background: var(--color-bg);
  font-size: 16px;
  line-height: 1.7;
}

h1, h2, h3, h4 {
  color: var(--color-primary);
  font-weight: 600;
  line-height: 1.2;
}

/* ============================================================
   KNAPPAR & ELEMENT
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: #FFF;
  border: none;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: #11233F;
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.btn-wide {
  width: 100%;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-border);
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: var(--color-surface);
  border-color: var(--color-primary);
}

.btn-danger {
  background: #DC2626;
  color: #FFF;
  border: none;
  padding: 0.8rem;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-danger:hover {
  background: #B91C1C;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: all 0.3s ease;
  padding: 1rem 0;
}

.site-nav-top.scrolled {
  background: rgba(26, 54, 93, 0.95);
  backdrop-filter: blur(8px);
  padding: 0.5rem 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.nav-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: #FFF;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 1rem;
}

.nav-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  transition: all 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #FFF;
  background: rgba(255,255,255,0.15);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-hamburger span {
  width: 25px;
  height: 2px;
  background: #FFF;
  transition: 0.3s;
}

/* ============================================================
   HERO SECTIONS
   ============================================================ */

/* Fullscreen hero för index.html */
.luxury-hero-fullscreen {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--color-accent);
}

.luxury-hero-fullscreen .luxury-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1567899378494-47b22a2ae96a?auto=format&fit=crop&q=80&w=1600');
  background-size: cover;
  background-position: center;
}

.luxury-hero-fullscreen .luxury-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.4) 0%, rgba(17, 24, 39, 0.8) 100%);
}

.luxury-hero-fullscreen .luxury-hero-content {
  position: relative;
  z-index: 2;
  color: #FFF;
  max-width: 800px;
  padding: 0 2rem;
}

.luxury-hero-fullscreen h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  color: #FFF;
  margin-bottom: 1.5rem;
}

.luxury-hero-fullscreen p {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 3rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Page hero för undersidor */
.luxury-hero {
  position: relative;
  height: 45vh;
  min-height: 400px;
  display: flex;
  align-items: flex-end;
  padding: 4rem 2rem;
  background: var(--color-accent);
}

.luxury-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 54, 93, 0.4) 0%, rgba(17, 24, 39, 1) 100%);
}

.luxury-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.luxury-hero .eyebrow {
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  display: block;
}

.luxury-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: #FFF;
  margin: 0;
}

/* ============================================================
   LAYOUT (2-kolumn & Enkolumn)
   ============================================================ */
.luxury-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 5rem 2rem;
  display: grid;
  grid-template-columns: 1.1fr 1.1fr;
  gap: 4rem;
  align-items: start;
}

.luxury-container-single {
  max-width: 900px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

.content-section {
  margin-bottom: 5rem;
}

.content-section:last-child {
  margin-bottom: 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--color-accent);
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.75rem;
}

.section-title-center {
  text-align: center;
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 3rem;
}

.lead-text {
  font-size: 1.15rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

/* Fakta & Regler */
.property-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  font-size: 0.95rem;
  color: var(--color-secondary);
}

.property-meta .divider {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-muted);
}

.property-meta strong {
  color: var(--color-primary);
}

.distance-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.distance-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
  color: var(--color-secondary);
}

.distance-list li:last-child {
  border-bottom: none;
}

.distance-list li strong {
  color: var(--color-primary);
}

.small-note {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-top: 1rem;
  font-style: italic;
}

.rules-block h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-accent);
  margin: 2rem 0 0.5rem;
}

.rules-block h4:first-child {
  margin-top: 0;
}

.rules-block p {
  color: var(--color-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ============================================================
   BILDER OCH CHECKLISTOR
   ============================================================ */
.luxury-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  max-height: 85vw;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 3.5rem;
  background: #111;
}

.luxury-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.luxury-image-wrapper:hover img {
  transform: none;
}

.image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: #FFF;
  padding: 2rem 1.5rem 1rem;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 5;
}

.amenities-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.amenity-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-accent);
  margin-bottom: 1.25rem;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.check-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
  color: var(--color-secondary);
  line-height: 1.4;
}

.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  background-size: contain;
  background-repeat: no-repeat;
}

.check-list li.included::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2310B981'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
}

.check-list li.excluded {
  color: var(--color-muted);
  text-decoration: line-through;
}

.check-list li.excluded::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23EF4444'%3E%3Cpath fill-rule='evenodd' d='M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
}

/* ============================================================
   KORT OCH GRIDS (Tjänster & Kontakt)
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.service-card {
  padding: 3rem 2.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-align: center;
  text-decoration: none;
  color: var(--color-secondary);
  transition: all 0.3s ease;
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
  border-color: transparent;
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.service-link {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-top: 1.5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.contact-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.2s ease;
}

.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.contact-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.contact-card h4 {
  font-size: 1.1rem;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.contact-link {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
}

.contact-link:hover {
  text-decoration: underline;
}

/* Tjänster Content Split (Zig-Zag) */
.content-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  margin-bottom: 6rem;
}

.content-split:last-child {
  margin-bottom: 0;
}

.content-split-reverse .content-text {
  order: 2;
}

.content-split-reverse .content-visual {
  order: 1;
}

/* ============================================================
   KALENDER & BOKNINGSKORT
   ============================================================ */
.premium-booking-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.booking-card-header {
  background: var(--color-accent);
  color: #FFF;
  padding: 1.5rem 2rem;
  text-align: center;
}

.booking-card-header .price {
  font-family: var(--font-display);
  font-size: 1.75rem;
}

.booking-card-header .price span {
  font-size: 0.9rem;
  font-family: var(--font-body);
  opacity: 0.8;
}

.booking-card-body {
  padding: 2rem;
}

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

#cal-month-label {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-primary);
  text-transform: capitalize;
}

.cal-nav {
  background: transparent;
  border: 1px solid var(--color-border);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1rem;
  color: var(--color-primary);
  transition: background 0.2s;
}

.cal-nav:hover {
  background: var(--color-surface);
}

.cal-grid-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 0.5rem;
}

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

/* Kalenderfärger */
.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}

.cal-day.empty {
  cursor: default;
}

.cal-day.past {
  color: #D1D5DB;
  cursor: default;
}

.cal-day.available {
  background: #E8F5E9;
  color: #2E7D32;
  border: 1px solid transparent;
}

.cal-day.available:hover {
  background: #C8E6C9;
  border-color: #A5D6A7;
}

.cal-day.booked, 
.cal-day.blocked, 
.cal-day.closed { 
  background: #FFEBEE; 
  color: #C62828; 
  text-decoration: line-through; 
  cursor: not-allowed; 
  opacity: 0.7; 
}

.cal-day.selected {
  background: #1976D2;
  color: #FFF;
  font-weight: bold;
}

.cal-day.in-range {
  background: #BBDEFB;
  color: #1976D2;
  opacity: 0.9;
}

.cal-day.range-start, 
.cal-day.range-end {
  background: #1976D2;
  color: #FFF;
  box-shadow: 0 2px 8px rgba(25, 118, 210, 0.3);
}

.cal-legend {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--color-secondary);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.dot-available { background: #4CAF50; }
.dot-booked    { background: #F44336; }
.dot-selected  { background: #1976D2; }

/* ============================================================
   BOKNINGSFORMULÄR
   ============================================================ */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group input {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-primary);
  transition: all 0.2s;
}

.form-group input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px var(--color-accent);
  outline: none;
}

.price-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--color-border);
}

.price-row:last-of-type {
  border-bottom: none;
}

.price-row.total {
  font-weight: 600;
  color: var(--color-primary);
  font-size: 1.1rem;
  padding-top: 1rem;
  margin-top: 0.5rem;
}

.form-summary {
  background: var(--color-surface);
  padding: 1.5rem;
  border-radius: var(--radius);
  margin: 2rem 0;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  border-bottom: 1px dashed var(--color-border);
  font-size: 0.9rem;
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-row.highlight {
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-primary);
  border-top: 1px solid var(--color-border);
  margin-top: 0.5rem;
  padding-top: 1rem;
}

.manage-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-bg);
  margin-top: 1.5rem;
}

.manage-header {
  background: var(--color-surface);
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
}

.manage-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  display: block;
}

.manage-code {
  font-size: 1.5rem;
  font-family: monospace;
  font-weight: 600;
  color: var(--color-accent);
}

.status-badge {
  padding: 0.3rem 0.8rem;
  border-radius: 40px;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-badge.confirmed {
  background: #D1FAE5;
  color: #065F46;
}

.status-badge.cancelled {
  background: #FEE2E2;
  color: #991B1B;
}

.manage-body {
  padding: 1.5rem;
}

.manage-detail {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9rem;
}

.manage-detail span {
  color: var(--color-muted);
}

/* ============================================================
   FOOTER (Ny och förbättrad design)
   ============================================================ */
.site-footer {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.7);
  padding: 5rem 2rem 2rem;
  margin-top: 5rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .footer-logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: #FFF;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.8;
  max-width: 400px;
}

.footer-title {
  color: #FFF;
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 1.25rem;
  font-weight: 500;
}

/* Fixen för de "blå länkarna": här tvingar vi .footer-contact a att använda rätt färg */
.footer-contact p,
.footer-contact a,
.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 2;
  text-decoration: none;
  display: block;
  transition: color 0.2s ease;
}

.footer-contact a:hover,
.footer-links a:hover {
  color: #FFF;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
}

.footer-copy {
  color: rgba(255, 255, 255, 0.5);
}

.footer-credit {
  color: rgba(255, 255, 255, 0.5);
}

.footer-credit a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer-credit a:hover {
  color: #FFF;
}

/* ============================================================
   RESPONSIVT
   ============================================================ */
@media (max-width: 1024px) {
  .luxury-container {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  
  .luxury-right {
    order: -1;
  }
  
  .content-split {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .content-split-reverse .content-text {
    order: 1;
  }
  
  .content-split-reverse .content-visual {
    order: 2;
  }
}

@media (max-width: 768px) {
  .nav-hamburger {
    display: flex;
  }
  
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(26, 54, 93, 0.98);
    padding: 1rem 2rem 2rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  }
  
  .nav-links.open {
    display: flex;
  }
  
  .nav-links a {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }
  
  .footer-brand p {
    margin: 0 auto;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .amenities-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .luxury-hero-fullscreen h1 {
    font-size: 3rem;
  }
  
  .luxury-hero-fullscreen p {
    font-size: 1.1rem;
  }
}

.hidden {
  display: none !important;
}

.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #FFF;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.slideshow-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}



.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* Navigeringspilar */
.ss-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
    border: none;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: background 0.3s;
    margin: 0 10px;
}

.ss-nav:hover {
    background: rgba(0, 0, 0, 0.5);
}

.ss-prev { left: 0; }
.ss-next { right: 0; }

/* Prickar (dots) */
.ss-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}

.ss-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s;
}

.ss-dot.active {
    background: #fff;
    transform: scale(1.3);
}

/* Se till att bildspelets förklaring (caption) ligger rätt */
.slide .image-caption {
    z-index: 5;
}
/* ============================================================
   MOBILANPASSNING – uthyrning.html
   Komplett fix för alla mobilproblem
   ============================================================ */

/* Fixa Google Maps iframe på alla skärmar */
iframe {
  width: 100%;
  max-width: 100%;
  height: 300px;
  border-radius: var(--radius);
}

@media (max-width: 1024px) {

  /* Kollapsa 2-kolumn till enkolumn – höger (bilder+bokning) kommer FÖRST */
  .luxury-container {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
  }

  .luxury-left {
    padding: 2rem 1.5rem 3rem;
    order: 2;
  }

  .luxury-right {
    order: 1;
    padding: 0;
  }

  /* Hero höjd */
  .luxury-hero {
    min-height: 200px;
    height: auto;
    padding: 5rem 1.5rem 2.5rem;
  }

  .luxury-hero h1 {
    font-size: 2.25rem;
  }
}

@media (max-width: 767px) {

  /* ---- NAVIGERING ---- */
  .site-nav-top {
    padding: 0;
  }

  .nav-inner {
    padding: 0 1.25rem;
    height: 60px;
  }

  .nav-logo {
    font-size: 1.2rem;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 60px;
    left: 0; right: 0;
    background: rgba(26, 54, 93, 0.98);
    padding: 0.5rem 1.25rem 1.5rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    z-index: 99;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 0.95rem;
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  /* ---- HERO ---- */
  .luxury-hero {
    min-height: 160px;
    padding: 4.5rem 1.25rem 2rem;
  }

  .luxury-hero h1 {
    font-size: 2rem;
    line-height: 1.2;
  }

  .luxury-hero .eyebrow {
    font-size: 0.72rem;
  }

  /* ---- HUVUD-LAYOUT ---- */
  .luxury-container {
    grid-template-columns: 1fr;
    padding: 0;
    gap: 0;
  }

  .luxury-left {
    padding: 1.75rem 1.25rem 2.5rem;
    order: 2;
  }

  .luxury-right {
    order: 1;
    padding: 0;
  }

  /* ---- SEKTIONER ---- */
  .content-section {
    margin-bottom: 2.5rem;
  }

  .section-title {
    font-size: 1.6rem;
    margin-bottom: 1rem;
  }

  .lead-text {
    font-size: 1rem;
  }

  body p {
    font-size: 0.95rem;
  }

  /* ---- FAKTA-RADEN ---- */
  .property-meta {
    gap: 0.5rem;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
  }

  .property-meta .divider {
    display: none;
  }

  .property-meta span {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 0.3rem 0.6rem;
    font-size: 0.82rem;
  }

  /* ---- BILDSPEL ---- */
  .luxury-image-wrapper {
    aspect-ratio: 4/3;
    max-height: 60vw;
    border-radius: 0;
    margin-bottom: 0;
    box-shadow: none;
  }

  .image-caption {
    font-size: 0.75rem;
    padding: 1.5rem 1rem 0.75rem;
  }

  .ss-nav {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  /* ---- FACILITETER ---- */
  .amenities-container {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 0;
    padding: 1.25rem;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
  }

  .amenity-title {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
  }

  .check-list li {
    font-size: 0.875rem;
    margin-bottom: 0.6rem;
  }

  /* ---- BOKNINGSKORT ---- */
  .premium-booking-card {
    border-radius: 0;
    border-left: none;
    border-right: none;
    box-shadow: none;
    margin-bottom: 0 !important;
  }

  .booking-card-header {
    padding: 1.25rem 1.25rem;
  }

  .booking-card-header .price {
    font-size: 1.4rem;
  }

  .booking-card-body {
    padding: 1.25rem;
  }

  /* ---- KALENDER ---- */
  .cal-grid-header span {
    font-size: 0.65rem;
  }

  #cal-month-label {
    font-size: 1rem;
  }

  .cal-day {
    font-size: 0.78rem;
  }

  .cal-legend {
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.78rem;
  }

  /* ---- FORMULÄR ---- */
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-group input {
    font-size: 16px; /* Förhindrar zoom på iOS */
  }

  /* ---- PRISÖVERSIKT ---- */
  .price-preview {
    padding: 1rem;
  }

  .price-dates {
    font-size: 0.9rem;
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  /* ---- BOKNINGSBEKRÄFTELSE ---- */
  .booking-confirmation {
    padding: 1.5rem 1rem;
  }

  .confirm-code {
    font-size: 1rem;
    word-break: break-all;
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  /* ---- HANTERA BOKNING ---- */
  .manage-detail {
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  /* ---- GOOGLE MAPS ---- */
  iframe {
    height: 250px;
  }

  /* ---- FOOTER ---- */
  .site-footer {
    padding: 3rem 1.25rem 1.5rem;
    margin-top: 0;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
    padding-bottom: 2rem;
  }

  .footer-brand p {
    margin: 0 auto;
    font-size: 0.875rem;
  }

  .footer-brand .footer-logo {
    font-size: 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    padding-top: 1.5rem;
    gap: 0.5rem;
  }
}

@media (max-width: 390px) {
  .luxury-hero h1 { font-size: 1.75rem; }
  .section-title  { font-size: 1.4rem; }
  .cal-day        { font-size: 0.7rem; }
  .nav-logo       { font-size: 1.1rem; }
}

/* ============================================================
   TILLÄGG TILL main.css – Utökad facilitets-grid
   Lägg till i slutet av main.css
   ============================================================ */

/* Fler kolumner i amenities på desktop */
.amenities-container {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

@media (max-width: 767px) {
  .amenities-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .amenities-container {
    grid-template-columns: 1fr;
  }
}