/* Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --primary-color: #F27B35;
    --text-color: #000; /* Black for titles */
    --bg-color: #F9F9F9;
    --card-bg: #fff;
    --gray-text: #8A7260; /* New color for descriptions/categories */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
}

/* Header */
header {
    background-color: #fff;
    padding: 0.8rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.1rem;
    gap: 10px;
    font-family: 'Semantig', sans-serif; /* Fallback if not available */
}

/* ... (Logo Icon and Menu Icon remain same) ... */

.logo-icon {
    width: 40px;
    height: 40px;
    background-color: #fff;
    border-radius: 50%;
}

.menu-icon {
    cursor: pointer;
    font-size: 1.5rem;
}

/* Nav Menu Dropdown */
.nav-menu {
    display: none;
    position: absolute;
    top: 60px;
    right: 5%;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 8px;
    z-index: 1000;
    width: 200px;
}

.nav-menu ul {
    list-style: none;
    padding: 10px 0;
}

.nav-menu li {
    padding: 0;
}

.nav-menu a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: background 0.2s;
}

.nav-menu a:hover {
    background-color: #f5f5f5;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 1rem 2rem 1rem;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700; /* Bold */
    margin-bottom: 0.5rem;
    color: #000; 
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.hero p {
    color: var(--gray-text); /* #8A7260 */
    margin-bottom: 2rem;
    font-weight: 400; /* Regular */
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.search-container {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
}

.search-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.5rem;
    width: 100%;
}

/* ... (Search styles remain same) ... */
.search-input-wrapper {
    position: relative;
    width: 100%;
}

.search-input-wrapper input {
    width: 100%;
    padding: 12px 20px 12px 40px;
    border: 1px solid #ddd;
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-text);
}

.btn-search {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-search:hover {
    background-color: #e06a25;
}

.location-snippet {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 5px;
    font-weight: 700; /* Bold as per request for title-like elements? Or Regular? Request implies "Terdekat... hitam bold". This is snippet text, usually small. */
    padding-left: 10px;
    color: #000; /* Assuming bold black for "Alamat Terdekat" as it's a label */
}

.location-icon {
    color: red;
}

/* Filters */
.filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 1rem;
}

.filter-btn {
    background-color: #fff;
    border: 1px solid #eee;
    padding: 8px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s;
    text-decoration: none;
    color: var(--text-color);
}

.filter-btn:hover, .filter-btn.active {
    border-color: var(--primary-color);
    background-color: #fff4ec;
    color: var(--primary-color);
}

.filter-btn i {
    font-size: 1rem;
}

/* Content Sections */
.section-container {
    padding: 0 5%;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 700; /* Bold */
    margin-bottom: 1.5rem;
    color: #000; /* Black */
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Modified Card Grid for Horizontal Scrolling */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.card-grid.horizontal-scroll {
    display: flex;
    overflow-x: auto;
    padding-bottom: 20px; /* Space for scrollbar */
    grid-template-columns: none; /* Override grid */
    gap: 20px;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scrollbar-width: thin;
}

.card-grid.horizontal-scroll::-webkit-scrollbar {
    height: 8px;
}

.card-grid.horizontal-scroll::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 4px;
}

.card-grid.horizontal-scroll .card {
    flex: 0 0 auto;
    width: 280px; /* Fixed width for cards in scroll view */
    margin-bottom: 5px; /* ensure shadow visibility */
}

.card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s;
    text-decoration: none; /* Remove underline from link */
    display: block; /* Ensure it behaves like a block */
    color: inherit; /* Inherit color */
}

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

.card-image {
    position: relative;
    height: 150px;
    width: 100%;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.distance-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
}

/* Contact Page Styles */
.contact-hero {
    background-color: #EFEFEF;
    padding: 4rem 1rem;
    text-align: center;
    margin-bottom: 2rem;
}

.contact-hero h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #000;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.contact-hero p {
    color: var(--gray-text); /* #8A7260 */
    line-height: 1.6;
    font-weight: 400;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.contact-info-section {
    text-align: center;
    padding: 0 5% 4rem 5%;
}

.contact-intro {
    color: var(--gray-text);
    margin-bottom: 3rem;
    font-size: 0.9rem;
    line-height: 1.6;
    font-weight: 400;
}

