/* Modern Design System - Midearth Tours */

:root {
    --primary: #89A83E;
    --primary-dark: #6d8a32;
    --primary-light: #a8c563;
    --primary-gradient: linear-gradient(135deg, #89A83E 0%, #6d8a32 100%);
    --primary-gradient-light: linear-gradient(135deg, #a8c563 0%, #89A83E 100%);
    --secondary: #2d3748;
    --accent: #ed8936;
    --success: #48bb78;
    --danger: #f56565;
    --warning: #ecc94b;
    --info: #4299e1;

    --bg-primary: #ffffff;
    --bg-secondary: #f7fafc;
    --bg-tertiary: #edf2f7;

    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --text-light: #a0aec0;

    --border-light: #e2e8f0;
    --border-medium: #cbd5e0;
    --border-dark: #a0aec0;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
}

* {
    box-sizing: border-box;
}

.midearth-wrapper {
    margin: 32px 0;
    position: relative;
    overflow: hidden;
}

.midearth-title {
    color: var(--text-primary);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.midearth-subtitle {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 24px;
    font-weight: 400;
    line-height: 1.6;
}

/* Auth pages: center card */
.midearth-auth {
    max-width: 440px;
    margin: 60px auto;
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-2xl);
    border: 1px solid var(--border-light);
}

/* Invoice styling */
.midearth-invoice {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border-light);
}

.midearth-invoice-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

.midearth-invoice-title {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.midearth-invoice-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.midearth-invoice-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.midearth-invoice-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.midearth-invoice-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.midearth-invoice-value {
    color: var(--text-primary);
    font-weight: 600;
}

.midearth-invoice-divider {
    height: 1px;
    background: var(--border-light);
    margin: 4px 0;
}

.midearth-invoice-total {
    font-size: 16px;
    margin-top: 8px;
}

.midearth-invoice-total .midearth-invoice-label {
    font-size: 16px;
}

.midearth-invoice-total .midearth-invoice-value {
    font-size: 18px;
    color: var(--primary);
}

.midearth-auth::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.midearth-auth-subtitle {
    margin: 4px 0 24px;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.5;
}

.midearth-auth .midearth-form {
    max-width: 100%;
}

.midearth-auth-actions {
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-muted);
    text-align: center;
}

.midearth-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-fast);
}

.midearth-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.midearth-form {
    width: 100%;
    max-width: none;
    margin: 0;
}

.midearth-field {
    margin-bottom: 20px;
}

.midearth-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.midearth-field input,
.midearth-field select,
.midearth-field textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 15px;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.midearth-field input::placeholder,
.midearth-field select::placeholder,
.midearth-field textarea::placeholder {
    color: var(--text-light);
}

.midearth-field input:focus,
.midearth-field select:focus,
.midearth-field textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(137, 168, 62, 0.15), var(--shadow-lg);
    transform: translateY(-1px);
}

.midearth-field select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%234a5568'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
}

.midearth-button {
    background: var(--primary-gradient);
    color: var(--bg-primary);
    border: none;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.midearth-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left var(--transition-slow);
}

.midearth-button:hover::before {
    left: 100%;
}

.midearth-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.midearth-button:active {
    transform: translateY(0);
}

.midearth-button.midearth-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: none;
}

.midearth-button.midearth-outline:hover {
    background: var(--primary-gradient);
    color: var(--bg-primary);
    border-color: transparent;
    box-shadow: var(--shadow-lg);
}

/* Dashboard */
.midearth-dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-light);
}

.midearth-dashboard-welcome {
    margin: 4px 0 0;
    color: var(--text-secondary);
    font-size: 16px;
}

