/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #F8F9FA;
    color: #343A40;
    line-height: 1.6;
}

/* Color Variables */
:root {
    --red-primary: #C1121F;
    --red-dark: #A00F1C;
    --white-bg: #F8F9FA;
    --text-dark: #343A40;
    --gray-border: #CED4DA;
    --yellow-accent: #F9C74F;
    --yellow-dark: #F0B90B;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.hidden {
    display: none;
}

.text-center {
    text-align: center;
}

.cursor-pointer {
    cursor: pointer;
}

.transition {
    transition: all 0.3s ease;
}

/* Button Styles */
.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--red-primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--red-dark);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--gray-border);
    color: var(--text-dark);
}

.btn-outline:hover {
    background-color: var(--red-primary);
    color: white;
    border-color: var(--red-primary);
}

.btn-yellow {
    background-color: var(--yellow-accent);
    color: var(--text-dark);
    border: 1px solid var(--gray-border);
}

.btn-yellow:hover {
    background-color: var(--yellow-dark);
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

.btn-round {
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    padding: 0;
}

/* Navigation Styles */
.navbar {
    background-color: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-bottom: 1px solid var(--gray-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    min-height: 6rem;
}

.nav-logo img {
    height: 9rem;
    object-fit: contain;
}

.nav-menu {
    display: none;
    list-style: none;
    gap: 1rem;
}

.nav-menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white-bg);
    border-top: 1px solid var(--gray-border);
    padding: 1rem;
}

.nav-item {
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    color: var(--text-dark);
    text-decoration: none;
}

.nav-item:hover {
    color: var(--red-primary);
    background-color: var(--white-bg);
}

.nav-item.active {
    color: var(--red-primary);
    background-color: var(--white-bg);
    border-bottom: 2px solid var(--red-primary);
}

.nav-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

/* Page Styles */
.page-container {
    max-width: 64rem;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--red-primary);
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.125rem;
    color: rgba(52, 58, 64, 0.7);
}

.content-card {
    background-color: white;
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--gray-border);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.card-content {
    line-height: 1.7;
    color: rgba(52, 58, 64, 0.8);
}

