/* Global Styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #3498db;
    --text-color: #333;
    --bg-color: #f4f4f4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

/* Navbar */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    position: relative;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 3px 0;
    transition: 0.4s;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-item {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-item:hover,
.nav-item.active {
    color: var(--accent-color);
}

/* Sections */
.section {
    padding: 100px 20px 60px;
    max-width: 1200px;
    margin: 0 auto;
    display: none;
}

.section.active {
    display: block;
}

h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
    font-size: 2rem;
}

/* Page Header (獨立頁面標題區塊美化) */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 60px 20px 50px;
    border-radius: 12px;
    text-align: center;
    margin-top: 80px; /* <--- 增加上方空間避免被導航列遮擋 */
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

/* 加上一點幾何裝飾 */
.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.page-header h2 {
    color: white;
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 25px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

.page-header p {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.95);
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    font-weight: 400;
    line-height: 1.6;
    background: rgba(0,0,0,0.2); /* 加上半透明黑底增加質感 */
    padding: 10px 25px;
    border-radius: 30px; /* 膠囊形狀狀 */
    display: inline-block;
    letter-spacing: 1px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.1);
}

/* Slider */
.slider-container {
    width: 100%;
    height: 400px;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 40px;
}

.slide {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.slide-content {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
}

/* Banners */
.banners-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.banner-item img {
    width: 100%;
    border-radius: 8px;
    transition: transform 0.3s;
}

.banner-item:hover img {
    transform: scale(1.02);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

/* Reviews Styles */
.reviews-container {
    margin-bottom: 40px;
    padding: 0 20px;
}

.reviews-container h3 {
    text-align: center;
    color: #555;
    margin-bottom: 20px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.review-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #f1c40f;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.review-name {
    font-weight: bold;
    color: #2c3e50;
}

.review-rating {
    color: #f1c40f;
}

.review-content {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Packages Styles */
.packages-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    justify-content: center;
}

.package-btn {
    background: linear-gradient(135deg, #6dd5fa 0%, #2980b9 100%);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 50px;
    cursor: pointer;
    text-align: left;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    min-width: 250px;
}

.package-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.package-info h4 {
    margin: 0;
    font-size: 1.1rem;
}

.package-info p {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.9;
}

.package-price {
    font-weight: bold;
    font-size: 1.1rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.2);
    padding: 5px 10px;
    border-radius: 20px;
}

/* Floating Social Buttons */
.social-float {
    position: fixed;
    right: 20px;
    bottom: 100px;
    /* Above styling bar if needed, or higher */
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}

.social-btn:hover {
    transform: scale(1.1);
}

.btn-line {
    background-color: #00B900;
}

.btn-fb {
    background-color: #1877F2;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--accent-color);
    transform: translateY(-5px);
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    height: 200px;
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
}

.product-info {
    padding: 20px;
}

.product-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.product-specs {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    background-color: var(--accent-color);
    color: white;
}

/* Article Grid */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.article-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.article-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.article-content {
    padding: 20px;
}

.article-meta {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 10px;
}

.read-more {
    display: inline-block;
    margin-top: 10px;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.3s;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
    color: white;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #2c3e50;
    color: white;
}

.btn-danger {
    background-color: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background-color: #c0392b;
    color: white;
}

/* Floating Bar */
.floating-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(44, 62, 80, 0.95);
    backdrop-filter: blur(5px);
    padding: 15px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

.floating-bar.visible {
    transform: translateY(0);
}

.floating-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
}

.floating-total {
    font-size: 1.5rem;
    font-weight: bold;
    color: #f1c40f;
}

/* Tooltip Styles */

/* Tooltip Styles */
.preview-icon-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
    color: #3498db;
    font-size: 1.2rem;
}

.preview-tooltip {
    visibility: hidden;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    /* Position above the icon */
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    /* Wider for product details */
    background-color: #fff;
    color: #333;
    text-align: left;
    border-radius: 6px;
    padding: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s;
    border: 1px solid #ddd;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.preview-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #fff transparent transparent transparent;
}

.preview-icon-container:hover .preview-tooltip {
    visibility: visible;
    opacity: 1;
}

.tooltip-image {
    width: 120px;
    height: 120px;
    object-fit: contain;
    background: #f9f9f9;
    padding: 5px;
    border: 1px solid #eee;
    border-radius: 4px;
    flex-shrink: 0;
}

.tooltip-content {
    flex-grow: 1;
}

.tooltip-title {
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 8px;
    color: #2c3e50;
    line-height: 1.3;
}

.tooltip-specs {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.4;
    white-space: pre-wrap;
    /* Show newlines in description */
}

.tooltip-price {
    color: #e74c3c;
    font-weight: bold;
    font-size: 1.1rem;
    text-align: right;
    margin-top: 5px;
}

/* De Yuan Style Table Updates */
.est-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
    margin-top: 20px;
}

