  <turbo-stream action="append" target="vehicles-grid"><template>
    <div class="bg-white rounded-xl shadow-md overflow-hidden hover:shadow-xl hover:-translate-y-1 transition-all duration-300 cursor-pointer group flex flex-col" onclick="openVehicleModal(68)">
  <div class="relative h-48 bg-gray-200 overflow-hidden">
      <img alt="Toyota Rush (Automatic Transmission) | E-A&#39;S VEHICLE RENTAL" class="w-full h-full object-cover group-hover:scale-110 transition-transform duration-300" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6OTcxNDAsInB1ciI6ImJsb2JfaWQifX0=--5a304552f9a35531736132066d4fdc40fd610ae0/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbNjAwLDYwMF0sInNhdmVyIjp7InF1YWxpdHkiOjgwLCJzdHJpcCI6dHJ1ZX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--b5a3c7685837a6d9e60fd2448a949664947f2fcd/3bd38c16-aa05-4c02-b711-cd5d3b2fe65d.jpg" />

        <div class="absolute bottom-2 left-2" title="Verified owner logo">
          <div class="flex h-11 w-11 items-center justify-center rounded-xl bg-white/95 p-1.5 shadow-lg ring-1 ring-black/5 backdrop-blur-sm">
            <img alt="E-A&#39;S VEHICLE RENTAL logo" class="h-full w-full object-contain" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6OTcxMTIsInB1ciI6ImJsb2JfaWQifX0=--68fc1466bc9cff72ff5f7b201d532531bdf58942/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfdG9fbGltaXQiOls2NCw2NF19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--e1972e07de98d125949e77bf677ab3a0d9623cc1/EAS%20Vehicle%20Rental.jpg" />
          </div>
        </div>

      <div class="absolute bottom-2 right-2" title="Verified Owner - Verified Business with DTI Permit">
        <span class="inline-flex items-center px-2.5 py-1 text-sm font-semibold rounded-full bg-yellow-500 text-white shadow-lg">
          <svg class="w-3 h-3 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"></path>
          </svg>
          Verified
        </span>
      </div>
  </div>

  <div class="p-5 flex flex-col flex-grow">
    <div class="flex-grow">
      <h3 class="text-lg font-bold text-gray-900 mb-2 group-hover:text-blue-600 transition-colors">
        Toyota Rush (Automatic Transmission) | E-A&#39;S VEHICLE RENTAL
      </h3>
        <div class="flex items-center text-base text-gray-600 mb-2">
          <svg class="h-4 w-4 mr-1 text-gray-500" fill="none" stroke="currentColor" viewBox="0 0 24 24">
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"></path>
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 11a3 3 0 11-6 0 3 3 0 016 0z"></path>
          </svg>
          <span class="text-gray-600"> BARANGAY SAN MIGUEL, Puerto Princesa City, Palawan</span>
        </div>
        <p class="text-base text-gray-600 mb-3 line-clamp-2">
          Toyota Rush 1.5L G Variant with dual VVT-i

✅Land Navigation
✅Bluetooth
✅...
        </p>

        <div class="flex flex-wrap gap-2 mb-3 text-sm">
            <span class="px-2 py-1 bg-gray-100 text-gray-700 rounded">
              <svg class="w-3 h-3 inline mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z"></path>
              </svg>
              7 seats
            </span>
            <span class="px-2 py-1 bg-gray-100 text-gray-700 rounded">
              <svg class="w-3 h-3 inline mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"></path>
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"></path>
              </svg>
              Automatic
            </span>
            <span class="px-2 py-1 bg-gray-100 text-gray-700 rounded">
              <svg class="w-3 h-3 inline mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z"></path>
              </svg>
              Gasoline
            </span>
        </div>
    </div>
    <div class="flex items-center justify-between mt-4 pt-4 border-t border-gray-200">
      <div>
        <p class="text-sm text-gray-500">Daily Rate</p>
        <p class="text-2xl font-bold text-blue-600">₱2,750</p>
      </div>
      <button class="px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors font-medium text-base">
        View Details
      </button>
    </div>
  </div>
</div>

<div id="vehicle-modal-68" class="fixed inset-0 z-[1000] hidden items-center justify-center modal" data-controller="modal" data-modal-open-value="false" data-action="keydown@window->modal#closeOnEscape">
  <div class="absolute inset-0 bg-black/60 backdrop-blur-sm transition-opacity duration-300 opacity-0 z-[1001] modal-backdrop" data-modal-target="backdrop" onclick="if(event.target === this) closeVehicleModal(68)"></div>
  <div class="relative bg-white rounded-2xl max-w-5xl w-full mx-4 max-h-[90vh] overflow-hidden z-[1002] transform scale-90 opacity-0 transition-all duration-300 shadow-2xl modal-content flex flex-col" data-modal-target="content">
    <!-- Header -->
    <div class="flex justify-between items-center p-6 border-b border-gray-200 bg-gradient-to-r from-blue-50 to-white">
      <div>
        <h2 class="text-3xl font-bold text-gray-900 m-0">Toyota Rush (Automatic Transmission) | E-A&#39;S VEHICLE RENTAL</h2>
        <div class="flex items-center gap-3 mt-2">
          <span class="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-blue-100 text-blue-800">
            Car
          </span>
            <span class="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-yellow-100 text-yellow-800" title="Verified Owner - Verified Business with DTI Permit">
              <svg class="w-4 h-4 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"></path>
              </svg>
              Verified Owner
            </span>
        </div>
      </div>
      <button type="button" class="bg-white hover:bg-gray-100 border border-gray-300 rounded-full w-10 h-10 flex items-center justify-center text-gray-600 hover:text-gray-900 transition-colors shadow-sm" onclick="closeVehicleModal(68)" aria-label="Close">
        <svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24">
          <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path>
        </svg>
      </button>
    </div>

    <!-- Content - Scrollable -->
    <div class="overflow-y-auto flex-1">
      <div class="grid grid-cols-1 lg:grid-cols-2 gap-0">
        <!-- Image Gallery -->
        <div class="bg-gray-50 p-6">
            <div class="mb-4">
              <div class="relative rounded-xl overflow-hidden bg-gray-200 aspect-video">
                <img alt="Toyota Rush (Automatic Transmission) | E-A&#39;S VEHICLE RENTAL" id="main-image-68" class="w-full h-full object-cover" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6OTcxNDAsInB1ciI6ImJsb2JfaWQifX0=--5a304552f9a35531736132066d4fdc40fd610ae0/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMTIwMCwxMjAwXSwic2F2ZXIiOnsicXVhbGl0eSI6ODUsInN0cmlwIjp0cnVlfX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--a8cc17124e11b7490b7c93f626fa1004ce3d0d8e/3bd38c16-aa05-4c02-b711-cd5d3b2fe65d.jpg" />
              </div>
            </div>
              <div class="grid grid-cols-4 gap-2">
                  <button
                    type="button"
                    onclick="updateMainImage('68', '/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6OTcxNDAsInB1ciI6ImJsb2JfaWQifX0=--5a304552f9a35531736132066d4fdc40fd610ae0/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMTIwMCwxMjAwXSwic2F2ZXIiOnsicXVhbGl0eSI6ODUsInN0cmlwIjp0cnVlfX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--a8cc17124e11b7490b7c93f626fa1004ce3d0d8e/3bd38c16-aa05-4c02-b711-cd5d3b2fe65d.jpg', 0)"
                    data-image-index="0"
                    class="relative rounded-lg overflow-hidden bg-gray-200 aspect-square border-2 border-blue-600 transition-colors focus:outline-none focus:ring-2 focus:ring-blue-500">
                    <img alt="Toyota Rush (Automatic Transmission) | E-A&#39;S VEHICLE RENTAL" class="w-full h-full object-cover" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6OTcxNDAsInB1ciI6ImJsb2JfaWQifX0=--5a304552f9a35531736132066d4fdc40fd610ae0/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMjAwLDIwMF0sInNhdmVyIjp7InF1YWxpdHkiOjgwLCJzdHJpcCI6dHJ1ZX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--338ef1efe9d4f6fa4ee1fc5b65c53b6840184c99/3bd38c16-aa05-4c02-b711-cd5d3b2fe65d.jpg" />
                  </button>
                  <button
                    type="button"
                    onclick="updateMainImage('68', '/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6OTcxNDQsInB1ciI6ImJsb2JfaWQifX0=--576d2a678ae1c514d0420185fee63b777f90f1dc/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMTIwMCwxMjAwXSwic2F2ZXIiOnsicXVhbGl0eSI6ODUsInN0cmlwIjp0cnVlfX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--a8cc17124e11b7490b7c93f626fa1004ce3d0d8e/4fcfe6ab-d687-45ed-80f7-8bfefdbe3ed8.jpg', 1)"
                    data-image-index="1"
                    class="relative rounded-lg overflow-hidden bg-gray-200 aspect-square border-2 border-transparent hover:border-gray-300 transition-colors focus:outline-none focus:ring-2 focus:ring-blue-500">
                    <img alt="Toyota Rush (Automatic Transmission) | E-A&#39;S VEHICLE RENTAL" class="w-full h-full object-cover" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6OTcxNDQsInB1ciI6ImJsb2JfaWQifX0=--576d2a678ae1c514d0420185fee63b777f90f1dc/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMjAwLDIwMF0sInNhdmVyIjp7InF1YWxpdHkiOjgwLCJzdHJpcCI6dHJ1ZX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--338ef1efe9d4f6fa4ee1fc5b65c53b6840184c99/4fcfe6ab-d687-45ed-80f7-8bfefdbe3ed8.jpg" />
                  </button>
              </div>
        </div>

        <!-- Details -->
        <div class="p-6 lg:p-8">
          <!-- Pricing Card -->
          <div class="bg-gradient-to-br from-blue-50 to-blue-100 rounded-xl p-6 mb-6 border border-blue-200">
            <div class="flex items-baseline gap-2 mb-2">
              <span class="text-4xl font-bold text-gray-900">₱2750.0</span>
              <span class="text-gray-600 font-medium">per day</span>
            </div>
            <p class="text-sm text-gray-600 mb-4">All prices are in Philippine Peso (PHP)</p>
            <div class="flex items-center gap-2 text-sm text-gray-700">
              <svg class="w-4 h-4 text-green-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
              </svg>
              <span>Available for immediate booking</span>
            </div>
          </div>

          <!-- Description -->
            <div class="mb-6">
              <h3 class="text-lg font-semibold text-gray-900 mb-3 flex items-center">
                <svg class="w-5 h-5 mr-2 text-blue-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path>
                </svg>
                About This Vehicle
              </h3>
              <p class="text-gray-700 leading-relaxed"><p>Toyota Rush 1.5L G Variant with dual VVT-i</p>

<p>✅Land Navigation
<br />✅Bluetooth
<br />✅Car Rental Insurance ( Terms and conditions may apply)
<br />✅Cold AC and Heater are working
<br />✅Power Steering (smooth condition)
<br />✅accessory power outlet for charging cellphones
<br />✅power windows all working
<br />✅all Tires in Good Condition
<br />✅Preventive Maintenance Service (PMS) Always updated
<br />✅Gas And Go</p></p>
            </div>

          <!-- Location -->
            <div class="mb-6 bg-gray-50 rounded-xl p-6 border border-gray-200">
              <h3 class="text-lg font-semibold text-gray-900 mb-3 flex items-center">
                <svg class="w-5 h-5 mr-2 text-blue-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"></path>
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 11a3 3 0 11-6 0 3 3 0 016 0z"></path>
                </svg>
                Rental Owner Location
              </h3>
              <p class="text-gray-700 leading-relaxed">
                National Highway ( Two (2) Minutes away from Puerto Princesa International Airport ) ,  BARANGAY SAN MIGUEL, Puerto Princesa City, Palawan, Philippines
              </p>
            </div>

          <!-- Trusted Badge Info -->
            <div class="mb-6 bg-yellow-50 rounded-xl p-6 border border-yellow-200">
              <div class="flex items-start">
                <div class="flex-shrink-0">
                  <svg class="w-6 h-6 text-yellow-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"></path>
                  </svg>
                </div>
                <div class="ml-3">
                  <h3 class="text-lg font-semibold text-gray-900 mb-2">Verified Owner</h3>
                  <p class="text-gray-700 text-sm">
                    This owner has verified their business details. All vehicles from this owner display the trusted badge, ensuring you're renting from a verified business.
                  </p>
                    <div class="mt-3">
                      <a class="inline-flex items-center px-4 py-2 rounded-md font-medium text-white text-sm" style="background-color: #0066cc" href="/rental-owners/e-a-s-vehicle-rental-40">View Company Profile</a>
                    </div>
                </div>
              </div>
            </div>

          <!-- Rental Information -->
            <div class="bg-gray-50 rounded-xl p-6 mb-6 border border-gray-200">
              <h3 class="text-lg font-semibold text-gray-900 mb-4 flex items-center">
                <svg class="w-5 h-5 mr-2 text-blue-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"></path>
                </svg>
                What's Included
              </h3>
              <ul class="space-y-2 text-gray-700">
                  <li class="flex items-start gap-2">
                    <svg class="w-5 h-5 text-green-600 mt-0.5 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                      <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
                    </svg>
                    <span>Performance: Powered by a 1.5-liter gasoline engine with dual VVT-i</span>
                  </li>
                  <li class="flex items-start gap-2">
                    <svg class="w-5 h-5 text-green-600 mt-0.5 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                      <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
                    </svg>
                    <span>producing roughly hp</span>
                  </li>
                  <li class="flex items-start gap-2">
                    <svg class="w-5 h-5 text-green-600 mt-0.5 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                      <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
                    </svg>
                    <span>and built with a sturdy rear-wheel drive platform.</span>
                  </li>
                  <li class="flex items-start gap-2">
                    <svg class="w-5 h-5 text-green-600 mt-0.5 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                      <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
                    </svg>
                    <span>Dimensions &amp; Utility: It features 220 mm ground clearance</span>
                  </li>
                  <li class="flex items-start gap-2">
                    <svg class="w-5 h-5 text-green-600 mt-0.5 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                      <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
                    </svg>
                    <span>7-inch touchscreen infotainment (with Apple CarPlay/Android Auto on newer models)</span>
                  </li>
                  <li class="flex items-start gap-2">
                    <svg class="w-5 h-5 text-green-600 mt-0.5 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                      <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
                    </svg>
                    <span>and foldable third-row seats for extra cargo space.</span>
                  </li>
                  <li class="flex items-start gap-2">
                    <svg class="w-5 h-5 text-green-600 mt-0.5 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                      <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
                    </svg>
                    <span>Safety: The model is well-regarded for safety</span>
                  </li>
                  <li class="flex items-start gap-2">
                    <svg class="w-5 h-5 text-green-600 mt-0.5 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                      <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
                    </svg>
                    <span>featuring 6 airbags (in some variants)</span>
                  </li>
                  <li class="flex items-start gap-2">
                    <svg class="w-5 h-5 text-green-600 mt-0.5 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                      <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
                    </svg>
                    <span>stability control</span>
                  </li>
                  <li class="flex items-start gap-2">
                    <svg class="w-5 h-5 text-green-600 mt-0.5 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                      <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
                    </svg>
                    <span>and rear parking sensors.</span>
                  </li>
              </ul>
            </div>

          <!-- Specifications -->
            <div class="border-t border-gray-200 pt-6">
              <h3 class="text-lg font-semibold text-gray-900 mb-4 flex items-center">
                <svg class="w-5 h-5 mr-2 text-blue-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path>
                </svg>
                Additional Information
              </h3>
              <div class="space-y-3">
                  <div class="flex justify-between items-start py-2 border-b border-gray-100">
                    <span class="font-medium text-gray-700">Body Type</span>
                    <span class="text-gray-900 text-right">Car - SUV</span>
                  </div>
                  <div class="flex justify-between items-start py-2 border-b border-gray-100">
                    <span class="font-medium text-gray-700">Seating Capacity</span>
                    <span class="text-gray-900 text-right">7</span>
                  </div>
                  <div class="flex justify-between items-start py-2 border-b border-gray-100">
                    <span class="font-medium text-gray-700">Transmission</span>
                    <span class="text-gray-900 text-right">Automatic</span>
                  </div>
                  <div class="flex justify-between items-start py-2 border-b border-gray-100">
                    <span class="font-medium text-gray-700">Fuel Type</span>
                    <span class="text-gray-900 text-right">Gasoline</span>
                  </div>
                  <div class="flex justify-between items-start py-2">
                    <span class="font-medium text-gray-700">Available Areas</span>
                    <span class="text-gray-900 text-right">National Highway Puerto Princesa City, Palawan, (Two (2) Minutes away from Puerto Princesa International Airport)</span>
                  </div>
              </div>
            </div>

          <!-- Features/Highlights -->
          <div class="border-t border-gray-200 pt-6">
            <div class="flex flex-wrap gap-2">
              <span class="inline-flex items-center px-3 py-1 rounded-full text-sm bg-green-100 text-green-800">
                <svg class="w-4 h-4 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
                </svg>
                Available Now
              </span>
              <span class="inline-flex items-center px-3 py-1 rounded-full text-sm bg-blue-100 text-blue-800">
                <svg class="w-4 h-4 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"></path>
                </svg>
                Instant Booking
              </span>
            </div>
          </div>
        </div>
      </div>
    </div>

    <!-- Footer Actions -->
    <div class="border-t border-gray-200 bg-gray-50 p-6">
      <div class="flex flex-col sm:flex-row justify-between items-center gap-4">
        <div class="text-sm text-gray-600">
          <p class="font-medium">Need help? Contact us for assistance</p>
        </div>
        <div class="flex gap-3 w-full sm:w-auto">
          <button type="button" class="flex-1 sm:flex-none px-6 py-3 bg-white border-2 border-gray-300 text-gray-700 rounded-lg font-semibold hover:bg-gray-50 hover:border-gray-400 transition-colors" onclick="closeVehicleModal(68)">
            Close
          </button>
          <a data-turbo="false" class="flex-1 sm:flex-none px-8 py-3 bg-blue-600 text-white rounded-lg font-semibold hover:bg-blue-700 transition-colors shadow-lg text-center flex items-center justify-center gap-2" href="/bookings/new?vehicle_id=toyota-rush-automatic-transmission">
            <svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
              <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"></path>
            </svg>
            Book Now
</a>        </div>
      </div>
    </div>
  </div>
</div>

<script>
  function updateMainImage(vehicleId, imageUrl, imageIndex) {
    const mainImage = document.getElementById('main-image-' + vehicleId);
    if (mainImage && imageUrl) {
      mainImage.src = imageUrl;
      
      // Update border on thumbnails
      const thumbnails = document.querySelectorAll(`#vehicle-modal-${vehicleId} button[data-image-index]`);
      thumbnails.forEach((thumb, index) => {
        if (index === imageIndex) {
          thumb.classList.remove('border-transparent', 'hover:border-gray-300');
          thumb.classList.add('border-blue-600');
        } else {
          thumb.classList.remove('border-blue-600');
          thumb.classList.add('border-transparent', 'hover:border-gray-300');
        }
      });
    }
  }
