/**
 * Frontend-stilar för Starby Paket.
 * Typografi hämtas från Astra child-theme — denna fil sätter inga fonter.
 *
 * @package Starby_Paket
 */

:root {
	--starby-teal: #304E4D;
	--starby-teal-dark: #1E3534;
	--starby-teal-deep: #162928;
	--starby-sand: #A89D88;
	--starby-rust: #B85A3A;
	--starby-cream: #F2EDD9;
	--starby-cream-light: #F8F6F1;
	--starby-gold: #BEAA76;
	--starby-gold-light: #D4C499;
	--starby-white: #FFFFFF;
	--starby-text-muted: #6B6B6B;
}

/* ========================================
   PAKETKORT — Gemensamt
   ======================================== */
.starby-pkg-card {
	border-radius: 10px;
	overflow: hidden;
	transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.starby-pkg-card__link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.starby-pkg-card__image {
	position: relative;
	overflow: hidden;
}

.starby-pkg-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s;
}

.starby-pkg-card:hover .starby-pkg-card__image img {
	transform: scale(1.04);
}

.starby-pkg-card__badge {
	position: absolute;
	top: 14px;
	left: 14px;
	color: var(--starby-white);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	padding: 5px 12px;
	border-radius: 4px;
	z-index: 2;
}

.starby-pkg-card__cat-badge {
	position: absolute;
	bottom: 12px;
	left: 12px;
	background: rgba(30, 53, 52, 0.75);
	backdrop-filter: blur(6px);
	color: var(--starby-cream, #F2EDD9);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	padding: 6px 14px;
	border-radius: 999px;
	z-index: 2;
}

.starby-pkg-card__audience {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 1px;
	text-transform: uppercase;
	margin-bottom: 6px;
}

.starby-pkg-card__audience-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	flex-shrink: 0;
}

.starby-pkg-card__title {
	font-weight: 400;
	color: var(--starby-cream);
	margin-bottom: 6px;
}

.starby-pkg-card__excerpt {
	font-size: 13px;
	font-weight: 300;
	color: rgba(242, 237, 217, 0.45);
	line-height: 1.5;
	margin-bottom: 14px;
}

.starby-pkg-card__ingress {
	font-size: 14px;
	font-weight: 400;
	color: rgba(242, 237, 217, 0.75);
	line-height: 1.5;
	margin-top: 0;
	margin-bottom: 14px;
}

.starby-pkg-card__includes {
	list-style: none;
	margin-bottom: 18px;
	padding: 0;
}

.starby-pkg-card__includes li {
	font-size: 12px;
	font-weight: 300;
	color: rgba(242, 237, 217, 0.35);
	padding: 3px 0;
	display: flex;
	align-items: center;
	gap: 6px;
}

.starby-pkg-card__includes li::before {
	content: '·';
	color: var(--starby-gold);
	font-weight: 700;
}

.starby-pkg-card__footer {
	display: flex;
	gap: 8px;
	align-items: center;
	padding-top: 14px;
	border-top: 1px solid rgba(190, 170, 118, 0.06);
}

.starby-pkg-card__footer > a {
	flex: 1;
	white-space: nowrap;
}

.starby-pkg-card__price {
	font-size: 22px;
	font-weight: 400;
	color: var(--starby-cream);
}

.starby-pkg-card__price small {
	font-size: 12px;
	color: rgba(242, 237, 217, 0.3);
}

.starby-pkg-card__price-prefix {
	font-size: 13px;
	font-weight: 400;
	letter-spacing: 0.02em;
	color: rgba(242, 237, 217, 0.55);
	margin-right: 4px;
	text-transform: lowercase;
}

.starby-pkg-card__image-link {
	display: block;
	text-decoration: none;
}

.starby-pkg-card__title a {
	color: inherit;
	text-decoration: none;
}

.starby-pkg-card__title a:hover {
	color: var(--starby-rust, #B85A3A);
}

.starby-pkg-card__price-row {
	margin-bottom: 14px;
}

.starby-pkg-card__readmore-btn,
.starby-pkg-card__book-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	padding: 12px 20px;
	border-radius: 20px;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.3s, color 0.3s;
}

