/* hotel-selection.css - Hotel selection styling */

/* Content containers for hotel options */
.hotel-options {
    display: flex;
    flex-direction: column;
    border-radius: 5px;
    gap: 5px;
    margin-top: 10px;
    width: 100%;
}

/* Hotel option containers - matching ticket styling */
.hotel-option {
    background-color: #ffffff !important;
    padding: 15px;
    color: #091924;
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-family: 'Barlow' !important;
    position: relative;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

/* Hover effects matching tickets */
.hotel-option:hover {
    border: 2px solid rgba(8, 96, 95, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Selected state styling matching tickets */
.hotel-option.selected {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1) !important;
    border: 2px solid #08605F !important;
    transform: translateY(-1px);
    background-color: #ffffff !important;
}

/* Ensure background stays white for all states */
.hotel-option,
.hotel-option:hover,
.hotel-option.selected,
.hotel-option.included {
    background-color: #ffffff !important;
}

.hotel-image img {
    width: 272px;
    height: 182px;
    object-fit: cover;
    border-radius: 4px;
}

/* Ensure images don't interfere with clicks */
.hotel-image {
    pointer-events: none;
    flex-shrink: 0;
    cursor: pointer;
    position: relative;
}

/* Hotel image cursor pointer and camera icon */
.hotel-image {
    cursor: pointer;
    position: relative;
    pointer-events: auto;
}

.hotel-image::after {
    content: "📷";
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px;
    border-radius: 50%;
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hotel-image:hover::after {
    opacity: 1;
}

/* Hotel details styling */
.hotel-details {
    display: flex;
    flex-direction: column;
    flex: 1;
    font-family: 'Barlow' !important;
}

.hotel-details h3 {
    margin-top: 0 !important;
    margin-bottom: 15px !important;
    font-size: 20px !important; /* Øget fra 18px */
    color: #091924 !important;
    font-weight: 800 !important;
    text-align: left !important;
    padding-right: 10px !important;
    padding-left: 20px !important; /* Samme alignment som listen */
    line-height: 1.2 !important;
    font-family: 'Barlow' !important;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.hotel-rating-stars {
    font-size: 14px;
    color: #ffc107;
    line-height: 1;
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 2px;
}

.hotel-rating-stars svg {
    width: 13px;
    height: 12px;
    display: inline-block;
}

.hotel-details ul {
    margin: 10px 0;
    padding-left: 20px;
    font-family: 'Barlow' !important;
    text-align: left;
    line-height: 1.4;
}

.hotel-details li {
    margin-bottom: 5px;
    line-height: 1.4;
    font-family: 'Barlow' !important;
}

/* Remove old hotel actions and buttons */
.hotel-actions {
    display: none;
}

.hotel-option .select-hotel {
    display: none;
}

.ticket-actions {
    display: none;
}

/* Hide old checkbox system */
.selection-checkbox {
    display: none;
}

/* UPDATED: Price display section matching tickets exactly */
.ticket-price-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-left: 20px;
    flex-shrink: 0;
    min-width: 140px;
    position: relative;
}

.price-display {
    text-align: center;
    font-family: 'Barlow' !important;
    font-size: 14px;
    font-weight: 600;
    color:rgba(0, 0, 0, 0.7)
}

/* Price tags matching ticket styling - exact copy from tickets */


/* Better price tag styling for selected state matching tickets */
.hotel-option.selected .price-tag,
.hotel-option.selected .included-tag {
    background-color: #08605F;
    color: #ffffff;
}

/* NEW: Selection indicator matching tickets */
.selection-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 12px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.hotel-option:hover .selection-indicator {
    opacity: 1;
}

.hotel-option.selected .selection-indicator {
    opacity: 1;
}

.selection-indicator .select-text {
    display: none;
}

.hotel-option.selected .selection-indicator .select-text {
    color: #08605F;
}

.selection-indicator .select-icon {
    width: 20px;
    height: 20px;
    border: 2px solid #08605F;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    background-color: #ffffff;
}

.hotel-option.selected .selection-indicator .select-icon {
    background-color: #08605F;
    color: #ffffff;
}

.selection-indicator .select-icon::after {
    content: "✓";
    font-size: 12px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.hotel-option.selected .selection-indicator .select-icon::after {
    opacity: 1;
}

/* Animation for selection confirmation */
.selection-confirmed {
    animation: confirmPulse 0.3s ease-out;
}

@keyframes confirmPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* Focus styles for accessibility */
.hotel-option:focus {
    outline: 3px solid rgba(8, 96, 95, 0.3);
    outline-offset: 2px;
}

.hotel-option:active {
    transform: scale(0.98);
}

/* Hotel rating display */
.hotel-rating {
    display: flex;
    align-items: center;
    margin: 5px 0;
    font-family: 'Barlow' !important;
}

.hotel-rating .stars {
    color: #ffc107;
    margin-right: 5px;
    font-size: 16px;
}

.hotel-rating .rating-text {
    font-size: 14px;
    color: #666;
}

/* Hotel features styling - removed read more/less functionality */
.hotel-features {
    margin-bottom: 10px;
    padding-left: 20px;
    list-style-type: disc;
    font-family: 'Barlow';
    margin-left: 0; /* Fjern ekstra margin */
}

.hotel-features li {
    margin-bottom: 5px;
    line-height: 1.4;
    font-family: 'Barlow' !important;
}

.read-more-link {
    display: none;
}
/*
.read-more-link {
    color: #08605F;
    background: none;
    font-family: 'Barlow' !important;
    border: none;
    text-transform: uppercase;
    padding: 5px 10px;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    margin: 10px 0;
    text-align: left;
    width: auto;
    z-index: 5;
    position: relative;
    pointer-events: auto;
    transition: all 0.2s ease;
}

.read-more-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    transform: translateY(-1px);
}

.read-more-link:visited {
    color: #08605F;
}
*/
/* Hotel amenities icons */
.hotel-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0;
}

.amenity-icon {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 5px 8px;
    font-size: 12px;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 3px;
}

/* Hotel location info */
.hotel-location {
    background-color: rgba(8, 96, 95, 0.1);
    border-radius: 4px;
    padding: 8px 12px;
    margin: 8px 0;
    font-size: 13px;
    color: #08605F;
    font-weight: 500;
}

/* Hotel price breakdown */
.hotel-price-breakdown {
    background-color: #f8f9fa;
    border-radius: 4px;
    padding: 10px;
    margin: 10px 0;
    font-size: 13px;
}

.hotel-price-breakdown .price-line {
    display: flex;
    justify-content: space-between;
    margin: 2px 0;
}

.hotel-price-breakdown .total-line {
    border-top: 1px solid #dee2e6;
    padding-top: 5px;
    margin-top: 5px;
    font-weight: bold;
}

/* Hotel Image Modal */
.hotel-image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    animation: modalFadeIn 0.3s ease-out;
}

.hotel-image-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

.modal-header {
    padding: 20px;
    background: linear-gradient(135deg, #08605F 0%, #0a706f 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    font-family: 'Barlow';
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-rating-stars {
    display: flex;
    align-items: center;
    gap: 2px;
}

.modal-rating-stars svg {
    width: 11px;
    height: 10px;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.modal-body {
    position: relative;
    padding: 0;
    background: #f8f9fa;
}

.image-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    max-height: 70vh;
    overflow: hidden;
}

.modal-image {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.image-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(8, 96, 95, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.2s ease;
    z-index: 10;
}

.image-navigation:hover {
    background: rgba(8, 96, 95, 1);
    transform: translateY(-50%) scale(1.1);
}

.image-navigation.prev {
    left: 20px;
}

.image-navigation.next {
    right: 20px;
}

.image-navigation:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.image-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-family: 'Barlow';
}

.image-thumbnails {
    padding: 20px;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    background: white;
}

.thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.thumbnail:hover {
    border-color: #08605F;
    transform: scale(1.05);
}

.thumbnail.active {
    border-color: #08605F;
    box-shadow: 0 0 0 2px rgba(8, 96, 95, 0.3);
}

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

/* Modal animations */
@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Mobile responsiveness for hotels matching tickets exactly */
@media (max-width: 768px) {
    .hotel-option {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
        margin-bottom: 25px;
    }
    
    .hotel-image {
        align-self: center;
    }
    
    .hotel-image img {
        width: 100%;
        max-width: 300px;
        height: auto;
    }
    
    .hotel-details h3 {
        text-align: center;
        align-items: center;
    }
    
    .hotel-rating-stars {
        text-align: center;
        justify-content: center;
    }
    
    .ticket-price-section {
        margin-left: 0;
        margin-top: 15px;
        align-self: center;
        min-width: 160px;
    }

    .price-tag,
    .included-tag {
        padding: 10px 20px;
        font-size: 16px;
    }

    .selection-indicator {
        margin-top: 16px;
    }

    .selection-indicator .select-icon {
        width: 24px;
        height: 24px;
    }

    .selection-indicator .select-icon::after {
        font-size: 14px;
    }

    .hotel-option.selected {
        transform: none;
    }
}

/* Mobile responsiveness for modal */
@media (max-width: 768px) {
    .modal-content {
        max-width: 95vw;
        max-height: 95vh;
        margin: 20px;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-title {
        font-size: 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .modal-rating-stars {
        align-self: flex-start;
    }
    
    .image-container {
        min-height: 300px;
        max-height: 60vh;
    }
    
    .image-navigation {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .image-navigation.prev {
        left: 10px;
    }
    
    .image-navigation.next {
        right: 10px;
    }
    
    .image-counter {
        bottom: 10px;
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .image-thumbnails {
        padding: 15px;
        gap: 8px;
    }
    
    .thumbnail {
        width: 60px;
        height: 45px;
    }
}

@media (prefers-contrast: high) {
    .selection-indicator .select-icon {
        border-width: 3px;
    }

    .hotel-option.selected {
        border-width: 3px;
    }
}

/* Hotel loading states */
.hotel-options .loading {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    color: #6c757d;
    font-style: italic;
}

.hotel-options .error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    color: #721c24;
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}