</script>

<div class="bg-white rounded-xl shadow-md overflow-hidden hover:shadow-xl hover:-translate-y-1 transition-all duration-300 cursor-pointer group flex flex-col" onclick="openVehicleModal(49)">
  <div class="relative h-48 bg-gray-200 overflow-hidden">
      <img alt="Toyota Hilux 2025 | IR Vehicle Rental" class="w-full h-full object-cover group-hover:scale-110 transition-transform duration-300" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6OTY4NjgsInB1ciI6ImJsb2JfaWQifX0=--0454680745bd59f2433f4acbc4a64d4d855b2aa0/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbNjAwLDYwMF0sInNhdmVyIjp7InF1YWxpdHkiOjgwLCJzdHJpcCI6dHJ1ZX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--b5a3c7685837a6d9e60fd2448a949664947f2fcd/479693561_1355780275446438_7457420561752926031_n.jpg" />

        <div class="absolute bottom-2 left-2" title="Verified owner logo">
          <div class="flex h-11 w-11 items-center justify-center rounded-xl bg-white/95 p-1.5 shadow-lg ring-1 ring-black/5 backdrop-blur-sm">
            <img alt="IR Vehicle Rental logo" class="h-full w-full object-contain" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6OTY4NTIsInB1ciI6ImJsb2JfaWQifX0=--968833fad038065ef8943adf39cc3d595f3b1f66/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfdG9fbGltaXQiOls2NCw2NF19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--e1972e07de98d125949e77bf677ab3a0d9623cc1/1000075880.jpg" />
          </div>
        </div>

      <div class="absolute bottom-2 right-2" title="Verified Owner - Verified Business with DTI Permit">
        <span class="inline-flex items-center px-2.5 py-1 text-sm font-semibold rounded-full bg-yellow-500 text-white shadow-lg">
          <svg class="w-3 h-3 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"></path>
          </svg>
          Verified
        </span>
      </div>
  </div>

  <div class="p-5 flex flex-col flex-grow">
    <div class="flex-grow">
      <h3 class="text-lg font-bold text-gray-900 mb-2 group-hover:text-blue-600 transition-colors">
        Toyota Hilux 2025 | IR Vehicle Rental
      </h3>
        <div class="flex items-center text-base text-gray-600 mb-2">
          <svg class="h-4 w-4 mr-1 text-gray-500" fill="none" stroke="currentColor" viewBox="0 0 24 24">
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"></path>
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 11a3 3 0 11-6 0 3 3 0 016 0z"></path>
          </svg>
          <span class="text-gray-600">San Pedro, Puerto Princesa City, Palawan</span>
        </div>
        <p class="text-base text-gray-600 mb-3 line-clamp-2">
          pickup featuring a 6-speed automatic paired with either a 2.4L diesel engine,...
        </p>

        <div class="flex flex-wrap gap-2 mb-3 text-sm">
            <span class="px-2 py-1 bg-gray-100 text-gray-700 rounded">
              <svg class="w-3 h-3 inline mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z"></path>
              </svg>
              5 seats
            </span>
            <span class="px-2 py-1 bg-gray-100 text-gray-700 rounded">
              <svg class="w-3 h-3 inline mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"></path>
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"></path>
              </svg>
              Automatic
            </span>
            <span class="px-2 py-1 bg-gray-100 text-gray-700 rounded">
              <svg class="w-3 h-3 inline mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z"></path>
              </svg>
              Diesel
            </span>
        </div>
    </div>
    <div class="flex items-center justify-between mt-4 pt-4 border-t border-gray-200">
      <div>
        <p class="text-sm text-gray-500">Daily Rate</p>
        <p class="text-2xl font-bold text-blue-600">₱2,970</p>
      </div>
      <button class="px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors font-medium text-base">
        View Details
      </button>
    </div>
  </div>
</div>

<div id="vehicle-modal-49" class="fixed inset-0 z-[1000] hidden items-center justify-center modal" data-controller="modal" data-modal-open-value="false" data-action="keydown@window->modal#closeOnEscape">
  <div class="absolute inset-0 bg-black/60 backdrop-blur-sm transition-opacity duration-300 opacity-0 z-[1001] modal-backdrop" data-modal-target="backdrop" onclick="if(event.target === this) closeVehicleModal(49)"></div>
  <div class="relative bg-white rounded-2xl max-w-5xl w-full mx-4 max-h-[90vh] overflow-hidden z-[1002] transform scale-90 opacity-0 transition-all duration-300 shadow-2xl modal-content flex flex-col" data-modal-target="content">
    <!-- Header -->
    <div class="flex justify-between items-center p-6 border-b border-gray-200 bg-gradient-to-r from-blue-50 to-white">
      <div>
        <h2 class="text-3xl font-bold text-gray-900 m-0">Toyota Hilux 2025 | IR Vehicle Rental</h2>
        <div class="flex items-center gap-3 mt-2">
          <span class="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-blue-100 text-blue-800">
            Car
          </span>
            <span class="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-yellow-100 text-yellow-800" title="Verified Owner - Verified Business with DTI Permit">
              <svg class="w-4 h-4 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"></path>
              </svg>
              Verified Owner
            </span>
        </div>
      </div>
      <button type="button" class="bg-white hover:bg-gray-100 border border-gray-300 rounded-full w-10 h-10 flex items-center justify-center text-gray-600 hover:text-gray-900 transition-colors shadow-sm" onclick="closeVehicleModal(49)" aria-label="Close">
        <svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24">
          <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path>
        </svg>
      </button>
    </div>

    <!-- Content - Scrollable -->
    <div class="overflow-y-auto flex-1">
      <div class="grid grid-cols-1 lg:grid-cols-2 gap-0">
        <!-- Image Gallery -->
        <div class="bg-gray-50 p-6">
            <div class="mb-4">
              <div class="relative rounded-xl overflow-hidden bg-gray-200 aspect-video">
                <img alt="Toyota Hilux 2025 | IR Vehicle Rental" id="main-image-49" class="w-full h-full object-cover" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6OTY4NjgsInB1ciI6ImJsb2JfaWQifX0=--0454680745bd59f2433f4acbc4a64d4d855b2aa0/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMTIwMCwxMjAwXSwic2F2ZXIiOnsicXVhbGl0eSI6ODUsInN0cmlwIjp0cnVlfX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--a8cc17124e11b7490b7c93f626fa1004ce3d0d8e/479693561_1355780275446438_7457420561752926031_n.jpg" />
              </div>
            </div>
              <div class="grid grid-cols-4 gap-2">
                  <button
                    type="button"
                    onclick="updateMainImage('49', '/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6OTY4NjUsInB1ciI6ImJsb2JfaWQifX0=--39dfb6b6880d6c3fbc78ff23b98ece6dc3b28220/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMTIwMCwxMjAwXSwic2F2ZXIiOnsicXVhbGl0eSI6ODUsInN0cmlwIjp0cnVlfX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--a8cc17124e11b7490b7c93f626fa1004ce3d0d8e/599236567_2510407536077788_7782386510163914581_n.jpg', 0)"
                    data-image-index="0"
                    class="relative rounded-lg overflow-hidden bg-gray-200 aspect-square border-2 border-blue-600 transition-colors focus:outline-none focus:ring-2 focus:ring-blue-500">
                    <img alt="Toyota Hilux 2025 | IR Vehicle Rental" class="w-full h-full object-cover" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6OTY4NjUsInB1ciI6ImJsb2JfaWQifX0=--39dfb6b6880d6c3fbc78ff23b98ece6dc3b28220/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMjAwLDIwMF0sInNhdmVyIjp7InF1YWxpdHkiOjgwLCJzdHJpcCI6dHJ1ZX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--338ef1efe9d4f6fa4ee1fc5b65c53b6840184c99/599236567_2510407536077788_7782386510163914581_n.jpg" />
                  </button>
                  <button
                    type="button"
                    onclick="updateMainImage('49', '/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6OTY4NjYsInB1ciI6ImJsb2JfaWQifX0=--68b82cb8413673bf6be44c68c88caa7d5d8388be/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMTIwMCwxMjAwXSwic2F2ZXIiOnsicXVhbGl0eSI6ODUsInN0cmlwIjp0cnVlfX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--a8cc17124e11b7490b7c93f626fa1004ce3d0d8e/483853926_1143601510573886_4454740991942928942_n.jpg', 1)"
                    data-image-index="1"
                    class="relative rounded-lg overflow-hidden bg-gray-200 aspect-square border-2 border-transparent hover:border-gray-300 transition-colors focus:outline-none focus:ring-2 focus:ring-blue-500">
                    <img alt="Toyota Hilux 2025 | IR Vehicle Rental" class="w-full h-full object-cover" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6OTY4NjYsInB1ciI6ImJsb2JfaWQifX0=--68b82cb8413673bf6be44c68c88caa7d5d8388be/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMjAwLDIwMF0sInNhdmVyIjp7InF1YWxpdHkiOjgwLCJzdHJpcCI6dHJ1ZX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--338ef1efe9d4f6fa4ee1fc5b65c53b6840184c99/483853926_1143601510573886_4454740991942928942_n.jpg" />
                  </button>
                  <button
                    type="button"
                    onclick="updateMainImage('49', '/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6OTY4NjcsInB1ciI6ImJsb2JfaWQifX0=--413ba7bcf56b8341bebd76966492a3c8cb15c4b7/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMTIwMCwxMjAwXSwic2F2ZXIiOnsicXVhbGl0eSI6ODUsInN0cmlwIjp0cnVlfX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--a8cc17124e11b7490b7c93f626fa1004ce3d0d8e/480147754_1205389627618660_5887910875685320042_n.jpg', 2)"
                    data-image-index="2"
                    class="relative rounded-lg overflow-hidden bg-gray-200 aspect-square border-2 border-transparent hover:border-gray-300 transition-colors focus:outline-none focus:ring-2 focus:ring-blue-500">
                    <img alt="Toyota Hilux 2025 | IR Vehicle Rental" class="w-full h-full object-cover" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6OTY4NjcsInB1ciI6ImJsb2JfaWQifX0=--413ba7bcf56b8341bebd76966492a3c8cb15c4b7/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMjAwLDIwMF0sInNhdmVyIjp7InF1YWxpdHkiOjgwLCJzdHJpcCI6dHJ1ZX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--338ef1efe9d4f6fa4ee1fc5b65c53b6840184c99/480147754_1205389627618660_5887910875685320042_n.jpg" />
                  </button>
                  <button
                    type="button"
                    onclick="updateMainImage('49', '/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6OTY4NjgsInB1ciI6ImJsb2JfaWQifX0=--0454680745bd59f2433f4acbc4a64d4d855b2aa0/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMTIwMCwxMjAwXSwic2F2ZXIiOnsicXVhbGl0eSI6ODUsInN0cmlwIjp0cnVlfX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--a8cc17124e11b7490b7c93f626fa1004ce3d0d8e/479693561_1355780275446438_7457420561752926031_n.jpg', 3)"
                    data-image-index="3"
                    class="relative rounded-lg overflow-hidden bg-gray-200 aspect-square border-2 border-transparent hover:border-gray-300 transition-colors focus:outline-none focus:ring-2 focus:ring-blue-500">
                    <img alt="Toyota Hilux 2025 | IR Vehicle Rental" class="w-full h-full object-cover" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6OTY4NjgsInB1ciI6ImJsb2JfaWQifX0=--0454680745bd59f2433f4acbc4a64d4d855b2aa0/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMjAwLDIwMF0sInNhdmVyIjp7InF1YWxpdHkiOjgwLCJzdHJpcCI6dHJ1ZX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--338ef1efe9d4f6fa4ee1fc5b65c53b6840184c99/479693561_1355780275446438_7457420561752926031_n.jpg" />
                  </button>
              </div>
        </div>

        <!-- Details -->
        <div class="p-6 lg:p-8">
          <!-- Pricing Card -->
          <div class="bg-gradient-to-br from-blue-50 to-blue-100 rounded-xl p-6 mb-6 border border-blue-200">
            <div class="flex items-baseline gap-2 mb-2">
              <span class="text-4xl font-bold text-gray-900">₱2970.0</span>
              <span class="text-gray-600 font-medium">per day</span>
            </div>
            <p class="text-sm text-gray-600 mb-4">All prices are in Philippine Peso (PHP)</p>
            <div class="flex items-center gap-2 text-sm text-gray-700">
              <svg class="w-4 h-4 text-green-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
              </svg>
              <span>Available for immediate booking</span>
            </div>
          </div>

          <!-- Description -->
            <div class="mb-6">
              <h3 class="text-lg font-semibold text-gray-900 mb-3 flex items-center">
                <svg class="w-5 h-5 mr-2 text-blue-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path>
                </svg>
                About This Vehicle
              </h3>
              <p class="text-gray-700 leading-relaxed"><p>pickup featuring a 6-speed automatic paired with either a 2.4L diesel engine, offering 150-204 HP. It includes advanced safety features like a 360-camera and autonomous braking, alongside a 12.3-inch touchscreen, LED lighting, and enhanced comfort for both work and daily driving.</p></p>
            </div>

          <!-- Location -->
            <div class="mb-6 bg-gray-50 rounded-xl p-6 border border-gray-200">
              <h3 class="text-lg font-semibold text-gray-900 mb-3 flex items-center">
                <svg class="w-5 h-5 mr-2 text-blue-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"></path>
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 11a3 3 0 11-6 0 3 3 0 016 0z"></path>
                </svg>
                Rental Owner Location
              </h3>
              <p class="text-gray-700 leading-relaxed">
                BM road, San Pedro, Puerto Princesa City, Palawan, Philippines
              </p>
            </div>

          <!-- Trusted Badge Info -->
            <div class="mb-6 bg-yellow-50 rounded-xl p-6 border border-yellow-200">
              <div class="flex items-start">
                <div class="flex-shrink-0">
                  <svg class="w-6 h-6 text-yellow-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"></path>
                  </svg>
                </div>
                <div class="ml-3">
                  <h3 class="text-lg font-semibold text-gray-900 mb-2">Verified Owner</h3>
                  <p class="text-gray-700 text-sm">
                    This owner has verified their business details. All vehicles from this owner display the trusted badge, ensuring you're renting from a verified business.
                  </p>
                    <div class="mt-3">
                      <a class="inline-flex items-center px-4 py-2 rounded-md font-medium text-white text-sm" style="background-color: #0066cc" href="/rental-owners/ir-vehicle-rental-25">View Company Profile</a>
                    </div>
                </div>
              </div>
            </div>

          <!-- Rental Information -->
            <div class="bg-gray-50 rounded-xl p-6 mb-6 border border-gray-200">
              <h3 class="text-lg font-semibold text-gray-900 mb-4 flex items-center">
                <svg class="w-5 h-5 mr-2 text-blue-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"></path>
                </svg>
                What's Included
              </h3>
              <ul class="space-y-2 text-gray-700">
                  <li class="flex items-start gap-2">
                    <svg class="w-5 h-5 text-green-600 mt-0.5 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                      <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
                    </svg>
                    <span>GPS</span>
                  </li>
                  <li class="flex items-start gap-2">
                    <svg class="w-5 h-5 text-green-600 mt-0.5 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                      <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
                    </svg>
                    <span>Phone holder</span>
                  </li>
              </ul>
            </div>

          <!-- Specifications -->
            <div class="border-t border-gray-200 pt-6">
              <h3 class="text-lg font-semibold text-gray-900 mb-4 flex items-center">
                <svg class="w-5 h-5 mr-2 text-blue-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path>
                </svg>
                Additional Information
              </h3>
              <div class="space-y-3">
                  <div class="flex justify-between items-start py-2 border-b border-gray-100">
                    <span class="font-medium text-gray-700">Body Type</span>
                    <span class="text-gray-900 text-right">Car - Pickup</span>
                  </div>
                  <div class="flex justify-between items-start py-2 border-b border-gray-100">
                    <span class="font-medium text-gray-700">Seating Capacity</span>
                    <span class="text-gray-900 text-right">5</span>
                  </div>
                  <div class="flex justify-between items-start py-2 border-b border-gray-100">
                    <span class="font-medium text-gray-700">Transmission</span>
                    <span class="text-gray-900 text-right">Automatic</span>
                  </div>
                  <div class="flex justify-between items-start py-2 border-b border-gray-100">
                    <span class="font-medium text-gray-700">Fuel Type</span>
                    <span class="text-gray-900 text-right">Diesel</span>
                  </div>
                  <div class="flex justify-between items-start py-2">
                    <span class="font-medium text-gray-700">Available Areas</span>
                    <span class="text-gray-900 text-right">Puerto Princesa City</span>
                  </div>
              </div>
            </div>

          <!-- Features/Highlights -->
          <div class="border-t border-gray-200 pt-6">
            <div class="flex flex-wrap gap-2">
              <span class="inline-flex items-center px-3 py-1 rounded-full text-sm bg-green-100 text-green-800">
                <svg class="w-4 h-4 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
                </svg>
                Available Now
              </span>
              <span class="inline-flex items-center px-3 py-1 rounded-full text-sm bg-blue-100 text-blue-800">
                <svg class="w-4 h-4 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"></path>
                </svg>
                Instant Booking
              </span>
            </div>
          </div>
        </div>
      </div>
    </div>

    <!-- Footer Actions -->
    <div class="border-t border-gray-200 bg-gray-50 p-6">
      <div class="flex flex-col sm:flex-row justify-between items-center gap-4">
        <div class="text-sm text-gray-600">
          <p class="font-medium">Need help? Contact us for assistance</p>
        </div>
        <div class="flex gap-3 w-full sm:w-auto">
          <button type="button" class="flex-1 sm:flex-none px-6 py-3 bg-white border-2 border-gray-300 text-gray-700 rounded-lg font-semibold hover:bg-gray-50 hover:border-gray-400 transition-colors" onclick="closeVehicleModal(49)">
            Close
          </button>
          <a data-turbo="false" class="flex-1 sm:flex-none px-8 py-3 bg-blue-600 text-white rounded-lg font-semibold hover:bg-blue-700 transition-colors shadow-lg text-center flex items-center justify-center gap-2" href="/bookings/new?vehicle_id=toyota-hilux-2025">
            <svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
              <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"></path>
            </svg>
            Book Now
</a>        </div>
      </div>
    </div>
  </div>
</div>

