/* Specific styles for the routes page, or override existing ones */
.routes-title {
    color: #fff;
    font-size: 2.5rem; /* Default for larger screens */
}

@media (max-width: 768px) {
    .routes-title {
        font-size: 2rem; /* Smaller title for tablets */
    }
}

@media (max-width: 480px) {
    .routes-title {
        font-size: 1.8rem; /* Even smaller title for phones */
    }
}

.routes-divider {
    background-color: #fff;
}

.trails-section {
    padding-top: 150px; /* Increased padding for desktop */
}

/* Responsive adjustments for smaller screens */
@media (max-width: 992px) {
    .trails-section {
        padding-top: 110px; /* Adjusted for tablets */
    }
}

@media (max-width: 768px) {
    .trails-section {
        padding-top: 90px; /* Adjusted for smaller tablets/large phones */
    }
}

@media (max-width: 480px) {
    .trails-section {
        padding-top: 90px; /* Adjusted for phones - increased */
    }
}

@media (max-width: 300px) {
    .trails-section {
        padding-top: 70px; /* Adjusted for very small phones - increased */
    }
}


/* Trails (Compass) */
.trails-section {
    background-color: #2C241B;
    color: #fff;
    padding: 80px 0 100px; /* Adjusted padding */
    position: relative;
    overflow: hidden;
}

.trails-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/cubes.png');
    opacity: 0.05;
}

/* SVG Map Background */
.map-lines {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%; /* Fluid width */
    max-width: 1600px; /* Max width */
    height: 100%; /* Fluid height */
    max-height: 1600px; /* Max height */
    opacity: 0.1;
    pointer-events: none;
}

.compass-wrapper {
    position: relative;
    width: 100%; /* Fluid width */
    max-width: 1200px; /* Max width */
    height: 800px; /* Adjusted height */
    margin: 0 auto;
}

.compass-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px; /* Adjusted size */
    height: 150px; /* Adjusted size */
    background: #C17C5C;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    box-shadow: 0 0 0 15px rgba(193, 124, 92, 0.2), 0 0 40px rgba(0,0,0,0.5); /* Adjusted shadow */
    border: 3px solid #fff; /* Adjusted border */
}

.compass-center i {
    font-size: 40px; /* Adjusted font size */
    margin-bottom: 3px; /* Adjusted margin */
    font-size: 18px; /* Adjusted font size */
}

/* Connecting Lines SVG */
.trail-connections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.trail-path {
    stroke: rgba(255, 255, 255, 0.3);
    stroke-width: 2;
    stroke-dasharray: 10, 10;
    fill: none;
}

.trail-card {
    position: absolute;
    width: 220px; /* Adjusted width */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 18px; /* Adjusted padding */
    border-radius: 10px; /* Adjusted border-radius */
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    z-index: 5;
    text-decoration: none; /* Remove underline */
    color: #fff; /* Set default text color to white */
}

.trail-card:hover {
    background: #fff;
    z-index: 20;
    border-color: #fff;
}

.trail-card:hover * {
    color: #2C241B; /* Change text color on hover */
}

.trail-card:hover .trail-icon {
    color: #C17C5C;
}

.trail-card:hover .direction-badge {
    background: #C17C5C;
    color: #fff;
}


.trail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px; /* Adjusted margin */
}

.direction-badge {
    width: 32px; /* Adjusted size */
    height: 32px; /* Adjusted size */
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 13px; /* Adjusted font size */
    transition: 0.3s;
}

.trail-icon {
    font-size: 22px; /* Adjusted font size */
    color: #C17C5C;
    transition: 0.3s;
}

.trail-name {
    font-family: 'RusticSerif', serif;
    font-size: 18px; /* Adjusted font size */
    font-weight: bold;
    margin-bottom: 4px; /* Adjusted margin */
    transition: 0.3s;
}

.trail-desc {
    font-size: 13px; /* Adjusted font size */
    color: rgba(255,255,255,0.7);
    line-height: 1.4;
    transition: 0.3s;
}

/* Compass Positions (adjusted for fluid width) */
/* Center is 50%, 50% */
/* N */ .pos-n { top: 5%; left: 50%; transform: translateX(-50%) !important; }
/* S */ .pos-s { bottom: 5%; left: 50%; transform: translateX(-50%) !important; }
/* E */ .pos-e { right: 5%; top: 50%; transform: translateY(-50%) !important; }
/* W */ .pos-w { left: 5%; top: 50%; transform: translateY(-50%) !important; }

.pos-n:hover { transform: translateX(-50%) !important; }
.pos-s:hover { transform: translateX(-50%) !important; }
.pos-e:hover { transform: translateY(-50%) !important; }
.pos-w:hover { transform: translateY(-50%) !important; }

/* NE */ .pos-ne { top: 15%; right: 10%; }
/* NW */ .pos-nw { top: 15%; left: 10%; }
/* SE */ .pos-se { bottom: 15%; right: 10%; }
/* SW */ .pos-sw { bottom: 15%; left: 10%; }

/* New responsive adjustments to maintain circular layout */
@media (max-width: 1200px) {
    .compass-wrapper {
        height: 700px;
        max-width: 1000px;
    }
    .compass-center {
        width: 130px;
        height: 130px;
    }
    .trail-card {
        width: 200px;
        padding: 15px;
    }
    .trail-name {
        font-size: 17px;
    }
    .trail-desc {
        font-size: 12px;
    }
}

