/* Home page styles */

.home-hero {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
}

/* Hero with search bar 50/50 over header and section below */
.home-hero-with-search {
    min-height: 420px;
    overflow: visible;
    padding-bottom: 0;
    align-items: flex-end;
    position: relative;
    z-index: 2;
}
.home-hero-with-search .home-hero-content {
    padding-bottom: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.home-hero-with-search .home-hero-subtitle {
    margin-left: auto;
    margin-right: auto;
}
.home-hero-with-search .home-search-form-green {
    margin-bottom: -48px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 100;
}

.home-hero-bg {
    position: absolute;
    inset: 0;
    background: url('/img/slider/slider1.jpg') center center / cover no-repeat;
    background-color: #2e4573;
}

.home-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(46, 69, 115, 0.55) 0%, rgba(46, 69, 115, 0.4) 50%, rgba(46, 69, 115, 0.55) 100%);
}

.home-hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 4rem 0;
}

.home-hero-title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    margin: 0 0 1rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
    line-height: 1.2;
}

.home-hero-subtitle {
    font-size: 1.25rem;
    margin: 0 0 2.25rem;
    opacity: 0.95;
    max-width: 560px;
    line-height: 1.5;
}

/* Search form - solid green bar (50/50 over section below) */
.home-search-form {
    max-width: 720px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid rgba(255,255,255,0.2);
}

.home-search-form-green {
    max-width: 900px;
    width: 100%;
    background: var(--secondary-green, #3d5940);
    border: none;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.home-search-form-green .home-search-field label {
    color: rgba(255,255,255,0.95);
}
.home-search-form-green .home-search-btn {
    background: #fff;
    color: var(--secondary-green, #3d5940);
}
.home-search-form-green .home-search-btn:hover {
    background: rgba(255,255,255,0.9);
    color: var(--secondary-green-dark, #314a33);
}

.home-search-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 1rem;
    align-items: end;
}

@media (max-width: 768px) {
    .home-search-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .home-search-grid {
        grid-template-columns: 1fr;
    }
}

.home-search-field {
    display: flex;
    flex-direction: column;
}

.home-search-field label {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: rgba(255,255,255,0.95);
}

.home-search-field input,
.home-search-field select {
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 8px;
    background: rgba(255,255,255,0.95);
    font-size: 1rem;
    color: #1a1a1a;
    width: 100%;
    box-sizing: border-box;
}

.home-search-form-green .home-search-field label {
    color: rgba(255,255,255,0.95);
}
.home-search-form-green input,
.home-search-form-green select {
    border: 1px solid rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.95);
}

.home-search-field select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231a1a1a' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.home-search-submit {
    display: flex;
    align-items: flex-end;
}

.home-search-btn {
    padding: 12px 20px;
    background: var(--secondary);
    color: #1a1a1a;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, transform 0.2s;
}

.home-search-btn:hover {
    background: var(--secondary-dark);
    transform: translateY(-1px);
}

/* Main content: padding so content clears the overlapping search bar (50% in section below) */
.home-main {
    padding-bottom: 3rem;
    padding-top: 72px;
    position: relative;
    z-index: 1;
}

.home-section {
    padding: 3rem 0;
}

.home-section:nth-child(even) {
    background: var(--primary-tint);
}

.home-section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: #1a1a1a;
}

.home-section-intro {
    margin: 0 0 1.5rem;
    color: #4a5568;
    max-width: 640px;
    line-height: 1.5;
}

