/* Travel Guides - Comprehensive Styles */

/* Page Hero Section */
.tg-guide-page {
    background-color: #f8f9fa;
}

.tg-page-hero {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tg-page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,50 Q300,0 600,50 T1200,50 L1200,120 L0,120 Z" fill="rgba(255,255,255,0.1)"/></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.5;
}

.tg-page-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.tg-page-hero-label {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.tg-page-hero-title {
    font-size: 48px;
    font-weight: 700;
    margin: 20px 0;
    line-height: 1.2;
}

.tg-page-hero-desc {
    font-size: 18px;
    line-height: 1.6;
    opacity: 0.95;
    margin: 0;
}

@media (max-width: 768px) {
    .tg-page-hero {
        padding: 60px 20px;
    }
    
    .tg-page-hero-title {
        font-size: 32px;
    }
    
    .tg-page-hero-desc {
        font-size: 16px;
    }
}

/* Section Styles */
.tg-section {
    padding: 80px 20px;
}

.tg-section-white {
    background-color: white;
}

.tg-section-light {
    background-color: #f8f9fa;
}

.tg-container {
    max-width: 1200px;
    margin: 0 auto;
}

.tg-section-header {
    text-align: center;
    margin-bottom: 60px;
}

.tg-section-label {
    display: inline-block;
    color: #2563eb;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.tg-section-title {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 15px 0;
}

.tg-section-desc {
    font-size: 16px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Guide Cards */
.tg-guide-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.tg-guide-card:hover {
    border-color: #2563eb;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.1);
}

.tg-guide-card-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #2563eb;
}

.tg-guide-card-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}

.tg-guide-card-body {
    color: #444;
    line-height: 1.8;
}

.tg-guide-card-body p {
    margin: 0 0 20px 0;
    font-size: 15px;
}

.tg-guide-card-body h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 25px 0 15px 0;
}

.tg-guide-card-body ul {
    margin: 0 0 20px 0;
    padding-left: 20px;
}

.tg-guide-card-body li {
    margin-bottom: 12px;
    font-size: 15px;
}

.tg-guide-card-body strong {
    color: #2563eb;
    font-weight: 600;
}

/* Tips Grid */
.tg-tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.tg-tip-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid #2563eb;
    transition: all 0.3s ease;
}

.tg-tip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.1);
}

.tg-tip-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 12px 0;
}

.tg-tip-card p {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* Info Grid */
.tg-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.tg-info-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    border-top: 3px solid #2563eb;
}

.tg-info-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 15px 0 10px 0;
}

.tg-info-card p {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* Navigation Between Sub-Pages */
.tg-subnav {
    background: white;
    border-bottom: 2px solid #e5e7eb;
    padding: 20px 0;
    margin-bottom: 40px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.tg-subnav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 30px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tg-subnav-item {
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tg-subnav-item a {
    color: #666;
    text-decoration: none;
    padding: 10px 0;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    display: block;
}

.tg-subnav-item a:hover,
.tg-subnav-item a.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

/* Travel Planner Styles */
.tg-planner-container {
    background: white;
    border-radius: 12px;
    padding: 40px;
    margin: 40px 0;
    border: 1px solid #e5e7eb;
}

.tg-planner-form {
    max-width: 800px;
    margin: 0 auto;
}

.tg-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.tg-form-group {
    display: flex;
    flex-direction: column;
}

.tg-form-group.full-width {
    grid-column: 1 / -1;
}

.tg-form-group label {
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 10px;
    font-size: 14px;
}

.tg-form-group select,
.tg-form-group textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.tg-form-group select:focus,
.tg-form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.tg-form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.tg-checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.tg-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
}

.tg-checkbox input {
    margin-right: 8px;
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: #2563eb;
}

.tg-form-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.tg-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.tg-btn-primary {
    background: #2563eb;
    color: white;
}

.tg-btn-primary:hover {
    background: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

.tg-btn-secondary {
    background: #e5e7eb;
    color: #1a1a2e;
}

.tg-btn-secondary:hover {
    background: #d1d5db;
}

.tg-form-loading {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #2563eb;
    font-weight: 600;
}

.tg-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #e5e7eb;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Planner Results */
.tg-planner-results {
    background: white;
    border-radius: 12px;
    padding: 40px;
    border: 1px solid #e5e7eb;
}

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

.tg-results-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}

.tg-itinerary-content {
    color: #444;
    line-height: 1.8;
}

.tg-itinerary-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 30px 0 15px 0;
}

.tg-itinerary-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: #2563eb;
    margin: 20px 0 10px 0;
}

.tg-itinerary-content ul {
    margin: 0 0 20px 0;
    padding-left: 20px;
}

.tg-itinerary-content li {
    margin-bottom: 10px;
    font-size: 15px;
}

.tg-itinerary-content p {
    margin: 0 0 15px 0;
    font-size: 15px;
}

/* Planner Error */
.tg-planner-error {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    border-radius: 6px;
    padding: 20px;
    color: #991b1b;
    margin: 20px 0;
}

.tg-planner-error p {
    margin: 0;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tg-section {
        padding: 50px 20px;
    }
    
    .tg-section-title {
        font-size: 28px;
    }
    
    .tg-guide-card {
        padding: 25px;
    }
    
    .tg-form-row {
        grid-template-columns: 1fr;
    }
    
    .tg-tips-grid,
    .tg-info-grid {
        grid-template-columns: 1fr;
    }
    
    .tg-results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .tg-results-header button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .tg-page-hero-title {
        font-size: 24px;
    }
    
    .tg-section-title {
        font-size: 22px;
    }
    
    .tg-guide-card {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .tg-guide-card-header h3 {
        font-size: 18px;
    }
    
    .tg-checkbox-group {
        grid-template-columns: 1fr;
    }
}