@media (max-width: 992px) {
    .compass-wrapper {
        height: 600px;
        max-width: 800px;
    }
    .compass-center {
        width: 110px;
        height: 110px;
    }
    .compass-center i {
        font-size: 32px;
    }
    .compass-center span {
        font-size: 16px;
    }
    .trail-card {
        width: 180px;
        padding: 12px;
    }
    .trail-name {
        font-size: 16px;
    }
    .trail-desc {
        font-size: 11px;
    }
    .direction-badge {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    .trail-icon {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .compass-wrapper {
        height: 500px;
        max-width: 600px;
    }
    .compass-center {
        width: 90px;
        height: 90px;
    }
    .compass-center i {
        font-size: 28px;
    }
    .compass-center span {
        font-size: 14px;
    }
    .trail-card {
        width: 150px;
        padding: 10px;
    }
    .trail-name {
        font-size: 14px;
    }
    .trail-desc {
        font-size: 10px;
    }
    .direction-badge {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }
    .trail-icon {
        font-size: 18px;
    }
    /* Adjust positions for smaller circle */
    /* N */ .pos-n { top: 2%; left: 50%; transform: translateX(-50%) !important; }
    /* S */ .pos-s { bottom: 2%; left: 50%; transform: translateX(-50%) !important; }
    /* E */ .pos-e { right: 2%; top: 50%; transform: translateY(-50%) !important; }
    /* W */ .pos-w { left: 2%; top: 50%; transform: translateY(-50%) !important; }

    .pos-n:hover { transform: translateX(-50%) !important; }
    .pos-s:hover { transform: translateX(-50%) !important; }
    .pos-e:hover { transform: translateY(-50%) !important; }
    .pos-w:hover { transform: translateY(-50%) !important; }

    /* NE */ .pos-ne { top: 8%; right: 5%; }
    /* NW */ .pos-nw { top: 8%; left: 5%; }
    /* SE */ .pos-se { bottom: 8%; right: 5%; }
    /* SW */ .pos-sw { bottom: 8%; left: 5%; }
}

@media (max-width: 576px) {
    .compass-wrapper {
        height: 400px;
        max-width: 450px;
    }
    .compass-center {
        width: 70px;
        height: 70px;
    }
    .compass-center i {
        font-size: 24px;
    }
    .compass-center span {
        font-size: 12px;
    }
    .trail-card {
        width: 120px;
        padding: 8px;
    }
    .trail-name {
        font-size: 12px;
    }
    .trail-desc {
        font-size: 9px;
    }
    .direction-badge {
        width: 20px;
        height: 20px;
        font-size: 9px;
    }
    .trail-icon {
        font-size: 16px;
    }
    /* Further adjust positions for very small screens */
    /* N */ .pos-n { top: 0%; left: 50%; transform: translateX(-50%) !important; }
    /* S */ .pos-s { bottom: 0%; left: 50%; transform: translateX(-50%) !important; }
    /* E */ .pos-e { right: 0%; top: 50%; transform: translateY(-50%) !important; }
    /* W */ .pos-w { left: 0%; top: 50%; transform: translateY(-50%) !important; }

    .pos-n:hover { transform: translateX(-50%) !important; }
    .pos-s:hover { transform: translateX(-50%) !important; }
    .pos-e:hover { transform: translateY(-50%) !important; }
    .pos-w:hover { transform: translateY(-50%) !important; }

    /* NE */ .pos-ne { top: 5%; right: 2%; }
    /* NW */ .pos-nw { top: 5%; left: 2%; }
    /* SE */ .pos-se { bottom: 5%; right: 2%; }
    /* SW */ .pos-sw { bottom: 5%; left: 2%; }
}

@media (max-width: 480px) {
    .products-grid, .rooms-grid {
        grid-template-columns: 1fr; /* Stack cards on very small screens */
    }

    .product-img, .room-img-wrapper {
        height: 180px;
    }

    .compass-wrapper {
        height: 400px; /* Adjusted height for better spacing */
        max-width: 350px; /* Adjusted max-width */
    }

    .compass-center {
        width: 80px; /* Increased size */
        height: 80px; /* Increased size */
    }

    .compass-center i {
        font-size: 24px; /* Adjusted font size */
    }

    .compass-center span {
        font-size: 12px; /* Adjusted font size */
    }

    .trail-card {
        width: 100px; /* Increased width for better readability */
        padding: 6px; /* Adjusted padding */
    }

    .trail-name {
        font-size: 10px; /* Adjusted font size */
    }

    .trail-desc {
        font-size: 8px; /* Adjusted font size */
    }
    .direction-badge {
        width: 18px; /* Adjusted size */
        height: 18px; /* Adjusted size */
        font-size: 8px; /* Adjusted font size */
    }
    .trail-icon {
        font-size: 14px; /* Adjusted font size */
    }
    /* Adjust positions for very small screens to create more space and better framing */
    /* N */ .pos-n { top: 0%; left: 50%; transform: translateX(-50%) !important; } /* Moved even more to the top */
    /* S */ .pos-s { bottom: 0%; left: 50%; transform: translateX(-50%) !important; } /* Moved even more to the bottom */
    /* E */ .pos-e { right: -10%; top: 50%; transform: translateY(-50%) !important; } /* Moved even further right */
    /* W */ .pos-w { left: -10%; top: 50%; transform: translateY(-50%) !important; } /* Moved even further left */

    .pos-n:hover { transform: translateX(-50%) !important; }
    .pos-s:hover { transform: translateX(-50%) !important; }
    .pos-e:hover { transform: translateY(-50%) !important; }
    .pos-w:hover { transform: translateY(-50%) !important; }

/* NE */ .pos-ne { top: 5%; right: -10%; } /* Moved even further right and adjusted top */
/* NW */ .pos-nw { top: 5%; left: -10%; } /* Moved even further left and adjusted top */
/* SE */ .pos-se { bottom: 5%; right: -10%; } /* Moved even further right and adjusted bottom */
/* SW */ .pos-sw { bottom: 5%; left: -10%; } /* Moved even further left and adjusted bottom */
}