/* Trending tours section (tabs + 3 cards) */
.home-section-trending-tours {
    background: #fff;
}
.home-tours-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.home-tab {
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    color: #4a5568;
    background: var(--primary-tint);
    border: 2px solid transparent;
    transition: all 0.2s;
}
.home-tab:hover { color: var(--primary); }
.home-tab.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.home-tours-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
@media (max-width: 992px) {
    .home-tours-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 576px) {
    .home-tours-grid { grid-template-columns: 1fr; }
}
.home-tour-card {
    display: block;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--primary-border);
    transition: transform 0.2s, box-shadow 0.2s;
}
.home-tour-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.home-tour-card-img {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--primary-tint);
}
.home-tour-card-img img { width: 100%; height: 100%; object-fit: cover; }
.home-tour-card-body { padding: 1.25rem; }
.home-tour-card-body h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: #1a1a1a;
}
.home-tour-desc {
    font-size: 0.9rem;
    color: #4a5568;
    margin: 0 0 0.5rem;
    line-height: 1.4;
}
.home-tour-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 0.5rem;
}
.home-tour-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
}

/* Distilleries grid on home */
.home-distilleries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.home-distillery-card {
    display: block;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid var(--primary-border);
}

.home-distillery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.home-card-image {
    aspect-ratio: 16/10;
    background: var(--primary-tint);
    overflow: hidden;
}

.home-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-card-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.home-card-content {
    padding: 1.25rem;
}

.home-card-content h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0 0 0.35rem;
    color: #1a1a1a;
}

.home-card-location {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.9rem;
    color: #718096;
    margin: 0 0 0.5rem;
}

.home-card-location svg {
    flex-shrink: 0;
}

.home-card-desc {
    font-size: 0.9rem;
    color: #4a5568;
    margin: 0 0 0.75rem;
    line-height: 1.4;
}

.home-card-cta {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
}

.home-section-actions {
    margin-top: 0.5rem;
}

.home-section-actions .btn-primary,
.home-section-actions .btn-secondary {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s;
}

.home-section-actions .btn-primary {
    background: var(--primary);
    color: #fff;
    border: none;
}

.home-section-actions .btn-primary:hover {
    transform: translateY(-1px);
}

.home-section-actions .btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.home-section-actions .btn-secondary:hover {
    transform: translateY(-1px);
}

/* How it works steps */
.home-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 1.5rem;
}

@media (max-width: 768px) {
    .home-steps {
        grid-template-columns: 1fr;
    }
}

.home-step {
    text-align: center;
    padding: 1.5rem 1rem;
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--primary-border);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.home-step-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    border-radius: 50%;
}

.home-step-icon svg {
    width: 28px;
    height: 28px;
}

.home-step h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: #1a1a1a;
}

.home-step p {
    font-size: 0.95rem;
    color: #4a5568;
    margin: 0;
    line-height: 1.5;
}

/* Events grid on home */
.home-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.home-event-card {
    display: block;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--primary-border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.home-event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.home-event-image {
    aspect-ratio: 16/10;
    background: var(--primary-tint);
    overflow: hidden;
}

.home-event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-event-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.home-event-content {
    padding: 1rem 1.25rem;
}

.home-event-content h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 0.35rem;
    color: #1a1a1a;
}

.home-event-meta {
    font-size: 0.9rem;
    color: #718096;
    margin: 0;
}

/* CTA section - centered, green background */
.home-section-cta {
    text-align: center;
    background: var(--secondary-green, #3d5940) !important;
    color: #fff;
}
.home-section-cta .home-section-title {
    color: #fff;
}
.home-section-cta .home-section-intro {
    color: rgba(255,255,255,0.9);
    margin-left: auto;
    margin-right: auto;
}
.home-section-cta .home-section-intro a {
    color: var(--secondary);
    font-weight: 600;
}
.home-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.home-cta-buttons .btn-large {
    padding: 14px 28px;
    font-size: 1.05rem;
}
.home-section-cta .btn-primary {
    background: #fff;
    color: var(--secondary-green, #3d5940);
}
.home-section-cta .btn-primary:hover {
    background: rgba(255,255,255,0.9);
    color: var(--secondary-green-dark, #314a33);
}
.home-section-cta .btn-secondary {
    background: transparent;
    color: #fff;
    border-color: #fff;
}
.home-section-cta .btn-secondary:hover {
    background: #fff;
    color: var(--secondary-green, #3d5940);
}