.feature-grid {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-item {
    background-color: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    border: 1px solid var(--gray-border);
    text-align: center;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-description {
    color: rgba(52, 58, 64, 0.7);
    line-height: 1.6;
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.step-item {
    display: flex;
    gap: 1rem;
    align-items: start;
}

.step-number {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--red-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.step-content h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step-content p {
    color: rgba(52, 58, 64, 0.7);
    line-height: 1.6;
}

/* Home Page Specific Styles */
.hero-section {
    background-color: white;
    border-bottom: 1px solid var(--gray-border);
}

.hero-container {
    max-width: 64rem;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.hero-logo {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 2rem;
}

.hero-logo img {
    width: 10rem;
    height: 10rem;
    object-fit: contain;
}

.hero-title {
    font-size: 1.875rem;
    line-height: 1.4;
    margin-bottom: 2rem;
}

.search-container {
    position: relative;
    margin-bottom: 2rem;
}

.search-input {
    width: 100%;
    height: 3rem;
    padding: 0 1rem 0 1rem;
    border: 2px solid var(--gray-border);
    border-radius: 1.5rem;
    background-color: white;
    font-size: 1rem;
    outline: none;
}

.search-input:focus {
    border-color: var(--red-primary);
    box-shadow: 0 0 0 2px rgba(193, 18, 31, 0.2);
}

.search-btn {
    position: absolute;
    right: 0.5rem;
    top: 0.5rem;
    width: 2rem;
    height: 2rem;
    background-color: var(--red-primary);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background-color: var(--red-dark);
}

/* Map Section */
.map-section {
    max-width: 64rem;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.map-container {
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid var(--gray-border);
}

.map-header {
    padding: 1.5rem;
    background-color: var(--white-bg);
    border-bottom: 1px solid var(--gray-border);
}

.map-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.filter-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.control-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.view-toggle {
    display: flex;
    background-color: white;
    border-radius: 0.5rem;
    border: 1px solid var(--gray-border);
    overflow: hidden;
}

.view-btn {
    padding: 0.5rem 1rem;
    border: none;
    background-color: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.view-btn.active {
    background-color: var(--red-primary);
    color: white;
}

.view-btn:hover:not(.active) {
    background-color: var(--white-bg);
}

.select-container {
    position: relative;
}

.select-input {
    width: 12rem;
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    border: 1px solid var(--gray-border);
    border-radius: 0.375rem;
    background-color: white;
    appearance: none;
    cursor: pointer;
}

/* Category Filter */
.category-section {
    padding: 1rem;
    background-color: white;
    border-bottom: 1px solid var(--gray-border);
}

.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.category-title {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-scroll {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
}

.category-scroll::-webkit-scrollbar {
    display: none;
}

.category-btn {
    flex-shrink: 0;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 2px solid var(--gray-border);
    background-color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 7.5rem;
    text-align: center;
}

.category-btn.active {
    background-color: var(--red-primary);
    border-color: var(--red-primary);
    color: white;
}

.category-btn:hover:not(.active) {
    border-color: var(--red-primary);
    background-color: var(--white-bg);
}

.category-icon {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.25rem;
}

.category-name {
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.2;
}

.category-count {
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    margin-top: 0.25rem;
    display: inline-block;
}

.category-btn.active .category-count {
    background-color: rgba(255,255,255,0.2);
    color: white;
}

.category-btn:not(.active) .category-count {
    background-color: var(--white-bg);
    color: rgba(52, 58, 64, 0.7);
}

/* Map Display */
.map-display {
    height: 24rem;
    background: linear-gradient(135deg, #e8f5e8 0%, #e1f0ff 100%);
    position: relative;
    overflow: hidden;
}

.map-background {
    position: absolute;
    inset: 0;
    opacity: 0.2;
}

.map-pattern {
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(0deg, #ccc, #ccc 2px, transparent 2px, transparent 20px),
        repeating-linear-gradient(90deg, #ccc, #ccc 2px, transparent 2px, transparent 20px);
    background-size: 20px 20px;
}

.map-streets {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.street-line {
    stroke: #ccc;
    stroke-width: 2;
}

.street-line-thin {
    stroke: #ddd;
    stroke-width: 1;
}

.user-location {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
}

.user-marker {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background-color: #3b82f6;
    border: 2px solid white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    animation: pulse 2s infinite;
}

.user-ping {
    position: absolute;
    top: -0.25rem;
    left: -0.25rem;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background-color: rgba(59, 130, 246, 0.3);
    animation: ping 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes ping {
    0% { transform: scale(1); opacity: 1; }
    75%, 100% { transform: scale(2); opacity: 0; }
}

.merchant-marker {
    position: absolute;
    transform: translate(-50%, -100%);
    cursor: pointer;
    z-index: 10;
    transition: transform 0.3s ease;
}

.merchant-marker:hover {
    transform: translate(-50%, -100%) scale(1.1);
}

.marker-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
}

.marker-icon.nearby {
    background-color: var(--yellow-accent);
}

.marker-icon.regular {
    background-color: var(--red-primary);
}

.marker-icon:hover.nearby {
    background-color: var(--yellow-dark);
}

.marker-icon:hover.regular {
    background-color: var(--red-dark);
}

.marker-pin {
    position: absolute;
    bottom: -0.25rem;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 0.5rem;
    height: 0.5rem;
    background-color: inherit;
}

/* Map Controls */
.map-controls-btn {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.zoom-btn {
    width: 2.5rem;
    height: 2.5rem;
    background-color: white;
    border: 1px solid var(--gray-border);
    border-radius: 0.375rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    font-weight: bold;
}

.zoom-btn:hover {
    background-color: var(--white-bg);
}

/* Info Window */
.info-window {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    z-index: 20;
    display: none;
}

.info-window.active {
    display: block;
}

.info-card {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    max-width: 24rem;
    margin: 0 auto;
    overflow: hidden;
}

.info-header {
    position: relative;
}

.info-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 2rem;
    height: 2rem;
    background-color: rgba(0,0,0,0.5);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 30;
}

.info-close:hover {
    background-color: rgba(0,0,0,0.7);
}

.info-image {
    width: 100%;
    height: 8rem;
    object-fit: cover;
}

.info-content {
    padding: 1rem;
}

.info-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: start;
    justify-content: space-between;
}

.info-badges {
    display: flex;
    gap: 0.25rem;
    margin-left: 0.5rem;
}

.badge {
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: 500;
}

.badge-qris {
    background-color: var(--red-primary);
    color: white;
}

.badge-nearby {
    background-color: var(--yellow-accent);
    color: var(--text-dark);
}

.badge-outline {
    border: 1px solid var(--gray-border);
    background-color: transparent;
    color: var(--text-dark);
}

.rating-container {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.stars {
    display: flex;
    gap: 0.125rem;
    margin-right: 0.75rem;
}

.star {
    color: #d1d5db;
    font-size: 0.875rem;
}

.star.filled {
    color: var(--yellow-accent);
}

.rating-text {
    font-size: 0.875rem;
    color: rgba(52, 58, 64, 0.7);
    margin-left: 0.25rem;
}

.info-address {
    font-size: 0.875rem;
    color: rgba(52, 58, 64, 0.8);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.info-description {
    font-size: 0.875rem;
    color: rgba(52, 58, 64, 0.7);
    margin-bottom: 0.75rem;
}

.info-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: rgba(52, 58, 64, 0.7);
    margin-bottom: 0.75rem;
}

.info-distance {
    font-size: 0.75rem;
    color: var(--yellow-accent);
    margin-bottom: 0.75rem;
}

.info-actions {
    display: flex;
    gap: 0.5rem;
}

.info-actions .btn {
    flex: 1;
    font-size: 0.75rem;
}

/* Legend */
.map-legend {
    padding: 1rem;
    background-color: var(--white-bg);
    border-top: 1px solid var(--gray-border);
}

.legend-items {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 0.875rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-dot {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    border: 1px solid white;
}

.legend-qris {
    background-color: var(--red-primary);
}

.legend-nearby {
    background-color: var(--yellow-accent);
}

.legend-user {
    background-color: #3b82f6;
}

.legend-text {
    color: var(--text-dark);
}

.legend-note {
    color: rgba(52, 58, 64, 0.7);
}

/* Merchant List */
.merchant-list {
    padding: 1.5rem;
    max-height: 24rem;
    overflow-y: auto;
}

.merchant-item {
    border: 1px solid var(--gray-border);
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: box-shadow 0.3s ease;
}

.merchant-item:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.merchant-content {
    display: flex;
    flex-direction: column;
}

.merchant-image {
    width: 100%;
    height: 12rem;
    object-fit: cover;
}

.merchant-info {
    padding: 1rem;
    flex: 1;
}

.merchant-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.merchant-name {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.3;
    flex: 1;
}

.merchant-rating {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.merchant-address {
    font-size: 0.875rem;
    color: rgba(52, 58, 64, 0.8);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.merchant-description {
    font-size: 0.875rem;
    color: rgba(52, 58, 64, 0.7);
    margin-bottom: 0.75rem;
}

.merchant-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: rgba(52, 58, 64, 0.7);
    margin-bottom: 0.75rem;
}

.merchant-actions {
    border-top: 1px solid var(--gray-border);
    padding: 0.75rem 1rem 0;
    margin-top: 0.75rem;
    display: none;
}

.merchant-actions.active {
    display: block;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.toggle-btn {
    width: 100%;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--red-primary);
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem 0;
}

.toggle-btn:hover {
    color: var(--red-dark);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 3rem;
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.no-results-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.no-results-text {
    color: rgba(52, 58, 64, 0.7);
}

/* QRIS Indicator */
.qris-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    font-weight: 500;
}

/* Announcements Section */
.announcements-section {
    max-width: 64rem;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.announcements-container {
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--gray-border);
    overflow: hidden;
}

.announcements-header {
    background-color: var(--red-primary);
    padding: 1.5rem;
    color: white;
}

.announcements-title {
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.announcements-subtitle {
    color: rgba(255,255,255,0.9);
}

.announcements-content {
    padding: 1.5rem;
}

.announcements-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.announcement-item {
    border: 1px solid var(--gray-border);
    border-radius: 0.5rem;
    padding: 1.5rem;
    transition: box-shadow 0.3s ease;
}

.announcement-item:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.announcement-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.announcement-header {
    display: flex;
    align-items: start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.announcement-title {
    font-size: 1.125rem;
    font-weight: 600;
    flex: 1;
}

.announcement-description {
    color: rgba(52, 58, 64, 0.8);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.announcement-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.875rem;
    color: rgba(52, 58, 64, 0.7);
}

.announcement-detail {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.announcement-footer {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: start;
}

.announcement-type {
    width: fit-content;
}

.view-all-btn {
    margin-top: 1rem;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 50;
    padding: 1rem;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background-color: white;
    max-width: 32rem;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 0.5rem;
}

.modal-header {
    background-color: var(--red-primary);
    padding: 1.5rem;
    color: white;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2rem;
    height: 2rem;
    background-color: rgba(255,255,255,0.2);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background-color: rgba(255,255,255,0.3);
}

.modal-title-container {
    display: flex;
    align-items: start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
    flex: 1;
}

.modal-date-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: rgba(255,255,255,0.9);
}

.modal-date-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.modal-organizer {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: rgba(52, 58, 64, 0.7);
}

.modal-sections {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal-section h3 {
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.modal-section p {
    color: rgba(52, 58, 64, 0.8);
    line-height: 1.6;
}

.modal-list {
    list-style: disc;
    margin-left: 1.25rem;
    color: rgba(52, 58, 64, 0.8);
}

.modal-list li {
    margin-bottom: 0.25rem;
}

.modal-contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-border);
}

/* Footer */
.footer {
    background-color: var(--text-dark);
    color: white;
    padding: 3rem 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--yellow-accent);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section h4 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.footer-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-link {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    padding: 0;
    font-size: inherit;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--yellow-accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255,255,255,0.6);
}

/* Responsive Design */
@media (min-width: 640px) {
    .hero-title {
        font-size: 2.25rem;
    }

    .merchant-content {
        flex-direction: row;
    }

    .merchant-image {
        width: 12rem;
        height: 8rem;
    }

    .announcement-content {
        flex-direction: row;
        align-items: start;
    }

    .announcement-footer {
        margin-left: 1rem;
        align-items: end;
    }

    .modal-actions {
        flex-direction: row;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .nav-menu {
        display: flex;
        position: static;
        flex-direction: row;
        background-color: transparent;
        border: none;
        padding: 0;
        width: auto;
    }

    .nav-toggle {
        display: none;
    }

    .map-controls {
        flex-direction: row;
        align-items: center;
    }

    .control-buttons {
        margin-left: auto;
    }

    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .hero-container {
        padding: 3rem 1.5rem;
    }

    .map-section {
        padding: 3rem 1.5rem;
    }

    .announcements-section {
        padding: 3rem 1.5rem;
    }

    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Info Window Styles */
.info-window {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 400px;
  background-color: white;
  border-radius: 1rem;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  padding: 1.25rem;
  z-index: 9999;
}

.info-window-content {
  position: relative;
}

.close-btn {
  position: absolute;
  top: 0.25rem;
  right: 0.5rem;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #888;
}

.info-image {
  width: 100%;
  border-radius: 0.5rem;
  object-fit: cover;
  margin-bottom: 0.75rem;
}

.info-name {
  margin: 0.5rem 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.info-badges, .info-stars, .info-category, .info-address, .info-description, .info-subdistrict, .info-hours, .info-distance {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.info-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

/* Rapatkan popup info */
.info-window p:empty,
.info-badges:empty,
.info-stars:empty,
.info-category:empty,
.info-subdistrict:empty,
.info-hours:empty,
.info-distance:empty {
  display: none;
  margin: 0;
  padding: 0;
}

/* Rapatkan antar elemen */
.info-window p {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Atur ukuran gambar agar tidak terlalu tinggi */
.info-image {
  max-height: 180px;
  object-fit: cover;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #F8F9FA;
    color: #343A40;
    line-height: 1.6;
}

/* Color Variables */
:root {
    --red-primary: #C1121F;
    --red-dark: #A00F1C;
    --white-bg: #F8F9FA;
    --text-dark: #343A40;
    --gray-border: #CED4DA;
    --yellow-accent: #F9C74F;
    --yellow-dark: #F0B90B;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.text-center {
    text-align: center;
}

/* Navigation Styles */
.navbar {
    background-color: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-bottom: 1px solid var(--gray-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    min-height: 6rem;
}

.nav-logo img {
    height: 4rem;
    object-fit: contain;
}

.nav-menu {
    display: none;
    list-style: none;
    gap: 1rem;
}

.nav-menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white-bg);
    border-top: 1px solid var(--gray-border);
    padding: 1rem;
}

.nav-item {
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    color: var(--text-dark);
    text-decoration: none;
    display: block;
}

.nav-item:hover {
    color: var(--red-primary);
    background-color: var(--white-bg);
}

.nav-item.active {
    color: var(--red-primary);
    background-color: var(--white-bg);
    border-bottom: 2px solid var(--red-primary);
}

.nav-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

/* About Page Specific Styles */

/* Hero About Section */
.hero-about-section {
    background: linear-gradient(135deg, var(--red-primary) 0%, var(--red-dark) 100%);
    color: white;
    padding: 4rem 0;
}

.hero-about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero-about-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-about-subtitle {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.9);
    max-width: 48rem;
    margin: 0 auto;
    line-height: 1.6;
}

/* Vision & Mission Section */
.vision-mission-section {
    background-color: white;
    padding: 4rem 0;
}

.vision-mission-grid {
    display: grid;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.vision-card, .mission-card {
    background-color: var(--white-bg);
    border: 1px solid var(--gray-border);
    border-radius: 0.5rem;
    padding: 2rem;
    transition: box-shadow 0.3s ease;
}

.vision-card:hover, .mission-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.icon-container {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 2rem;
    flex-shrink: 0;
}

.icon-yellow {
    background-color: var(--yellow-accent);
    color: var(--text-dark);
}

.icon-red {
    background-color: var(--red-primary);
    color: white;
}

.card-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.card-description {
    font-size: 1rem;
    color: rgba(52, 58, 64, 0.8);
    line-height: 1.7;
}

.mission-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mission-item {
    display: flex;
    align-items: start;
    gap: 0.75rem;
}

.mission-dot {
    width: 0.5rem;
    height: 0.5rem;
    background-color: var(--yellow-accent);
    border-radius: 50%;
    margin-top: 0.5rem;
    flex-shrink: 0;
}

.mission-item p {
    color: rgba(52, 58, 64, 0.8);
    line-height: 1.6;
    margin: 0;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: rgba(52, 58, 64, 0.7);
    max-width: 48rem;
    margin: 0 auto;
}

/* Empowering Section */
.empowering-section {
    background-color: var(--white-bg);
    padding: 4rem 0;
}

.empowering-grid {
    display: grid;
    gap: 2rem;
    align-items: center;
    margin-bottom: 4rem;
}

.empowering-image img {
    width: 100%;
    height: 20rem;
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.empowering-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.empowering-description {
    color: rgba(52, 58, 64, 0.8);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.empowering-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.empowering-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.empowering-feature-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.empowering-feature-content h4 {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.empowering-feature-content p {
    color: rgba(52, 58, 64, 0.7);
    font-size: 0.875rem;
    margin: 0;
}

/* Statistics Grid */
.stats-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

.stat-card {
    background-color: white;
    border: 1px solid var(--gray-border);
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    transition: box-shadow 0.3s ease;
}

.stat-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--red-primary);
    margin-bottom: 0.5rem;
}

.stat-description {
    color: rgba(52, 58, 64, 0.7);
    margin: 0;
}

/* Revolution Section */
.revolution-section {
    background-color: white;
    padding: 4rem 0;
}

.revolution-grid {
    display: grid;
    gap: 2rem;
    align-items: center;
}

.revolution-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.revolution-description {
    color: rgba(52, 58, 64, 0.8);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.revolution-stats {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

.revolution-stat-card {
    background-color: var(--white-bg);
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid var(--gray-border);
}

.revolution-stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--red-primary);
    margin-bottom: 0.5rem;
}

.revolution-stat-description {
    color: rgba(52, 58, 64, 0.7);
    font-size: 0.875rem;
    margin: 0;
}

.revolution-image img {
    width: 100%;
    height: 20rem;
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Community Section */
.community-section {
    background-color: var(--white-bg);
    padding: 4rem 0;
}

.community-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 4rem;
    grid-template-columns: 1fr;
}

.community-service-card {
    background-color: white;
    border: 1px solid var(--gray-border);
    border-radius: 0.5rem;
    padding: 1.5rem;
    transition: box-shadow 0.3s ease;
}

.community-service-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.community-service-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

.community-service-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.community-service-description {
    color: rgba(52, 58, 64, 0.7);
    line-height: 1.6;
    margin: 0;
}

.community-impact {
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-top: 4rem;
}

.community-impact h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 2rem;
}

.community-stats-grid {
    display: grid;
    gap: 2rem;
    text-align: center;
    grid-template-columns: 1fr;
}

.community-stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--red-primary);
    margin-bottom: 0.5rem;
}

.community-stat-description {
    color: rgba(52, 58, 64, 0.7);
    margin: 0;
}

/* Call to Action Section */
.cta-section {
    background-color: var(--red-primary);
    padding: 4rem 0;
}

.cta-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.cta-container h2 {
    font-size: 2rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
}

.cta-container p {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.btn-cta-primary {
    background-color: var(--yellow-accent);
    color: var(--text-dark);
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-cta-primary:hover {
    background-color: var(--yellow-dark);
}

.btn-cta-secondary {
    border: 2px solid white;
    color: white;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-cta-secondary:hover {
    background-color: white;
    color: var(--red-primary);
}

/* Footer */
.footer {
    background-color: var(--text-dark);
    color: white;
    padding: 3rem 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
    grid-template-columns: 1fr;
}

.footer-section h3 {
    color: var(--yellow-accent);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section h4 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.footer-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-link {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    padding: 0;
    font-size: inherit;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--yellow-accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255,255,255,0.6);
}

/* Responsive Design */
@media (min-width: 640px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .revolution-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .community-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-buttons {
        flex-direction: row;
    }

    .hero-about-title {
        font-size: 2.5rem;
    }
}

@media (min-width: 768px) {
    .nav-menu {
        display: flex;
        position: static;
        flex-direction: row;
        background-color: transparent;
        border: none;
        padding: 0;
        width: auto;
    }

    .nav-toggle {
        display: none;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .vision-mission-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }

    .empowering-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }

    .revolution-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }

    .community-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .community-stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .hero-about-title {
        font-size: 3rem;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .community-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .cta-container h2 {
        font-size: 2.5rem;
    }
}

/* Home Page Styles (simplified for compatibility) */
.hero-section {
    background-color: white;
    border-bottom: 1px solid var(--gray-border);
}

.hero-container {
    max-width: 64rem;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.hero-logo {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 2rem;
}

.hero-logo img {
    width: 10rem;
    height: 10rem;
    object-fit: contain;
}

.hero-title {
    font-size: 1.875rem;
    line-height: 1.4;
    margin-bottom: 2rem;
}

.search-container {
    position: relative;
    margin-bottom: 2rem;
}

.search-input {
    width: 100%;
    height: 3rem;
    padding: 0 1rem 0 1rem;
    border: 2px solid var(--gray-border);
    border-radius: 1.5rem;
    background-color: white;
    font-size: 1rem;
    outline: none;
}

.search-input:focus {
    border-color: var(--red-primary);
    box-shadow: 0 0 0 2px rgba(193, 18, 31, 0.2);
}

.search-btn {
    position: absolute;
    right: 0.5rem;
    top: 0.5rem;
    width: 2rem;
    height: 2rem;
    background-color: var(--red-primary);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background-color: var(--red-dark);
}

/* Additional utility classes for content cards */
.content-card {
    background-color: white;
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--gray-border);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.card-content {
    line-height: 1.7;
    color: rgba(52, 58, 64, 0.8);
}

.feature-grid {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-item {
    background-color: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    border: 1px solid var(--gray-border);
    text-align: center;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-description {
    color: rgba(52, 58, 64, 0.7);
    line-height: 1.6;
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.step-item {
    display: flex;
    gap: 1rem;
    align-items: start;
}

.step-number {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--red-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.step-content h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step-content p {
    color: rgba(52, 58, 64, 0.7);
    line-height: 1.6;
}

@media (min-width: 640px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}