.starby-pkg-card__readmore-btn {
	background: transparent;
	color: var(--starby-rust);
	border: 1.5px solid var(--starby-rust);
}

.starby-pkg-card__readmore-btn:hover {
	background: var(--starby-rust);
	color: var(--starby-white, #FFFFFF);
}

.starby-pkg-card__book-btn {
	background: var(--starby-rust);
	color: var(--starby-white);
	border: 1.5px solid var(--starby-rust);
}

.starby-pkg-card__book-btn:hover {
	background: transparent;
	color: var(--starby-rust);
}

/* ========================================
   KORT: Horisontell (arkivsida)
   ======================================== */
.starby-pkg-card--horizontal .starby-pkg-card__link {
	display: grid;
	grid-template-columns: 1fr 1fr;
}

.starby-pkg-card--horizontal .starby-pkg-card__image-link {
	display: block;
	height: 100%;
}

.starby-pkg-card--horizontal .starby-pkg-card__image {
	min-height: 280px;
	height: 100%;
}

.starby-pkg-card--horizontal .starby-pkg-card__image img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.starby-pkg-card--horizontal .starby-pkg-card__image {
	position: relative;
}

.starby-pkg-card--horizontal {
	background: rgba(242, 237, 217, 0.02);
	border: 1px solid rgba(190, 170, 118, 0.04);
}

.starby-pkg-card--horizontal:hover {
	border-color: rgba(190, 170, 118, 0.12);
	transform: translateY(-4px);
}

.starby-pkg-card--horizontal .starby-pkg-card__body {
	padding: 28px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.starby-pkg-card--horizontal .starby-pkg-card__title {
	font-size: 22px;
}

.starby-pkg-card--horizontal .starby-pkg-card__footer {
	margin-top: auto;
}

/* ========================================
   KORT: Vertikal (startsida, relaterade)
   ======================================== */
.starby-pkg-card--vertical {
	background: rgba(242, 237, 217, 0.02);
	border: 1px solid rgba(190, 170, 118, 0.04);
}

.starby-pkg-card--vertical:hover {
	border-color: rgba(190, 170, 118, 0.12);
	transform: translateY(-6px);
}

.starby-pkg-card--vertical .starby-pkg-card__image--top {
	aspect-ratio: 16 / 10;
}

.starby-pkg-card--vertical .starby-pkg-card__body {
	padding: 24px;
}

.starby-pkg-card--vertical .starby-pkg-card__title {
	font-size: 20px;
}

/* ========================================
   KORT: Kompakt
   ======================================== */
.starby-pkg-card--compact .starby-pkg-card__link {
	display: grid;
	grid-template-columns: 120px 1fr;
}

.starby-pkg-card--compact .starby-pkg-card__image--compact {
	aspect-ratio: 1;
}

.starby-pkg-card--compact .starby-pkg-card__body {
	padding: 16px;
}

.starby-pkg-card--compact .starby-pkg-card__title {
	font-size: 16px;
	margin-bottom: 4px;
}

/* ========================================
   GRID-CONTAINER
   ======================================== */
.starby-pkg-grid {
	max-width: 1400px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
	transition: opacity 0.3s;
}

.starby-pkg-grid__empty {
	grid-column: 1 / -1;
	text-align: center;
	padding: 64px 0;
	font-size: 16px;
	font-weight: 300;
	color: rgba(242, 237, 217, 0.35);
}

.starby-pkg-cards {
	display: grid;
	gap: 24px;
}

.starby-pkg-cards[data-columns="1"] { grid-template-columns: 1fr; }
.starby-pkg-cards[data-columns="2"] { grid-template-columns: repeat(2, 1fr); }
.starby-pkg-cards[data-columns="3"] { grid-template-columns: repeat(3, 1fr); }

/* ========================================
   FILTERRAD
   ======================================== */
.starby-pkg-filter {
	padding: 24px 5%;
	background: transparent;
	border-bottom: 1px solid rgba(190, 170, 118, 0.04);
	position: sticky;
	top: 62px;
	z-index: 100;
}

.starby-pkg-filter__inner {
	max-width: 1400px;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
}

.starby-pkg-filter__chips {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.starby-pkg-filter__chip {
	padding: 8px 16px;
	border-radius: 25px;
	font-size: 13px;
	font-weight: 400;
	cursor: pointer;
	transition: all 0.3s;
	border: 1px solid rgba(242, 237, 217, 0.08);
	color: rgba(242, 237, 217, 0.45);
	background: transparent;
}

.starby-pkg-filter__chip:hover,
.starby-pkg-filter__chip.is-active {
	border-color: var(--starby-gold);
	color: var(--starby-cream);
	background: rgba(190, 170, 118, 0.06);
}

.starby-pkg-filter__sort {
	display: flex;
	align-items: center;
	gap: 10px;
}

.starby-pkg-filter__sort-label {
	font-size: 12px;
	font-weight: 300;
	color: rgba(242, 237, 217, 0.3);
}

.starby-pkg-filter__sort-select {
	background: rgba(242, 237, 217, 0.04);
	border: 1px solid rgba(242, 237, 217, 0.08);
	border-radius: 8px;
	padding: 8px 14px;
	font-size: 13px;
	color: var(--starby-cream);
	-webkit-appearance: none;
}

/* ========================================
   ARKIVSIDA
   ======================================== */
.starby-pkg-archive {
	background: var(--starby-teal-deep);
}

.starby-pkg-grid-section {
	padding: 48px 5% 120px;
}

/* Hittar du inte rätt? */
.starby-pkg-not-found {
	padding: 80px 5%;
	background: var(--starby-teal-dark);
	text-align: center;
}

.starby-pkg-not-found__title {
	font-size: 24px;
	font-weight: 300;
	color: var(--starby-cream);
	margin-bottom: 12px;
}

.starby-pkg-not-found__desc {
	font-size: 15px;
	font-weight: 300;
	color: rgba(242, 237, 217, 0.4);
	margin-bottom: 24px;
}

.starby-pkg-not-found__options {
	display: flex;
	justify-content: center;
	gap: 16px;
	flex-wrap: wrap;
}

.starby-pkg-not-found__option {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 16px 24px;
	border-radius: 10px;
	border: 1px solid rgba(190, 170, 118, 0.08);
	background: rgba(242, 237, 217, 0.02);
	transition: all 0.3s;
	text-decoration: none;
	color: inherit;
}

.starby-pkg-not-found__option:hover {
	border-color: var(--starby-gold);
	background: rgba(190, 170, 118, 0.05);
}

.starby-pkg-not-found__icon {
	font-size: 20px;
}

.starby-pkg-not-found__option-text strong {
	font-size: 14px;
	font-weight: 500;
	color: var(--starby-cream);
	display: block;
}

.starby-pkg-not-found__option-text span {
	font-size: 12px;
	font-weight: 300;
	color: rgba(242, 237, 217, 0.35);
}

/* Direktbokning */
.starby-pkg-direct {
	padding: 64px 5%;
	background: var(--starby-teal);
	text-align: center;
}

.starby-pkg-direct__title {
	font-size: 24px;
	font-weight: 300;
	color: var(--starby-cream);
	margin-bottom: 20px;
}

.starby-pkg-direct__perks {
	display: flex;
	justify-content: center;
	gap: 28px;
	flex-wrap: wrap;
}

.starby-pkg-direct__perk {
	font-size: 13px;
	font-weight: 300;
	color: rgba(242, 237, 217, 0.5);
	display: flex;
	align-items: center;
	gap: 6px;
}

.starby-pkg-direct__perk::before {
	content: '';
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: #29A166;
}

/* ========================================
   ENSKILD PAKETSIDA
   ======================================== */

/* Hero */
.starby-pkg-single__hero {
	position: relative;
	height: 70vh;
	min-height: 480px;
	overflow: hidden;
	display: flex;
	align-items: flex-end;
}

.starby-pkg-single__hero-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
}

.starby-pkg-single__hero-bg::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg,
		transparent 0%,
		transparent 45%,
		rgba(22, 41, 40, 0.6) 60%,
		rgba(22, 41, 40, 0.92) 75%,
		var(--starby-teal-dark) 100%
	);
}