.est-header {
    display: grid;
    grid-template-columns: 50px 100px 1fr 100px 120px 100px 50px 50px;
    /* Moved preview to end */
    background-color: #2c3e50;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: bold;
    align-items: center;
}

.est-header div {
    text-align: center;
}

.est-row {
    display: grid;
    grid-template-columns: 50px 100px 1fr 100px 120px 100px 50px 50px;
    /* Moved preview to end */
    background-color: white;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    align-items: center;
    transition: transform 0.2s;
}

.est-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.est-index {
    display: flex;
    justify-content: center;
    align-items: center;
}

.est-index span {
    width: 25px;
    height: 25px;
    background-color: #3498db;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
}

.est-category {
    font-weight: bold;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 5px;
    padding-left: 10px;
}

.est-product select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.qty-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.qty-btn {
    width: 25px;
    height: 25px;
    background-color: #ecf0f1;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: #2c3e50;
    transition: background 0.2s;
}

.qty-btn:hover {
    background-color: #bdc3c7;
}

.qty-input {
    width: 40px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 4px;
}

.est-action {
    display: flex;
    justify-content: center;
}

.btn-delete {
    background: none;
    border: none;
    color: #95a5a6;
    cursor: pointer;
    font-size: 16px;
    transition: color 0.2s;
}

/* AI Analysis Animation (Step-by-Step) */
.ai-progress-container {
    margin-top: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    display: none;
    /* Hidden by default */
    text-align: left;
    border: 1px solid #eee;
}

.ai-step {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    opacity: 0.5;
    transition: all 0.3s;
}

.ai-step.active {
    opacity: 1;
    font-weight: bold;
    color: #2c3e50;
}

.ai-step.completed {
    opacity: 1;
    color: #27ae60;
}

.step-icon {
    width: 24px;
    height: 24px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #ddd;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* AI Result Modal */
.ai-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.ai-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.ai-modal {
    background: white;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: transform 0.3s;
}

.ai-modal-overlay.active .ai-modal {
    transform: translateY(0);
}

.ai-modal-header {
    background: #2c3e50;
    color: white;
    padding: 20px;
    text-align: center;
    position: relative;
}

.ai-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.ai-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    cursor: pointer;
}

.ai-modal-body {
    padding: 25px;
}

.ai-result-tag {
    display: inline-block;
    background: #e1f0fa;
    color: #2980b9;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.rec-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
}

.rec-icon {
    font-size: 1.5rem;
    color: #3498db;
    margin-right: 15px;
    width: 30px;
    text-align: center;
}

.rec-text {
    flex: 1;
}

.rec-label {
    font-size: 0.85rem;
    color: #7f8c8d;
    display: block;
}

.rec-value {
    font-weight: bold;
    color: #2c3e50;
    font-size: 1.1rem;
}

.ai-modal-footer {
    padding: 0 25px 25px;
    text-align: center;
}

.btn-line-cta {
    display: block;
    width: 100%;
    padding: 12px;
    background: #06c755;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-line-cta:hover {
    background: #05b34c;
}

.ai-tip {
    font-size: 0.85rem;
    color: #999;
    margin-top: 10px;
}

/* Marquee Styles */
.marquee-container {
    width: 100%;
    background-color: #2c3e50;
    color: #f1c40f;
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;
    padding: 10px 0;
    margin-bottom: 20px;
    border-radius: 4px;
    position: relative;
}

.marquee-content {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 20s linear infinite;
}

.marquee-item {
    display: inline-block;
    padding: 0 20px;
    font-size: 1.1rem;
    font-weight: bold;
}

.marquee-item a {
    color: #f1c40f;
    text-decoration: none;
}

.marquee-item a:hover {
    text-decoration: underline;
}

@keyframes marquee {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-100%, 0);
    }
}

.estimation-container {
    max-width: 1000px;
    margin: 0 auto;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background-color: var(--primary-color);
    color: white;
    margin-top: 40px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    background: #fff;
    border-radius: 8px;
    width: 100%;
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.empty-state i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 10px;
}

.empty-state p {
    font-size: 1.1rem;
    margin: 0;
}

/* Loading Spinner */
.loading-container {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    width: 100%;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 2000;
}

