:root {
    --fire-red: #ff4500;
    --fire-orange: #ff8c00;
    --fire-yellow: #ffd700;
    --dark-bg: #1a1a2e;
    --card-bg: #16213e;
}

body {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
    min-height: 100vh;
}

/* Fire Animation Container */
.fire-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.fire-particle {
    position: absolute;
    bottom: -10px;
    width: 4px;
    height: 40px;
    background: linear-gradient(
        to top,
        var(--fire-red),
        var(--fire-orange),
        var(--fire-yellow)
    );
    border-radius: 50%;
    animation: fire-rise 3s infinite ease-out;
    opacity: 0;
}

@keyframes fire-rise {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100vh) scale(0.5);
        opacity: 0;
    }
}

/* Offer Header */
.offer-header {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 4rem 0 2rem;
    color: white;
}

.offer-title {
    font-size: 4rem;
    font-weight: 900;
    text-transform: uppercase;
    background: linear-gradient(
        45deg,
        var(--fire-yellow),
        var(--fire-orange),
        var(--fire-red)
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    text-shadow: 0 0 30px rgba(255, 69, 0, 0.5);
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%,
    100% {
        filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.6));
    }
    50% {
        filter: drop-shadow(0 0 40px rgba(255, 140, 0, 0.8));
    }
}

.offer-subtitle {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

/* Countdown Timer */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 3rem 0;
    position: relative;
    z-index: 1;
}

.countdown-item {
    perspective: 1000px;
}

.countdown-flip {
    position: relative;
    width: 120px;
    height: 140px;
}

.countdown-card {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #16213e, #0f3460);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: bold;
    color: var(--fire-yellow);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.countdown-card.flip-animation {
    animation: flip 0.6s ease-in-out;
}

@keyframes flip {
    0% {
        transform: rotateX(0deg);
    }
    50% {
        transform: rotateX(90deg);
    }
    100% {
        transform: rotateX(0deg);
    }
}

.countdown-label {
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Create Offer Form */
.create-offer-container {
    max-width: 600px;
    margin: 3rem auto;
    padding: 2rem;
    background: rgba(22, 33, 62, 0.9);
    border-radius: 20px;
    border: 2px solid rgba(255, 215, 0, 0.2);
    position: relative;
    z-index: 1;
}

.create-offer-container h2 {
    color: var(--fire-yellow);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: #fff;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 10px;
    background: rgba(15, 52, 96, 0.6);
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--fire-yellow);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.btn-create-offer {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(45deg, var(--fire-red), var(--fire-orange));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(255, 69, 0, 0.4);
}

.btn-create-offer:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 69, 0, 0.6);
}

/* Properties Grid */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.property-card {
    background: rgba(22, 33, 62, 0.9);
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid rgba(255, 215, 0, 0.2);
    transition: all 0.3s;
    position: relative;
}

.property-card:hover {
    transform: translateY(-5px);
    border-color: var(--fire-yellow);
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.3);
}

.property-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.property-content {
    padding: 1.5rem;
    color: #fff;
}

.property-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--fire-yellow);
}

.property-price {
    font-size: 1.5rem;
    color: var(--fire-orange);
    font-weight: bold;
    margin: 1rem 0;
}

.property-details {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #ddd;
}

.btn-remove {
    width: 100%;
    padding: 0.75rem;
    background: rgba(220, 53, 69, 0.8);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 1rem;
    transition: all 0.3s;
}

.btn-remove:hover {
    background: rgba(220, 53, 69, 1);
    transform: scale(1.02);
}

/* Add Property Card */
.add-property-card {
    background: rgba(22, 33, 62, 0.5);
    border-radius: 15px;
    border: 2px dashed rgba(255, 215, 0, 0.4);
    transition: all 0.3s;
    position: relative;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    padding: 2rem;
}

.add-property-card:hover {
    background: rgba(22, 33, 62, 0.7);
    border-color: var(--fire-yellow);
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.2);
    transform: translateY(-5px);
}

.add-property-card .plus-icon {
    font-size: 5rem;
    color: var(--fire-yellow);
    margin-bottom: 0rem;
    transition: all 0.3s;
    opacity: 0.7;
}

.add-property-card:hover .plus-icon {
    opacity: 1;
    transform: scale(1.1) rotate(90deg);
}

.add-property-card .add-title {
    color: var(--fire-yellow);
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
}

.add-property-card .add-instructions {
    color: #fff;
    font-size: 0.95rem;
    text-align: center;
    line-height: 1.8;
    opacity: 0.9;
    max-width: 280px;
}

.add-property-card .add-instructions ol {
    text-align: left;
    padding-left: 1.2rem;
    margin: 1rem 0;
}

.add-property-card .add-instructions li {
    margin-bottom: 0.5rem;
}

.add-property-card .click-hint {
    color: var(--fire-orange);
    font-size: 0.85rem;
    margin-top: 1rem;
    font-style: italic;
    opacity: 0.7;
}

.add-property-card:hover .click-hint {
    opacity: 1;
}