.starby-pkg-single__hero-content {
	position: relative;
	z-index: 2;
	padding: 0 5% 48px;
}

.starby-pkg-single__tag {
	display: inline-block;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 1px;
	text-transform: uppercase;
	padding: 5px 12px;
	border-radius: 20px;
	margin-bottom: 12px;
}

.starby-pkg-single__title {
	font-size: clamp(36px, 5vw, 56px);
	font-weight: 200;
	color: var(--starby-cream);
	line-height: 0.95;
	margin-bottom: 12px;
}

.starby-pkg-single__excerpt {
	font-size: 17px;
	font-weight: 300;
	color: rgba(242, 237, 217, 0.55);
	max-width: 480px;
}

/* Layout */
.starby-pkg-single__body {
	background: var(--starby-teal-dark);
	padding: 64px 5%;
}

.starby-pkg-single__layout {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr 360px;
	gap: 64px;
	align-items: start;
}

/* Huvudinnehåll */
.starby-pkg-single__content {
	font-size: 16px;
	font-weight: 300;
	color: rgba(242, 237, 217, 0.55);
	line-height: 1.8;
	margin-bottom: 48px;
}

.starby-pkg-single__section {
	margin-bottom: 48px;
}

.starby-pkg-single__section-title {
	font-size: 24px;
	font-weight: 400;
	color: var(--starby-cream);
	margin-bottom: 20px;
}

