:root {
    /* Primary Colors */
    --ubud-emerald: #1C4E3D;
    --canggu-sand: #F5F2EB;

    /* Secondary & Accent Colors */
    --temple-clay: #C87941;
    --ocean-mist: #4A8C8C;
    --volcanic-ash: #2D2D2D;

    /* Typography */
    --heading-font: 'Playfair Display', serif;
    --body-font: 'Plus Jakarta Sans', sans-serif;
    --accent-font: 'Caveat', cursive;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--canggu-sand);
    color: var(--volcanic-ash);
    font-family: var(--body-font);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Texture effect */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("https://www.transparenttextures.com/patterns/p6.png");
    opacity: 0.05;
    pointer-events: none;
    z-index: 9999;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--heading-font);
    color: var(--ubud-emerald);
    font-weight: 700;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--ocean-mist);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--temple-clay);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border-radius: 100px;
    font-family: var(--body-font);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    text-transform: none;
}

.btn-primary {
    background-color: var(--ubud-emerald);
    color: white;
    box-shadow: 0 10px 20px rgba(28, 78, 61, 0.15);
}

.btn-primary:hover {
    background-color: var(--temple-clay);
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(28, 78, 61, 0.2);
    color: white;
}

.btn-outline {
    background-color: white;
    color: var(--ubud-emerald);
    border: 1px solid rgba(28, 78, 61, 0.1);
}

.btn-outline:hover {
    border-color: var(--temple-clay);
    color: var(--temple-clay);
    transform: translateY(-4px);
}

/* Glassmorphism */
.glass-nav {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Image Cards */
.image-card {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 24px;
    overflow: hidden;
}

.image-card:hover {
    transform: translateY(-12px);
}

/* Typographic Utilities */
.font-script {
    font-family: var(--accent-font);
}

.text-bali-accent {
    color: var(--temple-clay);
}

.text-bali-teal {
    color: var(--ocean-mist);
}

.text-bali-dark {
    color: var(--ubud-emerald);
}

.italic {
    font-style: italic;
}

/* Sections */
section {
    padding: 100px 0;
}

/* Responsive Styles */
@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }

    h1 {
        font-size: 3rem;
    }
}

/* Content Rendering Styles */
.hero-image,
.page-header.with-image {
    height: 70vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    border-radius: 0 0 60px 60px;
    margin-bottom: 4rem;
    overflow: hidden;
}

.hero-image::after,
.page-header.with-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(28, 78, 61, 0.9) 0%, rgba(28, 78, 61, 0.4) 30%, transparent 70%);
}

.hero-overlay,
.header-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
    text-align: left;
}

.hero-overlay h1,
.header-content h1 {
    color: white;
    font-size: 5rem;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    line-height: 1.1;
}

.hero-fallback,
.page-header:not(.with-image) {
    padding: 10rem 0 6rem;
    text-align: center;
    background: var(--ubud-emerald);
    color: white;
    border-radius: 0 0 60px 60px;
    margin-bottom: 4rem;
}

.hero-fallback h1,
.page-header:not(.with-image) h1 {
    color: white;
    font-size: 3.5rem;
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 6rem;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 4rem;
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.map-container {
    width: 100%;
    height: 300px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(28, 78, 61, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.sidebar-section {
    background: white;
    padding: 2rem;
    border-radius: 24px;
    border: 1px solid rgba(28, 78, 61, 0.1);
}

.sidebar-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    border-bottom: 2px solid var(--canggu-sand);
    padding-bottom: 0.5rem;
}

.related-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.related-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    border-radius: 10px;
    padding: 0.5rem;
    margin: -0.5rem;
    transition: background 0.18s ease, transform 0.18s ease;
}

a.related-item {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

a.related-item:hover {
    background: var(--canggu-sand, #f0e8d8);
    transform: translateX(3px);
}

a.related-item:hover .related-item-arrow {
    opacity: 1;
    transform: translateX(3px);
}

.related-item-arrow {
    margin-left: auto;
    flex-shrink: 0;
    opacity: 0.35;
    color: var(--ocean-mist, #8aa6b2);
    transition: opacity 0.18s ease, transform 0.18s ease;
    font-size: 1rem;
}

.related-thumb {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.event-date-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 56px;
    border-radius: 10px;
    border: 2px solid var(--ocean-mist, #8aa6b2);
    background: #fff;
    flex-shrink: 0;
    line-height: 1;
    gap: 2px;
}

.event-date-month {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--ocean-mist, #8aa6b2);
    text-transform: uppercase;
}

.event-date-day {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--deep-ocean, #1a4a5c);
}

.related-info h4 {
    font-size: 1rem;
    margin: 0;
    line-height: 1.4;
}

.related-info span {
    font-size: 0.85rem;
    color: var(--ocean-mist);
}

@media (max-width: 992px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .sidebar-content {
        order: 2;
    }
}

.teaser {
    margin-bottom: 3rem;
}

.lead {
    font-size: 1.5rem;
    color: var(--ubud-emerald);
    font-style: italic;
    opacity: 0.9;
}

.body-content,
.body-section {
    font-size: 1.15rem;
    color: var(--volcanic-ash);
}

.body-content h2,
.body-section h2 {
    margin: 3rem 0 1.5rem;
    font-size: 2.2rem;
}

.body-content h3,
.body-section h3 {
    margin: 2rem 0 1rem;
    font-size: 1.8rem;
}

.body-content p,
.body-section p {
    margin-bottom: 1.5rem;
}

.location-info,
.toplist-teaser {
    margin-top: 4rem;
    padding: 2rem;
    background: white;
    border-radius: 24px;
    border: 1px solid rgba(28, 78, 61, 0.1);
}

.location-info h3,
.toplist-teaser h3 {
    margin-bottom: 1rem;
}

@media (max-width: 768px) {

    .hero-image,
    .page-header.with-image {
        height: 50vh;
    }

    .hero-overlay h1,
    .header-content h1 {
        font-size: 3rem;
    }

    .header-content,
    .hero-overlay {
        padding: 0 2rem 2rem;
    }
}