.toast {
    min-width: 250px;
    padding: 15px 20px;
    background-color: rgba(44, 62, 80, 0.9);
    color: white;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: toastFadeIn 0.3s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.toast.success {
    border-left: 5px solid #2ecc71;
}

.toast.error {
    border-left: 5px solid #e74c3c;
}

.toast.hiding {
    animation: toastFadeOut 0.3s ease-in forwards;
}

@keyframes toastFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes toastFadeOut {
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 70px;
        left: 0;
        background-color: white;
        box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        gap: 0;
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-item {
        text-align: center;
        padding: 15px 0;
        border-bottom: 1px solid #eee;
        width: 100%;
    }

    .nav-item:hover {
        background-color: #f9f9f9;
        color: var(--accent-color);
    }

    /* Mobile Estimate Card View */
    .est-header,
    .est-index {
        display: none;
    }

    .est-row {
        display: flex;
        flex-direction: column;
        background: white;
        margin-bottom: 15px;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        padding: 15px;
        gap: 12px;
        border: 1px solid #eee;
    }

    .est-row:hover {
        transform: none;
    }

    .est-category {
        font-size: 1.1rem;
        border-bottom: 1px solid #eee;
        padding-bottom: 8px;
        margin-bottom: 5px;
        color: var(--primary-color);
        width: 100%;
        padding-left: 0;
    }

    .est-product {
        width: 100%;
    }

    .est-product select {
        padding: 12px;
        font-size: 16px;
        /* Prevent iOS zoom */
        height: 45px;
    }

    .est-price,
    .est-subtotal {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 1rem;
        padding: 5px 0;
    }

    .est-price::before {
        content: "單價";
        color: #7f8c8d;
        font-size: 0.9rem;
    }

    .est-subtotal {
        border-top: 1px dashed #eee;
        padding-top: 10px;
        font-weight: bold;
        color: var(--accent-color);
    }

    .est-subtotal::before {
        content: "小計";
        color: #7f8c8d;
        font-weight: normal;
        font-size: 0.9rem;
    }

    .qty-control {
        width: 100%;
        justify-content: center;
        background: #f9f9f9;
        padding: 10px;
        border-radius: 5px;
        gap: 15px;
    }

    .qty-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        border-radius: 50%;
        background-color: white;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .qty-input {
        width: 60px;
        height: 40px;
        font-size: 1.1rem;
        background: white;
    }

    .est-preview {
        display: none !important;
        /* Hide preview icon on mobile to save space */
    }

    .est-action {
        width: 100%;
        display: flex;
        justify-content: flex-end;
        padding-top: 10px;
    }

    .btn-delete {
        padding: 10px;
        color: #e74c3c;
    }
}

#ai-consult {
    scroll-margin-top: 90px;
}

/* Slider Enhancements */
.slider-container {
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex !important;
    z-index: 0;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slider-controls {
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.slider-btn {
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s;
    border-radius: 50%;
    margin: 0 10px;
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.6);
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.dot.active {
    background: #3498db;
    width: 30px;
    border-radius: 6px;
}

/* Override grid for prebuilt list to allow full width */
#prebuilt-list {
    display: block;
    grid-template-columns: none;
}

/* Host Selection Styles (Customized) */
.host-card {
    display: flex;
    flex-direction: column;
    background: white;
    /* Remove standard card styling to match "raw" look if needed, but keeping container clean */
    border: none;
    margin-bottom: 40px;
    box-shadow: none;
    /* Remove shadow for flatter look if desired, or keep light */
}

.host-header-full {
    width: 100%;
    padding: 10px 0;
    text-align: left;
    margin-bottom: 5px;
}

.host-header-full h3 {
    color: #e74c3c;
    /* Bright red */
    font-size: 1.6rem;
    margin: 0;
    font-style: italic;
    font-weight: bold;
    display: flex;
    /* align star */
    align-items: center;
    gap: 10px;
    border-bottom: none;
    /* Removed border form header itself */
}

.host-header-full h3 i {
    color: #0044cc;
    /* Blue star as per some refs or just keep it title color? Image showed blue star? Let's check. Actually looks blue/purple star in one ref. Let's use blue. */
    font-size: 1.4rem;
}

.host-body {
    display: flex;
    align-items: flex-start;
    /* Top align */
    gap: 15px;
}

.host-specs-container {
    flex: 0 0 45%;
    /* Fixed widthish approx 40-50% */
    border: 2px solid #a94442;
    /* Brown/Red border */
    background-color: #fff;
    display: flex;
    flex-direction: column;
}

.spec-row {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #a94442;
    /* Match container border */
    font-size: 1rem;
    font-weight: bold;
    /* Bold text */
    color: #333;
    line-height: 1.4;
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-icon {
    color: #e67e22;
    /* Orange lightning */
    margin-right: 15px;
    width: 20px;
    text-align: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.host-image-container {
    flex: 1;
    position: relative;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.host-image {
    width: 100%;
    min-height: 300px;
    /* Taller image */
    background-size: contain;
    background-position: top center;
    background-repeat: no-repeat;
    margin-bottom: 10px;
}

.host-info-right {
    text-align: center;
    width: 100%;
}

.host-price {
    font-size: 2.5rem;
    /* Huge price */
    font-weight: 900;
    color: #ff0000;
    /* Pure red */
    margin: 0;
    font-family: 'Arial Black', sans-serif;
    /* Heavy font */
}

.host-footer-note {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #666;
    border-top: 1px dotted #ccc;
    padding-top: 5px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .host-body {
        flex-direction: column;
    }

    .host-specs-container {
        width: 100%;
        /* Full width on mobile */
        border-width: 1px;
        /* Thinner border on mobile */
        order: 2;
    }

    .host-image-container {
        width: 100%;
        order: 1;
    }

    .host-header-full h3 {
        font-size: 1.4rem;
    }
}