/**
 * GHA Member Portal Styles
 */

/* Button Styles */
.gha-button {
    padding: 12px 24px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    border: none;
    text-align: center;
}

.gha-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}


/* Loading Indicator */
.gha-loading-indicator {
    display: inline-flex;
    align-items: center;
    margin-left: 15px;
}

.gha-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #004742;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: gha-spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes gha-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* Bookings Styles */
.gha-card {
    border: 1px solid #f4f4f4;
    margin-bottom: 30px;
    height: 100%;
    padding: 20px;
    border-radius: 4px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}

.gha-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.gha-hotel-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #004742;
}

.gha-booking-id, .gha-status, .gha-room-type, .gha-guests {
    margin-bottom: 10px;
    font-size: 14px;
}

.gha-booking-id strong, .gha-status strong, .gha-room-type strong, .gha-guests strong {
    color: #333;
}


.gha-dates-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    padding: 15px;
    background-color: #f5f5f2;
    border-radius: 3px;
}

.gha-date-block {
    text-align: center;
}

.gha-date-label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 12px;
    text-transform: uppercase;
    color: #666;
}

.gha-date {
    font-size: 16px;
    color: #333;
}

.gha-nights-block {
    text-align: center;
    position: relative;
}

.gha-nights-block:before, .gha-nights-block:after {
    content: "";
    position: absolute;
    top: 50%;
    width: 30px;
    height: 1px;
    background-color: #ddd;
}

.gha-nights-block:before {
    left: -35px;
}

.gha-nights-block:after {
    right: -35px;
}

.gha-nights {
    font-size: 14px;
    color: #666;
}

.gha-card-actions {
    margin-top: 20px;
    text-align: center;
}

/* Callouts */
.gha-callout {
    padding: 15px;
    margin-bottom: 20px;
    border-left: 5px solid #ddd;
    border-radius: 3px;
}

.gha-callout.info {
    background-color: #f5f5f2;
    border-left-color: #004742;
}

.gha-callout.warning {
    background-color: #fff3cd;
    border-left-color: #ffc107;
}

.gha-callout.alert {
    background-color: #f8d7da;
    border-left-color: #dc3545;
}

/* Search Form */
.gha-search-form {
    background-color: #f5f5f2;
    padding: 25px;
    border-radius: 4px;
    margin-bottom: 30px;
}

.gha-search-form h3 {
    color: #004742;
    margin-bottom: 20px;
}


/* Search Results */
.gha-search-results {
    margin-top: 30px;
}

.gha-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #004742;
}

.gha-results-count {
    font-size: 18px;
    font-weight: 600;
    color: #004742;
}

.gha-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.gha-offer-card {
    border: 1px solid #f4f4f4;
    border-radius: 4px;
    overflow: hidden;
    background-color: #fff;
    transition: box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.gha-offer-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.gha-offer-image {
    position: relative;
    overflow: hidden;
    height: 200px;
    flex-shrink: 0;
}

.gha-offer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gha-offer-image:hover img {
    transform: scale(1.05);
}

.gha-offer-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.gha-offer-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #004742;
}

.gha-offer-title a {
    color: inherit;
    text-decoration: none;
}

.gha-offer-title a:hover {
    color: #003732;
}

.gha-hotel-info {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.gha-location {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.gha-description {
    margin-bottom: 15px;
    line-height: 1.5;
    flex-grow: 1;
}

.gha-offer-meta {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f4f4f4;
}

.gha-badge {
    background-color: #004742;
    color: white;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 10px;
}

.gha-offer-dates {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.gha-offer-validity {
    font-size: 12px;
    color: #999;
    font-style: italic;
}

/* Profile Styles */
.gha-profile-section {
    background-color: #f5f5f2;
    padding: 25px;
    border-radius: 4px;
    margin-bottom: 30px;
}

.gha-profile-section h3 {
    color: #004742;
    margin-bottom: 20px;
    border-bottom: 2px solid #004742;
    padding-bottom: 10px;
}

.gha-profile-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gha-info-item {
    margin-bottom: 15px;
}

.gha-info-label {
    font-weight: 600;
    color: #333;
    display: block;
    margin-bottom: 5px;
}

.gha-info-value {
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    
   
    
    .gha-results-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .gha-dates-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .gha-nights-block:before,
    .gha-nights-block:after {
        display: none;
    }
    
    .gha-profile-info {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .gha-member-portal {
        font-size: 14px;
    }
    
    
    .gha-button {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .gha-button-secondary {
        margin-left: 0;
    }
    
    .gha-loading-indicator {
        margin-left: 0;
        margin-top: 10px;
        justify-content: center;
    }
}

/* Print Styles */
@media print {

    .gha-button {
        display: none;
    }

    
    .gha-card {
        border: 1px solid #000;
        margin-bottom: 20px;
        break-inside: avoid;
    }
}


/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .gha-spinner {
        animation: none;
    }
    
    .gha-button,
    .gha-offer-card,
    .gha-card {
        transition: none;
    }
    
    .gha-offer-image img {
        transition: none;
    }
}
