.activity-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
}

.activity-launch-card {
    background-position: center;
    background-size: cover;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    height: 240px;
    display: flex;
    align-items: flex-end;
}

.activity-launch-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom,
        rgba(0,0,0,0.1) 0%,
        rgba(0,0,0,0.3) 30%,
        rgba(0,0,0,0.7) 100%);
    transition: opacity 0.3s;
}

.activity-launch-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.activity-launch-card:hover:before {
    background: linear-gradient(to bottom,
        rgba(0,0,0,0.2) 0%,
        rgba(0,0,0,0.4) 30%,
        rgba(0,0,0,0.8) 100%);
}

.activity-launch-card .card-content {
    position: relative;
    padding: 1rem;
    color: white;
    z-index: 1;
    max-width: 100%;
}

.activity-launch-card h3 {
    color: white;
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.activity-launch-card p {
    color: #ffffff;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    opacity: 0.9;
    font-size: 0.9rem;
}

.activity-launch-card .view-more {
    color: #ffffff;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    transition: opacity 0.2s;
}

.activity-launch-card .view-more:hover {
    opacity: 0.8;
}

/* Modal Styles */
.activity-modal {
    position: fixed;
    top: 5vh;
    left: 5vw;
    right: 5vw;
    bottom: 5vh;
    background: white;
    z-index: 1001;
    overflow-y: auto;
    border-radius: 12px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
}

.activity-modal.active {
    opacity: 1;
    transform: translateY(0);
}

.modal-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    pointer-events: none;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: auto;
}

.modal-backdrop.active {
    opacity: 1;
}

.activity-modal {
    position: fixed;
    top: 5vh;
    left: 5vw;
    right: 5vw;
    bottom: 5vh;
    background: white;
    border-radius: 12px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    overflow-y: auto;
    pointer-events: auto;
}

.activity-modal.active {
    opacity: 1;
    transform: translateY(0);
}

.modal-content {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.area-guide-modal .modal-content {
    max-width: 1400px;
    padding: 2.5rem 2.5rem 2rem;
}

.area-guide-modal .modal-header-image {
    width: 100%;
    height: 300px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.area-guide-modal .modal-header-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom,
        rgba(0,0,0,0.3) 0%,
        rgba(0,0,0,0.5) 30%,
        rgba(0,0,0,0.7) 100%);
    border-radius: 12px;
}

.area-guide-modal .modal-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white !important;
    padding: 2rem;
    max-width: 800px;
}

.area-guide-modal .modal-header-content h2 {
    color: white !important;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.area-guide-modal .modal-header-content .modal-subtitle {
    color: rgba(255,255,255,0.9) !important;
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.area-guide-modal-body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.area-guide-modal-body .info-group {
    background: #f8f8f5;
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
}

.area-guide-modal-body .info-group h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

.area-guide-modal-body .info-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.75rem;
}

.area-guide-modal-body .info-group li {
    line-height: 1.6;
    color: #463f3a;
    font-size: 0.98rem;
}

.area-guide-modal-body .info-group li a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.area-guide-modal-body .info-group li a:hover {
    text-decoration: underline;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 1;
}

.modal-close:hover {
    background-color: rgba(0,0,0,0.1);
    color: #333;
    transform: scale(1.1);
}

.modal-header {
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.modal-header-image {
    width: 100%;
    height: 300px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-header-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom,
        rgba(0,0,0,0.3) 0%,
        rgba(0,0,0,0.5) 30%,
        rgba(0,0,0,0.7) 100%);
    border-radius: 12px;
}

.modal-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white !important;
    padding: 2rem;
    max-width: 800px;
}

.modal-header-content h2 {
    color: white !important;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.modal-header-content .modal-subtitle {
    color: rgba(255,255,255,0.9) !important;
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

@media (max-width: 640px) {
    .area-guide-modal .modal-content {
        padding: 2rem 1.5rem 1.5rem;
    }

    .area-guide-modal-body {
        grid-template-columns: 1fr;
    }

.area-guide-modal-body .info-group {
padding: 1.25rem;
}
}

.activity-category {
margin-bottom: 3rem;
}

.activity-category h3 {
color: var(--primary-color);
font-size: 1.8rem;
margin-bottom: 1.5rem;
border-bottom: 2px solid var(--accent-color);
padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

.activity-details {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.detail-card {
    background: #f8f8f8;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #e0e0e0;
    transition: transform 0.2s, box-shadow 0.2s;
}

.detail-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.detail-card h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.item-description {
    color: #555;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.detail-card ul {
    list-style: none;
    padding: 0;
}

.detail-card li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
    color: #666;
}

.detail-card li:before {
    content: "•";
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-size: 1.2em;
}

@media (max-width: 768px) {
    .activity-modal {
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: 0;
    }

    .activity-details {
        grid-template-columns: 1fr;
    }

    .modal-header h2 {
        font-size: 2rem;
    }

    .modal-content {
        padding: 1rem;
    }
}

.activity-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.detail-card {
    background: #f8f8f8;
    border-radius: 8px;
    padding: 1.5rem;
}

.detail-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.detail-card ul {
    list-style: none;
    padding: 0;
}

.detail-card li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.detail-card li:before {
    content: "•";
    color: var(--accent-color);
    position: absolute;
    left: 0;
}

/* Image Gallery in Modal */
.activity-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.activity-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}

.activity-gallery img:hover {
    transform: scale(1.05);
}

/* Map Container */
.map-container {
    height: 400px;
    margin: 2rem 0;
    border-radius: 8px;
    overflow: hidden;
}

/* Responsive Design */
@media (max-width: 768px) {
    .activity-cards {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 1rem;
        padding: 1rem;
    }
    
    .activity-gallery {
        grid-template-columns: 1fr;
    }
}