.contact-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.contact-card {
    background-color: #EFEFEF; /* Matches hero bg in design */
    padding: 3rem 2rem;
    border-radius: 12px;
    width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.icon-wrapper {
    margin-bottom: 1.5rem;
}

.icon-wrapper i {
    font-size: 3rem;
    color: #000;
}

.contact-card h3 {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #000;
}

.contact-card p {
    color: var(--gray-text);
    font-size: 0.9rem;
    font-weight: 400;
}

.back-link {
    color: #000;
    font-size: 1.2rem;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.card-content {
    padding: 12px;
}

.card-title {
    font-weight: 700; /* Bold */
    font-size: 1rem;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #000; /* Black */
}

.card-category {
    font-size: 0.8rem;
    color: var(--gray-text); /* #8A7260 */
    font-weight: 400; /* Regular */
}

.dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #8A7260; /* Match text or keep orange? Request implies text color of category is 8A7260. */
    border-radius: 50%;
    margin-right: 5px;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: #aaa;
    font-size: 0.8rem;
    border-top: 1px solid #eee;
    margin-top: 2rem;
}

/* About Page Styles */
.about-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3rem 10% 2rem 10%;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #000;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.about-text p {
    color: var(--gray-text); /* #8A7260 */
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-weight: 400; /* Regular */
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.about-text strong {
    font-weight: 700;
    color: #000; /* Ensure strong text is black if needed, or keep it #8A7260? Usually strong is emphasize. Let's keep it bold. request didn't specify strong color but title is black. I will assume strong might want to be black or just bold of the text color. I'll stick to bold text color for now or #000 if it was before. Previous was var(--text-color) which is #000. */
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image svg {
    width: 200px;
    height: 200px;
}

@media (max-width: 768px) {
    .about-container {
        flex-direction: column-reverse; /* Image on top on mobile if desired, or standard column */
        text-align: center;
    }
}


/* Detail Page New Design Styles */
.main-content {
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.detail-hero-image-simple {
    width: 100%;
    height: 400px; /* Taller as per design */
    overflow: hidden;
    margin-bottom: 2rem;
    border-radius: 0; /* Full width appeal, or simple rectangle as in image */
}

.detail-hero-image-simple img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid #eee; /* Separator if needed, but maybe not based on image */
    padding-bottom: 1rem;
}

.detail-header h1 {
    font-size: 2.2rem;
    font-weight: 800; /* Extra Bold */
    margin-bottom: 0.8rem;
    color: #000;
}

.description-quote {
    color: #8A7260; /* Regular 8A7260 */
    line-height: 1.6;
    font-size: 1rem;
    font-weight: 400;
    font-style: italic; /* Quote style */
}

.detail-info-grid {
    background-color: transparent; /* Clean bg */
    padding: 1rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid #eee; /* Subtle separator */
}

.info-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 2rem;
}

.info-cell {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-label {
    font-size: 0.9rem;
    color: #8A7260; /* Regular 8A7260 */
    font-weight: 400;
}

.info-value {
    font-size: 1rem;
    color: #181411; /* Regular 181411 */
    font-weight: 400;
    line-height: 1.5;
}

.gallery-section {
    margin-bottom: 4rem;
}

.gallery-title {
    font-size: 0.95rem; /* Smaller title as per image */
    color: #8A7260; /* Regular 8A7260 */
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.gallery-grid {
    display: flex; 
    gap: 20px;
    overflow-x: auto; /* Scrollable if many images */
    padding-bottom: 10px; /* Space for scrollbar */
    scrollbar-width: thin;
    scrollbar-color: #ddd transparent;
}

.gallery-grid::-webkit-scrollbar {
    height: 6px;
}

.gallery-grid::-webkit-scrollbar-thumb {
    background-color: #ddd;
    border-radius: 3px;
}

.gallery-item {
    flex: 0 0 auto; /* Don't shrink */
    width: 200px; /* Fixed width for portrait appealing */
    height: 300px;
    border-radius: 4px;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .info-row {
        grid-template-columns: 1fr; /* Stack on mobile */
        gap: 20px;
    }
    
    .detail-hero-image-simple {
        height: 250px;
    }
}

.no-data {
    color: var(--gray-text);
    font-size: 0.9rem;
    font-style: italic;
    padding: 10px 0;
}


/* Gallery Grid Update */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    padding-bottom: 0;
    overflow: visible;
}

.gallery-item {
    width: 100%;
    height: 160px; /* Square-ish */
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.gallery-item img {
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Lightbox Styles */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    user-select: none;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
    }
}

/* Improved Back Button */
.back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    color: #333;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    position: absolute; /* Position absolute relative to main-content or relative in flow but floating logic? */
    /* Let's keep it relative in flow but styled better */
    position: relative; 
    z-index: 10;
}

.back-link:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateX(-3px);
    box-shadow: 0 4px 12px rgba(242, 123, 53, 0.3);
}

/* Ensure main content has relative positioning for absolute children if needed, 
   but here we kept back-link relative. 
   Just adding a bit more spacing. 
*/
.main-content {
    position: relative;
    padding-top: 1.5rem; /* Add some top padding */
}