.midearth-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.midearth-card {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    padding: 24px;
    background: var(--bg-primary);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.midearth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.midearth-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.midearth-card:hover::before {
    transform: scaleX(1);
}

.midearth-card h3 {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.midearth-card p {
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Tours listing cards */
.midearth-tours-stack {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.midearth-tour-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    background: var(--bg-primary);
    padding: 20px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.midearth-tour-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.midearth-tour-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-2xl);
}

.midearth-tour-card:hover::before {
    transform: scaleX(1);
}

.midearth-tour-thumb {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.midearth-tour-thumb img,
.midearth-thumb-placeholder {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base);
}

.midearth-tour-card:hover .midearth-tour-thumb img {
    transform: scale(1.05);
}

.midearth-thumb-placeholder {
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
}

.midearth-tour-main {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.midearth-tour-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.midearth-tour-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.midearth-tour-meta {
    color: var(--text-secondary);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.midearth-badge {
    background: var(--primary-gradient);
    color: var(--bg-primary);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.midearth-dot {
    color: var(--text-light);
    margin: 0 4px;
}

.midearth-meta-text {
    color: var(--text-secondary);
}

.midearth-tour-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.midearth-chip {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.midearth-chip:hover {
    background: var(--primary-gradient);
    color: var(--bg-primary);
    border-color: transparent;
}

.midearth-quick-panel {
    background: var(--bg-secondary);
    border: 1px dashed var(--border-medium);
    border-radius: var(--radius-md);
    padding: 12px;
}

.midearth-quick-text {
    margin: 0;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.5;
}

.midearth-tour-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    flex-wrap: wrap;
}

.midearth-price {
    font-weight: 700;
    font-size: 16px;
    color: var(--primary);
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.midearth-action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.midearth-button.midearth-quick-toggle {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 2px solid var(--border-light);
}

.midearth-button.midearth-quick-toggle:hover {
    background: var(--primary-gradient);
    color: var(--bg-primary);
    border-color: transparent;
}

@media (max-width: 1024px) {
    .midearth-tours-stack {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .midearth-tours-stack {
        grid-template-columns: 1fr;
    }
}

/* Tour details page */
.midearth-tour-head {
    display: grid;
    grid-template-columns: 450px 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 40px;
}

.midearth-tour-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
}

.midearth-tour-hero img,
.midearth-hero-placeholder {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
    transition: all var(--transition-slow);
}

.midearth-tour-hero img:hover {
    transform: scale(1.03);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.25);
}

.midearth-hero-placeholder {
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 50%, var(--primary-gradient) 150%);
    position: relative;
}

.midearth-hero-placeholder::after {
    content: '📷';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    opacity: 0.3;
}

.midearth-tour-head-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.midearth-tour-body {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    margin-top: 40px;
}

.midearth-tour-content {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}

.midearth-tour-content p {
    color: var(--text-secondary);
    line-height: 1.9;
    font-size: 16px;
    margin-bottom: 20px;
}

.midearth-tour-aside .midearth-card {
    position: sticky;
    top: 80px;
    border-radius: var(--radius-xl);
    padding: 28px;
}

.midearth-pricing-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 16px;
}

.midearth-pricing-table thead th {
    background: var(--primary-gradient);
    color: var(--bg-primary);
    padding: 14px 16px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.midearth-pricing-table thead th:first-child {
    border-radius: var(--radius-md) 0 0 0;
}

.midearth-pricing-table thead th:last-child {
    border-radius: 0 var(--radius-md) 0 0;
}

.midearth-pricing-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-light);
    font-size: 15px;
    color: var(--text-secondary);
}

.midearth-pricing-table tr:last-child td {
    border-bottom: none;
}

.midearth-pricing-table tr:hover td {
    background: var(--bg-secondary);
}

.midearth-section-title {
    margin: 32px 0 20px;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    position: relative;
    padding-left: 20px;
    display: flex;
    align-items: center;
}

.midearth-section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 28px;
    background: var(--primary-gradient);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
}

.midearth-section-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--border-light) 0%, transparent 100%);
    margin-left: 20px;
}

.midearth-list {
    margin: 0 0 24px 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.midearth-list li {
    list-style: none;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 15px;
    position: relative;
    padding: 12px 16px 12px 44px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--border-light);
    transition: all var(--transition-fast);
}

.midearth-list li::before {
    content: '✓';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-weight: 700;
    font-size: 16px;
}

.midearth-list li:hover {
    background: var(--primary-gradient);
    color: var(--bg-primary);
    border-left-color: var(--primary);
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.midearth-list li:hover::before {
    color: var(--bg-primary);
}

/* Booking form: Travelers section */
.midearth-travelers {
    margin-top: 24px;
}

.midearth-traveler-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    padding: 20px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    background: var(--bg-primary);
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.midearth-traveler-row:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.midearth-traveler-row .midearth-field {
    margin: 0;
}

@media (max-width: 1024px) {
    .midearth-traveler-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .midearth-traveler-row {
        grid-template-columns: 1fr;
    }
}

/* Accordion */
.midearth-accordion {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    background: var(--bg-primary);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.midearth-acc-item + .midearth-acc-item {
    border-top: 1px solid var(--border-light);
}

.midearth-acc-head {
    width: 100%;
    text-align: left;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border: none;
    padding: 20px 24px;
    font-weight: 700;
    font-size: 16px;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.midearth-acc-head::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-gradient);
    transform: scaleY(0);
    transition: transform var(--transition-fast);
}

.midearth-acc-item.active .midearth-acc-head::before {
    transform: scaleY(1);
}

.midearth-acc-head:hover {
    background: var(--primary-gradient-light);
    color: var(--bg-primary);
}

.midearth-acc-icon {
    color: var(--text-muted);
    transition: transform var(--transition-fast);
    font-size: 20px;
}

.midearth-acc-item.active .midearth-acc-icon {
    transform: rotate(45deg);
    color: var(--primary);
}

.midearth-acc-item.active .midearth-acc-head .midearth-acc-icon {
    color: var(--bg-primary);
}

.midearth-acc-panel {
    padding: 24px;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-light);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gallery */
.midearth-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.midearth-gallery-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    border: 3px solid var(--border-light);
    transition: all var(--transition-base);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.midearth-gallery-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: 1;
}