<script>
  function updateMainImage(vehicleId, imageUrl, imageIndex) {
    const mainImage = document.getElementById('main-image-' + vehicleId);
    if (mainImage && imageUrl) {
      mainImage.src = imageUrl;
      
      // Update border on thumbnails
      const thumbnails = document.querySelectorAll(`#vehicle-modal-${vehicleId} button[data-image-index]`);
      thumbnails.forEach((thumb, index) => {
        if (index === imageIndex) {
          thumb.classList.remove('border-transparent', 'hover:border-gray-300');
          thumb.classList.add('border-blue-600');
        } else {
          thumb.classList.remove('border-blue-600');
          thumb.classList.add('border-transparent', 'hover:border-gray-300');
        }
      });
    }
  }
</script>

<div class="bg-white rounded-xl shadow-md overflow-hidden hover:shadow-xl hover:-translate-y-1 transition-all duration-300 cursor-pointer group flex flex-col" onclick="openVehicleModal(7)">
  <div class="relative h-48 bg-gray-200 overflow-hidden">
      <img alt="Toyota innova | Rose car rental services" class="w-full h-full object-cover group-hover:scale-110 transition-transform duration-300" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6ODMsInB1ciI6ImJsb2JfaWQifX0=--666eee9e349bceb90916a965deb23978331eae10/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbNjAwLDYwMF0sInNhdmVyIjp7InF1YWxpdHkiOjgwLCJzdHJpcCI6dHJ1ZX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--b5a3c7685837a6d9e60fd2448a949664947f2fcd/IMG_0216.jpeg" />


      <div class="absolute bottom-2 right-2" title="Verified Owner - Verified Business with DTI Permit">
        <span class="inline-flex items-center px-2.5 py-1 text-sm font-semibold rounded-full bg-yellow-500 text-white shadow-lg">
          <svg class="w-3 h-3 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"></path>
          </svg>
          Verified
        </span>
      </div>
  </div>

  <div class="p-5 flex flex-col flex-grow">
    <div class="flex-grow">
      <h3 class="text-lg font-bold text-gray-900 mb-2 group-hover:text-blue-600 transition-colors">
        Toyota innova | Rose car rental services
      </h3>
        <div class="flex items-center text-base text-gray-600 mb-2">
          <svg class="h-4 w-4 mr-1 text-gray-500" fill="none" stroke="currentColor" viewBox="0 0 24 24">
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"></path>
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 11a3 3 0 11-6 0 3 3 0 016 0z"></path>
          </svg>
          <span class="text-gray-600">Puerto Princesa City, Palawan</span>
        </div>
        <p class="text-base text-gray-600 mb-3 line-clamp-2">
          🚗Car rental in Palawan 
Toyota Innova 2026 model 
Affordable • Realible • C...
        </p>

        <div class="flex flex-wrap gap-2 mb-3 text-sm">
            <span class="px-2 py-1 bg-gray-100 text-gray-700 rounded">
              <svg class="w-3 h-3 inline mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z"></path>
              </svg>
              8 seats
            </span>
            <span class="px-2 py-1 bg-gray-100 text-gray-700 rounded">
              <svg class="w-3 h-3 inline mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"></path>
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"></path>
              </svg>
              Automatic
            </span>
            <span class="px-2 py-1 bg-gray-100 text-gray-700 rounded">
              <svg class="w-3 h-3 inline mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z"></path>
              </svg>
              Diesel
            </span>
        </div>
    </div>
    <div class="flex items-center justify-between mt-4 pt-4 border-t border-gray-200">
      <div>
        <p class="text-sm text-gray-500">Daily Rate</p>
        <p class="text-2xl font-bold text-blue-600">₱3,300</p>
      </div>
      <button class="px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors font-medium text-base">
        View Details
      </button>
    </div>
  </div>
</div>

<div id="vehicle-modal-7" class="fixed inset-0 z-[1000] hidden items-center justify-center modal" data-controller="modal" data-modal-open-value="false" data-action="keydown@window->modal#closeOnEscape">
  <div class="absolute inset-0 bg-black/60 backdrop-blur-sm transition-opacity duration-300 opacity-0 z-[1001] modal-backdrop" data-modal-target="backdrop" onclick="if(event.target === this) closeVehicleModal(7)"></div>
  <div class="relative bg-white rounded-2xl max-w-5xl w-full mx-4 max-h-[90vh] overflow-hidden z-[1002] transform scale-90 opacity-0 transition-all duration-300 shadow-2xl modal-content flex flex-col" data-modal-target="content">
    <!-- Header -->
    <div class="flex justify-between items-center p-6 border-b border-gray-200 bg-gradient-to-r from-blue-50 to-white">
      <div>
        <h2 class="text-3xl font-bold text-gray-900 m-0">Toyota innova | Rose car rental services</h2>
        <div class="flex items-center gap-3 mt-2">
          <span class="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-blue-100 text-blue-800">
            Car
          </span>
            <span class="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-yellow-100 text-yellow-800" title="Verified Owner - Verified Business with DTI Permit">
              <svg class="w-4 h-4 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"></path>
              </svg>
              Verified Owner
            </span>
        </div>
      </div>
      <button type="button" class="bg-white hover:bg-gray-100 border border-gray-300 rounded-full w-10 h-10 flex items-center justify-center text-gray-600 hover:text-gray-900 transition-colors shadow-sm" onclick="closeVehicleModal(7)" aria-label="Close">
        <svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24">
          <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path>
        </svg>
      </button>
    </div>

    <!-- Content - Scrollable -->
    <div class="overflow-y-auto flex-1">
      <div class="grid grid-cols-1 lg:grid-cols-2 gap-0">
        <!-- Image Gallery -->
        <div class="bg-gray-50 p-6">
            <div class="mb-4">
              <div class="relative rounded-xl overflow-hidden bg-gray-200 aspect-video">
                <img alt="Toyota innova | Rose car rental services" id="main-image-7" class="w-full h-full object-cover" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6ODMsInB1ciI6ImJsb2JfaWQifX0=--666eee9e349bceb90916a965deb23978331eae10/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMTIwMCwxMjAwXSwic2F2ZXIiOnsicXVhbGl0eSI6ODUsInN0cmlwIjp0cnVlfX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--a8cc17124e11b7490b7c93f626fa1004ce3d0d8e/IMG_0216.jpeg" />
              </div>
            </div>
              <div class="grid grid-cols-4 gap-2">
                  <button
                    type="button"
                    onclick="updateMainImage('7', '/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6ODMsInB1ciI6ImJsb2JfaWQifX0=--666eee9e349bceb90916a965deb23978331eae10/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMTIwMCwxMjAwXSwic2F2ZXIiOnsicXVhbGl0eSI6ODUsInN0cmlwIjp0cnVlfX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--a8cc17124e11b7490b7c93f626fa1004ce3d0d8e/IMG_0216.jpeg', 0)"
                    data-image-index="0"
                    class="relative rounded-lg overflow-hidden bg-gray-200 aspect-square border-2 border-blue-600 transition-colors focus:outline-none focus:ring-2 focus:ring-blue-500">
                    <img alt="Toyota innova | Rose car rental services" class="w-full h-full object-cover" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6ODMsInB1ciI6ImJsb2JfaWQifX0=--666eee9e349bceb90916a965deb23978331eae10/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMjAwLDIwMF0sInNhdmVyIjp7InF1YWxpdHkiOjgwLCJzdHJpcCI6dHJ1ZX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--338ef1efe9d4f6fa4ee1fc5b65c53b6840184c99/IMG_0216.jpeg" />
                  </button>
                  <button
                    type="button"
                    onclick="updateMainImage('7', '/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6ODUsInB1ciI6ImJsb2JfaWQifX0=--9959270b00ebf0be0a380f0bf13e49420405d25f/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMTIwMCwxMjAwXSwic2F2ZXIiOnsicXVhbGl0eSI6ODUsInN0cmlwIjp0cnVlfX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--a8cc17124e11b7490b7c93f626fa1004ce3d0d8e/IMG_0900.jpeg', 1)"
                    data-image-index="1"
                    class="relative rounded-lg overflow-hidden bg-gray-200 aspect-square border-2 border-transparent hover:border-gray-300 transition-colors focus:outline-none focus:ring-2 focus:ring-blue-500">
                    <img alt="Toyota innova | Rose car rental services" class="w-full h-full object-cover" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6ODUsInB1ciI6ImJsb2JfaWQifX0=--9959270b00ebf0be0a380f0bf13e49420405d25f/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMjAwLDIwMF0sInNhdmVyIjp7InF1YWxpdHkiOjgwLCJzdHJpcCI6dHJ1ZX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--338ef1efe9d4f6fa4ee1fc5b65c53b6840184c99/IMG_0900.jpeg" />
                  </button>
                  <button
                    type="button"
                    onclick="updateMainImage('7', '/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6ODcsInB1ciI6ImJsb2JfaWQifX0=--8935ea6e376dd6b7699a82be484eb560ac0ae5c0/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMTIwMCwxMjAwXSwic2F2ZXIiOnsicXVhbGl0eSI6ODUsInN0cmlwIjp0cnVlfX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--a8cc17124e11b7490b7c93f626fa1004ce3d0d8e/IMG_0904.jpeg', 2)"
                    data-image-index="2"
                    class="relative rounded-lg overflow-hidden bg-gray-200 aspect-square border-2 border-transparent hover:border-gray-300 transition-colors focus:outline-none focus:ring-2 focus:ring-blue-500">
                    <img alt="Toyota innova | Rose car rental services" class="w-full h-full object-cover" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6ODcsInB1ciI6ImJsb2JfaWQifX0=--8935ea6e376dd6b7699a82be484eb560ac0ae5c0/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMjAwLDIwMF0sInNhdmVyIjp7InF1YWxpdHkiOjgwLCJzdHJpcCI6dHJ1ZX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--338ef1efe9d4f6fa4ee1fc5b65c53b6840184c99/IMG_0904.jpeg" />
                  </button>
                  <button
                    type="button"
                    onclick="updateMainImage('7', '/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6ODksInB1ciI6ImJsb2JfaWQifX0=--f940a4e39a2bd20181eb65f67654d984188d045f/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMTIwMCwxMjAwXSwic2F2ZXIiOnsicXVhbGl0eSI6ODUsInN0cmlwIjp0cnVlfX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--a8cc17124e11b7490b7c93f626fa1004ce3d0d8e/IMG_0905.jpeg', 3)"
                    data-image-index="3"
                    class="relative rounded-lg overflow-hidden bg-gray-200 aspect-square border-2 border-transparent hover:border-gray-300 transition-colors focus:outline-none focus:ring-2 focus:ring-blue-500">
                    <img alt="Toyota innova | Rose car rental services" class="w-full h-full object-cover" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6ODksInB1ciI6ImJsb2JfaWQifX0=--f940a4e39a2bd20181eb65f67654d984188d045f/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMjAwLDIwMF0sInNhdmVyIjp7InF1YWxpdHkiOjgwLCJzdHJpcCI6dHJ1ZX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--338ef1efe9d4f6fa4ee1fc5b65c53b6840184c99/IMG_0905.jpeg" />
                  </button>
                  <button
                    type="button"
                    onclick="updateMainImage('7', '/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6OTAsInB1ciI6ImJsb2JfaWQifX0=--1edf7ddb62ca6c076f4cdf6667a95ce70b1ec6d7/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMTIwMCwxMjAwXSwic2F2ZXIiOnsicXVhbGl0eSI6ODUsInN0cmlwIjp0cnVlfX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--a8cc17124e11b7490b7c93f626fa1004ce3d0d8e/IMG_0908.jpeg', 4)"
                    data-image-index="4"
                    class="relative rounded-lg overflow-hidden bg-gray-200 aspect-square border-2 border-transparent hover:border-gray-300 transition-colors focus:outline-none focus:ring-2 focus:ring-blue-500">
                    <img alt="Toyota innova | Rose car rental services" class="w-full h-full object-cover" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6OTAsInB1ciI6ImJsb2JfaWQifX0=--1edf7ddb62ca6c076f4cdf6667a95ce70b1ec6d7/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMjAwLDIwMF0sInNhdmVyIjp7InF1YWxpdHkiOjgwLCJzdHJpcCI6dHJ1ZX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--338ef1efe9d4f6fa4ee1fc5b65c53b6840184c99/IMG_0908.jpeg" />
                  </button>
              </div>
        </div>

        <!-- Details -->
        <div class="p-6 lg:p-8">
          <!-- Pricing Card -->
          <div class="bg-gradient-to-br from-blue-50 to-blue-100 rounded-xl p-6 mb-6 border border-blue-200">
            <div class="flex items-baseline gap-2 mb-2">
              <span class="text-4xl font-bold text-gray-900">₱3300.0</span>
              <span class="text-gray-600 font-medium">per day</span>
            </div>
            <p class="text-sm text-gray-600 mb-4">All prices are in Philippine Peso (PHP)</p>
            <div class="flex items-center gap-2 text-sm text-gray-700">
              <svg class="w-4 h-4 text-green-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
              </svg>
              <span>Available for immediate booking</span>
            </div>
          </div>

          <!-- Description -->
            <div class="mb-6">
              <h3 class="text-lg font-semibold text-gray-900 mb-3 flex items-center">
                <svg class="w-5 h-5 mr-2 text-blue-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path>
                </svg>
                About This Vehicle
              </h3>
              <p class="text-gray-700 leading-relaxed"><p>🚗Car rental in Palawan 
<br />Toyota Innova 2026 model 
<br />Affordable • Realible • Clean car
<br />✔️Self-drive or with driver
<br />✔️ airport pick-up available 
<br />Rose Car rental services 
<br />#PalawanAdventures #exploremore #explorepalawan #touwithus #Ridewithconfidence</p></p>
            </div>

          <!-- Location -->
            <div class="mb-6 bg-gray-50 rounded-xl p-6 border border-gray-200">
              <h3 class="text-lg font-semibold text-gray-900 mb-3 flex items-center">
                <svg class="w-5 h-5 mr-2 text-blue-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"></path>
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 11a3 3 0 11-6 0 3 3 0 016 0z"></path>
                </svg>
                Rental Owner Location
              </h3>
              <p class="text-gray-700 leading-relaxed">
                Lot 591 blk 10 Graceful HOA, Puerto Princesa City, Palawan, Philippines
              </p>
            </div>

          <!-- Trusted Badge Info -->
            <div class="mb-6 bg-yellow-50 rounded-xl p-6 border border-yellow-200">
              <div class="flex items-start">
                <div class="flex-shrink-0">
                  <svg class="w-6 h-6 text-yellow-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"></path>
                  </svg>
                </div>
                <div class="ml-3">
                  <h3 class="text-lg font-semibold text-gray-900 mb-2">Verified Owner</h3>
                  <p class="text-gray-700 text-sm">
                    This owner has verified their business details. All vehicles from this owner display the trusted badge, ensuring you're renting from a verified business.
                  </p>
                    <div class="mt-3">
                      <a class="inline-flex items-center px-4 py-2 rounded-md font-medium text-white text-sm" style="background-color: #0066cc" href="/rental-owners/rose-car-rental-services-13">View Company Profile</a>
                    </div>
                </div>
              </div>
            </div>

          <!-- Rental Information -->

          <!-- Specifications -->
            <div class="border-t border-gray-200 pt-6">
              <h3 class="text-lg font-semibold text-gray-900 mb-4 flex items-center">
                <svg class="w-5 h-5 mr-2 text-blue-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path>
                </svg>
                Additional Information
              </h3>
              <div class="space-y-3">
                  <div class="flex justify-between items-start py-2 border-b border-gray-100">
                    <span class="font-medium text-gray-700">Seating Capacity</span>
                    <span class="text-gray-900 text-right">8</span>
                  </div>
                  <div class="flex justify-between items-start py-2 border-b border-gray-100">
                    <span class="font-medium text-gray-700">Transmission</span>
                    <span class="text-gray-900 text-right">Automatic</span>
                  </div>
                  <div class="flex justify-between items-start py-2 border-b border-gray-100">
                    <span class="font-medium text-gray-700">Fuel Type</span>
                    <span class="text-gray-900 text-right">Diesel</span>
                  </div>
                  <div class="flex justify-between items-start py-2">
                    <span class="font-medium text-gray-700">Available Areas</span>
                    <span class="text-gray-900 text-right">Puerto Princesa south to north</span>
                  </div>
              </div>
            </div>

          <!-- Features/Highlights -->
          <div class="border-t border-gray-200 pt-6">
            <div class="flex flex-wrap gap-2">
              <span class="inline-flex items-center px-3 py-1 rounded-full text-sm bg-green-100 text-green-800">
                <svg class="w-4 h-4 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
                </svg>
                Available Now
              </span>
              <span class="inline-flex items-center px-3 py-1 rounded-full text-sm bg-blue-100 text-blue-800">
                <svg class="w-4 h-4 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"></path>
                </svg>
                Instant Booking
              </span>
            </div>
          </div>
        </div>
      </div>
    </div>

    <!-- Footer Actions -->
    <div class="border-t border-gray-200 bg-gray-50 p-6">
      <div class="flex flex-col sm:flex-row justify-between items-center gap-4">
        <div class="text-sm text-gray-600">
          <p class="font-medium">Need help? Contact us for assistance</p>
        </div>
        <div class="flex gap-3 w-full sm:w-auto">
          <button type="button" class="flex-1 sm:flex-none px-6 py-3 bg-white border-2 border-gray-300 text-gray-700 rounded-lg font-semibold hover:bg-gray-50 hover:border-gray-400 transition-colors" onclick="closeVehicleModal(7)">
            Close
          </button>
          <a data-turbo="false" class="flex-1 sm:flex-none px-8 py-3 bg-blue-600 text-white rounded-lg font-semibold hover:bg-blue-700 transition-colors shadow-lg text-center flex items-center justify-center gap-2" href="/bookings/new?vehicle_id=toyota-innova">
            <svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
              <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"></path>
            </svg>
            Book Now
</a>        </div>
      </div>
    </div>
  </div>
</div>

<script>
  function updateMainImage(vehicleId, imageUrl, imageIndex) {
    const mainImage = document.getElementById('main-image-' + vehicleId);
    if (mainImage && imageUrl) {
      mainImage.src = imageUrl;
      
      // Update border on thumbnails
      const thumbnails = document.querySelectorAll(`#vehicle-modal-${vehicleId} button[data-image-index]`);
      thumbnails.forEach((thumb, index) => {
        if (index === imageIndex) {
          thumb.classList.remove('border-transparent', 'hover:border-gray-300');
          thumb.classList.add('border-blue-600');
        } else {
          thumb.classList.remove('border-blue-600');
          thumb.classList.add('border-transparent', 'hover:border-gray-300');
        }
      });
    }
  }
</script>

