/* Station Landing Page Styles - RTL Support */

/* Base Styles */
.station-landing-container {
    direction: rtl;
    font-family: 'Assistant', 'Arial', sans-serif;
    background-color: #f5f5f5;
    padding-bottom: 15px;
    border-radius: 8px;
}



.station-address {
    display: flex;
    align-items: center;
    font-size: 1.1em;
    color: #e8f4f8;
    margin-bottom: 15px;
}

.station-address .icon-location::before {
    content: "📍";
    margin-left: 8px;
    font-size: 1.2em;
}

/* Address with Navigation Icons */
.address-with-navigation {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.address-navigation-icons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
}

.nav-icon:hover {
    transform: scale(1.1);
    text-decoration: none;
}

.waze-icon {
    background-color: #33ccff;
    color: white;
}

.waze-icon:hover {
    background-color: #1ab8e8;
    color: white;
}

.maps-icon {
    background-color: #4285f4;
    color: white;
}

.maps-icon:hover {
    background-color: #3367d6;
    color: white;
}

.nav-icon .icon-waze::before {
    content: "";
    display: block;
    width: 20px;
    height: 20px;
    background-image: url('/Images/Waze.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.nav-icon .icon-maps::before {
    content: "";
    display: block;
    width: 20px;
    height: 20px;
    background-image: url('/Images/google-maps.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Station Details Inline */
.station-details-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.station-details-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

    .station-details-inline .detail-item {
        padding: 5px 10px;
        border-radius: 10px;
        font-size: 0.9em;
        color: #fff;
        background: #5a7481;
    }


.station-details-inline .detail-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

/* Status Indicator */
.station-status {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.status-indicator {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin-left: 10px;
    position: relative;
    animation: pulse 2s infinite;
}

.status-indicator.open {
    background-color: #28a745;
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.5);
}

.status-indicator.closed {
    background-color: #dc3545;
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.5);
}

.status-text {
    font-weight: 600;
    font-size: 1.1em;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Main Content */
.station-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Info Cards */
.info-card {
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.info-card h2 {
    color: #4e636d;
    font-size: 1.5em;
    font-weight: 600;
    margin: 0 0 10px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

/* Station Details Grid */
.details-grid {
    display: grid;
    gap: 15px;
}


.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: #6c757d;
    flex: 0 0 40%;
}

.detail-value {
    color: #495057;
    text-align: left;
    flex: 1;
}

.accessibility-yes {
    color: #28a745;
    font-weight: 600;
}

/* Operating Hours Table */
.operating-hours-table {
    width: 100%;
}

.hours-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.hours-table th {
    background-color: #4e636d;
    color: white;
    padding: 10px;
    text-align: center;
    font-weight: 600;
}

.hours-table td {
    padding: 6px;
    border-bottom: 1px solid #e9ecef;
    text-align: center;
}

.day-row.current-day {
    background-color: #fff3cd;
    border-right: 4px solid #ffc107;
}

.day-row.current-day .day-name {
    font-weight: 700;
    color: #856404;
}

.hours.closed {
    color: #dc3545;
    font-weight: 600;
}

.today-note {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 0.95em;
}

.today-note.open {
    background-color: #d4edda;
    color: #155724;
    border-right: 4px solid #28a745;
}

.today-note.closed {
    background-color: #f8d7da;
    color: #721c24;
    border-right: 4px solid #dc3545;
}

/* Location & Navigation */
.location-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.address-info p {
    margin: 8px 0;
    color: #495057;
}

.navigation-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.waze-button,
.maps-button {
    display: inline-flex;
    align-items: center;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 140px;
    justify-content: center;
}

.waze-button {
    background-color: #33ccff;
    color: white;
}

.waze-button:hover {
    background-color: #1ab8e8;
    color: white;
    text-decoration: none;
}

.maps-button {
    background-color: #4285f4;
    color: white;
}

.maps-button:hover {
    background-color: #3367d6;
    color: white;
    text-decoration: none;
}

.waze-button .icon-waze::before {
    content: "🚗";
    margin-left: 8px;
}

.maps-button .icon-maps::before {
    content: "🗺️";
    margin-left: 8px;
}

/* Additional Information */
.info-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    padding: 12px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-right: 4px solid #17a2b8;
}

.info-item i {
    margin-left: 12px;
    color: #17a2b8;
    font-size: 1.2em;
    margin-top: 2px;
}

.info-item .icon-info::before { content: "ℹ️"; }
.info-item .icon-id::before { content: "🆔"; }
.info-item .icon-sms::before { content: "📱"; }
.info-item .icon-parking::before { content: "🅿️"; }

/* Responsive Design */
@media (max-width: 768px) {
    .address-navigation-icons {
        align-self: flex-start;
    }
    
    .station-details-inline {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .station-content {
        grid-template-columns: 1fr;
        padding: 0 15px;
        gap: 20px;
    }
    
    .info-card {
        padding: 10px 15px;
    }

    
    .detail-label {
        flex: none;
    }
    
    .detail-value {
        text-align: right;
    }
    
    .navigation-buttons {
        flex-direction: column;
    }
    
    .waze-button,
    .maps-button {
        flex: none;
        min-width: auto;
    }
    
    .hours-table th,
    .hours-table td {
        padding: 8px 4px;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {

    .station-address {
        font-size: 1em;
    }

    .address-with-navigation {
        gap: 8px;
    }

    .nav-icon {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .nav-icon .icon-waze::before,
    .nav-icon .icon-maps::before {
        width: 16px;
        height: 16px;
    }
    
    .station-details-inline {
        gap: 8px;
    }
    
    .info-card h2 {
        font-size: 1.3em;
    }
    
    .hours-table {
        font-size: 0.85em;
    }
    
    .today-note {
        font-size: 0.85em;
        padding: 12px;
    }
}

/* Print Styles */
@media print {
    .station-landing-container {
        background-color: white;
        padding: 0;
    }
    
    
    .info-card {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
        margin-bottom: 20px;
    }
    
    .navigation-buttons {
        display: none;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .info-card {
        border: 2px solid #000;
    }
    
    .status-indicator.open {
        background-color: #00ff00;
    }
    
    .status-indicator.closed {
        background-color: #ff0000;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .status-indicator {
        animation: none;
    }
    
    .info-card {
        transition: none;
    }
    
    .waze-button,
    .maps-button {
        transition: none;
    }
}

.station-header {
    background: #4e636d36;
    padding: 10px;
    border-radius: 6px;
    font-family: Arial, sans-serif;
    margin-bottom: 10px;
}

    .station-header h1,
    .station-header span {
        margin: 0 0 8px 0;
        display: block;
    }

/* החלק של הפרטים בשורה אחת */
.station-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.station-details {
    display: flex;
    gap: 8px;
    overflow-x: auto; /* אם לא נכנס במסך קטן תהיה גלילה אופקית */
}

.station-header .detail-item {
    background: rgba(0,0,0,0.05);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9em;
    white-space: nowrap; /* מונע ירידת שורה בתוך הפריט */
    text-wrap:auto;
}