.midearth-gallery-img::after {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 40px;
    z-index: 2;
    transition: transform var(--transition-base);
    opacity: 0;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.midearth-gallery-img:hover::before {
    opacity: 0.4;
}

.midearth-gallery-img:hover::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.midearth-gallery-img:hover {
    transform: scale(1.08) translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-2xl);
}

@media (max-width: 768px) {
    .midearth-gallery {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }

    .midearth-gallery-img {
        height: 140px;
    }
}

@media (max-width: 480px) {
    .midearth-gallery {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }

    .midearth-gallery-img {
        height: 120px;
        border-radius: var(--radius-lg);
    }
}

/* Booking widget */
.midearth-booking-widget {
    margin-top: 24px;
    border-top: 2px dashed var(--border-medium);
    padding-top: 24px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
}

.midearth-booking-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 16px 0;
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
}

.midearth-booking-total strong {
    font-size: 26px;
    color: var(--primary);
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(137, 168, 62, 0.2);
}

.midearth-booking-widget .midearth-field {
    margin-bottom: 16px;
}

.midearth-booking-widget .midearth-field label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.midearth-booking-widget .midearth-field input {
    background: var(--bg-primary);
    border: 2px solid var(--border-light);
}

.midearth-booking-widget .midearth-field input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(137, 168, 62, 0.15);
}

@media (max-width: 1024px) {
    .midearth-tour-head {
        grid-template-columns: 1fr;
    }
    .midearth-tour-body {
        grid-template-columns: 1fr;
    }
}

/* Alerts */
.midearth-alert {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 2px solid transparent;
    box-shadow: var(--shadow-sm);
}

.midearth-alert-success {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: var(--success);
    color: #166534;
}

.midearth-alert-error {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-color: var(--danger);
    color: #991b1b;
}

.midearth-alert-info {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: var(--info);
    color: #1e40af;
}

.midearth-alert::before {
    content: '';
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.midearth-alert-success::before {
    background: var(--success);
}

.midearth-alert-error::before {
    background: var(--danger);
}

.midearth-alert-info::before {
    background: var(--info);
}

/* Subcard for dashboard */
.midearth-subcard {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 20px;
    background: var(--bg-secondary);
    margin-bottom: 16px;
    transition: all var(--transition-base);
}

.midearth-subcard:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.midearth-subcard p {
    margin: 8px 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.midearth-subcard strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Pay now button in dashboard */
.midearth-pay-now {
    background: var(--success);
    color: var(--bg-primary);
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.midearth-pay-now:hover {
    background: #3da866;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Responsive improvements */
@media (max-width: 1024px) {
    .midearth-tour-head {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .midearth-tour-hero img,
    .midearth-hero-placeholder {
        height: 280px;
    }

    .midearth-tour-body {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .midearth-tour-aside .midearth-card {
        position: static;
    }
}

@media (max-width: 768px) {
    .midearth-wrapper {
        padding: 20px;
        margin: 20px 0;
        border-radius: var(--radius-md);
    }

    .midearth-title {
        font-size: 24px;
    }

    .midearth-section-title {
        font-size: 20px;
    }

    .midearth-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .midearth-gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 16px;
    }

    .midearth-gallery-img {
        height: 120px;
    }

    .midearth-tour-head {
        gap: 24px;
        margin-bottom: 24px;
    }

    .midearth-tour-hero img,
    .midearth-hero-placeholder {
        height: 240px;
    }

    .midearth-tour-content {
        padding: 24px;
    }

    .midearth-tour-aside .midearth-card {
        padding: 20px;
    }

    .midearth-list li {
        padding: 10px 14px 10px 40px;
        font-size: 14px;
    }

    .midearth-booking-widget {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .midearth-wrapper {
        padding: 16px;
        margin: 16px 0;
        border-radius: var(--radius-sm);
    }

    .midearth-title {
        font-size: 20px;
    }

    .midearth-section-title {
        font-size: 18px;
        margin: 24px 0 16px;
    }

    .midearth-tour-head {
        margin-bottom: 20px;
    }

    .midearth-tour-hero img,
    .midearth-hero-placeholder {
        height: 200px;
        border-radius: var(--radius-lg);
    }

    .midearth-tour-content {
        padding: 16px;
    }

    .midearth-tour-content p {
        font-size: 14px;
    }

    .midearth-gallery {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
    }

    .midearth-gallery-img {
        height: 100px;
        border-radius: var(--radius-md);
    }

    .midearth-acc-head {
        padding: 16px 20px;
        font-size: 15px;
    }

    .midearth-acc-panel {
        padding: 16px;
    }

    .midearth-button {
        padding: 12px 20px;
        font-size: 14px;
    }

    .midearth-field input,
    .midearth-field select,
    .midearth-field textarea {
        padding: 12px 14px;
        font-size: 14px;
    }
}

#midearth-booking-form button{
    width: 100% !important;
    margin-top: 25px !important;
}