<div class="bg-white rounded-xl shadow-md overflow-hidden hover:shadow-xl hover:-translate-y-1 transition-all duration-300 cursor-pointer group flex flex-col" onclick="openVehicleModal(69)">
  <div class="relative h-48 bg-gray-200 overflow-hidden">
      <img alt="Toyota Innova (Automatic Transmission) | E-A&#39;S VEHICLE RENTAL" class="w-full h-full object-cover group-hover:scale-110 transition-transform duration-300" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6OTcxNTAsInB1ciI6ImJsb2JfaWQifX0=--f67fab1df04f728a85cf8e15f0e59e1beca85c89/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbNjAwLDYwMF0sInNhdmVyIjp7InF1YWxpdHkiOjgwLCJzdHJpcCI6dHJ1ZX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--b5a3c7685837a6d9e60fd2448a949664947f2fcd/fad30b07-96a2-4e8a-82f7-ed34a560f0d3.jpg" />

        <div class="absolute bottom-2 left-2" title="Verified owner logo">
          <div class="flex h-11 w-11 items-center justify-center rounded-xl bg-white/95 p-1.5 shadow-lg ring-1 ring-black/5 backdrop-blur-sm">
            <img alt="E-A&#39;S VEHICLE RENTAL logo" class="h-full w-full object-contain" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6OTcxMTIsInB1ciI6ImJsb2JfaWQifX0=--68fc1466bc9cff72ff5f7b201d532531bdf58942/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfdG9fbGltaXQiOls2NCw2NF19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--e1972e07de98d125949e77bf677ab3a0d9623cc1/EAS%20Vehicle%20Rental.jpg" />
          </div>
        </div>

      <div class="absolute bottom-2 right-2" title="Verified Owner - Verified Business with DTI Permit">
        <span class="inline-flex items-center px-2.5 py-1 text-sm font-semibold rounded-full bg-yellow-500 text-white shadow-lg">
          <svg class="w-3 h-3 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"></path>
          </svg>
          Verified
        </span>
      </div>
  </div>

  <div class="p-5 flex flex-col flex-grow">
    <div class="flex-grow">
      <h3 class="text-lg font-bold text-gray-900 mb-2 group-hover:text-blue-600 transition-colors">
        Toyota Innova (Automatic Transmission) | E-A&#39;S VEHICLE RENTAL
      </h3>
        <div class="flex items-center text-base text-gray-600 mb-2">
          <svg class="h-4 w-4 mr-1 text-gray-500" fill="none" stroke="currentColor" viewBox="0 0 24 24">
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"></path>
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 11a3 3 0 11-6 0 3 3 0 016 0z"></path>
          </svg>
          <span class="text-gray-600"> BARANGAY SAN MIGUEL, Puerto Princesa City, Palawan</span>
        </div>
        <p class="text-base text-gray-600 mb-3 line-clamp-2">
          Toyota Innova 2.8L E Variant
✅Land Navigation
✅Bluetooth
✅Car Rental Insur...
        </p>

        <div class="flex flex-wrap gap-2 mb-3 text-sm">
            <span class="px-2 py-1 bg-gray-100 text-gray-700 rounded">
              <svg class="w-3 h-3 inline mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z"></path>
              </svg>
              8 seats
            </span>
            <span class="px-2 py-1 bg-gray-100 text-gray-700 rounded">
              <svg class="w-3 h-3 inline mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"></path>
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"></path>
              </svg>
              Automatic
            </span>
            <span class="px-2 py-1 bg-gray-100 text-gray-700 rounded">
              <svg class="w-3 h-3 inline mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z"></path>
              </svg>
              Diesel
            </span>
        </div>
    </div>
    <div class="flex items-center justify-between mt-4 pt-4 border-t border-gray-200">
      <div>
        <p class="text-sm text-gray-500">Daily Rate</p>
        <p class="text-2xl font-bold text-blue-600">₱3,500</p>
      </div>
      <button class="px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors font-medium text-base">
        View Details
      </button>
    </div>
  </div>
</div>

<div id="vehicle-modal-69" class="fixed inset-0 z-[1000] hidden items-center justify-center modal" data-controller="modal" data-modal-open-value="false" data-action="keydown@window->modal#closeOnEscape">
  <div class="absolute inset-0 bg-black/60 backdrop-blur-sm transition-opacity duration-300 opacity-0 z-[1001] modal-backdrop" data-modal-target="backdrop" onclick="if(event.target === this) closeVehicleModal(69)"></div>
  <div class="relative bg-white rounded-2xl max-w-5xl w-full mx-4 max-h-[90vh] overflow-hidden z-[1002] transform scale-90 opacity-0 transition-all duration-300 shadow-2xl modal-content flex flex-col" data-modal-target="content">
    <!-- Header -->
    <div class="flex justify-between items-center p-6 border-b border-gray-200 bg-gradient-to-r from-blue-50 to-white">
      <div>
        <h2 class="text-3xl font-bold text-gray-900 m-0">Toyota Innova (Automatic Transmission) | E-A&#39;S VEHICLE RENTAL</h2>
        <div class="flex items-center gap-3 mt-2">
          <span class="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-blue-100 text-blue-800">
            Car
          </span>
            <span class="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-yellow-100 text-yellow-800" title="Verified Owner - Verified Business with DTI Permit">
              <svg class="w-4 h-4 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"></path>
              </svg>
              Verified Owner
            </span>
        </div>
      </div>
      <button type="button" class="bg-white hover:bg-gray-100 border border-gray-300 rounded-full w-10 h-10 flex items-center justify-center text-gray-600 hover:text-gray-900 transition-colors shadow-sm" onclick="closeVehicleModal(69)" aria-label="Close">
        <svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24">
          <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path>
        </svg>
      </button>
    </div>

    <!-- Content - Scrollable -->
    <div class="overflow-y-auto flex-1">
      <div class="grid grid-cols-1 lg:grid-cols-2 gap-0">
        <!-- Image Gallery -->
        <div class="bg-gray-50 p-6">
            <div class="mb-4">
              <div class="relative rounded-xl overflow-hidden bg-gray-200 aspect-video">
                <img alt="Toyota Innova (Automatic Transmission) | E-A&#39;S VEHICLE RENTAL" id="main-image-69" class="w-full h-full object-cover" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6OTcxNTAsInB1ciI6ImJsb2JfaWQifX0=--f67fab1df04f728a85cf8e15f0e59e1beca85c89/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMTIwMCwxMjAwXSwic2F2ZXIiOnsicXVhbGl0eSI6ODUsInN0cmlwIjp0cnVlfX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--a8cc17124e11b7490b7c93f626fa1004ce3d0d8e/fad30b07-96a2-4e8a-82f7-ed34a560f0d3.jpg" />
              </div>
            </div>
              <div class="grid grid-cols-4 gap-2">
                  <button
                    type="button"
                    onclick="updateMainImage('69', '/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6OTcxNTAsInB1ciI6ImJsb2JfaWQifX0=--f67fab1df04f728a85cf8e15f0e59e1beca85c89/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMTIwMCwxMjAwXSwic2F2ZXIiOnsicXVhbGl0eSI6ODUsInN0cmlwIjp0cnVlfX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--a8cc17124e11b7490b7c93f626fa1004ce3d0d8e/fad30b07-96a2-4e8a-82f7-ed34a560f0d3.jpg', 0)"
                    data-image-index="0"
                    class="relative rounded-lg overflow-hidden bg-gray-200 aspect-square border-2 border-blue-600 transition-colors focus:outline-none focus:ring-2 focus:ring-blue-500">
                    <img alt="Toyota Innova (Automatic Transmission) | E-A&#39;S VEHICLE RENTAL" class="w-full h-full object-cover" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6OTcxNTAsInB1ciI6ImJsb2JfaWQifX0=--f67fab1df04f728a85cf8e15f0e59e1beca85c89/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMjAwLDIwMF0sInNhdmVyIjp7InF1YWxpdHkiOjgwLCJzdHJpcCI6dHJ1ZX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--338ef1efe9d4f6fa4ee1fc5b65c53b6840184c99/fad30b07-96a2-4e8a-82f7-ed34a560f0d3.jpg" />
                  </button>
                  <button
                    type="button"
                    onclick="updateMainImage('69', '/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6OTcxNTQsInB1ciI6ImJsb2JfaWQifX0=--0299de94e17deb74002afd21296bde75151d4c4c/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMTIwMCwxMjAwXSwic2F2ZXIiOnsicXVhbGl0eSI6ODUsInN0cmlwIjp0cnVlfX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--a8cc17124e11b7490b7c93f626fa1004ce3d0d8e/2a56a2a2-373c-4eba-83c8-03a7b93bfd28.jpg', 1)"
                    data-image-index="1"
                    class="relative rounded-lg overflow-hidden bg-gray-200 aspect-square border-2 border-transparent hover:border-gray-300 transition-colors focus:outline-none focus:ring-2 focus:ring-blue-500">
                    <img alt="Toyota Innova (Automatic Transmission) | E-A&#39;S VEHICLE RENTAL" class="w-full h-full object-cover" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6OTcxNTQsInB1ciI6ImJsb2JfaWQifX0=--0299de94e17deb74002afd21296bde75151d4c4c/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMjAwLDIwMF0sInNhdmVyIjp7InF1YWxpdHkiOjgwLCJzdHJpcCI6dHJ1ZX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--338ef1efe9d4f6fa4ee1fc5b65c53b6840184c99/2a56a2a2-373c-4eba-83c8-03a7b93bfd28.jpg" />
                  </button>
                  <button
                    type="button"
                    onclick="updateMainImage('69', '/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6OTcyMDcsInB1ciI6ImJsb2JfaWQifX0=--b074a9050b2fdbcb3e825ef395ca06d5d885cd17/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMTIwMCwxMjAwXSwic2F2ZXIiOnsicXVhbGl0eSI6ODUsInN0cmlwIjp0cnVlfX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--a8cc17124e11b7490b7c93f626fa1004ce3d0d8e/c4669220-bb4a-4cd2-ba1d-78732fa7bbaa.jpg', 2)"
                    data-image-index="2"
                    class="relative rounded-lg overflow-hidden bg-gray-200 aspect-square border-2 border-transparent hover:border-gray-300 transition-colors focus:outline-none focus:ring-2 focus:ring-blue-500">
                    <img alt="Toyota Innova (Automatic Transmission) | E-A&#39;S VEHICLE RENTAL" class="w-full h-full object-cover" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6OTcyMDcsInB1ciI6ImJsb2JfaWQifX0=--b074a9050b2fdbcb3e825ef395ca06d5d885cd17/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMjAwLDIwMF0sInNhdmVyIjp7InF1YWxpdHkiOjgwLCJzdHJpcCI6dHJ1ZX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--338ef1efe9d4f6fa4ee1fc5b65c53b6840184c99/c4669220-bb4a-4cd2-ba1d-78732fa7bbaa.jpg" />
                  </button>
              </div>
        </div>

        <!-- Details -->
        <div class="p-6 lg:p-8">
          <!-- Pricing Card -->
          <div class="bg-gradient-to-br from-blue-50 to-blue-100 rounded-xl p-6 mb-6 border border-blue-200">
            <div class="flex items-baseline gap-2 mb-2">
              <span class="text-4xl font-bold text-gray-900">₱3500.2</span>
              <span class="text-gray-600 font-medium">per day</span>
            </div>
            <p class="text-sm text-gray-600 mb-4">All prices are in Philippine Peso (PHP)</p>
            <div class="flex items-center gap-2 text-sm text-gray-700">
              <svg class="w-4 h-4 text-green-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
              </svg>
              <span>Available for immediate booking</span>
            </div>
          </div>

          <!-- Description -->
            <div class="mb-6">
              <h3 class="text-lg font-semibold text-gray-900 mb-3 flex items-center">
                <svg class="w-5 h-5 mr-2 text-blue-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path>
                </svg>
                About This Vehicle
              </h3>
              <p class="text-gray-700 leading-relaxed"><p>Toyota Innova 2.8L E Variant
<br />✅Land Navigation
<br />✅Bluetooth
<br />✅Car Rental Insurance ( Terms and conditions may apply)
<br />✅Cold AC and Heater are working
<br />✅Power Steering (smooth condition)
<br />✅accessory power outlet for charging cellphones
<br />✅power windows all working
<br />✅all Tires in Good Condition
<br />✅Preventive Maintenance Service (PMS) Always updated
<br />✅Gas And Go</p></p>
            </div>

          <!-- Location -->
            <div class="mb-6 bg-gray-50 rounded-xl p-6 border border-gray-200">
              <h3 class="text-lg font-semibold text-gray-900 mb-3 flex items-center">
                <svg class="w-5 h-5 mr-2 text-blue-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"></path>
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 11a3 3 0 11-6 0 3 3 0 016 0z"></path>
                </svg>
                Rental Owner Location
              </h3>
              <p class="text-gray-700 leading-relaxed">
                National Highway ( Two (2) Minutes away from Puerto Princesa International Airport ) ,  BARANGAY SAN MIGUEL, Puerto Princesa City, Palawan, Philippines
              </p>
            </div>

          <!-- Trusted Badge Info -->
            <div class="mb-6 bg-yellow-50 rounded-xl p-6 border border-yellow-200">
              <div class="flex items-start">
                <div class="flex-shrink-0">
                  <svg class="w-6 h-6 text-yellow-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"></path>
                  </svg>
                </div>
                <div class="ml-3">
                  <h3 class="text-lg font-semibold text-gray-900 mb-2">Verified Owner</h3>
                  <p class="text-gray-700 text-sm">
                    This owner has verified their business details. All vehicles from this owner display the trusted badge, ensuring you're renting from a verified business.
                  </p>
                    <div class="mt-3">
                      <a class="inline-flex items-center px-4 py-2 rounded-md font-medium text-white text-sm" style="background-color: #0066cc" href="/rental-owners/e-a-s-vehicle-rental-40">View Company Profile</a>
                    </div>
                </div>
              </div>
            </div>

          <!-- Rental Information -->
            <div class="bg-gray-50 rounded-xl p-6 mb-6 border border-gray-200">
              <h3 class="text-lg font-semibold text-gray-900 mb-4 flex items-center">
                <svg class="w-5 h-5 mr-2 text-blue-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"></path>
                </svg>
                What's Included
              </h3>
              <ul class="space-y-2 text-gray-700">
                  <li class="flex items-start gap-2">
                    <svg class="w-5 h-5 text-green-600 mt-0.5 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                      <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
                    </svg>
                    <span>Engine &amp; Drivetrain: 2.8L 4-cylinder In-line</span>
                  </li>
                  <li class="flex items-start gap-2">
                    <svg class="w-5 h-5 text-green-600 mt-0.5 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                      <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
                    </svg>
                    <span>16 Valve Double Overhead Camshaft (Turbo) diesel engine</span>
                  </li>
                  <li class="flex items-start gap-2">
                    <svg class="w-5 h-5 text-green-600 mt-0.5 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                      <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
                    </svg>
                    <span>yielding ~170 HP and 343-360 Nm of torque.</span>
                  </li>
                  <li class="flex items-start gap-2">
                    <svg class="w-5 h-5 text-green-600 mt-0.5 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                      <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
                    </svg>
                    <span>Variants &amp; Transmission: E variants with 6-speed automatic or 5-speed manual options.</span>
                  </li>
                  <li class="flex items-start gap-2">
                    <svg class="w-5 h-5 text-green-600 mt-0.5 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                      <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
                    </svg>
                    <span>Exterior: LED projector headlamps (V/G)</span>
                  </li>
                  <li class="flex items-start gap-2">
                    <svg class="w-5 h-5 text-green-600 mt-0.5 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                      <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
                    </svg>
                    <span>LED Daytime Running Lights (DRLs)</span>
                  </li>
                  <li class="flex items-start gap-2">
                    <svg class="w-5 h-5 text-green-600 mt-0.5 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                      <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
                    </svg>
                    <span>LED fog lamps</span>
                  </li>
                  <li class="flex items-start gap-2">
                    <svg class="w-5 h-5 text-green-600 mt-0.5 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                      <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
                    </svg>
                    <span>and chrome accents (depending on variant).</span>
                  </li>
                  <li class="flex items-start gap-2">
                    <svg class="w-5 h-5 text-green-600 mt-0.5 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                      <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
                    </svg>
                    <span>Interior &amp; Comfort: Available 7-inch infotainment system with Apple CarPlay and Android Auto</span>
                  </li>
                  <li class="flex items-start gap-2">
                    <svg class="w-5 h-5 text-green-600 mt-0.5 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                      <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
                    </svg>
                    <span>automatic climate control (G/V)</span>
                  </li>
                  <li class="flex items-start gap-2">
                    <svg class="w-5 h-5 text-green-600 mt-0.5 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                      <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
                    </svg>
                    <span>and keyless entry.</span>
                  </li>
                  <li class="flex items-start gap-2">
                    <svg class="w-5 h-5 text-green-600 mt-0.5 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                      <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
                    </svg>
                    <span>Safety: The 2024 models typically feature ABS with EBD</span>
                  </li>
                  <li class="flex items-start gap-2">
                    <svg class="w-5 h-5 text-green-600 mt-0.5 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                      <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
                    </svg>
                    <span>ISOFIX</span>
                  </li>
                  <li class="flex items-start gap-2">
                    <svg class="w-5 h-5 text-green-600 mt-0.5 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                      <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
                    </svg>
                    <span>Stability Control</span>
                  </li>
                  <li class="flex items-start gap-2">
                    <svg class="w-5 h-5 text-green-600 mt-0.5 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                      <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
                    </svg>
                    <span>and multiple airbags (up to 7 for top variants).</span>
                  </li>
              </ul>
            </div>

          <!-- Specifications -->
            <div class="border-t border-gray-200 pt-6">
              <h3 class="text-lg font-semibold text-gray-900 mb-4 flex items-center">
                <svg class="w-5 h-5 mr-2 text-blue-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path>
                </svg>
                Additional Information
              </h3>
              <div class="space-y-3">
                  <div class="flex justify-between items-start py-2 border-b border-gray-100">
                    <span class="font-medium text-gray-700">Body Type</span>
                    <span class="text-gray-900 text-right">Car - SUV</span>
                  </div>
                  <div class="flex justify-between items-start py-2 border-b border-gray-100">
                    <span class="font-medium text-gray-700">Seating Capacity</span>
                    <span class="text-gray-900 text-right">8</span>
                  </div>
                  <div class="flex justify-between items-start py-2 border-b border-gray-100">
                    <span class="font-medium text-gray-700">Transmission</span>
                    <span class="text-gray-900 text-right">Automatic</span>
                  </div>
                  <div class="flex justify-between items-start py-2 border-b border-gray-100">
                    <span class="font-medium text-gray-700">Fuel Type</span>
                    <span class="text-gray-900 text-right">Diesel</span>
                  </div>
                  <div class="flex justify-between items-start py-2">
                    <span class="font-medium text-gray-700">Available Areas</span>
                    <span class="text-gray-900 text-right">National Highway Puerto Princesa City, Palawan, (Two (2) minutes away from Puerto Princesa International Airport)</span>
                  </div>
              </div>
            </div>

          <!-- Features/Highlights -->
          <div class="border-t border-gray-200 pt-6">
            <div class="flex flex-wrap gap-2">
              <span class="inline-flex items-center px-3 py-1 rounded-full text-sm bg-green-100 text-green-800">
                <svg class="w-4 h-4 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
                </svg>
                Available Now
              </span>
              <span class="inline-flex items-center px-3 py-1 rounded-full text-sm bg-blue-100 text-blue-800">
                <svg class="w-4 h-4 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"></path>
                </svg>
                Instant Booking
              </span>
            </div>
          </div>
        </div>
      </div>
    </div>

    <!-- Footer Actions -->
    <div class="border-t border-gray-200 bg-gray-50 p-6">
      <div class="flex flex-col sm:flex-row justify-between items-center gap-4">
        <div class="text-sm text-gray-600">
          <p class="font-medium">Need help? Contact us for assistance</p>
        </div>
        <div class="flex gap-3 w-full sm:w-auto">
          <button type="button" class="flex-1 sm:flex-none px-6 py-3 bg-white border-2 border-gray-300 text-gray-700 rounded-lg font-semibold hover:bg-gray-50 hover:border-gray-400 transition-colors" onclick="closeVehicleModal(69)">
            Close
          </button>
          <a data-turbo="false" class="flex-1 sm:flex-none px-8 py-3 bg-blue-600 text-white rounded-lg font-semibold hover:bg-blue-700 transition-colors shadow-lg text-center flex items-center justify-center gap-2" href="/bookings/new?vehicle_id=toyota-innova-automatic-transmission">
            <svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
              <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"></path>
            </svg>
            Book Now