.no-offer-message {
    text-align: center;
    color: #fff;
    font-size: 1.5rem;
    padding: 3rem;
    position: relative;
    z-index: 1;
}

.no-properties-message {
    text-align: center;
    color: #ddd;
    font-size: 1.2rem;
    padding: 2rem;
    background: rgba(22, 33, 62, 0.6);
    border-radius: 15px;
    margin: 2rem auto;
    max-width: 600px;
}

/* Messages */
.messages {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
}

.alert {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.alert-success {
    background: rgba(40, 167, 69, 0.9);
    color: white;
    border-left: 4px solid #28a745;
}

.alert-error {
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border-left: 4px solid #dc3545;
}

/* Package Price Section */
.package-price-container {
    margin-bottom: 2rem;
}

.package-price-box {
    background: linear-gradient(
        135deg,
        rgba(255, 140, 0, 0.2),
        rgba(255, 69, 0, 0.2)
    );
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    border: 3px solid rgba(255, 215, 0, 0.5);
    box-shadow: 0 10px 40px rgba(255, 140, 0, 0.4);
    text-align: center;
}

.package-price-title {
    color: var(--fire-yellow);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.package-price-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.price-item {
    text-align: center;
}

.price-label {
    color: #999;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.price-label-special {
    color: var(--fire-yellow);
    font-size: 1rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.price-original {
    color: #fff;
    font-size: 2rem;
    text-decoration: line-through;
    opacity: 0.7;
}

.price-arrow {
    color: var(--fire-orange);
    font-size: 3rem;
    font-weight: bold;
}

.price-offer {
    color: var(--fire-yellow);
    font-size: 3rem;
    font-weight: bold;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.discount-badge {
    background: linear-gradient(45deg, #ff4500, #ff6b00);
    padding: 1rem 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(255, 69, 0, 0.5);
}

.discount-label {
    color: white;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.discount-value {
    color: white;
    font-size: 2rem;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .properties-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .offer-title {
        font-size: 2.5rem;
    }

    .offer-subtitle {
        font-size: 1.2rem;
    }

    .countdown-container {
        gap: 1rem;
        margin: 2rem 0;
    }

    .countdown-flip {
        width: 80px;
        height: 100px;
    }

    .countdown-card {
        font-size: 2.5rem;
    }

    .countdown-label {
        font-size: 0.75rem;
    }

    /* Package Price Responsive */
    .package-price-box {
        padding: 1.5rem;
    }

    .package-price-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .package-price-content {
        gap: 1.5rem;
    }

    .price-original {
        font-size: 1.5rem;
    }

    .price-arrow {
        font-size: 2rem;
        display: none; /* Hide arrow on mobile for cleaner layout */
    }

    .price-offer {
        font-size: 2.5rem;
    }

    .discount-badge {
        padding: 0.75rem 1.25rem;
    }

    .discount-value {
        font-size: 1.5rem;
    }

    .properties-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem;
    }

    .property-card {
        max-width: 500px;
        margin: 0 auto;
    }

    .add-property-card {
        max-width: 500px;
        margin: 0 auto;
        min-height: 350px;
    }

    .add-property-card .plus-icon {
        font-size: 4rem;
        margin-bottom: 0rem;
    }

    .add-property-card .add-title {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .add-property-card .add-instructions {
        font-size: 0.9rem;
    }

    .create-offer-container {
        margin: 2rem 1rem;
        padding: 1.5rem;
    }

    .form-group input {
        font-size: 0.9rem;
    }

    .btn-create-offer {
        font-size: 1rem;
    }

    .messages {
        max-width: calc(100% - 2rem);
        right: 1rem;
    }
}

@media (max-width: 480px) {
    .offer-header {
        padding: 2rem 1rem 1rem;
    }

    .offer-title {
        font-size: 2rem;
    }

    .offer-subtitle {
        font-size: 1rem;
    }

    .countdown-container {
        gap: 0.5rem;
    }

    .countdown-flip {
        width: 60px;
        height: 80px;
    }

    .countdown-card {
        font-size: 2rem;
        border-radius: 10px;
    }

    .countdown-label {
        font-size: 0.65rem;
        margin-top: 0.25rem;
    }

    /* Package Price Mobile */
    .package-price-box {
        padding: 1rem;
        border-width: 2px;
    }

    .package-price-title {
        font-size: 1.2rem;
        letter-spacing: 1px;
        margin-bottom: 0.75rem;
    }

    .package-price-content {
        gap: 1rem;
    }

    .price-label,
    .price-label-special {
        font-size: 0.75rem;
    }

    .price-original {
        font-size: 1.2rem;
    }

    .price-offer {
        font-size: 2rem;
    }

    .discount-badge {
        padding: 0.5rem 1rem;
        width: 100%;
    }

    .discount-label {
        font-size: 0.75rem;
    }

    .discount-value {
        font-size: 1.25rem;
    }

    .property-title {
        font-size: 1.1rem;
    }

    .property-price {
        font-size: 1.3rem;
    }

    .property-details {
        flex-direction: column;
        gap: 0.5rem;
    }
}