/* Inkluderat */
.starby-pkg-single__includes {
	list-style: none;
	padding: 0;
}

.starby-pkg-single__includes li {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 14px 0;
	border-bottom: 1px solid rgba(190, 170, 118, 0.04);
	font-size: 15px;
	font-weight: 300;
	color: rgba(242, 237, 217, 0.6);
}

.starby-pkg-single__check {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: rgba(41, 161, 102, 0.1);
	color: #29A166;
	font-size: 11px;
	font-weight: 600;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

/* Galleri */
.starby-pkg-single__gallery {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.starby-pkg-single__gallery-item {
	border-radius: 8px;
	overflow: hidden;
}

.starby-pkg-single__gallery-item--featured {
	grid-column: 1 / -1;
}

.starby-pkg-single__gallery-item img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	display: block;
}

.starby-pkg-single__gallery-item--featured img {
	aspect-ratio: 16 / 9;
}

/* Tidsplan */
.starby-pkg-single__timeline {
	border-left: 2px solid rgba(190, 170, 118, 0.08);
	padding-left: 24px;
}

.starby-pkg-single__tl-item {
	display: grid;
	grid-template-columns: 100px 1fr;
	gap: 16px;
	padding: 16px 0;
	border-bottom: 1px solid rgba(190, 170, 118, 0.04);
}

.starby-pkg-single__tl-time {
	font-size: 18px;
	font-weight: 400;
	color: var(--starby-gold);
}

.starby-pkg-single__tl-time small {
	display: block;
	font-size: 12px;
	font-weight: 300;
	color: rgba(242, 237, 217, 0.35);
}

.starby-pkg-single__tl-desc {
	font-size: 14px;
	font-weight: 300;
	color: rgba(242, 237, 217, 0.55);
}

/* Sidebar: bokningskort */
.starby-pkg-single__sidebar {
	position: sticky;
	top: 80px;
}

.starby-pkg-single__booking {
	background: rgba(242, 237, 217, 0.03);
	border: 1px solid rgba(190, 170, 118, 0.08);
	border-radius: 12px;
	padding: 32px;
}

.starby-pkg-single__booking-price {
	font-size: 36px;
	font-weight: 300;
	color: var(--starby-cream);
	margin-bottom: 4px;
}

.starby-pkg-single__booking-price small {
	font-size: 14px;
	color: rgba(242, 237, 217, 0.35);
}

.starby-pkg-single__booking-note {
	font-size: 13px;
	font-weight: 300;
	color: rgba(242, 237, 217, 0.35);
	margin-bottom: 24px;
}

.starby-pkg-single__booking-divider {
	height: 1px;
	background: rgba(190, 170, 118, 0.06);
	margin-bottom: 20px;
}

.starby-pkg-single__booking-detail {
	display: flex;
	gap: 8px;
	padding: 6px 0;
	font-size: 13px;
	font-weight: 300;
	color: rgba(242, 237, 217, 0.5);
}

.starby-pkg-single__booking-detail span:first-child {
	color: #29A166;
}

.starby-pkg-single__booking-seasonal {
	margin-top: 16px;
	font-size: 12px;
	font-weight: 400;
	color: var(--starby-rust);
	font-style: italic;
}

.starby-pkg-single__booking-btn {
	display: block;
	width: 100%;
	text-align: center;
	background: var(--starby-rust);
	color: var(--starby-white);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 2px;
	text-transform: uppercase;
	padding: 18px;
	border-radius: 25px;
	margin-top: 24px;
	transition: background 0.3s;
	text-decoration: none;
}

.starby-pkg-single__booking-btn:hover {
	background: #a04e2e;
}

.starby-pkg-single__booking-trust {
	margin-top: 20px;
}

.starby-pkg-single__booking-trust span {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 300;
	color: rgba(242, 237, 217, 0.3);
	padding: 3px 0;
}

.starby-pkg-single__booking-trust span::before {
	content: '';
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: #29A166;
}

/* Relaterade */
.starby-pkg-single__related {
	padding: 80px 5%;
	background: var(--starby-teal-deep);
}

.starby-pkg-single__related-title {
	font-size: 24px;
	font-weight: 300;
	color: var(--starby-cream);
	margin-bottom: 32px;
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
}

.starby-pkg-single__related-grid {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

/* Breadcrumb */
.starby-pkg-breadcrumb {
	font-size: 12px;
	font-weight: 300;
	color: rgba(242, 237, 217, 0.4);
	margin-bottom: 16px;
}

.starby-pkg-breadcrumb a {
	color: rgba(242, 237, 217, 0.4);
	text-decoration: none;
	transition: color 0.3s;
}

.starby-pkg-breadcrumb a:hover {
	color: var(--starby-gold);
}

.starby-pkg-breadcrumb__sep {
	margin: 0 8px;
}

/* Lightbox */
.starby-pkg-lightbox {
	border: none;
	background: rgba(22, 41, 40, 0.95);
	max-width: 90vw;
	max-height: 90vh;
	padding: 0;
	border-radius: 8px;
}

.starby-pkg-lightbox::backdrop {
	background: rgba(22, 41, 40, 0.85);
}

.starby-pkg-lightbox__inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}

.starby-pkg-lightbox__img {
	max-width: 85vw;
	max-height: 85vh;
	object-fit: contain;
}

.starby-pkg-lightbox__close,
.starby-pkg-lightbox__prev,
.starby-pkg-lightbox__next {
	position: absolute;
	background: none;
	border: none;
	color: var(--starby-cream);
	font-size: 28px;
	cursor: pointer;
	padding: 8px;
	opacity: 0.5;
	transition: opacity 0.3s;
}

.starby-pkg-lightbox__close:hover,
.starby-pkg-lightbox__prev:hover,
.starby-pkg-lightbox__next:hover {
	opacity: 1;
}

.starby-pkg-lightbox__close {
	top: 8px;
	right: 8px;
}

.starby-pkg-lightbox__prev {
	left: 8px;
	top: 50%;
	transform: translateY(-50%);
}

.starby-pkg-lightbox__next {
	right: 8px;
	top: 50%;
	transform: translateY(-50%);
}

.starby-pkg-lightbox__counter {
	position: absolute;
	bottom: 12px;
	left: 50%;
	transform: translateX(-50%);
	font-size: 12px;
	color: rgba(242, 237, 217, 0.4);
}

/* ========================================
   RESPONSIVT
   ======================================== */
@media (max-width: 900px) {
	.starby-pkg-grid {
		grid-template-columns: 1fr;
	}

	.starby-pkg-card--horizontal .starby-pkg-card__link {
		grid-template-columns: 1fr;
	}

	.starby-pkg-card--horizontal .starby-pkg-card__image {
		min-height: 200px;
	}

	.starby-pkg-single__layout {
		grid-template-columns: 1fr;
	}

	.starby-pkg-single__sidebar {
		position: static;
	}

	.starby-pkg-single__related-grid {
		grid-template-columns: 1fr;
	}

	.starby-pkg-cards[data-columns="3"] {
		grid-template-columns: 1fr;
	}
}