</a>        </div>
      </div>
    </div>
  </div>
</div>

<script>
  function updateMainImage(vehicleId, imageUrl, imageIndex) {
    const mainImage = document.getElementById('main-image-' + vehicleId);
    if (mainImage && imageUrl) {
      mainImage.src = imageUrl;
      
      // Update border on thumbnails
      const thumbnails = document.querySelectorAll(`#vehicle-modal-${vehicleId} button[data-image-index]`);
      thumbnails.forEach((thumb, index) => {
        if (index === imageIndex) {
          thumb.classList.remove('border-transparent', 'hover:border-gray-300');
          thumb.classList.add('border-blue-600');
        } else {
          thumb.classList.remove('border-blue-600');
          thumb.classList.add('border-transparent', 'hover:border-gray-300');
        }
      });
    }
  }
</script>

<div class="bg-white rounded-xl shadow-md overflow-hidden hover:shadow-xl hover:-translate-y-1 transition-all duration-300 cursor-pointer group flex flex-col" onclick="openVehicleModal(59)">
  <div class="relative h-48 bg-gray-200 overflow-hidden">
      <img alt="Toyota Veloz Automatic | GD BUDGET CAR &amp; MOTORCYCLE RENTALS" class="w-full h-full object-cover group-hover:scale-110 transition-transform duration-300" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6OTcwMDksInB1ciI6ImJsb2JfaWQifX0=--223b83fd72d99fdd1638cd4c843e3eb38992e4f4/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbNjAwLDYwMF0sInNhdmVyIjp7InF1YWxpdHkiOjgwLCJzdHJpcCI6dHJ1ZX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--b5a3c7685837a6d9e60fd2448a949664947f2fcd/1000012601.jpg" />

        <div class="absolute bottom-2 left-2" title="Verified owner logo">
          <div class="flex h-11 w-11 items-center justify-center rounded-xl bg-white/95 p-1.5 shadow-lg ring-1 ring-black/5 backdrop-blur-sm">
            <img alt="GD BUDGET CAR &amp; MOTORCYCLE RENTALS logo" class="h-full w-full object-contain" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6OTcwNTAsInB1ciI6ImJsb2JfaWQifX0=--366fd8cef876cd4a502937e0992468a88b28a159/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfdG9fbGltaXQiOls2NCw2NF19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--e1972e07de98d125949e77bf677ab3a0d9623cc1/1000014406.png" />
          </div>
        </div>

      <div class="absolute bottom-2 right-2" title="Verified Owner - Verified Business with DTI Permit">
        <span class="inline-flex items-center px-2.5 py-1 text-sm font-semibold rounded-full bg-yellow-500 text-white shadow-lg">
          <svg class="w-3 h-3 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"></path>
          </svg>
          Verified
        </span>
      </div>
  </div>

  <div class="p-5 flex flex-col flex-grow">
    <div class="flex-grow">
      <h3 class="text-lg font-bold text-gray-900 mb-2 group-hover:text-blue-600 transition-colors">
        Toyota Veloz Automatic | GD BUDGET CAR &amp; MOTORCYCLE RENTALS
      </h3>
        <div class="flex items-center text-base text-gray-600 mb-2">
          <svg class="h-4 w-4 mr-1 text-gray-500" fill="none" stroke="currentColor" viewBox="0 0 24 24">
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"></path>
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 11a3 3 0 11-6 0 3 3 0 016 0z"></path>
          </svg>
          <span class="text-gray-600">Poblacion, El Nido, Palawan</span>
        </div>

        <div class="flex flex-wrap gap-2 mb-3 text-sm">
            <span class="px-2 py-1 bg-gray-100 text-gray-700 rounded">
              <svg class="w-3 h-3 inline mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z"></path>
              </svg>
              8 seats
            </span>
            <span class="px-2 py-1 bg-gray-100 text-gray-700 rounded">
              <svg class="w-3 h-3 inline mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"></path>
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"></path>
              </svg>
              CVT
            </span>
            <span class="px-2 py-1 bg-gray-100 text-gray-700 rounded">
              <svg class="w-3 h-3 inline mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z"></path>
              </svg>
              Gasoline
            </span>
        </div>
    </div>
    <div class="flex items-center justify-between mt-4 pt-4 border-t border-gray-200">
      <div>
        <p class="text-sm text-gray-500">Daily Rate</p>
        <p class="text-2xl font-bold text-blue-600">₱3,850</p>
      </div>
      <button class="px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors font-medium text-base">
        View Details
      </button>
    </div>
  </div>
</div>

<div id="vehicle-modal-59" class="fixed inset-0 z-[1000] hidden items-center justify-center modal" data-controller="modal" data-modal-open-value="false" data-action="keydown@window->modal#closeOnEscape">
  <div class="absolute inset-0 bg-black/60 backdrop-blur-sm transition-opacity duration-300 opacity-0 z-[1001] modal-backdrop" data-modal-target="backdrop" onclick="if(event.target === this) closeVehicleModal(59)"></div>
  <div class="relative bg-white rounded-2xl max-w-5xl w-full mx-4 max-h-[90vh] overflow-hidden z-[1002] transform scale-90 opacity-0 transition-all duration-300 shadow-2xl modal-content flex flex-col" data-modal-target="content">
    <!-- Header -->
    <div class="flex justify-between items-center p-6 border-b border-gray-200 bg-gradient-to-r from-blue-50 to-white">
      <div>
        <h2 class="text-3xl font-bold text-gray-900 m-0">Toyota Veloz Automatic | GD BUDGET CAR &amp; MOTORCYCLE RENTALS</h2>
        <div class="flex items-center gap-3 mt-2">
          <span class="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-blue-100 text-blue-800">
            Car
          </span>
            <span class="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-yellow-100 text-yellow-800" title="Verified Owner - Verified Business with DTI Permit">
              <svg class="w-4 h-4 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"></path>
              </svg>
              Verified Owner
            </span>
        </div>
      </div>
      <button type="button" class="bg-white hover:bg-gray-100 border border-gray-300 rounded-full w-10 h-10 flex items-center justify-center text-gray-600 hover:text-gray-900 transition-colors shadow-sm" onclick="closeVehicleModal(59)" aria-label="Close">
        <svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24">
          <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path>
        </svg>
      </button>
    </div>

    <!-- Content - Scrollable -->
    <div class="overflow-y-auto flex-1">
      <div class="grid grid-cols-1 lg:grid-cols-2 gap-0">
        <!-- Image Gallery -->
        <div class="bg-gray-50 p-6">
            <div class="mb-4">
              <div class="relative rounded-xl overflow-hidden bg-gray-200 aspect-video">
                <img alt="Toyota Veloz Automatic | GD BUDGET CAR &amp; MOTORCYCLE RENTALS" id="main-image-59" class="w-full h-full object-cover" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6OTcwMDksInB1ciI6ImJsb2JfaWQifX0=--223b83fd72d99fdd1638cd4c843e3eb38992e4f4/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMTIwMCwxMjAwXSwic2F2ZXIiOnsicXVhbGl0eSI6ODUsInN0cmlwIjp0cnVlfX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--a8cc17124e11b7490b7c93f626fa1004ce3d0d8e/1000012601.jpg" />
              </div>
            </div>
              <div class="grid grid-cols-4 gap-2">
                  <button
                    type="button"
                    onclick="updateMainImage('59', '/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6OTcwMDksInB1ciI6ImJsb2JfaWQifX0=--223b83fd72d99fdd1638cd4c843e3eb38992e4f4/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMTIwMCwxMjAwXSwic2F2ZXIiOnsicXVhbGl0eSI6ODUsInN0cmlwIjp0cnVlfX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--a8cc17124e11b7490b7c93f626fa1004ce3d0d8e/1000012601.jpg', 0)"
                    data-image-index="0"
                    class="relative rounded-lg overflow-hidden bg-gray-200 aspect-square border-2 border-blue-600 transition-colors focus:outline-none focus:ring-2 focus:ring-blue-500">
                    <img alt="Toyota Veloz Automatic | GD BUDGET CAR &amp; MOTORCYCLE RENTALS" class="w-full h-full object-cover" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6OTcwMDksInB1ciI6ImJsb2JfaWQifX0=--223b83fd72d99fdd1638cd4c843e3eb38992e4f4/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMjAwLDIwMF0sInNhdmVyIjp7InF1YWxpdHkiOjgwLCJzdHJpcCI6dHJ1ZX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--338ef1efe9d4f6fa4ee1fc5b65c53b6840184c99/1000012601.jpg" />
                  </button>
                  <button
                    type="button"
                    onclick="updateMainImage('59', '/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6OTcwMTEsInB1ciI6ImJsb2JfaWQifX0=--31315f299a4be07ae051a904e0c4158c32e6ec34/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMTIwMCwxMjAwXSwic2F2ZXIiOnsicXVhbGl0eSI6ODUsInN0cmlwIjp0cnVlfX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--a8cc17124e11b7490b7c93f626fa1004ce3d0d8e/1000012601.jpg', 1)"
                    data-image-index="1"
                    class="relative rounded-lg overflow-hidden bg-gray-200 aspect-square border-2 border-transparent hover:border-gray-300 transition-colors focus:outline-none focus:ring-2 focus:ring-blue-500">
                    <img alt="Toyota Veloz Automatic | GD BUDGET CAR &amp; MOTORCYCLE RENTALS" class="w-full h-full object-cover" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6OTcwMTEsInB1ciI6ImJsb2JfaWQifX0=--31315f299a4be07ae051a904e0c4158c32e6ec34/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMjAwLDIwMF0sInNhdmVyIjp7InF1YWxpdHkiOjgwLCJzdHJpcCI6dHJ1ZX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--338ef1efe9d4f6fa4ee1fc5b65c53b6840184c99/1000012601.jpg" />
                  </button>
              </div>
        </div>

        <!-- Details -->
        <div class="p-6 lg:p-8">
          <!-- Pricing Card -->
          <div class="bg-gradient-to-br from-blue-50 to-blue-100 rounded-xl p-6 mb-6 border border-blue-200">
            <div class="flex items-baseline gap-2 mb-2">
              <span class="text-4xl font-bold text-gray-900">₱3850.0</span>
              <span class="text-gray-600 font-medium">per day</span>
            </div>
            <p class="text-sm text-gray-600 mb-4">All prices are in Philippine Peso (PHP)</p>
            <div class="flex items-center gap-2 text-sm text-gray-700">
              <svg class="w-4 h-4 text-green-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
              </svg>
              <span>Available for immediate booking</span>
            </div>
          </div>

          <!-- Description -->

          <!-- Location -->
            <div class="mb-6 bg-gray-50 rounded-xl p-6 border border-gray-200">
              <h3 class="text-lg font-semibold text-gray-900 mb-3 flex items-center">
                <svg class="w-5 h-5 mr-2 text-blue-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"></path>
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 11a3 3 0 11-6 0 3 3 0 016 0z"></path>
                </svg>
                Rental Owner Location
              </h3>
              <p class="text-gray-700 leading-relaxed">
                National highway , Poblacion, El Nido, Palawan, Philippines
              </p>
            </div>

          <!-- Trusted Badge Info -->
            <div class="mb-6 bg-yellow-50 rounded-xl p-6 border border-yellow-200">
              <div class="flex items-start">
                <div class="flex-shrink-0">
                  <svg class="w-6 h-6 text-yellow-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"></path>
                  </svg>
                </div>
                <div class="ml-3">
                  <h3 class="text-lg font-semibold text-gray-900 mb-2">Verified Owner</h3>
                  <p class="text-gray-700 text-sm">
                    This owner has verified their business details. All vehicles from this owner display the trusted badge, ensuring you're renting from a verified business.
                  </p>
                    <div class="mt-3">
                      <a class="inline-flex items-center px-4 py-2 rounded-md font-medium text-white text-sm" style="background-color: #0066cc" href="/rental-owners/gd-budget-car-motorcycle-rentals-38">View Company Profile</a>
                    </div>
                </div>
              </div>
            </div>

          <!-- Rental Information -->

          <!-- Specifications -->
            <div class="border-t border-gray-200 pt-6">
              <h3 class="text-lg font-semibold text-gray-900 mb-4 flex items-center">
                <svg class="w-5 h-5 mr-2 text-blue-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path>
                </svg>
                Additional Information
              </h3>
              <div class="space-y-3">
                  <div class="flex justify-between items-start py-2 border-b border-gray-100">
                    <span class="font-medium text-gray-700">Body Type</span>
                    <span class="text-gray-900 text-right">Car - SUV</span>
                  </div>
                  <div class="flex justify-between items-start py-2 border-b border-gray-100">
                    <span class="font-medium text-gray-700">Seating Capacity</span>
                    <span class="text-gray-900 text-right">8</span>
                  </div>
                  <div class="flex justify-between items-start py-2 border-b border-gray-100">
                    <span class="font-medium text-gray-700">Transmission</span>
                    <span class="text-gray-900 text-right">CVT</span>
                  </div>
                  <div class="flex justify-between items-start py-2 border-b border-gray-100">
                    <span class="font-medium text-gray-700">Fuel Type</span>
                    <span class="text-gray-900 text-right">Gasoline</span>
                  </div>
                  <div class="flex justify-between items-start py-2">
                    <span class="font-medium text-gray-700">Available Areas</span>
                    <span class="text-gray-900 text-right">Puerto princesa, El Nido, Coron</span>
                  </div>
              </div>
            </div>

          <!-- Features/Highlights -->
          <div class="border-t border-gray-200 pt-6">
            <div class="flex flex-wrap gap-2">
              <span class="inline-flex items-center px-3 py-1 rounded-full text-sm bg-green-100 text-green-800">
                <svg class="w-4 h-4 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
                </svg>
                Available Now
              </span>
              <span class="inline-flex items-center px-3 py-1 rounded-full text-sm bg-blue-100 text-blue-800">
                <svg class="w-4 h-4 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"></path>
                </svg>
                Instant Booking
              </span>
            </div>
          </div>
        </div>
      </div>
    </div>

    <!-- Footer Actions -->
    <div class="border-t border-gray-200 bg-gray-50 p-6">
      <div class="flex flex-col sm:flex-row justify-between items-center gap-4">
        <div class="text-sm text-gray-600">
          <p class="font-medium">Need help? Contact us for assistance</p>
        </div>
        <div class="flex gap-3 w-full sm:w-auto">
          <button type="button" class="flex-1 sm:flex-none px-6 py-3 bg-white border-2 border-gray-300 text-gray-700 rounded-lg font-semibold hover:bg-gray-50 hover:border-gray-400 transition-colors" onclick="closeVehicleModal(59)">
            Close
          </button>
          <a data-turbo="false" class="flex-1 sm:flex-none px-8 py-3 bg-blue-600 text-white rounded-lg font-semibold hover:bg-blue-700 transition-colors shadow-lg text-center flex items-center justify-center gap-2" href="/bookings/new?vehicle_id=toyota-veloz-automatic">
            <svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
              <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"></path>
            </svg>
            Book Now
</a>        </div>
      </div>
    </div>
  </div>
</div>

<script>
  function updateMainImage(vehicleId, imageUrl, imageIndex) {
    const mainImage = document.getElementById('main-image-' + vehicleId);
    if (mainImage && imageUrl) {
      mainImage.src = imageUrl;
      
      // Update border on thumbnails
      const thumbnails = document.querySelectorAll(`#vehicle-modal-${vehicleId} button[data-image-index]`);
      thumbnails.forEach((thumb, index) => {
        if (index === imageIndex) {
          thumb.classList.remove('border-transparent', 'hover:border-gray-300');
          thumb.classList.add('border-blue-600');
        } else {
          thumb.classList.remove('border-blue-600');
          thumb.classList.add('border-transparent', 'hover:border-gray-300');
        }
      });
    }
  }
</script>

<div class="bg-white rounded-xl shadow-md overflow-hidden hover:shadow-xl hover:-translate-y-1 transition-all duration-300 cursor-pointer group flex flex-col" onclick="openVehicleModal(61)">
  <div class="relative h-48 bg-gray-200 overflow-hidden">
      <img alt="Ford Ranger  | GD BUDGET CAR &amp; MOTORCYCLE RENTALS" class="w-full h-full object-cover group-hover:scale-110 transition-transform duration-300" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6OTcwMzgsInB1ciI6ImJsb2JfaWQifX0=--caac010aae0a683f8c8999b3727a771d2460c12f/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbNjAwLDYwMF0sInNhdmVyIjp7InF1YWxpdHkiOjgwLCJzdHJpcCI6dHJ1ZX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--b5a3c7685837a6d9e60fd2448a949664947f2fcd/1000013961.jpg" />

        <div class="absolute bottom-2 left-2" title="Verified owner logo">
          <div class="flex h-11 w-11 items-center justify-center rounded-xl bg-white/95 p-1.5 shadow-lg ring-1 ring-black/5 backdrop-blur-sm">
            <img alt="GD BUDGET CAR &amp; MOTORCYCLE RENTALS logo" class="h-full w-full object-contain" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6OTcwNTAsInB1ciI6ImJsb2JfaWQifX0=--366fd8cef876cd4a502937e0992468a88b28a159/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfdG9fbGltaXQiOls2NCw2NF19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--e1972e07de98d125949e77bf677ab3a0d9623cc1/1000014406.png" />
          </div>
        </div>

      <div class="absolute bottom-2 right-2" title="Verified Owner - Verified Business with DTI Permit">
        <span class="inline-flex items-center px-2.5 py-1 text-sm font-semibold rounded-full bg-yellow-500 text-white shadow-lg">
          <svg class="w-3 h-3 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"></path>
          </svg>
          Verified
        </span>
      </div>
  </div>

  <div class="p-5 flex flex-col flex-grow">
    <div class="flex-grow">
      <h3 class="text-lg font-bold text-gray-900 mb-2 group-hover:text-blue-600 transition-colors">
        Ford Ranger  | GD BUDGET CAR &amp; MOTORCYCLE RENTALS
      </h3>
        <div class="flex items-center text-base text-gray-600 mb-2">
          <svg class="h-4 w-4 mr-1 text-gray-500" fill="none" stroke="currentColor" viewBox="0 0 24 24">
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"></path>
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 11a3 3 0 11-6 0 3 3 0 016 0z"></path>
          </svg>
          <span class="text-gray-600">Poblacion, El Nido, Palawan</span>
        </div>
        <p class="text-base text-gray-600 mb-3 line-clamp-2">
          PickUp truck 4x4
        </p>

        <div class="flex flex-wrap gap-2 mb-3 text-sm">
            <span class="px-2 py-1 bg-gray-100 text-gray-700 rounded">
              <svg class="w-3 h-3 inline mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z"></path>
              </svg>
              5 seats
            </span>
            <span class="px-2 py-1 bg-gray-100 text-gray-700 rounded">
              <svg class="w-3 h-3 inline mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"></path>
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"></path>
              </svg>
              Automatic
            </span>
            <span class="px-2 py-1 bg-gray-100 text-gray-700 rounded">
              <svg class="w-3 h-3 inline mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z"></path>
              </svg>
              Diesel
            </span>
        </div>
    </div>
    <div class="flex items-center justify-between mt-4 pt-4 border-t border-gray-200">
      <div>
        <p class="text-sm text-gray-500">Daily Rate</p>
        <p class="text-2xl font-bold text-blue-600">₱3,850</p>
      </div>
      <button class="px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors font-medium text-base">
        View Details
      </button>
    </div>
  </div>
</div>

<div id="vehicle-modal-61" class="fixed inset-0 z-[1000] hidden items-center justify-center modal" data-controller="modal" data-modal-open-value="false" data-action="keydown@window->modal#closeOnEscape">
  <div class="absolute inset-0 bg-black/60 backdrop-blur-sm transition-opacity duration-300 opacity-0 z-[1001] modal-backdrop" data-modal-target="backdrop" onclick="if(event.target === this) closeVehicleModal(61)"></div>
  <div class="relative bg-white rounded-2xl max-w-5xl w-full mx-4 max-h-[90vh] overflow-hidden z-[1002] transform scale-90 opacity-0 transition-all duration-300 shadow-2xl modal-content flex flex-col" data-modal-target="content">
    <!-- Header -->
    <div class="flex justify-between items-center p-6 border-b border-gray-200 bg-gradient-to-r from-blue-50 to-white">
      <div>
        <h2 class="text-3xl font-bold text-gray-900 m-0">Ford Ranger  | GD BUDGET CAR &amp; MOTORCYCLE RENTALS</h2>
        <div class="flex items-center gap-3 mt-2">
          <span class="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-blue-100 text-blue-800">
            Car
          </span>
            <span class="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-yellow-100 text-yellow-800" title="Verified Owner - Verified Business with DTI Permit">
              <svg class="w-4 h-4 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"></path>
              </svg>
              Verified Owner
            </span>
        </div>
      </div>
      <button type="button" class="bg-white hover:bg-gray-100 border border-gray-300 rounded-full w-10 h-10 flex items-center justify-center text-gray-600 hover:text-gray-900 transition-colors shadow-sm" onclick="closeVehicleModal(61)" aria-label="Close">
        <svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24">
          <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path>
        </svg>
      </button>
    </div>

    <!-- Content - Scrollable -->
    <div class="overflow-y-auto flex-1">
      <div class="grid grid-cols-1 lg:grid-cols-2 gap-0">
        <!-- Image Gallery -->
        <div class="bg-gray-50 p-6">
            <div class="mb-4">
              <div class="relative rounded-xl overflow-hidden bg-gray-200 aspect-video">
                <img alt="Ford Ranger  | GD BUDGET CAR &amp; MOTORCYCLE RENTALS" id="main-image-61" class="w-full h-full object-cover" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6OTcwMzgsInB1ciI6ImJsb2JfaWQifX0=--caac010aae0a683f8c8999b3727a771d2460c12f/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMTIwMCwxMjAwXSwic2F2ZXIiOnsicXVhbGl0eSI6ODUsInN0cmlwIjp0cnVlfX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--a8cc17124e11b7490b7c93f626fa1004ce3d0d8e/1000013961.jpg" />
              </div>
            </div>
        </div>

        <!-- Details -->
        <div class="p-6 lg:p-8">
          <!-- Pricing Card -->
          <div class="bg-gradient-to-br from-blue-50 to-blue-100 rounded-xl p-6 mb-6 border border-blue-200">
            <div class="flex items-baseline gap-2 mb-2">
              <span class="text-4xl font-bold text-gray-900">₱3850.0</span>
              <span class="text-gray-600 font-medium">per day</span>
            </div>
            <p class="text-sm text-gray-600 mb-4">All prices are in Philippine Peso (PHP)</p>
            <div class="flex items-center gap-2 text-sm text-gray-700">
              <svg class="w-4 h-4 text-green-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
              </svg>
              <span>Available for immediate booking</span>
            </div>
          </div>

          <!-- Description -->
            <div class="mb-6">
              <h3 class="text-lg font-semibold text-gray-900 mb-3 flex items-center">
                <svg class="w-5 h-5 mr-2 text-blue-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path>
                </svg>
                About This Vehicle
              </h3>
              <p class="text-gray-700 leading-relaxed"><p>PickUp truck 4x4</p></p>
            </div>

          <!-- Location -->
            <div class="mb-6 bg-gray-50 rounded-xl p-6 border border-gray-200">
              <h3 class="text-lg font-semibold text-gray-900 mb-3 flex items-center">
                <svg class="w-5 h-5 mr-2 text-blue-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"></path>
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 11a3 3 0 11-6 0 3 3 0 016 0z"></path>
                </svg>
                Rental Owner Location
              </h3>
              <p class="text-gray-700 leading-relaxed">
                National highway , Poblacion, El Nido, Palawan, Philippines
              </p>
            </div>

          <!-- Trusted Badge Info -->
            <div class="mb-6 bg-yellow-50 rounded-xl p-6 border border-yellow-200">
              <div class="flex items-start">
                <div class="flex-shrink-0">
                  <svg class="w-6 h-6 text-yellow-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"></path>
                  </svg>
                </div>
                <div class="ml-3">
                  <h3 class="text-lg font-semibold text-gray-900 mb-2">Verified Owner</h3>
                  <p class="text-gray-700 text-sm">
                    This owner has verified their business details. All vehicles from this owner display the trusted badge, ensuring you're renting from a verified business.
                  </p>
                    <div class="mt-3">
                      <a class="inline-flex items-center px-4 py-2 rounded-md font-medium text-white text-sm" style="background-color: #0066cc" href="/rental-owners/gd-budget-car-motorcycle-rentals-38">View Company Profile</a>
                    </div>
                </div>
              </div>
            </div>

          <!-- Rental Information -->

          <!-- Specifications -->
            <div class="border-t border-gray-200 pt-6">
              <h3 class="text-lg font-semibold text-gray-900 mb-4 flex items-center">
                <svg class="w-5 h-5 mr-2 text-blue-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path>
                </svg>
                Additional Information
              </h3>
              <div class="space-y-3">
                  <div class="flex justify-between items-start py-2 border-b border-gray-100">
                    <span class="font-medium text-gray-700">Body Type</span>
                    <span class="text-gray-900 text-right">Car - Pickup</span>
                  </div>
                  <div class="flex justify-between items-start py-2 border-b border-gray-100">
                    <span class="font-medium text-gray-700">Seating Capacity</span>
                    <span class="text-gray-900 text-right">5</span>
                  </div>
                  <div class="flex justify-between items-start py-2 border-b border-gray-100">
                    <span class="font-medium text-gray-700">Transmission</span>
                    <span class="text-gray-900 text-right">Automatic</span>
                  </div>
                  <div class="flex justify-between items-start py-2 border-b border-gray-100">
                    <span class="font-medium text-gray-700">Fuel Type</span>
                    <span class="text-gray-900 text-right">Diesel</span>
                  </div>
              </div>
            </div>

          <!-- Features/Highlights -->
          <div class="border-t border-gray-200 pt-6">
            <div class="flex flex-wrap gap-2">
              <span class="inline-flex items-center px-3 py-1 rounded-full text-sm bg-green-100 text-green-800">
                <svg class="w-4 h-4 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
                </svg>
                Available Now
              </span>
              <span class="inline-flex items-center px-3 py-1 rounded-full text-sm bg-blue-100 text-blue-800">
                <svg class="w-4 h-4 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"></path>
                </svg>
                Instant Booking
              </span>
            </div>
          </div>
        </div>
      </div>
    </div>

    <!-- Footer Actions -->
    <div class="border-t border-gray-200 bg-gray-50 p-6">
      <div class="flex flex-col sm:flex-row justify-between items-center gap-4">
        <div class="text-sm text-gray-600">
          <p class="font-medium">Need help? Contact us for assistance</p>
        </div>
        <div class="flex gap-3 w-full sm:w-auto">
          <button type="button" class="flex-1 sm:flex-none px-6 py-3 bg-white border-2 border-gray-300 text-gray-700 rounded-lg font-semibold hover:bg-gray-50 hover:border-gray-400 transition-colors" onclick="closeVehicleModal(61)">
            Close
          </button>
          <a data-turbo="false" class="flex-1 sm:flex-none px-8 py-3 bg-blue-600 text-white rounded-lg font-semibold hover:bg-blue-700 transition-colors shadow-lg text-center flex items-center justify-center gap-2" href="/bookings/new?vehicle_id=ford-ranger">
            <svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
              <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"></path>
            </svg>
            Book Now
</a>        </div>
      </div>
    </div>
  </div>
</div>

<script>
  function updateMainImage(vehicleId, imageUrl, imageIndex) {
    const mainImage = document.getElementById('main-image-' + vehicleId);
    if (mainImage && imageUrl) {
      mainImage.src = imageUrl;
      
      // Update border on thumbnails
      const thumbnails = document.querySelectorAll(`#vehicle-modal-${vehicleId} button[data-image-index]`);
      thumbnails.forEach((thumb, index) => {
        if (index === imageIndex) {
          thumb.classList.remove('border-transparent', 'hover:border-gray-300');
          thumb.classList.add('border-blue-600');
        } else {
          thumb.classList.remove('border-blue-600');
          thumb.classList.add('border-transparent', 'hover:border-gray-300');
        }
      });
    }
  }
</script>

<div class="bg-white rounded-xl shadow-md overflow-hidden hover:shadow-xl hover:-translate-y-1 transition-all duration-300 cursor-pointer group flex flex-col" onclick="openVehicleModal(70)">
  <div class="relative h-48 bg-gray-200 overflow-hidden">
      <img alt="Toyota Fortuner (Automatic Transmission) | E-A&#39;S VEHICLE RENTAL" class="w-full h-full object-cover group-hover:scale-110 transition-transform duration-300" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6OTcxOTAsInB1ciI6ImJsb2JfaWQifX0=--283087de4abe1cfa8f6238e90110f6508805a80c/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbNjAwLDYwMF0sInNhdmVyIjp7InF1YWxpdHkiOjgwLCJzdHJpcCI6dHJ1ZX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--b5a3c7685837a6d9e60fd2448a949664947f2fcd/0fe705f2-fbba-45d4-89b0-f3adc6a3d65c.jpg" />

        <div class="absolute bottom-2 left-2" title="Verified owner logo">
          <div class="flex h-11 w-11 items-center justify-center rounded-xl bg-white/95 p-1.5 shadow-lg ring-1 ring-black/5 backdrop-blur-sm">
            <img alt="E-A&#39;S VEHICLE RENTAL logo" class="h-full w-full object-contain" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6OTcxMTIsInB1ciI6ImJsb2JfaWQifX0=--68fc1466bc9cff72ff5f7b201d532531bdf58942/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfdG9fbGltaXQiOls2NCw2NF19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--e1972e07de98d125949e77bf677ab3a0d9623cc1/EAS%20Vehicle%20Rental.jpg" />
          </div>
        </div>

      <div class="absolute bottom-2 right-2" title="Verified Owner - Verified Business with DTI Permit">
        <span class="inline-flex items-center px-2.5 py-1 text-sm font-semibold rounded-full bg-yellow-500 text-white shadow-lg">
          <svg class="w-3 h-3 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"></path>
          </svg>
          Verified
        </span>
      </div>
  </div>

  <div class="p-5 flex flex-col flex-grow">
    <div class="flex-grow">
      <h3 class="text-lg font-bold text-gray-900 mb-2 group-hover:text-blue-600 transition-colors">
        Toyota Fortuner (Automatic Transmission) | E-A&#39;S VEHICLE RENTAL
      </h3>
        <div class="flex items-center text-base text-gray-600 mb-2">
          <svg class="h-4 w-4 mr-1 text-gray-500" fill="none" stroke="currentColor" viewBox="0 0 24 24">
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"></path>
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 11a3 3 0 11-6 0 3 3 0 016 0z"></path>
          </svg>
          <span class="text-gray-600"> BARANGAY SAN MIGUEL, Puerto Princesa City, Palawan</span>
        </div>
        <p class="text-base text-gray-600 mb-3 line-clamp-2">
          Toyota Fortuner 2.4L 4x2 
✅Land Navigation
✅Bluetooth
✅Car Rental Insuranc...
        </p>

        <div class="flex flex-wrap gap-2 mb-3 text-sm">
            <span class="px-2 py-1 bg-gray-100 text-gray-700 rounded">
              <svg class="w-3 h-3 inline mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z"></path>
              </svg>
              7 seats
            </span>
            <span class="px-2 py-1 bg-gray-100 text-gray-700 rounded">
              <svg class="w-3 h-3 inline mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"></path>
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"></path>
              </svg>
              Automatic
            </span>
            <span class="px-2 py-1 bg-gray-100 text-gray-700 rounded">
              <svg class="w-3 h-3 inline mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z"></path>
              </svg>
              Diesel
            </span>
        </div>
    </div>
    <div class="flex items-center justify-between mt-4 pt-4 border-t border-gray-200">
      <div>
        <p class="text-sm text-gray-500">Daily Rate</p>
        <p class="text-2xl font-bold text-blue-600">₱4,070</p>
      </div>
      <button class="px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors font-medium text-base">
        View Details
      </button>
    </div>
  </div>
</div>

<div id="vehicle-modal-70" class="fixed inset-0 z-[1000] hidden items-center justify-center modal" data-controller="modal" data-modal-open-value="false" data-action="keydown@window->modal#closeOnEscape">
  <div class="absolute inset-0 bg-black/60 backdrop-blur-sm transition-opacity duration-300 opacity-0 z-[1001] modal-backdrop" data-modal-target="backdrop" onclick="if(event.target === this) closeVehicleModal(70)"></div>
  <div class="relative bg-white rounded-2xl max-w-5xl w-full mx-4 max-h-[90vh] overflow-hidden z-[1002] transform scale-90 opacity-0 transition-all duration-300 shadow-2xl modal-content flex flex-col" data-modal-target="content">
    <!-- Header -->
    <div class="flex justify-between items-center p-6 border-b border-gray-200 bg-gradient-to-r from-blue-50 to-white">
      <div>
        <h2 class="text-3xl font-bold text-gray-900 m-0">Toyota Fortuner (Automatic Transmission) | E-A&#39;S VEHICLE RENTAL</h2>
        <div class="flex items-center gap-3 mt-2">
          <span class="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-blue-100 text-blue-800">
            Car
          </span>
            <span class="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-yellow-100 text-yellow-800" title="Verified Owner - Verified Business with DTI Permit">
              <svg class="w-4 h-4 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"></path>
              </svg>
              Verified Owner
            </span>
        </div>
      </div>
      <button type="button" class="bg-white hover:bg-gray-100 border border-gray-300 rounded-full w-10 h-10 flex items-center justify-center text-gray-600 hover:text-gray-900 transition-colors shadow-sm" onclick="closeVehicleModal(70)" aria-label="Close">
        <svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24">
          <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path>
        </svg>
      </button>
    </div>

    <!-- Content - Scrollable -->
    <div class="overflow-y-auto flex-1">
      <div class="grid grid-cols-1 lg:grid-cols-2 gap-0">
        <!-- Image Gallery -->
        <div class="bg-gray-50 p-6">
            <div class="mb-4">
              <div class="relative rounded-xl overflow-hidden bg-gray-200 aspect-video">
                <img alt="Toyota Fortuner (Automatic Transmission) | E-A&#39;S VEHICLE RENTAL" id="main-image-70" class="w-full h-full object-cover" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6OTcxOTAsInB1ciI6ImJsb2JfaWQifX0=--283087de4abe1cfa8f6238e90110f6508805a80c/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMTIwMCwxMjAwXSwic2F2ZXIiOnsicXVhbGl0eSI6ODUsInN0cmlwIjp0cnVlfX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--a8cc17124e11b7490b7c93f626fa1004ce3d0d8e/0fe705f2-fbba-45d4-89b0-f3adc6a3d65c.jpg" />
              </div>
            </div>
              <div class="grid grid-cols-4 gap-2">
                  <button
                    type="button"
                    onclick="updateMainImage('70', '/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6OTcxOTAsInB1ciI6ImJsb2JfaWQifX0=--283087de4abe1cfa8f6238e90110f6508805a80c/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMTIwMCwxMjAwXSwic2F2ZXIiOnsicXVhbGl0eSI6ODUsInN0cmlwIjp0cnVlfX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--a8cc17124e11b7490b7c93f626fa1004ce3d0d8e/0fe705f2-fbba-45d4-89b0-f3adc6a3d65c.jpg', 0)"
                    data-image-index="0"
                    class="relative rounded-lg overflow-hidden bg-gray-200 aspect-square border-2 border-blue-600 transition-colors focus:outline-none focus:ring-2 focus:ring-blue-500">
                    <img alt="Toyota Fortuner (Automatic Transmission) | E-A&#39;S VEHICLE RENTAL" class="w-full h-full object-cover" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6OTcxOTAsInB1ciI6ImJsb2JfaWQifX0=--283087de4abe1cfa8f6238e90110f6508805a80c/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMjAwLDIwMF0sInNhdmVyIjp7InF1YWxpdHkiOjgwLCJzdHJpcCI6dHJ1ZX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--338ef1efe9d4f6fa4ee1fc5b65c53b6840184c99/0fe705f2-fbba-45d4-89b0-f3adc6a3d65c.jpg" />
                  </button>
                  <button
                    type="button"
                    onclick="updateMainImage('70', '/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6OTcyMDMsInB1ciI6ImJsb2JfaWQifX0=--20f59bef13ec50803b45993f620780e925de6e28/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMTIwMCwxMjAwXSwic2F2ZXIiOnsicXVhbGl0eSI6ODUsInN0cmlwIjp0cnVlfX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--a8cc17124e11b7490b7c93f626fa1004ce3d0d8e/e58d346b-f872-440a-8a71-d5a7a24f1bd0.jpg', 1)"
                    data-image-index="1"
                    class="relative rounded-lg overflow-hidden bg-gray-200 aspect-square border-2 border-transparent hover:border-gray-300 transition-colors focus:outline-none focus:ring-2 focus:ring-blue-500">
                    <img alt="Toyota Fortuner (Automatic Transmission) | E-A&#39;S VEHICLE RENTAL" class="w-full h-full object-cover" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6OTcyMDMsInB1ciI6ImJsb2JfaWQifX0=--20f59bef13ec50803b45993f620780e925de6e28/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMjAwLDIwMF0sInNhdmVyIjp7InF1YWxpdHkiOjgwLCJzdHJpcCI6dHJ1ZX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--338ef1efe9d4f6fa4ee1fc5b65c53b6840184c99/e58d346b-f872-440a-8a71-d5a7a24f1bd0.jpg" />
                  </button>
              </div>
        </div>

        <!-- Details -->
        <div class="p-6 lg:p-8">
          <!-- Pricing Card -->
          <div class="bg-gradient-to-br from-blue-50 to-blue-100 rounded-xl p-6 mb-6 border border-blue-200">
            <div class="flex items-baseline gap-2 mb-2">
              <span class="text-4xl font-bold text-gray-900">₱4070.0</span>
              <span class="text-gray-600 font-medium">per day</span>
            </div>
            <p class="text-sm text-gray-600 mb-4">All prices are in Philippine Peso (PHP)</p>
            <div class="flex items-center gap-2 text-sm text-gray-700">
              <svg class="w-4 h-4 text-green-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
              </svg>
              <span>Available for immediate booking</span>
            </div>
          </div>

          <!-- Description -->
            <div class="mb-6">
              <h3 class="text-lg font-semibold text-gray-900 mb-3 flex items-center">
                <svg class="w-5 h-5 mr-2 text-blue-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path>
                </svg>
                About This Vehicle
              </h3>
              <p class="text-gray-700 leading-relaxed"><p>Toyota Fortuner 2.4L 4x2 
<br />✅Land Navigation
<br />✅Bluetooth
<br />✅Car Rental Insurance ( Terms and conditions may apply)
<br />✅Cold AC and Heater are working
<br />✅Power Steering (smooth condition)
<br />✅accessory power outlet for charging cellphones
<br />✅power windows all working
<br />✅all Tires in Good Condition
<br />✅Preventive Maintenance Service (PMS) Always updated
<br />✅Gas And Go</p></p>
            </div>

          <!-- Location -->
            <div class="mb-6 bg-gray-50 rounded-xl p-6 border border-gray-200">
              <h3 class="text-lg font-semibold text-gray-900 mb-3 flex items-center">
                <svg class="w-5 h-5 mr-2 text-blue-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"></path>
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 11a3 3 0 11-6 0 3 3 0 016 0z"></path>
                </svg>
                Rental Owner Location
              </h3>
              <p class="text-gray-700 leading-relaxed">
                National Highway ( Two (2) Minutes away from Puerto Princesa International Airport ) ,  BARANGAY SAN MIGUEL, Puerto Princesa City, Palawan, Philippines
              </p>
            </div>

          <!-- Trusted Badge Info -->
            <div class="mb-6 bg-yellow-50 rounded-xl p-6 border border-yellow-200">
              <div class="flex items-start">
                <div class="flex-shrink-0">
                  <svg class="w-6 h-6 text-yellow-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"></path>
                  </svg>
                </div>
                <div class="ml-3">
                  <h3 class="text-lg font-semibold text-gray-900 mb-2">Verified Owner</h3>
                  <p class="text-gray-700 text-sm">
                    This owner has verified their business details. All vehicles from this owner display the trusted badge, ensuring you're renting from a verified business.
                  </p>
                    <div class="mt-3">
                      <a class="inline-flex items-center px-4 py-2 rounded-md font-medium text-white text-sm" style="background-color: #0066cc" href="/rental-owners/e-a-s-vehicle-rental-40">View Company Profile</a>
                    </div>
                </div>
              </div>
            </div>

          <!-- Rental Information -->
            <div class="bg-gray-50 rounded-xl p-6 mb-6 border border-gray-200">
              <h3 class="text-lg font-semibold text-gray-900 mb-4 flex items-center">
                <svg class="w-5 h-5 mr-2 text-blue-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"></path>
                </svg>
                What's Included
              </h3>
              <ul class="space-y-2 text-gray-700">
                  <li class="flex items-start gap-2">
                    <svg class="w-5 h-5 text-green-600 mt-0.5 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                      <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
                    </svg>
                    <span>Interior: 7-seater capacity</span>
                  </li>
                  <li class="flex items-start gap-2">
                    <svg class="w-5 h-5 text-green-600 mt-0.5 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                      <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
                    </svg>
                    <span>9-inch infotainment with Apple CarPlay/Android</span>
                  </li>
                  <li class="flex items-start gap-2">
                    <svg class="w-5 h-5 text-green-600 mt-0.5 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                      <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
                    </svg>
                    <span>Safety: 360-degree camera (on higher variants)</span>
                  </li>
                  <li class="flex items-start gap-2">
                    <svg class="w-5 h-5 text-green-600 mt-0.5 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                      <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
                    </svg>
                    <span>reverse camera</span>
                  </li>
                  <li class="flex items-start gap-2">
                    <svg class="w-5 h-5 text-green-600 mt-0.5 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                      <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
                    </svg>
                    <span>parking sensors</span>
                  </li>
                  <li class="flex items-start gap-2">
                    <svg class="w-5 h-5 text-green-600 mt-0.5 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                      <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
                    </svg>
                    <span>and Toyota Safety Sense</span>
                  </li>
                  <li class="flex items-start gap-2">
                    <svg class="w-5 h-5 text-green-600 mt-0.5 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                      <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
                    </svg>
                    <span>Design: LED lights</span>
                  </li>
                  <li class="flex items-start gap-2">
                    <svg class="w-5 h-5 text-green-600 mt-0.5 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                      <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
                    </svg>
                    <span>18-inch wheels</span>
                  </li>
                  <li class="flex items-start gap-2">
                    <svg class="w-5 h-5 text-green-600 mt-0.5 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                      <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
                    </svg>
                    <span>and available two-tone options.</span>
                  </li>
              </ul>
            </div>

          <!-- Specifications -->
            <div class="border-t border-gray-200 pt-6">
              <h3 class="text-lg font-semibold text-gray-900 mb-4 flex items-center">
                <svg class="w-5 h-5 mr-2 text-blue-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path>
                </svg>
                Additional Information
              </h3>
              <div class="space-y-3">
                  <div class="flex justify-between items-start py-2 border-b border-gray-100">
                    <span class="font-medium text-gray-700">Body Type</span>
                    <span class="text-gray-900 text-right">Car - SUV</span>
                  </div>
                  <div class="flex justify-between items-start py-2 border-b border-gray-100">
                    <span class="font-medium text-gray-700">Seating Capacity</span>
                    <span class="text-gray-900 text-right">7</span>
                  </div>
                  <div class="flex justify-between items-start py-2 border-b border-gray-100">
                    <span class="font-medium text-gray-700">Transmission</span>
                    <span class="text-gray-900 text-right">Automatic</span>
                  </div>
                  <div class="flex justify-between items-start py-2 border-b border-gray-100">
                    <span class="font-medium text-gray-700">Fuel Type</span>
                    <span class="text-gray-900 text-right">Diesel</span>
                  </div>
                  <div class="flex justify-between items-start py-2">
                    <span class="font-medium text-gray-700">Available Areas</span>
                    <span class="text-gray-900 text-right">National Highway Puerto Princesa City, Palawan, (Two (2) minutes away from Puerto Princesa International Airport)</span>
                  </div>
              </div>
            </div>

          <!-- Features/Highlights -->
          <div class="border-t border-gray-200 pt-6">
            <div class="flex flex-wrap gap-2">
              <span class="inline-flex items-center px-3 py-1 rounded-full text-sm bg-green-100 text-green-800">
                <svg class="w-4 h-4 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
                </svg>
                Available Now
              </span>
              <span class="inline-flex items-center px-3 py-1 rounded-full text-sm bg-blue-100 text-blue-800">
                <svg class="w-4 h-4 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"></path>
                </svg>
                Instant Booking
              </span>
            </div>
          </div>
        </div>
      </div>
    </div>

    <!-- Footer Actions -->
    <div class="border-t border-gray-200 bg-gray-50 p-6">
      <div class="flex flex-col sm:flex-row justify-between items-center gap-4">
        <div class="text-sm text-gray-600">
          <p class="font-medium">Need help? Contact us for assistance</p>
        </div>
        <div class="flex gap-3 w-full sm:w-auto">
          <button type="button" class="flex-1 sm:flex-none px-6 py-3 bg-white border-2 border-gray-300 text-gray-700 rounded-lg font-semibold hover:bg-gray-50 hover:border-gray-400 transition-colors" onclick="closeVehicleModal(70)">
            Close
          </button>
          <a data-turbo="false" class="flex-1 sm:flex-none px-8 py-3 bg-blue-600 text-white rounded-lg font-semibold hover:bg-blue-700 transition-colors shadow-lg text-center flex items-center justify-center gap-2" href="/bookings/new?vehicle_id=pickup-4x2-automatic-transmission">
            <svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
              <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"></path>
            </svg>
            Book Now
</a>        </div>
      </div>
    </div>
  </div>
</div>

<script>
  function updateMainImage(vehicleId, imageUrl, imageIndex) {
    const mainImage = document.getElementById('main-image-' + vehicleId);
    if (mainImage && imageUrl) {
      mainImage.src = imageUrl;
      
      // Update border on thumbnails
      const thumbnails = document.querySelectorAll(`#vehicle-modal-${vehicleId} button[data-image-index]`);
      thumbnails.forEach((thumb, index) => {
        if (index === imageIndex) {
          thumb.classList.remove('border-transparent', 'hover:border-gray-300');
          thumb.classList.add('border-blue-600');
        } else {
          thumb.classList.remove('border-blue-600');
          thumb.classList.add('border-transparent', 'hover:border-gray-300');
        }
      });
    }
  }
</script>

<div class="bg-white rounded-xl shadow-md overflow-hidden hover:shadow-xl hover:-translate-y-1 transition-all duration-300 cursor-pointer group flex flex-col" onclick="openVehicleModal(57)">
  <div class="relative h-48 bg-gray-200 overflow-hidden">
      <img alt="Toyota Gl Grandia 2026 | IR Vehicle Rental" class="w-full h-full object-cover group-hover:scale-110 transition-transform duration-300" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6OTY5MzUsInB1ciI6ImJsb2JfaWQifX0=--d1d54afebe1c5e4443ce29575b6daf253b5c4d5b/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbNjAwLDYwMF0sInNhdmVyIjp7InF1YWxpdHkiOjgwLCJzdHJpcCI6dHJ1ZX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--b5a3c7685837a6d9e60fd2448a949664947f2fcd/inbound1022118027379087461.jpg" />

        <div class="absolute bottom-2 left-2" title="Verified owner logo">
          <div class="flex h-11 w-11 items-center justify-center rounded-xl bg-white/95 p-1.5 shadow-lg ring-1 ring-black/5 backdrop-blur-sm">
            <img alt="IR Vehicle Rental logo" class="h-full w-full object-contain" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6OTY4NTIsInB1ciI6ImJsb2JfaWQifX0=--968833fad038065ef8943adf39cc3d595f3b1f66/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfdG9fbGltaXQiOls2NCw2NF19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--e1972e07de98d125949e77bf677ab3a0d9623cc1/1000075880.jpg" />
          </div>
        </div>

      <div class="absolute bottom-2 right-2" title="Verified Owner - Verified Business with DTI Permit">
        <span class="inline-flex items-center px-2.5 py-1 text-sm font-semibold rounded-full bg-yellow-500 text-white shadow-lg">
          <svg class="w-3 h-3 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"></path>
          </svg>
          Verified
        </span>
      </div>
  </div>

  <div class="p-5 flex flex-col flex-grow">
    <div class="flex-grow">
      <h3 class="text-lg font-bold text-gray-900 mb-2 group-hover:text-blue-600 transition-colors">
        Toyota Gl Grandia 2026 | IR Vehicle Rental
      </h3>
        <div class="flex items-center text-base text-gray-600 mb-2">
          <svg class="h-4 w-4 mr-1 text-gray-500" fill="none" stroke="currentColor" viewBox="0 0 24 24">
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"></path>
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 11a3 3 0 11-6 0 3 3 0 016 0z"></path>
          </svg>
          <span class="text-gray-600">San Pedro, Puerto Princesa City, Palawan</span>
        </div>
        <p class="text-base text-gray-600 mb-3 line-clamp-2">
          Toyota GL Grandia It is powered by a 2.8L diesel engine paired with a 6-speed...
        </p>

        <div class="flex flex-wrap gap-2 mb-3 text-sm">
            <span class="px-2 py-1 bg-gray-100 text-gray-700 rounded">
              <svg class="w-3 h-3 inline mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z"></path>
              </svg>
              12 seats
            </span>
            <span class="px-2 py-1 bg-gray-100 text-gray-700 rounded">
              <svg class="w-3 h-3 inline mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"></path>
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"></path>
              </svg>
              Automatic
            </span>
        </div>
    </div>
    <div class="flex items-center justify-between mt-4 pt-4 border-t border-gray-200">
      <div>
        <p class="text-sm text-gray-500">Daily Rate</p>
        <p class="text-2xl font-bold text-blue-600">₱4,180</p>
      </div>
      <button class="px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors font-medium text-base">
        View Details
      </button>
    </div>
  </div>
</div>

<div id="vehicle-modal-57" class="fixed inset-0 z-[1000] hidden items-center justify-center modal" data-controller="modal" data-modal-open-value="false" data-action="keydown@window->modal#closeOnEscape">
  <div class="absolute inset-0 bg-black/60 backdrop-blur-sm transition-opacity duration-300 opacity-0 z-[1001] modal-backdrop" data-modal-target="backdrop" onclick="if(event.target === this) closeVehicleModal(57)"></div>
  <div class="relative bg-white rounded-2xl max-w-5xl w-full mx-4 max-h-[90vh] overflow-hidden z-[1002] transform scale-90 opacity-0 transition-all duration-300 shadow-2xl modal-content flex flex-col" data-modal-target="content">
    <!-- Header -->
    <div class="flex justify-between items-center p-6 border-b border-gray-200 bg-gradient-to-r from-blue-50 to-white">
      <div>
        <h2 class="text-3xl font-bold text-gray-900 m-0">Toyota Gl Grandia 2026 | IR Vehicle Rental</h2>
        <div class="flex items-center gap-3 mt-2">
          <span class="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-blue-100 text-blue-800">
            Car
          </span>
            <span class="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-yellow-100 text-yellow-800" title="Verified Owner - Verified Business with DTI Permit">
              <svg class="w-4 h-4 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"></path>
              </svg>
              Verified Owner
            </span>
        </div>
      </div>
      <button type="button" class="bg-white hover:bg-gray-100 border border-gray-300 rounded-full w-10 h-10 flex items-center justify-center text-gray-600 hover:text-gray-900 transition-colors shadow-sm" onclick="closeVehicleModal(57)" aria-label="Close">
        <svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24">
          <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path>
        </svg>
      </button>
    </div>

    <!-- Content - Scrollable -->
    <div class="overflow-y-auto flex-1">
      <div class="grid grid-cols-1 lg:grid-cols-2 gap-0">
        <!-- Image Gallery -->
        <div class="bg-gray-50 p-6">
            <div class="mb-4">
              <div class="relative rounded-xl overflow-hidden bg-gray-200 aspect-video">
                <img alt="Toyota Gl Grandia 2026 | IR Vehicle Rental" id="main-image-57" class="w-full h-full object-cover" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6OTY5MzUsInB1ciI6ImJsb2JfaWQifX0=--d1d54afebe1c5e4443ce29575b6daf253b5c4d5b/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMTIwMCwxMjAwXSwic2F2ZXIiOnsicXVhbGl0eSI6ODUsInN0cmlwIjp0cnVlfX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--a8cc17124e11b7490b7c93f626fa1004ce3d0d8e/inbound1022118027379087461.jpg" />
              </div>
            </div>
        </div>

        <!-- Details -->
        <div class="p-6 lg:p-8">
          <!-- Pricing Card -->
          <div class="bg-gradient-to-br from-blue-50 to-blue-100 rounded-xl p-6 mb-6 border border-blue-200">
            <div class="flex items-baseline gap-2 mb-2">
              <span class="text-4xl font-bold text-gray-900">₱4180.0</span>
              <span class="text-gray-600 font-medium">per day</span>
            </div>
            <p class="text-sm text-gray-600 mb-4">All prices are in Philippine Peso (PHP)</p>
            <div class="flex items-center gap-2 text-sm text-gray-700">
              <svg class="w-4 h-4 text-green-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
              </svg>
              <span>Available for immediate booking</span>
            </div>
          </div>

          <!-- Description -->
            <div class="mb-6">
              <h3 class="text-lg font-semibold text-gray-900 mb-3 flex items-center">
                <svg class="w-5 h-5 mr-2 text-blue-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path>
                </svg>
                About This Vehicle
              </h3>
              <p class="text-gray-700 leading-relaxed"><p>Toyota GL Grandia It is powered by a 2.8L diesel engine paired with a 6-speed automatic transmission, offering a comfortable, powerful ride with high safety standards and modern infotainment, designed for families or luxury transport.</p></p>
            </div>

          <!-- Location -->
            <div class="mb-6 bg-gray-50 rounded-xl p-6 border border-gray-200">
              <h3 class="text-lg font-semibold text-gray-900 mb-3 flex items-center">
                <svg class="w-5 h-5 mr-2 text-blue-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"></path>
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 11a3 3 0 11-6 0 3 3 0 016 0z"></path>
                </svg>
                Rental Owner Location
              </h3>
              <p class="text-gray-700 leading-relaxed">
                BM road, San Pedro, Puerto Princesa City, Palawan, Philippines
              </p>
            </div>

          <!-- Trusted Badge Info -->
            <div class="mb-6 bg-yellow-50 rounded-xl p-6 border border-yellow-200">
              <div class="flex items-start">
                <div class="flex-shrink-0">
                  <svg class="w-6 h-6 text-yellow-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"></path>
                  </svg>
                </div>
                <div class="ml-3">
                  <h3 class="text-lg font-semibold text-gray-900 mb-2">Verified Owner</h3>
                  <p class="text-gray-700 text-sm">
                    This owner has verified their business details. All vehicles from this owner display the trusted badge, ensuring you're renting from a verified business.
                  </p>
                    <div class="mt-3">
                      <a class="inline-flex items-center px-4 py-2 rounded-md font-medium text-white text-sm" style="background-color: #0066cc" href="/rental-owners/ir-vehicle-rental-25">View Company Profile</a>
                    </div>
                </div>
              </div>
            </div>

          <!-- Rental Information -->
            <div class="bg-gray-50 rounded-xl p-6 mb-6 border border-gray-200">
              <h3 class="text-lg font-semibold text-gray-900 mb-4 flex items-center">
                <svg class="w-5 h-5 mr-2 text-blue-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"></path>
                </svg>
                What's Included
              </h3>
              <ul class="space-y-2 text-gray-700">
                  <li class="flex items-start gap-2">
                    <svg class="w-5 h-5 text-green-600 mt-0.5 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                      <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
                    </svg>
                    <span>GPS</span>
                  </li>
                  <li class="flex items-start gap-2">
                    <svg class="w-5 h-5 text-green-600 mt-0.5 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                      <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
                    </svg>
                    <span>Phone holder</span>
                  </li>
              </ul>
            </div>

          <!-- Specifications -->
            <div class="border-t border-gray-200 pt-6">
              <h3 class="text-lg font-semibold text-gray-900 mb-4 flex items-center">
                <svg class="w-5 h-5 mr-2 text-blue-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path>
                </svg>
                Additional Information
              </h3>
              <div class="space-y-3">
                  <div class="flex justify-between items-start py-2 border-b border-gray-100">
                    <span class="font-medium text-gray-700">Body Type</span>
                    <span class="text-gray-900 text-right">Car - Van</span>
                  </div>
                  <div class="flex justify-between items-start py-2 border-b border-gray-100">
                    <span class="font-medium text-gray-700">Seating Capacity</span>
                    <span class="text-gray-900 text-right">12</span>
                  </div>
                  <div class="flex justify-between items-start py-2 border-b border-gray-100">
                    <span class="font-medium text-gray-700">Transmission</span>
                    <span class="text-gray-900 text-right">Automatic</span>
                  </div>
                  <div class="flex justify-between items-start py-2">
                    <span class="font-medium text-gray-700">Available Areas</span>
                    <span class="text-gray-900 text-right">Puerto Princesa City</span>
                  </div>
              </div>
            </div>

          <!-- Features/Highlights -->
          <div class="border-t border-gray-200 pt-6">
            <div class="flex flex-wrap gap-2">
              <span class="inline-flex items-center px-3 py-1 rounded-full text-sm bg-green-100 text-green-800">
                <svg class="w-4 h-4 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
                </svg>
                Available Now
              </span>
              <span class="inline-flex items-center px-3 py-1 rounded-full text-sm bg-blue-100 text-blue-800">
                <svg class="w-4 h-4 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"></path>
                </svg>
                Instant Booking
              </span>
            </div>
          </div>
        </div>
      </div>
    </div>

    <!-- Footer Actions -->
    <div class="border-t border-gray-200 bg-gray-50 p-6">
      <div class="flex flex-col sm:flex-row justify-between items-center gap-4">
        <div class="text-sm text-gray-600">
          <p class="font-medium">Need help? Contact us for assistance</p>
        </div>
        <div class="flex gap-3 w-full sm:w-auto">
          <button type="button" class="flex-1 sm:flex-none px-6 py-3 bg-white border-2 border-gray-300 text-gray-700 rounded-lg font-semibold hover:bg-gray-50 hover:border-gray-400 transition-colors" onclick="closeVehicleModal(57)">
            Close
          </button>
          <a data-turbo="false" class="flex-1 sm:flex-none px-8 py-3 bg-blue-600 text-white rounded-lg font-semibold hover:bg-blue-700 transition-colors shadow-lg text-center flex items-center justify-center gap-2" href="/bookings/new?vehicle_id=toyota-gl-grandia-2026">
            <svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
              <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"></path>
            </svg>
            Book Now
</a>        </div>
      </div>
    </div>
  </div>
</div>

<script>
  function updateMainImage(vehicleId, imageUrl, imageIndex) {
    const mainImage = document.getElementById('main-image-' + vehicleId);
    if (mainImage && imageUrl) {
      mainImage.src = imageUrl;
      
      // Update border on thumbnails
      const thumbnails = document.querySelectorAll(`#vehicle-modal-${vehicleId} button[data-image-index]`);
      thumbnails.forEach((thumb, index) => {
        if (index === imageIndex) {
          thumb.classList.remove('border-transparent', 'hover:border-gray-300');
          thumb.classList.add('border-blue-600');
        } else {
          thumb.classList.remove('border-blue-600');
          thumb.classList.add('border-transparent', 'hover:border-gray-300');
        }
      });
    }
  }
</script>

<div class="bg-white rounded-xl shadow-md overflow-hidden hover:shadow-xl hover:-translate-y-1 transition-all duration-300 cursor-pointer group flex flex-col" onclick="openVehicleModal(62)">
  <div class="relative h-48 bg-gray-200 overflow-hidden">
      <img alt="Nissan Terra | DG Transport and Rentals" class="w-full h-full object-cover group-hover:scale-110 transition-transform duration-300" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6OTcwNjUsInB1ciI6ImJsb2JfaWQifX0=--0b8c06c384d37aac2a3f22a0837e31237dcd8c37/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbNjAwLDYwMF0sInNhdmVyIjp7InF1YWxpdHkiOjgwLCJzdHJpcCI6dHJ1ZX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--b5a3c7685837a6d9e60fd2448a949664947f2fcd/IMG_9023.jpeg" />


      <div class="absolute bottom-2 right-2" title="Verified Owner - Verified Business with DTI Permit">
        <span class="inline-flex items-center px-2.5 py-1 text-sm font-semibold rounded-full bg-yellow-500 text-white shadow-lg">
          <svg class="w-3 h-3 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"></path>
          </svg>
          Verified
        </span>
      </div>
  </div>

  <div class="p-5 flex flex-col flex-grow">
    <div class="flex-grow">
      <h3 class="text-lg font-bold text-gray-900 mb-2 group-hover:text-blue-600 transition-colors">
        Nissan Terra | DG Transport and Rentals
      </h3>
        <div class="flex items-center text-base text-gray-600 mb-2">
          <svg class="h-4 w-4 mr-1 text-gray-500" fill="none" stroke="currentColor" viewBox="0 0 24 24">
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"></path>
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 11a3 3 0 11-6 0 3 3 0 016 0z"></path>
          </svg>
          <span class="text-gray-600">San Jose, Puerto Princesa City, Palawan</span>
        </div>
        <p class="text-base text-gray-600 mb-3 line-clamp-2">
          Drive in comfort and style with the Nissan Terra—powerful, spacious, and buil...
        </p>

        <div class="flex flex-wrap gap-2 mb-3 text-sm">
            <span class="px-2 py-1 bg-gray-100 text-gray-700 rounded">
              <svg class="w-3 h-3 inline mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z"></path>
              </svg>
              7 seats
            </span>
            <span class="px-2 py-1 bg-gray-100 text-gray-700 rounded">
              <svg class="w-3 h-3 inline mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"></path>
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"></path>
              </svg>
              Automatic
            </span>
            <span class="px-2 py-1 bg-gray-100 text-gray-700 rounded">
              <svg class="w-3 h-3 inline mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z"></path>
              </svg>
              Diesel
            </span>
        </div>
    </div>
    <div class="flex items-center justify-between mt-4 pt-4 border-t border-gray-200">
      <div>
        <p class="text-sm text-gray-500">Daily Rate</p>
        <p class="text-2xl font-bold text-blue-600">₱4,400</p>
      </div>
      <button class="px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors font-medium text-base">
        View Details
      </button>
    </div>
  </div>
</div>

<div id="vehicle-modal-62" class="fixed inset-0 z-[1000] hidden items-center justify-center modal" data-controller="modal" data-modal-open-value="false" data-action="keydown@window->modal#closeOnEscape">
  <div class="absolute inset-0 bg-black/60 backdrop-blur-sm transition-opacity duration-300 opacity-0 z-[1001] modal-backdrop" data-modal-target="backdrop" onclick="if(event.target === this) closeVehicleModal(62)"></div>
  <div class="relative bg-white rounded-2xl max-w-5xl w-full mx-4 max-h-[90vh] overflow-hidden z-[1002] transform scale-90 opacity-0 transition-all duration-300 shadow-2xl modal-content flex flex-col" data-modal-target="content">
    <!-- Header -->
    <div class="flex justify-between items-center p-6 border-b border-gray-200 bg-gradient-to-r from-blue-50 to-white">
      <div>
        <h2 class="text-3xl font-bold text-gray-900 m-0">Nissan Terra | DG Transport and Rentals</h2>
        <div class="flex items-center gap-3 mt-2">
          <span class="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-blue-100 text-blue-800">
            Car
          </span>
            <span class="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-yellow-100 text-yellow-800" title="Verified Owner - Verified Business with DTI Permit">
              <svg class="w-4 h-4 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"></path>
              </svg>
              Verified Owner
            </span>
        </div>
      </div>
      <button type="button" class="bg-white hover:bg-gray-100 border border-gray-300 rounded-full w-10 h-10 flex items-center justify-center text-gray-600 hover:text-gray-900 transition-colors shadow-sm" onclick="closeVehicleModal(62)" aria-label="Close">
        <svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24">
          <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path>
        </svg>
      </button>
    </div>

    <!-- Content - Scrollable -->
    <div class="overflow-y-auto flex-1">
      <div class="grid grid-cols-1 lg:grid-cols-2 gap-0">
        <!-- Image Gallery -->
        <div class="bg-gray-50 p-6">
            <div class="mb-4">
              <div class="relative rounded-xl overflow-hidden bg-gray-200 aspect-video">
                <img alt="Nissan Terra | DG Transport and Rentals" id="main-image-62" class="w-full h-full object-cover" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6OTcwNjUsInB1ciI6ImJsb2JfaWQifX0=--0b8c06c384d37aac2a3f22a0837e31237dcd8c37/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMTIwMCwxMjAwXSwic2F2ZXIiOnsicXVhbGl0eSI6ODUsInN0cmlwIjp0cnVlfX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--a8cc17124e11b7490b7c93f626fa1004ce3d0d8e/IMG_9023.jpeg" />
              </div>
            </div>
        </div>

        <!-- Details -->
        <div class="p-6 lg:p-8">
          <!-- Pricing Card -->
          <div class="bg-gradient-to-br from-blue-50 to-blue-100 rounded-xl p-6 mb-6 border border-blue-200">
            <div class="flex items-baseline gap-2 mb-2">
              <span class="text-4xl font-bold text-gray-900">₱4400.0</span>
              <span class="text-gray-600 font-medium">per day</span>
            </div>
            <p class="text-sm text-gray-600 mb-4">All prices are in Philippine Peso (PHP)</p>
            <div class="flex items-center gap-2 text-sm text-gray-700">
              <svg class="w-4 h-4 text-green-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
              </svg>
              <span>Available for immediate booking</span>
            </div>
          </div>

          <!-- Description -->
            <div class="mb-6">
              <h3 class="text-lg font-semibold text-gray-900 mb-3 flex items-center">
                <svg class="w-5 h-5 mr-2 text-blue-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path>
                </svg>
                About This Vehicle
              </h3>
              <p class="text-gray-700 leading-relaxed"><p>Drive in comfort and style with the Nissan Terra—powerful, spacious, and built for both city rides and long trips. Perfect for family travel, airport transfers, and premium rentals.
</p></p>
            </div>

          <!-- Location -->
            <div class="mb-6 bg-gray-50 rounded-xl p-6 border border-gray-200">
              <h3 class="text-lg font-semibold text-gray-900 mb-3 flex items-center">
                <svg class="w-5 h-5 mr-2 text-blue-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"></path>
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 11a3 3 0 11-6 0 3 3 0 016 0z"></path>
                </svg>
                Rental Owner Location
              </h3>
              <p class="text-gray-700 leading-relaxed">
                Abordo Subdivision, Santol Road, San Jose, Puerto Princesa City, Palawan, Philippines
              </p>
            </div>

          <!-- Trusted Badge Info -->
            <div class="mb-6 bg-yellow-50 rounded-xl p-6 border border-yellow-200">
              <div class="flex items-start">
                <div class="flex-shrink-0">
                  <svg class="w-6 h-6 text-yellow-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"></path>
                  </svg>
                </div>
                <div class="ml-3">
                  <h3 class="text-lg font-semibold text-gray-900 mb-2">Verified Owner</h3>
                  <p class="text-gray-700 text-sm">
                    This owner has verified their business details. All vehicles from this owner display the trusted badge, ensuring you're renting from a verified business.
                  </p>
                    <div class="mt-3">
                      <a class="inline-flex items-center px-4 py-2 rounded-md font-medium text-white text-sm" style="background-color: #0066cc" href="/rental-owners/dg-transport-and-rentals-39">View Company Profile</a>
                    </div>
                </div>
              </div>
            </div>

          <!-- Rental Information -->
            <div class="bg-gray-50 rounded-xl p-6 mb-6 border border-gray-200">
              <h3 class="text-lg font-semibold text-gray-900 mb-4 flex items-center">
                <svg class="w-5 h-5 mr-2 text-blue-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"></path>
                </svg>
                What's Included
              </h3>
              <ul class="space-y-2 text-gray-700">
                  <li class="flex items-start gap-2">
                    <svg class="w-5 h-5 text-green-600 mt-0.5 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                      <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
                    </svg>
                    <span>GPS</span>
                  </li>
                  <li class="flex items-start gap-2">
                    <svg class="w-5 h-5 text-green-600 mt-0.5 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                      <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
                    </svg>
                    <span>Apple Carplay/ Andriod Auto</span>
                  </li>
                  <li class="flex items-start gap-2">
                    <svg class="w-5 h-5 text-green-600 mt-0.5 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                      <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
                    </svg>
                    <span>Freezing cold aircon</span>
                  </li>
              </ul>
            </div>

          <!-- Specifications -->
            <div class="border-t border-gray-200 pt-6">
              <h3 class="text-lg font-semibold text-gray-900 mb-4 flex items-center">
                <svg class="w-5 h-5 mr-2 text-blue-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path>
                </svg>
                Additional Information
              </h3>
              <div class="space-y-3">
                  <div class="flex justify-between items-start py-2 border-b border-gray-100">
                    <span class="font-medium text-gray-700">Body Type</span>
                    <span class="text-gray-900 text-right">Car - SUV</span>
                  </div>
                  <div class="flex justify-between items-start py-2 border-b border-gray-100">
                    <span class="font-medium text-gray-700">Seating Capacity</span>
                    <span class="text-gray-900 text-right">7</span>
                  </div>
                  <div class="flex justify-between items-start py-2 border-b border-gray-100">
                    <span class="font-medium text-gray-700">Transmission</span>
                    <span class="text-gray-900 text-right">Automatic</span>
                  </div>
                  <div class="flex justify-between items-start py-2 border-b border-gray-100">
                    <span class="font-medium text-gray-700">Fuel Type</span>
                    <span class="text-gray-900 text-right">Diesel</span>
                  </div>
                  <div class="flex justify-between items-start py-2">
                    <span class="font-medium text-gray-700">Available Areas</span>
                    <span class="text-gray-900 text-right">Puerto Prinsesa</span>
                  </div>
              </div>
            </div>

          <!-- Features/Highlights -->
          <div class="border-t border-gray-200 pt-6">
            <div class="flex flex-wrap gap-2">
              <span class="inline-flex items-center px-3 py-1 rounded-full text-sm bg-green-100 text-green-800">
                <svg class="w-4 h-4 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
                </svg>
                Available Now
              </span>
              <span class="inline-flex items-center px-3 py-1 rounded-full text-sm bg-blue-100 text-blue-800">
                <svg class="w-4 h-4 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"></path>
                </svg>
                Instant Booking
              </span>
            </div>
          </div>
        </div>
      </div>
    </div>

    <!-- Footer Actions -->
    <div class="border-t border-gray-200 bg-gray-50 p-6">
      <div class="flex flex-col sm:flex-row justify-between items-center gap-4">
        <div class="text-sm text-gray-600">
          <p class="font-medium">Need help? Contact us for assistance</p>
        </div>
        <div class="flex gap-3 w-full sm:w-auto">
          <button type="button" class="flex-1 sm:flex-none px-6 py-3 bg-white border-2 border-gray-300 text-gray-700 rounded-lg font-semibold hover:bg-gray-50 hover:border-gray-400 transition-colors" onclick="closeVehicleModal(62)">
            Close
          </button>
          <a data-turbo="false" class="flex-1 sm:flex-none px-8 py-3 bg-blue-600 text-white rounded-lg font-semibold hover:bg-blue-700 transition-colors shadow-lg text-center flex items-center justify-center gap-2" href="/bookings/new?vehicle_id=nissan-terra">
            <svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
              <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"></path>
            </svg>
            Book Now
</a>        </div>
      </div>
    </div>
  </div>
</div>

<script>
  function updateMainImage(vehicleId, imageUrl, imageIndex) {
    const mainImage = document.getElementById('main-image-' + vehicleId);
    if (mainImage && imageUrl) {
      mainImage.src = imageUrl;
      
      // Update border on thumbnails
      const thumbnails = document.querySelectorAll(`#vehicle-modal-${vehicleId} button[data-image-index]`);
      thumbnails.forEach((thumb, index) => {
        if (index === imageIndex) {
          thumb.classList.remove('border-transparent', 'hover:border-gray-300');
          thumb.classList.add('border-blue-600');
        } else {
          thumb.classList.remove('border-blue-600');
          thumb.classList.add('border-transparent', 'hover:border-gray-300');
        }
      });
    }
  }
</script>


</template></turbo-stream>
  <turbo-stream action="replace" target="vehicles-load-more"><template>
    <div id="vehicles-load-more" class="mt-8 flex justify-center">
        <a class="inline-flex items-center gap-2 px-6 py-3 bg-white border border-blue-600 text-blue-600 rounded-lg font-semibold hover:bg-blue-50 transition-colors shadow-sm" data-turbo-stream="true" href="/vehicles?current_visible=27&amp;format=turbo_stream&amp;load_more=1">
          <span>Load More Vehicles</span>
          <span class="text-xs px-2 py-0.5 rounded-full bg-blue-100 text-blue-700">
            +2
          </span>
</a>    </div>
</template></turbo-stream>